From f08d1073a2d9adeea75e091c4b70a15619fb1818 Mon Sep 17 00:00:00 2001
From: Meng Lin
Date: Sun, 14 Jan 2024 22:28:48 +1100
Subject: [PATCH] Replace A link
---
frontend/static/components/section/hero.astro | 6 +++---
frontend/static/components/section/navbar.astro | 9 +++++----
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/frontend/static/components/section/hero.astro b/frontend/static/components/section/hero.astro
index bd50f6d..ea84a90 100644
--- a/frontend/static/components/section/hero.astro
+++ b/frontend/static/components/section/hero.astro
@@ -1,4 +1,5 @@
---
+import A from '../ui/A.astro';
import Container from '../wrapper/container.astro'
import heroBg from './hero-bg.svg'
---
@@ -25,13 +26,12 @@ import heroBg from './hero-bg.svg'
diff --git a/frontend/static/components/section/navbar.astro b/frontend/static/components/section/navbar.astro
index d63a87a..867b4da 100644
--- a/frontend/static/components/section/navbar.astro
+++ b/frontend/static/components/section/navbar.astro
@@ -1,5 +1,6 @@
---
import Favicon from '../svg/Favicon.astro'
+import A from '../ui/A.astro'
import Container from '../wrapper/container.astro'
export const brandName1 = 'Grocer'
export const brandName2 = 'matic'
@@ -26,7 +27,7 @@ export const dropMenuHeight = `${menuItems.length * 2.5 + 0.5}em`
{brandName2}
-
+
{
menuItems.map((link) => {
@@ -61,9 +62,9 @@ export const dropMenuHeight = `${menuItems.length * 2.5 + 0.5}em`
{
menuItems.map((link) => {
return (
-
+
{link.title}
-
+
)
})
}