feat: tier display

This commit is contained in:
TrèsAbhi committed 2023-12-04 18:40:24 -06:00
1 parent 6ed9a191b9
commit fb4e00afc4
1 file changed
+13 -3
+13 -3
View File
@@ -13,6 +13,7 @@ import {
TANK_ICONS, TANK_ICONS,
TANK_ICONS_COLLECTOR, TANK_ICONS_COLLECTOR,
TANK_ICONS_PREMIUM, TANK_ICONS_PREMIUM,
TIER_ROMAN_NUMERALS,
tanks, tanks,
} from '../../../core/blitzkrieg/tankopedia'; } from '../../../core/blitzkrieg/tankopedia';
import { theme } from '../../../stitches.config'; import { theme } from '../../../stitches.config';
@@ -127,6 +128,8 @@ export default function Page() {
href={`/tools/tankopedia/${tank.id}`} href={`/tools/tankopedia/${tank.id}`}
style={{ style={{
flex: 1, flex: 1,
textDecoration: 'none',
color: 'unset',
}} }}
> >
<Card className={styles.listing}> <Card className={styles.listing}>
@@ -180,15 +183,17 @@ export default function Page() {
<Flex <Flex
align="center" align="center"
justify="center" justify="between"
gap="1"
className={styles.listingLabel} className={styles.listingLabel}
style={{ style={{
position: 'absolute', position: 'absolute',
bottom: 8, bottom: 8,
left: 12, padding: '0 12px',
width: '100%',
boxSizing: 'border-box',
}} }}
> >
<Flex align="center" justify="center" gap="1">
<img <img
src={ src={
(tank.tree_type === 'collector' (tank.tree_type === 'collector'
@@ -221,6 +226,11 @@ export default function Page() {
`Unknown tank ${tank.id}`} `Unknown tank ${tank.id}`}
</Text> </Text>
</Flex> </Flex>
<Text size="4" color="gray" highContrast={false}>
{TIER_ROMAN_NUMERALS[tank.tier]}
</Text>
</Flex>
</Inset> </Inset>
</Card> </Card>
</a> </a>