Fix code of conduct and constitution shapes backgrounds

This commit is contained in:
Amy 2021-08-25 20:33:55 -04:00
parent c38ece8f6b
commit 59c848acad
2 changed files with 7 additions and 1 deletions

View File

@ -2,11 +2,17 @@ import path from "path";
import { createReadAllPage } from "@/components/OrganizedContent/ReadAll";
import { createReadAllGetStaticProps } from "@/components/OrganizedContent/static";
import {
mobileShapesConfig,
aboutShapesConfig,
} from "@/components/ShapesBackground";
export const options = {
title: "Code of Conduct",
image: "images/code-of-conduct.svg",
pagePath: path.join("about", "code-of-conduct"),
getShapesConfig: () =>
window.innerWidth <= 768 ? mobileShapesConfig : aboutShapesConfig,
};
export default createReadAllPage(options);

View File

@ -8,9 +8,9 @@ import {
} from "@/components/ShapesBackground";
export const options = {
pagePath: path.join("about", "constitution"),
title: "Constitution",
image: "images/constitution.svg",
pagePath: path.join("about", "constitution"),
getShapesConfig: () =>
window.innerWidth <= 768 ? mobileShapesConfig : aboutShapesConfig,
};