Skip to content

Commit ddf2282

Browse files
committed
change footer style
1 parent 9e224b5 commit ddf2282

File tree

3 files changed

+45
-45
lines changed

3 files changed

+45
-45
lines changed

components/DiscordConnect.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import React from 'react';
2-
import { Flex, Image, SimpleGrid, Button, Link } from '@chakra-ui/core';
2+
import { Flex, Button, Link } from '@chakra-ui/core';
33
import { Text } from '../components';
44

55
const DiscordConnect = () => (
66
<>
77
<Flex
88
w="100%"
9-
h="50vh"
10-
alignItems="center"
9+
h="17rem"
10+
alignItems="flex-end"
1111
justifyContent="center"
1212
bg="#f26840"
13-
mt="10vh"
13+
mt="3rem"
1414
>
1515
<Flex
1616
direction="column"

components/Footer.tsx

Lines changed: 41 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,53 @@
11
import React from 'react';
22
import styled from '@emotion/styled';
33
import { Image, Box, Link, useColorMode, Button, Flex } from '@chakra-ui/core';
4-
4+
import DiscordConnect from '../components/DiscordConnect';
55
export const Footer = () => {
66
const { colorMode, toggleColorMode } = useColorMode();
77

88
return (
9-
<Flex
10-
w="100%"
11-
px="3.1%"
12-
py="2.5%"
13-
bg={colorMode === 'light' ? 'gray.300' : 'gray.800'}
14-
flexDirection="row"
15-
alignItems="center"
16-
justifyContent="space-between"
17-
as="footer"
18-
>
19-
<Button
20-
color={colorMode === 'light' ? 'gray.800' : 'gray.300'}
21-
onClick={toggleColorMode}
22-
variant="outlined"
23-
>
24-
Theme
25-
</Button>
26-
<Box
27-
d="flex"
28-
w={['50%', '36%', '22%']}
9+
<>
10+
<DiscordConnect />
11+
<Flex
12+
w="100%"
13+
px="3.1%"
14+
py="2.5%"
15+
bg="#f26840"
16+
flexDirection="row"
17+
alignItems="center"
2918
justifyContent="space-between"
30-
mr="5"
19+
as="footer"
3120
>
32-
<Link
33-
w="9%"
34-
href="https://www.youtube.com/channel/UCZiR1u5RtSYYt8qcenxr-Uw"
21+
<Button
22+
color={colorMode === 'light' ? 'gray.800' : 'gray.300'}
23+
onClick={toggleColorMode}
24+
variant="outlined"
25+
>
26+
Theme
27+
</Button>
28+
<Box
29+
d="flex"
30+
w={['50%', '36%', '22%']}
31+
justifyContent="space-between"
32+
mr="5"
3533
>
36-
<Image src="youtube.svg" />
37-
</Link>
38-
<Link w="7%" href="https://twitter.com/coderhood_dev">
39-
<Image src="twitter.svg" />
40-
</Link>
41-
<Link w="7%" href="https://www.instagram.com/coderhood.dev/">
42-
<Image src="instagram.svg" />
43-
</Link>
44-
<Link w="7%" href="https://www.linkedin.com/company/coderhood/">
45-
<Image src="linkedin.svg" />
46-
</Link>
47-
</Box>
48-
</Flex>
34+
<Link
35+
w="9%"
36+
href="https://www.youtube.com/channel/UCZiR1u5RtSYYt8qcenxr-Uw"
37+
>
38+
<Image src="youtube.svg" />
39+
</Link>
40+
<Link w="7%" href="https://twitter.com/coderhood_dev">
41+
<Image src="twitter.svg" />
42+
</Link>
43+
<Link w="7%" href="https://www.instagram.com/coderhood.dev/">
44+
<Image src="instagram.svg" />
45+
</Link>
46+
<Link w="7%" href="https://www.linkedin.com/company/coderhood/">
47+
<Image src="linkedin.svg" />
48+
</Link>
49+
</Box>
50+
</Flex>
51+
</>
4952
);
5053
};

pages/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
import { GetRoadmapsResponse } from '../api/roadmaps';
1212
import { Text } from '../components';
1313
import CardHowDoesItWork from '../components/CardHowDoesItWork';
14-
import DiscordConnect from '../components/DiscordConnect';
1514

1615
interface Props {
1716
roadmaps: GetRoadmapsResponse;
@@ -205,8 +204,6 @@ const Home: React.FC<Props> = ({ roadmaps }) => {
205204
</Flex>
206205
</Flex>
207206
</Flex>
208-
209-
<DiscordConnect />
210207
</>
211208
);
212209
};

0 commit comments

Comments
 (0)