Skip to content

Commit 5864475

Browse files
committed
small responsive tweaks to current design progress
1 parent 7106d09 commit 5864475

3 files changed

Lines changed: 30 additions & 23 deletions

File tree

app/page.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { funnel } from "@/app/fonts"
66
// chakra ui imports
77
import {
88
Box,
9+
ClientOnly,
910
Container,
10-
Heading
1111
} from "@chakra-ui/react"
1212

1313
import {
@@ -23,22 +23,22 @@ export default function Home() {
2323
const mode = useColorMode()
2424

2525
return (
26-
<Box
27-
bgAttachment="fixed"
28-
bgImage={mode.colorMode === "dark" ? "url('/assets/images/bg.png')" : ""}
29-
bgPosition="center"
30-
bgRepeat="no-repeat"
31-
bgSize="cover"
32-
>
33-
<Container marginTop={12}>
26+
<ClientOnly>
27+
<Box
28+
bgAttachment="fixed"
29+
bgImage={mode?.colorMode === "dark" ? "url('/assets/images/bg.png')" : ""}
30+
bgPosition="center"
31+
bgRepeat="no-repeat"
32+
bgSize="cover"
33+
>
3434
<Header />
35-
</Container>
36-
<Container marginTop={12}>
37-
<Hero />
38-
</Container>
39-
<Box marginY={20}>
40-
<Footer />
41-
</Box>
42-
</Box >
35+
<Container marginTop={12}>
36+
<Hero />
37+
</Container>
38+
<Box marginTop={12}>
39+
<Footer />
40+
</Box>
41+
</Box >
42+
</ClientOnly>
4343
)
4444
}

components/sections/footer.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@ export default function Footer() {
2929

3030
return (
3131
<ClientOnly>
32-
<Container id="contact">
32+
<Container id="contact" paddingBottom={12}>
3333
<Heading color={color}>
3434
Contact us
3535
</Heading>
36-
<Flex direction={["column", "column", "row"]} justify="space-between" marginTop={8}>
36+
<Flex
37+
direction={["column", "column", "row"]}
38+
gap={[8, 8, 4]}
39+
justify="space-between"
40+
marginTop={8}>
3741
<Flex direction={["column", "row"]} gap={4}>
3842
<Link color={color} href="mailto:team@throneless.tech">
3943
Email

components/sections/header.jsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// chakra ui imports
44
import {
5-
Box,
65
Container,
76
Heading,
87
VisuallyHidden,
@@ -23,8 +22,12 @@ export default function Header() {
2322

2423
return (
2524
<ClientOnly>
26-
<Box>
27-
<Flex direction="row" justify="space-between">
25+
<Container paddingTop={12}>
26+
<Flex
27+
alignItems={["flex-end", "flex-end", "center"]}
28+
direction={["column-reverse", "column-reverse", "row"]}
29+
gap={[8, 6]}
30+
justify={"space-between"}>
2831
<Heading as="h1" width={340}>
2932
<VisuallyHidden>
3033
Throneless Tech
@@ -33,7 +36,7 @@ export default function Header() {
3336
</Heading>
3437
<ColorModeButton />
3538
</Flex>
36-
</Box>
39+
</Container>
3740
</ClientOnly>
3841
)
3942
}

0 commit comments

Comments
 (0)