From 5a37635e5d8c26266b74ed37d7c91a62d89d50d5 Mon Sep 17 00:00:00 2001 From: RazvanBalota <118636956+RazvanBalota@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:12:01 +0200 Subject: [PATCH] fix:modify navbar links (#2) --- src/components/Contact.astro | 2 +- src/components/Footer.astro | 8 ++++---- src/data.js | 5 ++--- src/layouts/Layout.astro | 1 + 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Contact.astro b/src/components/Contact.astro index 585fde3..91d8a0a 100644 --- a/src/components/Contact.astro +++ b/src/components/Contact.astro @@ -1,4 +1,4 @@ -
+
DespreAcasă
BlogDespre
diff --git a/src/data.js b/src/data.js index 44474c9..0571e2f 100644 --- a/src/data.js +++ b/src/data.js @@ -1,9 +1,8 @@ export const navLinks = [ - { index: 1, name: "Home", href: "/" }, + { index: 1, name: "Acasă", href: "/" }, { index: 2, name: "Blog", href: "/blog" }, { index: 3, name: "Despre", href: "/despre" }, - { index: 4, name: "Regulament", href: "/regulament" }, - { index: 5, name: "Confidențialitate", href: "/confidentialitate" }, + { index: 4, name: "Contact", href: "/#contact" }, ]; export const sponsors = [ diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 2637f9a..7b6244d 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -72,6 +72,7 @@ const { title } = Astro.props; margin: 0; padding: 0; box-sizing: border-box; + scroll-behavior: smooth; } a { color: #d946ef;