Skip to content

Commit

Permalink
[#52] 로그인 로그아웃버튼 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
03hoho03 committed Apr 8, 2024
1 parent d701d61 commit eb9b54c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
15 changes: 2 additions & 13 deletions app/_common/nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,14 @@ function Nav() {
<Image src={logo} alt="로고" width={100} height={100} />
</Link>
{accessToken ? (
<button type="button" onClick={handleLogout}>
<button className={S.btn} type="button" onClick={handleLogout}>
로그아웃
</button>
) : (
<button type="button" onClick={handleLogin}>
<button className={S.btn} type="button" onClick={handleLogin}>
로그인
</button>
)}

<Link href="/mypage">
<div className={S.userProfileWrapper}>
{/* <Image
src="https://github.com/primus-teoSprint/FE/assets/63100352/b9d091d3-628e-4c16-a609-68b9e0acc3e4"
alt="사용자 프로필"
width={25}
height={25}
/> */}
</div>
</Link>
</div>
)
}
Expand Down
8 changes: 7 additions & 1 deletion app/_common/nav/nav.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
width: 100%;
padding: 18px 0px;
}

.btn {
background-color: rgb(106, 106, 255);
color: #ffffff;
font-size: 12px;
border-radius: 8px;
padding:4px 8px;
}
.userProfileWrapper {
display: flex;
justify-content: center;
Expand Down

0 comments on commit eb9b54c

Please sign in to comment.