Skip to content

Commit

Permalink
Add merch link
Browse files Browse the repository at this point in the history
  • Loading branch information
zackharley committed Aug 16, 2024
1 parent e64c553 commit 8161abf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function ContactPage() {
<Header />
<div className="py-6 md:py-20">
<PageSection title="Contact">
<div className="mt-4 md:mt-10 mx-4 flex flex-col items-center md:items-start md:flex-row gap-4 md:gap-8 text-center">
<div className="mt-4 md:mt-10 mx-4 flex flex-col items-center gap-4 md:gap-8 text-center">
<Image
src={contactImage}
placeholder="blur"
Expand Down
29 changes: 16 additions & 13 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const navItems: NavItem[] = [
href: '/#shows',
label: 'Shows',
},
{
href: 'https://merch.thedirtynelsons.com',
label: 'Store',
},
{
href: '/#music',
label: 'Music',
Expand All @@ -43,6 +47,10 @@ const navItems: NavItem[] = [

export default function Header() {
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
const navItemsToDisplay = navItems.filter(
({ showOnDesktop }) =>
showOnDesktop === undefined || showOnDesktop === true,
);
return (
<>
<header className="hidden md:flex flex-row items-center px-16 absolute top-0 h-16 w-full bg-[#211c1c9e] z-[1000]">
Expand All @@ -56,19 +64,14 @@ export default function Header() {
</Link>
<div className="w-6 h-[1px] bg-[#F1ECC7] mx-4" />
<nav className="flex flex-row gap-x-3 mt-2">
{navItems
.filter(
({ showOnDesktop }) =>
showOnDesktop === undefined || showOnDesktop === true,
)
.map(({ href, label }, index) => (
<Fragment key={label}>
<Link href={href} className="hover:underline decoration-dashed">
{label}
</Link>
{index < navItems.length - 1 && <span></span>}
</Fragment>
))}
{navItemsToDisplay.map(({ href, label }, index) => (
<Fragment key={label}>
<Link href={href} className="hover:underline decoration-dashed">
{label}
</Link>
{index < navItemsToDisplay.length - 1 && <span></span>}
</Fragment>
))}
</nav>
<div className="flex-grow h-[1px] bg-[#F1ECC7] mx-4" />
<div className="max-w-5xl flex flex-row gap-x-4">
Expand Down

0 comments on commit 8161abf

Please sign in to comment.