-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from GDSC-snowflowerthon/feature/5-mainpage
Feature/5 mainpage
- Loading branch information
Showing
19 changed files
with
485 additions
and
9 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,74 @@ | ||
import { Drawer } from "antd"; | ||
import styled from "styled-components"; | ||
import homeMenu from "../../assets/icon/home-menu.svg"; | ||
import communityMenu from "../../assets/icon/community-menu.svg"; | ||
import matchingMenu from "../../assets/icon/matching-menu.svg"; | ||
import mypageMenu from "../../assets/icon/mypage-menu.svg"; | ||
|
||
const MenuDrawer = ({ onClose, open }) => { | ||
return ( | ||
<Drawer | ||
title="Basic Drawer" | ||
<Container | ||
// title="Basic Drawer" | ||
placement="right" | ||
onClose={onClose} | ||
open={open} | ||
> | ||
<p>Some contents...</p> | ||
<p>Some contents...</p> | ||
<p>Some contents...</p> | ||
</Drawer> | ||
<MenuBox> | ||
<MenuImage src={homeMenu} alt="홈" /> | ||
<MenuText>메인 홈</MenuText> | ||
</MenuBox> | ||
<MenuBox> | ||
<MenuImage src={matchingMenu} alt="매칭 페이지" /> | ||
<MenuText>함께 봉사하기</MenuText> | ||
</MenuBox> | ||
<MenuBox> | ||
<MenuImage src={communityMenu} alt="커뮤니티" /> | ||
<MenuText>커뮤니티</MenuText> | ||
</MenuBox> | ||
<MenuBox> | ||
<MenuImage src={mypageMenu} alt="마이 페이지" /> | ||
<MenuText>마이 페이지</MenuText> | ||
</MenuBox> | ||
</Container> | ||
); | ||
}; | ||
|
||
const Container = styled(Drawer)` | ||
border-radius: 20px 0 0 20px; | ||
background-color: #13a0a9; | ||
//color: white; | ||
.ant-drawer-wrapper-body { | ||
background-color: #13a0a9; | ||
color: white; | ||
} | ||
.ant-drawer-header { | ||
border: none; | ||
} | ||
.anticon-close { | ||
margin-top: 20px; | ||
font-size: 30px; | ||
color: white; | ||
} | ||
`; | ||
|
||
const MenuBox = styled.div` | ||
display: flex; | ||
align-items: center; | ||
margin: 30px 0; | ||
cursor: pointer; | ||
`; | ||
|
||
const MenuImage = styled.img` | ||
padding: 10px; | ||
`; | ||
|
||
const MenuText = styled.div` | ||
color: white; | ||
font-size: 1.3rem; | ||
font-weight: 600; | ||
`; | ||
|
||
export default MenuDrawer; |
Oops, something went wrong.