Updated
This commit is contained in:
parent
d61b8b7bd8
commit
46783c4f38
57 changed files with 4178 additions and 5992 deletions
28
frontend/@dasig/components/Page.tsx
Normal file
28
frontend/@dasig/components/Page.tsx
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { Title } from "@solidjs/meta";
|
||||
import { type JSXElement, Show } from "solid-js";
|
||||
import "../styles/Page.sass";
|
||||
|
||||
interface Props {
|
||||
children?: JSXElement;
|
||||
alignment?: "row" | "column";
|
||||
title: string;
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<Show when={props.alignment}>
|
||||
<main class={props.alignment}>
|
||||
<Title>{props.title}</Title>
|
||||
{props.children}
|
||||
</main>
|
||||
</Show>
|
||||
<Show when={!props.alignment}>
|
||||
<main class="page">
|
||||
<Title>{props.title}</Title>
|
||||
{props.children}
|
||||
</main>
|
||||
</Show>
|
||||
</>
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue