Skip to content

Commit 238e5df

Browse files
update navbar
1 parent b7ef1bd commit 238e5df

File tree

2 files changed

+4
-273
lines changed

2 files changed

+4
-273
lines changed

src/components/global/NavBar.astro

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
import { HoverNavigation } from "@/components/ui/HoverNavigation";
3+
import { Image } from "astro:assets";
4+
import pfp from "@/components/images/pfp_new.webp";
35
46
const navLinks = [
57
{
@@ -26,13 +28,8 @@ const navLinks = [
2628
---
2729

2830
<div
29-
class="bg-secondary fixed top-5 left-1/2 z-30 box-border flex -translate-x-1/2 items-center justify-center gap-5 overflow-auto rounded-full border-2 border-solid border-gray-700 px-5 py-3"
31+
class="bg-secondary fixed top-5 left-1/2 z-30 box-border flex -translate-x-1/2 items-center justify-center overflow-auto rounded-full border-2 border-solid border-gray-700 px-5 py-3"
3032
>
31-
<img
32-
src="/images/pfp_new.webp"
33-
alt="Ryan"
34-
width={50}
35-
class="rounded-full"
36-
/>
33+
<Image src={pfp} alt="Ryan" width={50} class="mr-3 rounded-full" />
3734
<HoverNavigation items={navLinks} client:load />
3835
</div>

src/components/global/NavBar_old.astro

Lines changed: 0 additions & 266 deletions
This file was deleted.

0 commit comments

Comments
 (0)