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,20 @@
import { Image } from './Image';
export interface LeagueCoverProps {
leagueId: string;
alt: string;
height?: string;
}
export function LeagueCover({ leagueId, alt, height = '12rem' }: LeagueCoverProps) {
return (
<Image
src={`/media/leagues/${leagueId}/cover`}
alt={alt}
style={{ width: '100%', height, objectFit: 'cover' }}
fallbackSrc="/default-league-cover.png"
/>
);
}