Skip to content

Commit 73e85bd

Browse files
committed
feat: homepage logo 설정
1 parent 2bc2e01 commit 73e85bd

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

public/logo.svg

Lines changed: 9 additions & 0 deletions
Loading

src/components/NavBar.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const NavBar = () => {
2121
<header>
2222
<nav>
2323
<ul>
24+
<li><Link to="/"><img src="../../public/logo.svg" alt="홈 아이콘" className={styles.logo}/></Link></li>
2425
<li><Link to="/ranking">랭킹</Link></li>
2526
<li><Link to="/statistics">통계</Link></li>
2627
<li><Link to="/profile">내 정보</Link></li>

src/styles/NavBar.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
font-weight: 600; /* font-semibold */
44
font-size: 0.875rem; /* text-sm */
55
}
6+
7+
.logo {
8+
width: 100%;
9+
height: auto;
10+
max-width: 200px;
11+
}

0 commit comments

Comments
 (0)