-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] #16 - Add Navigation bar component
- Loading branch information
1 parent
5aa9145
commit 64172ca
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -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> | ||
); | ||
} |
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 |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} | ||
} |