feat: 사이드바 컴포넌트 추가

This commit is contained in:
jhynsoo 2024-07-16 17:13:22 +09:00
parent a1a591cc37
commit 7ad0c6ba93
5 changed files with 44 additions and 1 deletions

View File

@ -12,6 +12,9 @@
& > aside {
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 32px;
width: 320px;
}

View File

@ -0,0 +1,10 @@
import styles from './SideBar.module.css';
export default function SideBar({ title, children }) {
return (
<div className={styles.group}>
<h3 className={styles.groupTitle}>{title}</h3>
<ul className={styles.groupList}>{children}</ul>
</div>
);
}

View File

@ -0,0 +1,30 @@
.group {
display: flex;
flex-direction: column;
gap: 20px;
padding: 0;
margin: 0;
}
.groupTitle {
color: var(--text-color);
font-size: 24px;
line-height: 1.2;
font-weight: 700;
margin: 0;
padding: 0;
}
.groupList {
display: flex;
flex-direction: column;
gap: 16px;
list-style: none;
padding: 0;
margin: 0;
& > li {
padding: 0;
margin: 0;
}
}

View File

@ -7,7 +7,6 @@
font-size: 20px;
line-height: 1.2;
font-weight: 400;
margin-bottom: 16px;
}
.sub {

View File

@ -1,3 +1,4 @@
export { default as SideBar } from './SideBar';
export { default as SideItem } from './SideItem';
export { default as SideLink } from './SideLink';
export { default as SideTitle } from './SideTitle';