Skip to content

Commit

Permalink
Merge pull request #6 from GDSC-snowflowerthon/feature/5-mainpage
Browse files Browse the repository at this point in the history
Feature/5 mainpage
  • Loading branch information
naarang authored Jan 9, 2024
2 parents d1e264f + eaf8ec0 commit 49b5522
Show file tree
Hide file tree
Showing 19 changed files with 485 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/assets/icon/arrow-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icon/before-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/icon/cloudy-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/icon/community-menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icon/heart-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icon/home-menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icon/matching-menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icon/mypage-menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icon/next-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/icon/rainy-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/icon/snowy-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/icon/sunny-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/example-img.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 62 additions & 6 deletions src/components/Common/MenuDrawer.jsx
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;
Loading

0 comments on commit 49b5522

Please sign in to comment.