Skip to content

Commit 8b6076f

Browse files
authored
Merge pull request #28 from GutHub-project/claude/fix-webview-safe-area-uWsjw
feat: replace emoji icons with PNG assets in bottom navigation bar
2 parents b4c9e5b + 455589f commit 8b6076f

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

apps/web/components/BottomNavBar.tsx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
'use client';
22

33
import Link from 'next/link';
4+
import Image from 'next/image';
45
import { usePathname } from 'next/navigation';
56

67
export function BottomNavBar() {
78
const pathname = usePathname();
89

910
const tabs = [
10-
{ name: 'microorganismTest', path: '/microorganismTest', label: '미생물 검사', icon: '🔬' },
11-
{ name: 'record', path: '/record', label: '기록', icon: '📝' },
12-
{ name: 'home', path: '/', label: '홈', icon: '🏠' },
13-
{ name: 'shopping', path: '/shopping', label: '쇼핑', icon: '🛒' },
14-
{ name: 'mypage', path: '/myPage', label: '마이', icon: '👤' },
11+
{ name: 'microorganismTest', path: '/microorganismTest', label: '미생물 검사', icon: '/BottomNav/tab-microorganismTest.png' },
12+
{ name: 'record', path: '/record', label: '기록', icon: '/BottomNav/tab-record.png' },
13+
{ name: 'home', path: '/', label: '홈', icon: '/BottomNav/tab-home.png' },
14+
{ name: 'shopping', path: '/shopping', label: '쇼핑', icon: '/BottomNav/tab-shopping.png' },
15+
{ name: 'mypage', path: '/myPage', label: '마이', icon: '/BottomNav/tab-mypage.png' },
1516
];
1617

1718
return (
@@ -31,9 +32,14 @@ export function BottomNavBar() {
3132
href={tab.path}
3233
className="flex flex-col items-center justify-center flex-1 py-2 active:scale-95 transition-transform"
3334
>
34-
<span className={`text-2xl mb-1 transition-opacity ${isActive ? 'opacity-100' : 'opacity-60'}`}>
35-
{tab.icon}
36-
</span>
35+
<div className={`mb-1 transition-opacity ${isActive ? 'opacity-100' : 'opacity-60'}`}>
36+
<Image
37+
src={tab.icon}
38+
alt={tab.label}
39+
width={24}
40+
height={24}
41+
/>
42+
</div>
3743
<span
3844
className={`text-xs transition-colors ${
3945
isActive ? 'text-[#FF6B6B] font-semibold' : 'text-gray-500'

0 commit comments

Comments
 (0)