mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-12 12:16:11 +01:00
feat: more responsive
This commit is contained in:
1 parent
e3c6497d29
commit
2a2994ae69
6 files changed
+49
-52
No files matched your search
@@ -11,8 +11,7 @@ export function Listing({ label, ...props }: ListingProps) {
|
||||
minWidth="17rem"
|
||||
justify="between"
|
||||
gap="4"
|
||||
px="1"
|
||||
style={{ borderBottom: `1px solid ${Var('gray-11')}` }}
|
||||
style={{ borderBottom: `1px solid ${Var('gray-a9')}` }}
|
||||
>
|
||||
<Text size="4">{label}</Text>
|
||||
<Text align="right" size="4" weight="medium" {...props} />
|
||||
|
||||
@@ -24,12 +24,12 @@ export function MetaSection() {
|
||||
const ClassIcon = classIcons[protagonist.class];
|
||||
const { locale, strings } = useLocale();
|
||||
|
||||
console.log(protagonist.nation);
|
||||
|
||||
return (
|
||||
<Box
|
||||
style={{
|
||||
background: `url(/assets/images/national-wallpapers/${protagonist.nation}.jpg)`,
|
||||
backgroundRepeat: 'no-repeat',
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition:
|
||||
NATIONAL_BANNER_POSITION_OVERRIDES[protagonist.nation] ?? 'center',
|
||||
}}
|
||||
@@ -39,7 +39,7 @@ export function MetaSection() {
|
||||
background: `url(${asset(`flags/scratched/${protagonist.nation}.webp`)})`,
|
||||
backgroundRepeat: 'no-repeat',
|
||||
backgroundSize: '53rem',
|
||||
backgroundPosition: '-25% 50%',
|
||||
backgroundPosition: '-8rem 50%',
|
||||
}}
|
||||
>
|
||||
<Flex
|
||||
@@ -52,7 +52,7 @@ export function MetaSection() {
|
||||
>
|
||||
<Flex direction="column" align="center" gap="6">
|
||||
<Flex
|
||||
gap={{ initial: '0', sm: '8' }}
|
||||
gap={{ initial: '2', sm: '8' }}
|
||||
direction={{ initial: 'column', sm: 'row' }}
|
||||
>
|
||||
<Flex direction="column" width="100%" gap="2">
|
||||
|
||||
Reference in new issue
Block a user