From 41525bd318eb1c8e7bf9736aad81da9ada324cea Mon Sep 17 00:00:00 2001 From: chark1es Date: Wed, 4 Dec 2024 07:38:30 -0800 Subject: [PATCH 1/3] add icons --- public/logos/white_logo_horizontal.svg | 7 +++++++ public/logos/white_logo_only.svg | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 public/logos/white_logo_horizontal.svg create mode 100644 public/logos/white_logo_only.svg diff --git a/public/logos/white_logo_horizontal.svg b/public/logos/white_logo_horizontal.svg new file mode 100644 index 0000000..479d182 --- /dev/null +++ b/public/logos/white_logo_horizontal.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/public/logos/white_logo_only.svg b/public/logos/white_logo_only.svg new file mode 100644 index 0000000..13245c4 --- /dev/null +++ b/public/logos/white_logo_only.svg @@ -0,0 +1,4 @@ + + + + From 17961633797b0ac89c6f7cd1938832df65b987b1 Mon Sep 17 00:00:00 2001 From: chark1es Date: Wed, 4 Dec 2024 07:38:41 -0800 Subject: [PATCH 2/3] temp change color for more visability --- src/layouts/Layout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index e455c61..4a539df 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -7,7 +7,7 @@ Astro Basics - + From d5f4c0130bd1589cd8f95b9652a8dd6f1b9ef68a Mon Sep 17 00:00:00 2001 From: chark1es Date: Wed, 4 Dec 2024 07:38:54 -0800 Subject: [PATCH 3/3] add navbar --- src/components/Navbar.astro | 31 +++++++++++++++++++++++++++++++ src/data/pages.json | 30 ++++++++++++++++++++++++++++++ src/pages/index.astro | 3 ++- 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 src/components/Navbar.astro create mode 100644 src/data/pages.json diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro new file mode 100644 index 0000000..54e8261 --- /dev/null +++ b/src/components/Navbar.astro @@ -0,0 +1,31 @@ +--- +import { Image } from "astro:assets"; +import pages from "../data/pages.json"; +--- + +
+
+
+
+ IEEE UCSD Logo +
+ +
+ { + pages.map((page) => ( + + {page.name} + + )) + } +
+
+
+
+ \ No newline at end of file diff --git a/src/data/pages.json b/src/data/pages.json new file mode 100644 index 0000000..31e41cf --- /dev/null +++ b/src/data/pages.json @@ -0,0 +1,30 @@ +[ + { + "name": "About", + "path": "/about" + }, + { + "name": "Join", + "path": "/join" + }, + { + "name": "Events", + "path": "/events" + }, + { + "name": "Projects", + "path": "/projects" + }, + { + "name": "Board", + "path": "/board" + }, + { + "name": "Find Us", + "path": "/find-us" + }, + { + "name": "Online Store", + "path": "/online-store" + } +] diff --git a/src/pages/index.astro b/src/pages/index.astro index c04f360..abd7de9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,5 +1,6 @@ --- import Welcome from '../components/Welcome.astro'; +import Navbar from '../components/Navbar.astro'; import Layout from '../layouts/Layout.astro'; // Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build @@ -7,5 +8,5 @@ import Layout from '../layouts/Layout.astro'; --- - +