Showing
3 changed files
with
25 additions
and
24 deletions
| ... | @@ -7,6 +7,9 @@ const Header = Styled.div` | ... | @@ -7,6 +7,9 @@ const Header = Styled.div` |
| 7 | justify-content: center; | 7 | justify-content: center; |
| 8 | margin: 10px 0px; | 8 | margin: 10px 0px; |
| 9 | font-size: 25px; | 9 | font-size: 25px; |
| 10 | + font-family: 'Source Code Pro'; | ||
| 11 | + font-weight: 200; | ||
| 12 | + font-size: 40px; | ||
| 10 | `; | 13 | `; |
| 11 | 14 | ||
| 12 | export default () => { | 15 | export default () => { | ... | ... |
| 1 | import React from "react"; | 1 | import React from "react"; |
| 2 | import Styled from "styled-components"; | 2 | import Styled from "styled-components"; |
| 3 | +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
| 4 | +import { faList, faAddressBook } from "@fortawesome/free-solid-svg-icons"; | ||
| 5 | +import PropTypes from "prop-types"; | ||
| 3 | 6 | ||
| 4 | -const MenuBox = Styled.div` | 7 | +const Container = Styled.div` |
| 5 | - width: 30%; | 8 | + width: 400px; |
| 6 | - display: flex; | 9 | + height: 100%; |
| 7 | - justify-content: center; | ||
| 8 | - align-items: center; | ||
| 9 | - margin-top: 10px; | ||
| 10 | - border-top: 1px solid black; | ||
| 11 | - border-right: 1px solid black; | ||
| 12 | `; | 10 | `; |
| 13 | 11 | ||
| 14 | -const MenuList = Styled.ol` | 12 | +const Switch = ({ checked = false, isChecked, onClick }) => ( |
| 15 | -`; | 13 | + <Container checked={checked} onClick={onClick} isChecked={isChecked} /> |
| 16 | - | 14 | +); |
| 17 | -const MenuItem = Styled.li` | ||
| 18 | -`; | ||
| 19 | 15 | ||
| 20 | -const Link = Styled.a` | 16 | +Switch.propTypes = { |
| 21 | -`; | 17 | + checked: PropTypes.bool, |
| 18 | + isChecked: PropTypes.func, | ||
| 19 | + onClick: PropTypes.func, | ||
| 20 | +}; | ||
| 22 | 21 | ||
| 23 | export default () => { | 22 | export default () => { |
| 24 | - return ( | 23 | + return <Switch />; |
| 25 | - <MenuBox> | ||
| 26 | - <MenuList> | ||
| 27 | - <MenuItem> | ||
| 28 | - <Link href="">1. What is KHU Chat?</Link> | ||
| 29 | - </MenuItem> | ||
| 30 | - </MenuList> | ||
| 31 | - </MenuBox> | ||
| 32 | - ); | ||
| 33 | }; | 24 | }; | ... | ... |
-
Please register or login to post a comment