website refactor

This commit is contained in:
2026-01-15 17:12:24 +01:00
parent c3b308e960
commit f035cfe7ce
468 changed files with 24378 additions and 17324 deletions

View File

@@ -0,0 +1,19 @@
import React from 'react';
import { Box } from './Box';
import { Text } from './Text';
interface StatItemProps {
label: string;
value: string | number;
color?: string;
align?: 'left' | 'center' | 'right';
}
export function StatItem({ label, value, color = 'text-white', align = 'left' }: StatItemProps) {
return (
<Box display="flex" flexDirection="column" alignItems={align === 'center' ? 'center' : align === 'right' ? 'flex-end' : 'flex-start'}>
<Text size="xs" color="text-gray-500" block mb={0.5}>{label}</Text>
<Text size="sm" weight="semibold" color={color}>{value}</Text>
</Box>
);
}