Skip to content

Commit

Permalink
Replace A link
Browse files Browse the repository at this point in the history
  • Loading branch information
MengLinMaker committed Jan 14, 2024
1 parent d82b57e commit f08d107
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions frontend/static/components/section/hero.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import A from '../ui/A.astro';
import Container from '../wrapper/container.astro'
import heroBg from './hero-bg.svg'
---
Expand All @@ -25,13 +26,12 @@ import heroBg from './hero-bg.svg'

<!-- Buttons -->
<div class="mt-8 gap-3 flex justify-center">
<a
<A
class="inline-flex justify-center items-center gap-x-3 text-center bg-primary-medium border text-white text-sm font-medium rounded-xl py-3 px-4"
href="/app"

>
Create your list &#8594;
</a>
</A>
</div>
</Container>
</section>
9 changes: 5 additions & 4 deletions frontend/static/components/section/navbar.astro
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -26,7 +27,7 @@ export const dropMenuHeight = `${menuItems.length * 2.5 + 0.5}em`
<nav class="sticky top-0 z-20 bg-white border-b select-none" aria-label="Navbar">
<input id="hamburger-checkbox" type="checkbox" class="hidden" />
<Container class="flex items-center py-3">
<a
<A
class="flex items-center gap-1.5 w-56"
href={menuItems[0]?.path}
aria-label={menuItems[0]?.aria}
Expand All @@ -36,7 +37,7 @@ export const dropMenuHeight = `${menuItems.length * 2.5 + 0.5}em`
<p class="text-2xl font-bold text-primary-medium">{brandName1}</p>
<p class="text-2xl font-bold text-secondary-medium">{brandName2}</p>
</div>
</a>
</A>
<div class="hidden sm:flex w-full justify-end gap-8 px-6">
{
menuItems.map((link) => {
Expand All @@ -61,9 +62,9 @@ export const dropMenuHeight = `${menuItems.length * 2.5 + 0.5}em`
{
menuItems.map((link) => {
return (
<a class="font-medium text-lg text-neutral-medium" href={link.path}>
<A class="font-medium text-lg text-neutral-medium" href={link.path}>
{link.title}
</a>
</A>
)
})
}
Expand Down

0 comments on commit f08d107

Please sign in to comment.