diff --git a/client-solid/src/Containers/PageContainer.tsx b/client-solid/src/Containers/PageContainer.tsx new file mode 100644 index 0000000..314b1be --- /dev/null +++ b/client-solid/src/Containers/PageContainer.tsx @@ -0,0 +1,10 @@ +import { JSXElement } from "solid-js"; + +// MainContainer is the main container for the page. +export function PageContainer(props: { children: JSXElement }): JSXElement { + return ( +
+ {props.children} +
+ ); +} diff --git a/client-solid/src/Containers/PrimaryContainer.tsx b/client-solid/src/Containers/PrimaryContainer.tsx new file mode 100644 index 0000000..62292c4 --- /dev/null +++ b/client-solid/src/Containers/PrimaryContainer.tsx @@ -0,0 +1,10 @@ +import { JSXElement } from "solid-js"; + +// PrimaryContainer is the main container for the content section of the page. +export function PrimaryContainer(props: { children: JSXElement }): JSXElement { + return ( +
+ {props.children} +
+ ); +} diff --git a/client-solid/src/Containers/Root.tsx b/client-solid/src/Containers/Root.tsx index daf762c..0669db1 100644 --- a/client-solid/src/Containers/Root.tsx +++ b/client-solid/src/Containers/Root.tsx @@ -4,21 +4,23 @@ import { GlobalStateProvider } from "../Context/GlobalState"; import { Footer } from "./Footer"; import { LoginModal } from "./LoginModal"; import { Navbar } from "./Navbar"; +import { PageContainer } from "./PageContainer"; import { Primary } from "./Primary"; +import { PrimaryContainer } from "./PrimaryContainer"; function Root(): JSXElement { return ( <> -
+ -
+ -
+
+
);