diff --git a/ssh/src/components/Layout/Header/index.tsx b/ssh/src/components/Layout/Header/index.tsx index ba6e807..40999f3 100644 --- a/ssh/src/components/Layout/Header/index.tsx +++ b/ssh/src/components/Layout/Header/index.tsx @@ -1,6 +1,4 @@ import { Link, useLocation } from 'react-router-dom'; -import { Menubar, MenubarMenu, MenubarTrigger } from '@/components/ui/menubar'; -import { Button } from '@/components/ui/button'; import { ROUTING_PATH } from '@/routes/path.constants'; import { MessageSquare, CircleUserRound } from 'lucide-react'; @@ -14,7 +12,7 @@ export default function Header() { { label: '채팅하기', seg: ROUTING_PATH.chatbot }, { label: '보이스피싱 진단', seg: ROUTING_PATH.voicephishing }, { label: '주변 ATM 찾기', seg: ROUTING_PATH.atmmap }, - { label: '기부', seg: ROUTING_PATH.donation }, + { label: '유산 기부', seg: ROUTING_PATH.donation }, ] as const; const isActive = (seg: string) => { @@ -22,56 +20,59 @@ export default function Header() { return abs === '/' ? pathname === '/' : pathname.startsWith(abs); }; + const basePill = + 'inline-flex items-center gap-2 rounded-full font-semibold leading-none ' + + 'transition-colors duration-100 ease-out ' + + 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 ' + + 'px-8 py-3 text-lg'; + const activePill = 'bg-primary/10 text-primary ring-1 ring-primary/20'; + const inactivePill = 'text-foreground/70 hover:bg-muted active:bg-muted/80'; + return ( -
-
- - {NAV.map((item) => { - const href = toAbs(item.seg); - return ( - - +
+
+ -
- - +
diff --git a/ssh/src/components/Layout/index.tsx b/ssh/src/components/Layout/index.tsx index 007669c..10376af 100644 --- a/ssh/src/components/Layout/index.tsx +++ b/ssh/src/components/Layout/index.tsx @@ -1,12 +1,12 @@ -import { Outlet } from "react-router-dom"; -import Header from "@/components/Layout/Header"; -import Footer from "@/components/Layout/Footer"; +import { Outlet } from 'react-router-dom'; +import Header from '@/components/Layout/Header'; +import Footer from '@/components/Layout/Footer'; export default function RootLayout() { return ( <>
-
+