-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 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,30 @@ | ||
'use client'; | ||
|
||
import { Icon } from '@/components'; | ||
import Link from 'next/link'; | ||
import './index.scss'; | ||
|
||
const headerContent = { | ||
notice: { | ||
text: '🕊️[공지] 이용 약관과 개인 정보 처리방침이 변경되었습니다. 다들 확인 부탁드립니다.', | ||
link: '/notice', | ||
}, | ||
}; | ||
// TODO 알림 버튼 클릭 처리 | ||
export default function MainHeader() { | ||
return ( | ||
<div className="main-header__container"> | ||
<Link className="main-header__text" href={headerContent.notice.link}> | ||
{headerContent.notice.text} | ||
</Link> | ||
<div className="main-header__buttons"> | ||
<Link href={'/notice'}> | ||
<Icon name="CAMPAIGN" size="lg" /> | ||
</Link> | ||
<button> | ||
<Icon name="NOTIFICATION_ON" size="lg" /> | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
} |
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,23 @@ | ||
.main-header { | ||
&__container { | ||
padding: 1rem 0; | ||
display: flex; | ||
align-items: center; | ||
gap: 2rem; | ||
} | ||
&__text { | ||
flex-grow: 1; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
&__buttons { | ||
button { | ||
background-color: transparent; | ||
cursor: pointer; | ||
} | ||
display: flex; | ||
gap: 0.5rem; | ||
align-items: center; | ||
} | ||
} |