From fc7a31cc57a9d6d1685ead80fac8c5fd23bbf2e5 Mon Sep 17 00:00:00 2001 From: Aditya Thakral Date: Mon, 23 Aug 2021 10:20:14 -0400 Subject: [PATCH] Add services page --- pages/resources/services.mdx | 1 - pages/resources/services.tsx | 20 ++++++++++++++++++++ pages/resources/services/[section].tsx | 12 ++++++++++++ public/images/services.svg | 9 +++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) delete mode 100644 pages/resources/services.mdx create mode 100644 pages/resources/services.tsx create mode 100644 pages/resources/services/[section].tsx create mode 100644 public/images/services.svg diff --git a/pages/resources/services.mdx b/pages/resources/services.mdx deleted file mode 100644 index 3effab29..00000000 --- a/pages/resources/services.mdx +++ /dev/null @@ -1 +0,0 @@ -# Services Page \ No newline at end of file diff --git a/pages/resources/services.tsx b/pages/resources/services.tsx new file mode 100644 index 00000000..5f65a39c --- /dev/null +++ b/pages/resources/services.tsx @@ -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); diff --git a/pages/resources/services/[section].tsx b/pages/resources/services/[section].tsx new file mode 100644 index 00000000..d54c0bd9 --- /dev/null +++ b/pages/resources/services/[section].tsx @@ -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); diff --git a/public/images/services.svg b/public/images/services.svg new file mode 100644 index 00000000..854a8a85 --- /dev/null +++ b/public/images/services.svg @@ -0,0 +1,9 @@ + + + + + + + + +