Skip to content

Commit 4bdb1bd

Browse files
authored
Remove Home menu on mobile (#79)
1 parent 4614ab9 commit 4bdb1bd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/Header.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const currentPath = Astro.url.pathname;
2525
href={href}
2626
class:list={[
2727
"rounded-lg px-3.5 py-2 text-sm font-medium transition-all duration-200",
28+
label === "Home" && "hidden sm:inline-flex",
2829
currentPath === href || (href !== "/" && currentPath.startsWith(href))
2930
? "bg-[#306998]/10 text-[#306998] dark:bg-[#ffd43b]/10 dark:text-[#ffd43b]"
3031
: "text-zinc-700 hover:bg-zinc-100 hover:text-zinc-900 dark:text-zinc-300 dark:hover:bg-zinc-800 dark:hover:text-zinc-100",

0 commit comments

Comments
 (0)