Skip to content

Commit

Permalink
feat:component내 userProfile내 SideBar.tsx 파일생성
Browse files Browse the repository at this point in the history
  • Loading branch information
YongChanCho committed Oct 30, 2024
1 parent 448637c commit 6c169ae
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/components/userProfile/SideBar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react';
import { Link } from 'react-router-dom';
import styles from './SideBar.module.scss';

const SideBar = (props: { children: React.ReactNode }) => {
return (
<div className={styles.container}>
<div className={styles.LeftSideBar}>
<Link to="/" className={styles.link}>
<div className={styles.iconContainer}>
<i className={`fas fa-home ${styles.icon}`}></i>
</div>
</Link>
<Link to="/timeline" className={styles.link}>
<div className={styles.iconContainer}>
<i className={`fas fa-info-circle ${styles.icon}`}></i>
</div>
</Link>
<Link to="/explore" className={styles.link}>
<div className={styles.iconContainer}>
<i className={`fas fa-cog ${styles.icon}`}></i>
</div>
</Link>
<Link to="/user" className={styles.link}>
<div className={styles.iconContainer}>
<i className={`fas fa-envelope ${styles.icon}`}></i>
</div>
</Link>
</div>
<main className={styles.main}>
{props.children}
</main>
</div>
);
};

export default SideBar;

0 comments on commit 6c169ae

Please sign in to comment.