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

@@ -3,10 +3,12 @@ import { Badge } from '@/ui/Badge';
interface RatingBadgeProps {
rating: number;
size?: 'sm' | 'md';
size?: 'sm' | 'md' | 'lg';
}
export function RatingBadge({ rating, size = 'md' }: RatingBadgeProps) {
const badgeSize = size === 'lg' ? 'md' : size;
const getVariant = (val: number): 'warning' | 'primary' | 'success' | 'default' => {
if (val >= 2500) return 'warning';
if (val >= 2000) return 'primary'; // Simplified
@@ -18,7 +20,7 @@ export function RatingBadge({ rating, size = 'md' }: RatingBadgeProps) {
return (
<Badge
variant={getVariant(rating)}
size={size}
size={badgeSize}
>
{rating.toLocaleString()}
</Badge>