This commit is contained in:
laura 2025-11-01 23:46:32 -03:00
parent 30f2b4714d
commit 0c9f7a7822
Signed by: w
GPG key ID: BCD2117C99E69817
21 changed files with 1868 additions and 1839 deletions

View file

@ -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>
);
}