feat: Implement core page structure with Header and Footer, add multiple content pages, and refine UI components and global styling.

This commit is contained in:
1elle1
2026-02-03 21:56:55 +01:00
parent 1cc779e89c
commit 0c2e9a81a6
17 changed files with 1184 additions and 58 deletions
+11 -2
View File
@@ -1,19 +1,28 @@
import type { ElementType, ReactNode } from "react";
interface SectionProps {
interface SectionProps extends React.HTMLAttributes<HTMLElement> {
children: ReactNode;
className?: string;
as?: ElementType;
variant?: "sm" | "lg" | "hero" | "flush";
}
export function Section({
children,
className = "",
as: Tag = "section",
variant,
...props
}: SectionProps) {
const variantClass = variant === "sm" ? "section--sm" :
variant === "lg" ? "section--lg" :
variant === "hero" ? "section--hero" :
variant === "flush" ? "section--flush" : "";
return (
<Tag
className={`py-[var(--section-spacing-y)] ${className}`.trim()}
className={`section ${variantClass} ${className}`.trim()}
{...props}
>
{children}
</Tag>