Skip to content

Commit

Permalink
[FEAT] #16 - Add Navigation bar component
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyong9169 committed Dec 5, 2021
1 parent 5aa9145 commit 64172ca
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
17 changes: 17 additions & 0 deletions client/src/components/Navigation/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React, { useContext, useState, useEffect, useRef } from "react";
import cx from "classnames";
import "./style.scss";
import TableMocks from "../../__mocks/TableMocks";

export default function Natigation() {
return (
<nav className="navigation">
<p className="naviTitle">테이블 목록</p>
<ul className="sideMenu">
{TableMocks.map(table => (
<li className="tableTitle">{table.title}</li>
))}
</ul>
</nav>
);
}
35 changes: 35 additions & 0 deletions client/src/components/Navigation/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@import "../../style/color.scss";
.navigation {
display: block;
left: 0;
width: 200px;
min-height: calc(100vh - 101px);
height: fit-content;
z-index: 5;
background-color: $white;
border-right: 1px solid $gray400;
word-break: break-all;
.naviTitle {
margin: 30px auto -10px 20px;
font-size: 25px;
font-weight: bold;
}
.sideMenu {
height: fit-content;
height: 100%;
display: flex;
flex-direction: column;
margin-bottom: 30px;
.tableTitle {
margin: 30px auto 0 30px;
color: $gray600;
font-size: 20px;
font-weight: 500;
&:hover {
color: $primary;
font-weight: bolder;
cursor: pointer;
}
}
}
}

0 comments on commit 64172ca

Please sign in to comment.