website refactor

This commit is contained in:
2026-01-20 22:31:14 +01:00
parent 51288234f4
commit 7cbec00474
52 changed files with 577 additions and 146 deletions

View File

@@ -8,6 +8,9 @@ export interface SectionProps {
id?: string;
minHeight?: string;
py?: number;
fullWidth?: boolean;
maxWidth?: string;
/** @deprecated DO NOT USE. Use semantic props instead. */
className?: string;
}
@@ -18,7 +21,9 @@ export const Section = ({
id,
minHeight,
py,
className
className,
fullWidth = false,
maxWidth = '80rem'
}: SectionProps) => {
const variantClasses = {
default: 'bg-[var(--ui-color-bg-base)]',
@@ -44,9 +49,13 @@ export const Section = ({
...(minHeight ? { minHeight } : {}),
...(py !== undefined ? { paddingTop: `${py * 0.25}rem`, paddingBottom: `${py * 0.25}rem` } : {})
}}>
<Box marginX="auto" maxWidth="80rem" paddingX={4}>
{children}
</Box>
{fullWidth ? (
children
) : (
<Box marginX="auto" maxWidth={maxWidth} paddingX={4}>
{children}
</Box>
)}
</section>
);
};