Add services page

This commit is contained in:
Aditya Thakral 2021-08-23 10:20:14 -04:00
parent 18e8e0e459
commit 28c4bb82d8
4 changed files with 41 additions and 1 deletions

View File

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

View File

@ -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);

View File

@ -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