mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: fullscreen hero
This commit is contained in:
1 parent
98716b7f71
commit
d6993c802f
2 files changed
+11
-11
No files matched your search
@@ -14,13 +14,13 @@ export function HeroSection() {
|
|||||||
return (
|
return (
|
||||||
<Flex
|
<Flex
|
||||||
justify="center"
|
justify="center"
|
||||||
// pl={wideFormat ? '9' : undefined}
|
py={wideFormat ? '0' : '6'}
|
||||||
p={wideFormat ? '0' : '6'}
|
|
||||||
pb={wideFormat ? '0' : '6'}
|
|
||||||
style={{
|
style={{
|
||||||
background: `linear-gradient(-90deg, ${theme.colors.appBackground1}, ${theme.colors.appBackground2})`,
|
background: `linear-gradient(${wideFormat ? -90 : 180}deg, ${theme.colors.appBackground1}, ${theme.colors.appBackground2})`,
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
|
height: wideFormat ? undefined : 'calc(100vh - 64px)',
|
||||||
}}
|
}}
|
||||||
|
gap="4"
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
direction={wideFormat ? 'row' : 'column'}
|
direction={wideFormat ? 'row' : 'column'}
|
||||||
@@ -33,16 +33,16 @@ export function HeroSection() {
|
|||||||
align="center"
|
align="center"
|
||||||
justify="center"
|
justify="center"
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: wideFormat ? 1 : undefined,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
gap={wideFormat ? '4' : '2'}
|
gap={wideFormat ? '4' : '2'}
|
||||||
direction="column"
|
direction="column"
|
||||||
ml="8"
|
ml={wideFormat ? '8' : undefined}
|
||||||
align={wideFormat ? undefined : 'center'}
|
align={wideFormat ? undefined : 'center'}
|
||||||
>
|
>
|
||||||
<Heading size="9">{tank.name}</Heading>
|
<Heading size={wideFormat ? '9' : '8'}>{tank.name}</Heading>
|
||||||
<Text color="gray">
|
<Text color="gray">
|
||||||
Tier {TIER_ROMAN_NUMERALS[tank.tier]}{' '}
|
Tier {TIER_ROMAN_NUMERALS[tank.tier]}{' '}
|
||||||
{
|
{
|
||||||
@@ -57,8 +57,8 @@ export function HeroSection() {
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
height: 512,
|
height: wideFormat ? 512 : undefined,
|
||||||
flex: wideFormat ? 2 : undefined,
|
flex: 2,
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ export function Options() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Flex gap="4" align="center">
|
<Flex gap="3" align="center">
|
||||||
<Flex
|
<Flex
|
||||||
style={{
|
style={{
|
||||||
cursor: 'default',
|
cursor: 'default',
|
||||||
@@ -350,7 +350,7 @@ export function Options() {
|
|||||||
draft.mode = draft.mode === 'armor' ? 'model' : 'armor';
|
draft.mode = draft.mode === 'armor' ? 'model' : 'armor';
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
mr="2"
|
mr="1"
|
||||||
>
|
>
|
||||||
<Switch size="1" checked={mode === 'armor'} />
|
<Switch size="1" checked={mode === 'armor'} />
|
||||||
Armor
|
Armor
|
||||||
|
|||||||
Reference in new issue
Block a user