website refactor

This commit is contained in:
2026-01-19 12:35:16 +01:00
parent a8731e6937
commit 15290400b3
122 changed files with 902 additions and 255 deletions

View File

@@ -5,11 +5,13 @@ import { Container } from './Container';
export interface ContentViewportProps {
children: ReactNode;
padding?: 'none' | 'sm' | 'md' | 'lg';
fullWidth?: boolean;
}
export const ContentViewport = ({
children,
padding = 'md'
padding = 'md',
fullWidth = false
}: ContentViewportProps) => {
const paddingMap: Record<string, any> = {
none: 0,
@@ -20,7 +22,7 @@ export const ContentViewport = ({
return (
<Box as="main" flex={1} overflow="auto">
<Container size="xl">
<Container size={fullWidth ? 'full' : 'xl'}>
<Box paddingY={paddingMap[padding]}>
{children}
</Box>