From 10708a3d35ddc52d5fe388bec9488a3450e85c42 Mon Sep 17 00:00:00 2001
From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com>
Date: Sat, 17 Feb 2024 08:14:59 +0400
Subject: [PATCH] Add new scripts to Navbar and enhance NavLink's functionality
New scripts added to 'Navbar' component improve design functionality. 'NavLink' handling of current page has been refined to accurately reflect the current user's location with the addition of splitting the URL pattern. Changes in 'MainLayout' reflect updated script paths to match recent directory changes. These refinements improve usability and streamline codebase.
---
src/components/Navbar.astro | 2 ++
src/components/ui/links/NavLink.astro | 32 +++++++++++++--------------
src/layouts/MainLayout.astro | 3 +--
3 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro
index 9dc495f..4282b5b 100644
--- a/src/components/Navbar.astro
+++ b/src/components/Navbar.astro
@@ -242,3 +242,5 @@ import Authentication from "./Authentication.astro";
});
});
+
+
\ No newline at end of file
diff --git a/src/components/ui/links/NavLink.astro b/src/components/ui/links/NavLink.astro
index 0900f4f..b39f149 100644
--- a/src/components/ui/links/NavLink.astro
+++ b/src/components/ui/links/NavLink.astro
@@ -23,20 +23,20 @@ If URL is '/' (home page), assign ID as 'home'
\ No newline at end of file
diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro
index 1ac4566..d51e71e 100644
--- a/src/layouts/MainLayout.astro
+++ b/src/layouts/MainLayout.astro
@@ -27,7 +27,7 @@ interface Props {
document.documentElement.classList.remove("dark");
}
-
+
-