Add /resources/machine-usage-agreement

This commit is contained in:
Aditya Thakral 2021-08-23 11:39:15 -04:00
parent 28619842e7
commit 6abbe6f643
3 changed files with 30 additions and 1 deletions

View File

@ -1 +0,0 @@
# Machine Usage Agreement

View File

@ -0,0 +1,18 @@
import path from "path";
import {
createReadAllPage,
Options,
} from "@/components/OrganizedContent/ReadAll";
import { createReadAllGetStaticProps } from "@/components/OrganizedContent/static";
export const options: Options = {
title: "Machine Usage Agreement",
// TODO: Different image for this?
image: "images/services.svg",
pagePath: path.join("resources", "machine-usage-agreement"),
};
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 "../machine-usage-agreement";
export default createSectionPage(options);
export const getStaticProps = createSectionGetStaticProps(options.pagePath);
export const getStaticPaths = createSectionGetStaticPaths(options.pagePath);