Skip to content

Commit

Permalink
✨ : #490 - 메인페이지 헤더
Browse files Browse the repository at this point in the history
  • Loading branch information
qkdl60 committed Mar 16, 2024
1 parent bf88f76 commit fa352c2
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/app/main/_components/MainHeader/MainHeader.tsx
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>
);
}
23 changes: 23 additions & 0 deletions src/app/main/_components/MainHeader/index.scss
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;
}
}

0 comments on commit fa352c2

Please sign in to comment.