|
|
|
@ -7,6 +7,12 @@ import { |
|
|
|
|
OrganizedContent, |
|
|
|
|
} from "@/components/OrganizedContent"; |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
mobileShapesConfig, |
|
|
|
|
aboutShapesConfig, |
|
|
|
|
GetShapesConfig, |
|
|
|
|
} from "../ShapesBackground"; |
|
|
|
|
|
|
|
|
|
import { Header } from "./Header"; |
|
|
|
|
|
|
|
|
|
interface Section { |
|
|
|
@ -30,7 +36,7 @@ export interface Options { |
|
|
|
|
export function createSectionPage({ title, image, pagePath, link }: Options) { |
|
|
|
|
const Link = link ?? createLink(pagePath); |
|
|
|
|
|
|
|
|
|
return function Page(this: void, { content, sections, current }: Props) { |
|
|
|
|
function Page(this: void, { content, sections, current }: Props) { |
|
|
|
|
return ( |
|
|
|
|
<Header title={title} image={image}> |
|
|
|
|
<OrganizedContent |
|
|
|
@ -42,5 +48,12 @@ export function createSectionPage({ title, image, pagePath, link }: Options) { |
|
|
|
|
</OrganizedContent> |
|
|
|
|
</Header> |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// TODO: differentiate between About pages and Resources pages
|
|
|
|
|
Page.getShapesConfig = (() => { |
|
|
|
|
return window.innerWidth <= 768 ? mobileShapesConfig : aboutShapesConfig; |
|
|
|
|
}) as GetShapesConfig; |
|
|
|
|
|
|
|
|
|
return Page; |
|
|
|
|
} |
|
|
|
|