-
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.
Merge pull request #19 from GU-99/feature/ui-header
Feat: #16 공용 Header 컴포넌트 UI 작성
- Loading branch information
Showing
7 changed files
with
45 additions
and
4 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,30 @@ | ||
import { Link, NavLink } from 'react-router-dom'; | ||
import logo from '@assets/logo.svg'; | ||
import { FaUserCircle } from 'react-icons/fa'; | ||
import { FiHome } from 'react-icons/fi'; | ||
|
||
export default function Header() { | ||
// ToDo: 로그인 기능 구현 후, 로그아웃 로직 연결하기 | ||
// ToDo: 유저 정보를 토대로 응원 아이디 변경하기 | ||
return ( | ||
<header className="flex h-header items-center justify-between bg-main px-15"> | ||
<div> | ||
<Link to="/" className="hover:brightness-90"> | ||
<img className="size-30 select-none" src={logo} alt="GrowUp Logo" /> | ||
</Link> | ||
</div> | ||
<nav className="flex items-center"> | ||
<div className="tracking-tight text-white">User 님의 Grow Up! 응원합니다.</div> | ||
<NavLink to="/" className="ml-10 hover:brightness-90"> | ||
{({ isActive }) => <FiHome className={`size-20 ${isActive ? 'text-selected' : 'text-white'}`} />} | ||
</NavLink> | ||
<NavLink to="/setting/user" className="ml-10 hover:brightness-90"> | ||
{({ isActive }) => <FaUserCircle className={`size-20 ${isActive ? 'text-selected' : 'text-white'}`} />} | ||
</NavLink> | ||
<button type="button" className="ml-10 h-20 rounded-md bg-white px-4 tracking-tight hover:brightness-90"> | ||
Logout | ||
</button> | ||
</nav> | ||
</header> | ||
); | ||
} |
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
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
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
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