Skip to content

Commit 11a4674

Browse files
committed
style: TopNav 및 TopNavItem 컴포넌트의 레이아웃 및 스타일 수정
1 parent 8a0d39f commit 11a4674

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/components/TopNav.astro

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import {type Icon as IconType, House, Image, CodeXml} from "@lucide/astro";
2+
import {type Icon as IconType, House, Image} from "@lucide/astro";
33
import TopNavItem from "./TopNavItem.astro";
44
55
type MenuItem = {
@@ -25,11 +25,16 @@ const menuItems: MenuItem[] = [
2525
<nav transition:name="header" class="w-full flex flex-row justify-between border border-bright/25 rounded-full sticky top-4 px-4 py-3 gap-9 z-40 backdrop-blur-[2px]">
2626
<div class="flex flex-row items-center">
2727
<div class="rounded-full w-10 h-10 bg-[url(/images/anvy_profile.png)] bg-center bg-cover"/>
28-
<div class="ml-4 flex flex-row items-center gap-1 text-bright">
29-
<span class="text-bright font-kanit text-2xl font-light tracking-narrow">
28+
<div class="ml-4 flex flex-row items-end gap-[2px] text-bright font-mono font-light">
29+
<span class="text-bright text-2xl leading-[0.8]">
3030
CHAMCHI
3131
</span>
32-
<CodeXml/>
32+
<span class="text-bright/80 text-md">
33+
/
34+
</span>
35+
<span class="text-bright/80 text-md">
36+
DEV
37+
</span>
3338
</div>
3439
</div>
3540
<div class="flex flex-row gap-4">

src/components/TopNavItem.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {pathname, label, icon} = Astro.props;
1111
const active = pathname === (Astro.url.pathname.replace(/\/+$/, '') || "/");
1212
---
1313

14-
<a href={pathname} class=`py-2 px-3 flex flex-row justify-center items-center gap-2 cursor-pointer rounded-full text-bright select-none transition duration-300 ease-in-out tracking-wider font-light font-kanit text-[18px]
14+
<a href={pathname} class=`py-2 px-3 flex flex-row justify-center items-center gap-2 cursor-pointer rounded-full text-bright select-none transition duration-500 ease-in-out tracking-wider font-light font-kanit text-[18px]
1515
hover:bg-bright hover:text-gray-950 hover:scale-105
1616
${active && 'bg-bright text-gray-950 scale-105'}`>
1717
<slot/>

0 commit comments

Comments
 (0)