Fix code of conduct and constitution shapes backgrounds
This commit is contained in:
parent
c38ece8f6b
commit
59c848acad
|
@ -2,11 +2,17 @@ import path from "path";
|
||||||
|
|
||||||
import { createReadAllPage } from "@/components/OrganizedContent/ReadAll";
|
import { createReadAllPage } from "@/components/OrganizedContent/ReadAll";
|
||||||
import { createReadAllGetStaticProps } from "@/components/OrganizedContent/static";
|
import { createReadAllGetStaticProps } from "@/components/OrganizedContent/static";
|
||||||
|
import {
|
||||||
|
mobileShapesConfig,
|
||||||
|
aboutShapesConfig,
|
||||||
|
} from "@/components/ShapesBackground";
|
||||||
|
|
||||||
export const options = {
|
export const options = {
|
||||||
title: "Code of Conduct",
|
title: "Code of Conduct",
|
||||||
image: "images/code-of-conduct.svg",
|
image: "images/code-of-conduct.svg",
|
||||||
pagePath: path.join("about", "code-of-conduct"),
|
pagePath: path.join("about", "code-of-conduct"),
|
||||||
|
getShapesConfig: () =>
|
||||||
|
window.innerWidth <= 768 ? mobileShapesConfig : aboutShapesConfig,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default createReadAllPage(options);
|
export default createReadAllPage(options);
|
||||||
|
|
|
@ -8,9 +8,9 @@ import {
|
||||||
} from "@/components/ShapesBackground";
|
} from "@/components/ShapesBackground";
|
||||||
|
|
||||||
export const options = {
|
export const options = {
|
||||||
pagePath: path.join("about", "constitution"),
|
|
||||||
title: "Constitution",
|
title: "Constitution",
|
||||||
image: "images/constitution.svg",
|
image: "images/constitution.svg",
|
||||||
|
pagePath: path.join("about", "constitution"),
|
||||||
getShapesConfig: () =>
|
getShapesConfig: () =>
|
||||||
window.innerWidth <= 768 ? mobileShapesConfig : aboutShapesConfig,
|
window.innerWidth <= 768 ? mobileShapesConfig : aboutShapesConfig,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue