i forgot
This commit is contained in:
parent
30f2b4714d
commit
0c9f7a7822
21 changed files with 1868 additions and 1839 deletions
|
|
@ -6,27 +6,27 @@
|
|||
import { ComponentChildren } from "preact";
|
||||
|
||||
interface LayoutProps {
|
||||
children: ComponentChildren;
|
||||
[key: string]: any;
|
||||
children: ComponentChildren;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export function Section({ children, class: className, ...props }: LayoutProps) {
|
||||
return (
|
||||
<div
|
||||
{...props}
|
||||
class={`section ${className || ""}`}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<div
|
||||
{...props}
|
||||
class={`section ${className || ""}`}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function Centered(
|
||||
{ children, class: className, ...props }: LayoutProps,
|
||||
{ children, class: className, ...props }: LayoutProps,
|
||||
) {
|
||||
return (
|
||||
<div class={`centered ${className || ""}`} {...props}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<main class={`centered ${className || ""}`} {...props}>
|
||||
{children}
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue