feat: better flags

This commit is contained in:
TrèsAbhi committed 2024-08-16 21:10:14 -05:00
1 parent 6a3fefd513
commit 7fcd4a1e94
1 file changed
+2 -3
@@ -29,11 +29,10 @@ function Card({ id, highlight }: { id: number; highlight?: boolean }) {
mx={highlight ? '2' : '0'}
style={{
background: highlight
? `url(${asset(`flags/scratched/${tank.nation}.webp`)})`
? `url(${asset(`flags/fade_small/${tank.nation}.webp`)})`
: undefined,
backgroundPosition: '25% center',
backgroundPosition: 'center',
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
boxShadow: highlight ? 'var(--shadow-4)' : undefined,
borderRadius: 'var(--radius-4)',
overflow: 'hidden',