From 3b48032ac58f8b2712343920671529150d0aa1d5 Mon Sep 17 00:00:00 2001 From: smilevictory Date: Mon, 8 Sep 2025 00:56:28 +0900 Subject: [PATCH] =?UTF-8?q?design:=20=EB=84=A4=EB=B9=84=EA=B2=8C=EC=9D=B4?= =?UTF-8?q?=EC=85=98=EB=B0=94=20=EA=B8=80=EC=9E=90=ED=81=AC=EA=B8=B0=20?= =?UTF-8?q?=ED=99=95=EB=8C=80=20=EB=B0=8F=20=EB=A9=94=EB=89=B4=EB=AA=85=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ssh/src/components/Layout/Header/index.tsx | 85 +++++++++++----------- ssh/src/components/Layout/index.tsx | 8 +- 2 files changed, 47 insertions(+), 46 deletions(-) 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 ( <>
-
+