Skip to content

Commit 8956d00

Browse files
authored
chore: homepage responsive fixes (#2343)
1 parent a75341b commit 8956d00

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

components/homepage/category/categories.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
.connect {
22
position: absolute;
3-
top: 60px;
4-
left: 60px;
3+
top: 12%;
4+
left: 12%;
55
transition: 250ms ease;
66
}
77

88
.backend {
99
position: absolute;
10-
top: 130px;
11-
right: 40px;
10+
top: 26%;
11+
right: 8%;
1212
transition: 250ms ease;
1313
}
1414

1515
.onchain {
1616
position: absolute;
17-
top: 400px;
18-
left: 160px;
17+
bottom: 0%;
18+
left: 30%;
1919
transition: 250ms ease;
2020
}
2121

components/homepage/sections/HeroSection.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ export const HeroSection = ({ TRACKING_CATEGORY }: HeroSectionProps) => {
2020
/>
2121

2222
<SimpleGrid
23-
columns={{ base: 1, xl: 2 }}
24-
gap={{ base: 12, xl: 8 }}
25-
mt={{ base: 4, xl: 20 }}
23+
columns={{ base: 1, md: 2 }}
24+
gap={{ base: 12, md: 8 }}
25+
mt={{ base: 4, md: 20 }}
2626
placeItems="center"
2727
>
2828
<Flex flexDir="column" gap={{ base: 6, md: 8 }}>
2929
<Flex flexDir="column" gap={4}>
30-
<Heading as="h1" size="display.sm" px={{ base: 2, md: 0 }} mr={6}>
30+
<Heading as="h1" size="display.sm" px={{ base: 2, md: 0 }}>
3131
Full-Stack Web3 Development Platform
3232
</Heading>
3333
</Flex>
@@ -45,6 +45,7 @@ export const HeroSection = ({ TRACKING_CATEGORY }: HeroSectionProps) => {
4545
/>
4646
</Flex>
4747
<Flex
48+
minW={{ base: "auto", md: "420px" }}
4849
maxW={{ base: "280px", sm: "400px", md: "500px" }}
4950
position="relative"
5051
className={styles.heroContainer}

0 commit comments

Comments
 (0)