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
+10 -2
View File
@@ -1,19 +1,27 @@
import type { ElementType, ReactNode } from "react";
import React from "react"; // Added import for React to use React.HTMLAttributes
interface ContainerProps {
interface ContainerProps extends React.HTMLAttributes<HTMLElement> {
children: ReactNode;
className?: string;
as?: ElementType;
variant?: "narrow" | "wide"; // Add variant support
}
export function Container({
children,
className = "",
as: Tag = "div",
variant,
...props
}: ContainerProps) {
const variantClass = variant === "narrow" ? "container--narrow" :
variant === "wide" ? "container--wide" : "";
return (
<Tag
className={`mx-auto w-full max-w-[var(--container-max-width)] px-[var(--container-padding-x)] ${className}`.trim()}
className={`container ${variantClass} ${className}`.trim()}
{...props}
>
{children}
</Tag>