feat: shadows

This commit is contained in:
TrèsAbhi committed 2024-04-16 21:58:08 -05:00
1 parent b566d5982c
commit 2fd2e93f55
1 file changed
+9 -27
+9 -27
View File
@@ -68,49 +68,31 @@ export function Day({ offset }: DayProps) {
position: 'relative', position: 'relative',
overflowY: 'hidden', overflowY: 'hidden',
}} }}
>
<Flex
align="center"
justify="center"
style={{
position: 'absolute',
width: 128,
height: '200%',
top: '-50%',
left: 16,
}}
> >
<img <img
src={tankIcon(tank.id)} src={tankIcon(tank.id)}
style={{ style={{
position: 'absolute',
width: 128 + 32,
height: '200%',
top: '-50%',
left: 0,
boxShadow: 'inset 128px 0 64px -64px #00000040',
objectFit: 'contain', objectFit: 'contain',
objectPosition: 'left', objectPosition: '50% 50%',
overflow: 'hidden', overflow: 'hidden',
}} }}
/> />
</Flex>
<Flex
style={{
position: 'absolute',
top: 0,
left: 0,
width: 128,
height: '100%',
paddingLeft: 32,
background:
'linear-gradient(90deg, #00000000, #00000060, #00000000)',
}}
align="center"
>
<Text <Text
style={{ style={{
position: 'relative',
textWrap: 'nowrap', textWrap: 'nowrap',
textShadow: 'black 0 0 4px',
}} }}
> >
{tank.name} {tank.name}
</Text> </Text>
</Flex>
</Table.RowHeaderCell> </Table.RowHeaderCell>
<Table.Cell align="right">{random(1, 10)}</Table.Cell> <Table.Cell align="right">{random(1, 10)}</Table.Cell>
<Table.Cell align="right"> <Table.Cell align="right">