Skip to content

Commit

Permalink
Merge pull request #61 from CNU-OOHub/#60/modify-sideMenu
Browse files Browse the repository at this point in the history
fix: 사이드 메뉴 수정 (# 60)
  • Loading branch information
miraekwak authored Nov 4, 2022
2 parents 2465093 + 45e2ee1 commit 0e03df2
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 15 deletions.
29 changes: 15 additions & 14 deletions src/components/molecules/sideMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import { useNavigate } from "react-router-dom";
const SideMenuStyle = styled.div`
display: flex;
flex-direction: column;
width: 5rem;
width: 3rem;
min-height: 92vh;
height: auto;
background-color: ${theme.greyColor};
position: fixed;
`;

const SideMenu = () => {
Expand Down Expand Up @@ -47,35 +48,35 @@ const SideMenu = () => {
color={sideMenu === FOLDER ? "white" : theme.lightGreyColor}
/>
</Button>
<Button
bgColor={theme.greyColor}
onClick={() => sideMenuClicked(SETTING)}
>
<AiOutlineSetting
<Button bgColor={theme.greyColor} onClick={() => sideMenuClicked(GROUPS)}>
<RiGroup2Line
style={{
marginTop: "1rem",
width: "100%",
borderLeft: sideMenu === SETTING ? "5px solid white" : "none",
borderLeft: sideMenu === GROUPS ? "5px solid white" : "none",
}}
size={35}
color={sideMenu === SETTING ? "white" : theme.lightGreyColor}
color={sideMenu === GROUPS ? "white" : theme.lightGreyColor}
/>
</Button>
<Button bgColor={theme.greyColor} onClick={() => sideMenuClicked(GROUPS)}>
<RiGroup2Line
<Button
bgColor={theme.greyColor}
onClick={() => sideMenuClicked(SETTING)}
>
<AiOutlineSetting
style={{
marginTop: "1rem",
width: "100%",
borderLeft: sideMenu === GROUPS ? "5px solid white" : "none",
borderLeft: sideMenu === SETTING ? "5px solid white" : "none",
}}
size={35}
color={sideMenu === GROUPS ? "white" : theme.lightGreyColor}
color={sideMenu === SETTING ? "white" : theme.lightGreyColor}
/>
</Button>
<BiLogOut
style={{
bottom: 20,
width: "5rem",
bottom: 65,
width: "3rem",
alignSelf: "center",
position: "absolute",
padding: "0",
Expand Down
3 changes: 2 additions & 1 deletion src/components/organisms/fileView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ import "react-folder-tree/dist/style.css";
const FileList = styled.div`
display: flex;
flex-direction: column;
width: 13rem;
width: 16rem;
height: 92vh;
background-color: ${theme.darkGreyColor};
overflow: auto;
white-space: nowrap;
padding-left: 3rem;
//resize: horizontal;
`;

Expand Down
1 change: 1 addition & 0 deletions src/components/organisms/organizationView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const Content = styled.div`
flex-direction: column;
justify-content: center;
vertical-align: middle;
padding-left: 3rem;
`;

const AdminContent = styled.div`
Expand Down
20 changes: 20 additions & 0 deletions src/components/organisms/settingView.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React, { Fragment, useEffect, useState } from "react";
import theme from "../../styles/theme";
import styled from "styled-components";

// 레이아웃
const Content = styled.div`
width: 100%;
height: 92vh;
display: flex;
flex-direction: column;
justify-content: center;
vertical-align: middle;
padding-left: 3rem;
`;

const SettingView = () => {
return <Content></Content>;
};

export default SettingView;
2 changes: 2 additions & 0 deletions src/components/pages/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import FileView from "../organisms/fileView";
import OrganizationView from "../organisms/organizationView";

import { sideMenuState } from "../../atom";
import SettingView from "../organisms/settingView";

const Home = () => {
const [login, setLogin] = useRecoilState(loginState);
Expand All @@ -31,6 +32,7 @@ const Home = () => {
<SideMenu />
{sideMenu === FOLDER && <FileView />}
{sideMenu === GROUPS && <OrganizationView />}
{sideMenu === SETTING && <SettingView />}
</FlexRow>
</Body>
);
Expand Down

0 comments on commit 0e03df2

Please sign in to comment.