Skip to content

Commit 30d48bb

Browse files
authored
Merge pull request #146 from forestream/lfop-64
Fix hero responsive style
2 parents 4772a0a + 518b3f2 commit 30d48bb

2 files changed

Lines changed: 50 additions & 28 deletions

File tree

apps/landing/devup.json

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,26 @@
119119
}
120120
},
121121
"typography": {
122-
"displaySm": {
123-
"fontFamily": "Pretendard",
124-
"fontWeight": 700,
125-
"fontSize": "48px",
126-
"lineHeight": 1.3,
127-
"letterSpacing": "-0.02em"
128-
},
122+
"displaySm": [
123+
{
124+
"fontFamily": "Pretendard",
125+
"fontWeight": 700,
126+
"fontSize": "32px",
127+
"lineHeight": 1.3,
128+
"letterSpacing": "-0.02em"
129+
},
130+
null,
131+
null,
132+
{
133+
"fontFamily": "Pretendard",
134+
"fontWeight": 700,
135+
"fontSize": "48px",
136+
"lineHeight": 1.3,
137+
"letterSpacing": "-0.02em"
138+
},
139+
null,
140+
null
141+
],
129142
"h1": [
130143
{
131144
"fontFamily": "Pretendard",
@@ -479,14 +492,7 @@
479492
},
480493
null,
481494
null
482-
],
483-
"dispalySm": {
484-
"fontFamily": "Pretendard",
485-
"fontWeight": 700,
486-
"fontSize": "32px",
487-
"lineHeight": 1.3,
488-
"letterSpacing": "-0.02em"
489-
}
495+
]
490496
}
491497
}
492498
}

apps/landing/src/app/page.tsx

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,28 @@ export default function HomePage() {
5151
<Center
5252
bg="linear-gradient(-180deg, #9AE99D 0%, #FFF6DF 100%)"
5353
flexDir="column"
54-
h="1080px"
54+
h={[null, null, null, null, '1080px']}
5555
overflow="hidden"
5656
pb="60px"
5757
pos="relative"
58-
pt="128px"
59-
px="40px"
58+
pt={['120px', null, null, '148px']}
59+
px={['20px', null, null, '40px']}
6060
>
61-
<VStack alignItems="flex-start" gap="50px" maxW="1280px" w="100%">
62-
<VStack alignItems="flex-start" gap="$spacingSpacing32" w="100%">
63-
<Text color="#10131F" textAlign="center" typography="displaySm">
61+
<VStack
62+
alignItems={['center', null, null, null, 'flex-start']}
63+
gap="50px"
64+
maxW="1280px"
65+
pos="relative"
66+
w="100%"
67+
>
68+
<VStack
69+
alignItems="flex-start"
70+
gap="$spacingSpacing32"
71+
pos="relative"
72+
w="100%"
73+
zIndex="1"
74+
>
75+
<Text color="#10131F" typography="displaySm">
6476
Lorem ipsum dolor sit amet, <br />
6577
consectetur adipiscing elit.
6678
</Text>
@@ -72,15 +84,19 @@ export default function HomePage() {
7284
Etiam auctor cursus urna sit amet elementum.
7385
</Text>
7486
</VStack>
87+
<Box
88+
bg="url(/images/hero-figure.webp) center/cover no-repeat"
89+
bgPosition="center"
90+
bgSize="contain"
91+
boxSize={['350px', null, null, null, '750px']}
92+
pos={[null, null, null, null, 'absolute']}
93+
right="-150px"
94+
top="50%"
95+
transform={[null, null, null, null, 'translateY(-50%)']}
96+
zIndex="0"
97+
/>
7598
<Button>Get started</Button>
7699
</VStack>
77-
<Box
78-
bg="url(/images/hero-figure.webp) center/cover no-repeat"
79-
boxSize="750px"
80-
left="1028px"
81-
pos="absolute"
82-
top="173px"
83-
/>
84100
</Center>
85101

86102
<Center

0 commit comments

Comments
 (0)