|
1 | 1 | import React from 'react';
|
2 | 2 | import styled from '@emotion/styled';
|
3 | 3 | import { Image, Box, Link, useColorMode, Button, Flex } from '@chakra-ui/core';
|
4 |
| - |
| 4 | +import DiscordConnect from '../components/DiscordConnect'; |
5 | 5 | export const Footer = () => {
|
6 | 6 | const { colorMode, toggleColorMode } = useColorMode();
|
7 | 7 |
|
8 | 8 | 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" |
29 | 18 | justifyContent="space-between"
|
30 |
| - mr="5" |
| 19 | + as="footer" |
31 | 20 | >
|
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" |
35 | 33 | >
|
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 | + </> |
49 | 52 | );
|
50 | 53 | };
|
0 commit comments