feat: Implement initial website structure, core pages, and layout components, including a redesigned homepage.

This commit is contained in:
1elle1
2026-02-03 21:41:03 +01:00
parent 1cc779e89c
commit 578bb8edb3
13 changed files with 1749 additions and 80 deletions
+11 -3
View File
@@ -1,20 +1,28 @@
import type { ElementType, ReactNode } from "react";
type ContainerVariant = "default" | "narrow" | "wide";
interface ContainerProps {
children: ReactNode;
className?: string;
as?: ElementType;
variant?: ContainerVariant;
}
export function Container({
children,
className = "",
as: Tag = "div",
variant = "default",
}: ContainerProps) {
const variantClasses: Record<ContainerVariant, string> = {
default: "container",
narrow: "container container--narrow",
wide: "container container--wide",
};
return (
<Tag
className={`mx-auto w-full max-w-[var(--container-max-width)] px-[var(--container-padding-x)] ${className}`.trim()}
>
<Tag className={`${variantClasses[variant]} ${className}`.trim()}>
{children}
</Tag>
);