Showing
3 changed files
with
18 additions
and
27 deletions
1 | -import React from "react"; | ||
2 | -import styled from "styled-components"; | ||
3 | -import TitleBox from "./TitleBox"; | ||
4 | -import MenuIcons from "./MenuIcons"; | ||
5 | - | ||
6 | -const MenuBar = styled.div` | ||
7 | - width: 15%; | ||
8 | - height: 100%; | ||
9 | - display: flex; | ||
10 | - flex-direction: column; | ||
11 | - justify-content: center; | ||
12 | - align-items: center; | ||
13 | - box-shadow: 1px 1px 10px #8395a7; | ||
14 | - background-color: #667aff; | ||
15 | -`; | ||
16 | - | ||
17 | -export default () => { | ||
18 | - return ( | ||
19 | - <MenuBar> | ||
20 | - <TitleBox /> | ||
21 | - <MenuIcons /> | ||
22 | - </MenuBar> | ||
23 | - ); | ||
24 | -}; |
1 | import React from "react"; | 1 | import React from "react"; |
2 | import styled from "styled-components"; | 2 | import styled from "styled-components"; |
3 | +import MenuIcons from "./MenuIcons"; | ||
4 | + | ||
5 | +const MenuBar = styled.div` | ||
6 | + width: 15%; | ||
7 | + height: 100%; | ||
8 | + display: flex; | ||
9 | + flex-direction: column; | ||
10 | + justify-content: center; | ||
11 | + align-items: center; | ||
12 | + box-shadow: 1px 1px 10px #8395a7; | ||
13 | + background-color: #667aff; | ||
14 | +`; | ||
3 | 15 | ||
4 | const TitleBox = styled.div` | 16 | const TitleBox = styled.div` |
5 | display: flex; | 17 | display: flex; |
... | @@ -18,8 +30,11 @@ const Title = styled.span` | ... | @@ -18,8 +30,11 @@ const Title = styled.span` |
18 | 30 | ||
19 | export default () => { | 31 | export default () => { |
20 | return ( | 32 | return ( |
21 | - <TitleBox> | 33 | + <MenuBar> |
22 | - <Title>KhuChat</Title> | 34 | + <TitleBox> |
23 | - </TitleBox> | 35 | + <Title>KhuChat</Title> |
36 | + </TitleBox> | ||
37 | + <MenuIcons /> | ||
38 | + </MenuBar> | ||
24 | ); | 39 | ); |
25 | }; | 40 | }; | ... | ... |
-
Please register or login to post a comment