-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: top navigation bar를 구현하라 - 모든 페이지 route 적용 - 스타일 적용 * style: navigation bar padding 추가
- Loading branch information
1 parent
3f285d0
commit 163260b
Showing
16 changed files
with
234 additions
and
14 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,7 @@ | ||
function BlogPage() { | ||
return ( | ||
<div>BlogPage</div> | ||
); | ||
} | ||
|
||
export default BlogPage; |
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,7 @@ | ||
function AboutPage() { | ||
return ( | ||
<div>AboutPage</div> | ||
); | ||
} | ||
|
||
export default AboutPage; |
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,7 @@ | ||
function CulturePage() { | ||
return ( | ||
<div>CulturePage</div> | ||
); | ||
} | ||
|
||
export default CulturePage; |
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,7 @@ | ||
function JobsPage() { | ||
return ( | ||
<div>JobsPage</div> | ||
); | ||
} | ||
|
||
export default JobsPage; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function OrganizersPage() { | ||
return ( | ||
<div>OrganizersPage</div> | ||
); | ||
} | ||
|
||
export default OrganizersPage; |
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,7 @@ | ||
function ProjectsPage() { | ||
return ( | ||
<div>ProjectsPage</div> | ||
); | ||
} | ||
|
||
export default ProjectsPage; |
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,7 @@ | ||
function ReviewsPage() { | ||
return ( | ||
<div>ReviewsPage</div> | ||
); | ||
} | ||
|
||
export default ReviewsPage; |
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,37 @@ | ||
@import "/src/styles/main"; | ||
|
||
|
||
.navigationWrapper { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
position: fixed; | ||
top: 0; | ||
height: 72px; | ||
padding: 0 24px; | ||
width: 100%; | ||
border-bottom: 1px solid color('gray08'); | ||
background-color: color('bgsecondary'); | ||
z-index: var(--top-navigation-z-index); | ||
|
||
.logoLink { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.navigationContents { | ||
max-width: 1156px; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
} | ||
} | ||
|
||
.space { | ||
display: flex; | ||
max-width: 1156px; | ||
width: 100%; | ||
height: 72px; | ||
} |
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 Image from 'next/image'; | ||
import Link from 'next/link'; | ||
|
||
import TopNavigationMenu from '../TopNavigationMenu'; | ||
|
||
import styles from './index.module.scss'; | ||
|
||
function TopNavigationBar() { | ||
return ( | ||
<> | ||
<nav className={styles.navigationWrapper}> | ||
<div className={styles.navigationContents}> | ||
<Link href="/" className={styles.logoLink}> | ||
<Image | ||
src="https://dnd-academy-v3.s3.ap-northeast-2.amazonaws.com/images/logo-symbol.svg" | ||
alt="logo" | ||
width={32} | ||
height={36} | ||
priority | ||
/> | ||
</Link> | ||
<TopNavigationMenu /> | ||
</div> | ||
</nav> | ||
<div className={styles.space} /> | ||
</> | ||
); | ||
} | ||
|
||
export default TopNavigationBar; |
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,37 @@ | ||
@import '/src/styles/main'; | ||
|
||
.topNavigationMenuWrapper { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 8px; | ||
user-select: none; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
|
||
& > li { | ||
.active { | ||
font-weight: 700; | ||
|
||
@include text-color('bgprimary'); | ||
} | ||
|
||
& > a { | ||
padding: 12px 24px; | ||
font-size: 14px; | ||
font-weight: 400; | ||
text-decoration: none; | ||
transition: color 0.2s ease-in-out; | ||
|
||
.active { | ||
font-weight: 700; | ||
|
||
@include text-color('bgprimary'); | ||
} | ||
|
||
@include text-color('gray03'); | ||
} | ||
} | ||
} |
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,51 @@ | ||
'use client'; | ||
|
||
import { Route } from 'next'; | ||
import Link from 'next/link'; | ||
import { usePathname } from 'next/navigation'; | ||
|
||
import clsx from 'clsx'; | ||
|
||
import styles from './index.module.scss'; | ||
|
||
function TopNavigationMenu() { | ||
const pathname = usePathname() as Route; | ||
|
||
return ( | ||
<ul className={styles.topNavigationMenuWrapper}> | ||
<li> | ||
<Link href="/" className={clsx(pathname === '/' && styles.active)}> | ||
홈 | ||
</Link> | ||
</li> | ||
<li> | ||
<Link href="/projects" className={clsx(pathname === '/projects' && styles.active)}> | ||
프로젝트 | ||
</Link> | ||
</li> | ||
<li> | ||
{/* TODO - sub navigation으로 변경 */} | ||
<Link href="/dnd/about" className={clsx(pathname === '/dnd/about' && styles.active)}> | ||
DND | ||
</Link> | ||
</li> | ||
<li> | ||
<Link href="/reviews" className={clsx(pathname === '/reviews' && styles.active)}> | ||
후기 | ||
</Link> | ||
</li> | ||
<li> | ||
<Link href="/blog" className={clsx(pathname === '/blog' && styles.active)}> | ||
블로그 | ||
</Link> | ||
</li> | ||
<li> | ||
<Link href="/jobs" className={clsx(pathname === '/jobs' && styles.active)}> | ||
채용 | ||
</Link> | ||
</li> | ||
</ul> | ||
); | ||
} | ||
|
||
export default TopNavigationMenu; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
@import "./mixin/text"; | ||
@import "./mixin/functions"; | ||
@import "./transition"; |
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