mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: final stuff
This commit is contained in:
1 parent
4e4f070368
commit
17713243b5
4 files changed
+6
-22
No files matched your search
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
.tank-search-card .image {
|
.tank-search-card .image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 6rem;
|
height: 8rem;
|
||||||
object-position: center right;
|
object-position: center right;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
filter: drop-shadow(-1px -1px 4px black);
|
filter: drop-shadow(-1px -1px 4px black);
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ export function TankCardWrapper(props: GridProps) {
|
|||||||
py="4"
|
py="4"
|
||||||
columns={{
|
columns={{
|
||||||
initial: 'repeat(auto-fill, minmax(6rem, 1fr))',
|
initial: 'repeat(auto-fill, minmax(6rem, 1fr))',
|
||||||
sm: 'repeat(auto-fill, minmax(8rem, 1fr))',
|
sm: 'repeat(auto-fill, minmax(10rem, 1fr))',
|
||||||
}}
|
}}
|
||||||
flow="dense"
|
flow="dense"
|
||||||
gap="2"
|
gap="4"
|
||||||
gapY="6"
|
gapY="8"
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
+2
-2
@@ -100,8 +100,8 @@ export function Title({ outline }: TitleProps) {
|
|||||||
fontSize: revealed
|
fontSize: revealed
|
||||||
? disturbed
|
? disturbed
|
||||||
? '2rem'
|
? '2rem'
|
||||||
: `${125 / name.length}vw`
|
: `min(65vh, ${125 / name.length}vw)`
|
||||||
: `${75 / name.length}vw`,
|
: `min(48vh, ${75 / name.length}vw)`,
|
||||||
whiteSpace: 'nowrap',
|
whiteSpace: 'nowrap',
|
||||||
color: outline ? Var(`${nationColors.tint}-a2`) : color,
|
color: outline ? Var(`${nationColors.tint}-a2`) : color,
|
||||||
opacity: outline && disturbed ? 0 : 1,
|
opacity: outline && disturbed ? 0 : 1,
|
||||||
|
|||||||
@@ -179,22 +179,6 @@ export function HeroSection({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
|
|
||||||
<Title outline />
|
<Title outline />
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{!disturbed && (
|
|
||||||
<Box
|
|
||||||
onClick={(event) => {
|
|
||||||
event.stopPropagation();
|
|
||||||
mutateTankopediaEphemeral((draft) => {
|
|
||||||
draft.disturbed = true;
|
|
||||||
});
|
|
||||||
}}
|
|
||||||
position="absolute"
|
|
||||||
width="100%"
|
|
||||||
height="100%"
|
|
||||||
top="0"
|
|
||||||
left="0"
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user