From 59c848acadbd8ba5f5ae86848c4232855d647879 Mon Sep 17 00:00:00 2001 From: Amy Date: Wed, 25 Aug 2021 20:33:55 -0400 Subject: [PATCH] Fix code of conduct and constitution shapes backgrounds --- pages/about/code-of-conduct.tsx | 6 ++++++ pages/about/constitution.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/about/code-of-conduct.tsx b/pages/about/code-of-conduct.tsx index 3fc88256..c36f425b 100644 --- a/pages/about/code-of-conduct.tsx +++ b/pages/about/code-of-conduct.tsx @@ -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); diff --git a/pages/about/constitution.tsx b/pages/about/constitution.tsx index 639f6f34..78f4f7ee 100644 --- a/pages/about/constitution.tsx +++ b/pages/about/constitution.tsx @@ -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, };