Add services page

pull/170/head
Aditya Thakral 2 years ago
parent 18e8e0e459
commit 28c4bb82d8
  1. 1
      pages/resources/services.mdx
  2. 20
      pages/resources/services.tsx
  3. 12
      pages/resources/services/[section].tsx
  4. 9
      public/images/services.svg

@ -1 +0,0 @@
# Services Page

@ -0,0 +1,20 @@
import path from "path";
import {
createReadAllPage,
Options,
} from "@/components/OrganizedContent/ReadAll";
import { createReadAllGetStaticProps } from "@/components/OrganizedContent/static";
export const options: Options = {
title: "Services",
image: "images/services.svg",
pagePath: path.join("resources", "services"),
description:
"Here you can find all the links and instructions to the different resources available to all CSC members!",
imagePosition: "right",
};
export default createReadAllPage(options);
export const getStaticProps = createReadAllGetStaticProps(options.pagePath);

@ -0,0 +1,12 @@
import { createSectionPage } from "@/components/OrganizedContent/Section";
import {
createSectionGetStaticPaths,
createSectionGetStaticProps,
} from "@/components/OrganizedContent/static";
import { options } from "../services";
export default createSectionPage(options);
export const getStaticProps = createSectionGetStaticProps(options.pagePath);
export const getStaticPaths = createSectionGetStaticPaths(options.pagePath);

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 26 KiB

Loading…
Cancel
Save