mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: better flags
This commit is contained in:
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'}
|
mx={highlight ? '2' : '0'}
|
||||||
style={{
|
style={{
|
||||||
background: highlight
|
background: highlight
|
||||||
? `url(${asset(`flags/scratched/${tank.nation}.webp`)})`
|
? `url(${asset(`flags/fade_small/${tank.nation}.webp`)})`
|
||||||
: undefined,
|
: undefined,
|
||||||
backgroundPosition: '25% center',
|
backgroundPosition: 'center',
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundRepeat: 'no-repeat',
|
|
||||||
boxShadow: highlight ? 'var(--shadow-4)' : undefined,
|
boxShadow: highlight ? 'var(--shadow-4)' : undefined,
|
||||||
borderRadius: 'var(--radius-4)',
|
borderRadius: 'var(--radius-4)',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
|
|||||||
Reference in new issue
Block a user