Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ next-env.d.ts

# verification screenshots generated locally
/screenshots
/audit-shots
/review-shots

# playwright smoke-test artifacts
/test-results/
Expand Down
4 changes: 3 additions & 1 deletion THEME_AND_BRANDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ Use ONLY for:

**Sizes:**
* Homepage hero: 56px / 64px line-height (desktop), 40px / 48px (mobile)
* Navigation logo: 24px / 28px line-height
* Navigation logo: 24px / 28px line-height (20px below the `sm`
breakpoint, scaling down fluidly on very narrow viewports so the full
wordmark never clips)

---

Expand Down
11 changes: 8 additions & 3 deletions app/(pages)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SiteHeaderDefault } from "@/components/site-header-default";
import { SiteNav } from "@/components/site-nav";

export default function PagesLayout({
children,
Expand All @@ -7,8 +7,13 @@ export default function PagesLayout({
}) {
return (
<>
<SiteHeaderDefault />
<div className="min-h-screen pt-15">{children}</div>
<SiteNav />
{/* The nav is a fixed floating pill (~72px incl. its top offset and
any safe-area inset); the padding clears it with the breathing
room the floating treatment calls for. */}
<div className="min-h-screen pt-[calc(5.75rem+env(safe-area-inset-top))]">
{children}
</div>
</>
);
}
6 changes: 3 additions & 3 deletions app/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as Sentry from "@sentry/nextjs";
import { useEffect } from "react";
import Link from "next/link";
import { SiteHeaderDefault } from "@/components/site-header-default";
import { SiteNav } from "@/components/site-nav";
import { Button } from "@/components/ui/button";

// Root error boundary: an unhandled render error in any page lands here with
Expand Down Expand Up @@ -33,11 +33,11 @@ export default function Error({

return (
<>
<SiteHeaderDefault />
<SiteNav />
<main
id="main-content"
tabIndex={-1}
className="mx-auto max-w-300 px-6 pb-20 pt-15 text-center md:pb-30"
className="mx-auto max-w-300 px-6 pb-20 pt-[calc(5.75rem+env(safe-area-inset-top))] text-center md:pb-30"
>
<h1 className="text-3xl font-bold tracking-tight md:text-4xl">
Something went wrong
Expand Down
6 changes: 3 additions & 3 deletions app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Metadata } from "next";
import Link from "next/link";
import { SiteHeaderDefault } from "@/components/site-header-default";
import { SiteNav } from "@/components/site-nav";
import { Button } from "@/components/ui/button";

export const metadata: Metadata = {
Expand All @@ -14,11 +14,11 @@ export const metadata: Metadata = {
export default function NotFound() {
return (
<>
<SiteHeaderDefault />
<SiteNav />
<main
id="main-content"
tabIndex={-1}
className="mx-auto max-w-300 px-6 pb-20 pt-15 text-center md:pb-30"
className="mx-auto max-w-300 px-6 pb-20 pt-[calc(5.75rem+env(safe-area-inset-top))] text-center md:pb-30"
>
<p className="text-sm font-semibold uppercase tracking-wider text-muted-foreground">
404
Expand Down
26 changes: 18 additions & 8 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Image from "next/image";
import Link from "next/link";
import type { Metadata } from "next";
import { Button } from "@/components/ui/button";
import { SiteHeader } from "@/components/site-header";
import { SiteNav } from "@/components/site-nav";
import IntroSection from "@/components/home/IntroSection";
import { BeerCarousel } from "@/components/beer-carousel";
import { HeroVideo } from "@/components/hero-video";
Expand Down Expand Up @@ -59,18 +59,21 @@ export default async function Home() {
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: serializeJsonLd(breweryJsonLd) }}
/>
<SiteHeader />
<SiteNav />
<main id="main-content" tabIndex={-1}>
{/* Hero — full viewport, grain photo, extends behind header */}
{/* Hero — full viewport, brewhouse photo, extends behind header.
The focal point sits left-of-center: the row of tanks and the
Alpha plate stay in frame while the busiest hose run drifts
right, away from the centered headline. */}
<section className="relative h-screen w-full overflow-hidden">
<Image
src="/photos/herograin.jpg"
src="/photos/herobrewhouse.jpg"
alt=""
fill
priority
quality={70}
sizes="100vw"
className="object-cover"
className="object-cover object-[30%_50%]"
/>
<div className="absolute inset-0 bg-ink/60" />
<div className="relative z-10 flex h-full flex-col items-center justify-center px-6 text-center animate-hero-fade">
Expand All @@ -90,13 +93,20 @@ export default async function Home() {
Craft beer, brewed on Saba.
</p>
<div className="mt-8 flex flex-wrap justify-center gap-4">
<Button asChild className="h-11 min-h-[44px] px-6">
{/* Primary stays the heaviest surface: 85% ink glass over the
secondaries' 40% — a hint of the brewhouse shows through
without competing with the label. Hover still solidifies
to primary/90 via the default variant. */}
<Button
asChild
className="h-11 min-h-[44px] bg-ink/85 px-6 backdrop-blur-sm"
>
<Link href="/beers">Explore Our Beers</Link>
</Button>
<Button
variant="outline"
asChild
className="h-11 min-h-[44px] border-paper/30 px-6 text-paper hover:bg-paper/10"
className="h-11 min-h-[44px] border-paper/40 bg-ink/40 px-6 text-paper backdrop-blur-sm hover:bg-paper/10 hover:text-paper"
>
<Link
href="/where-to-buy"
Expand All @@ -115,7 +125,7 @@ export default async function Home() {
<TourInquiryCta
ctaLocation="homepage_hero"
variant="outline"
className="h-11 min-h-[44px] border-paper/30 px-6 text-paper hover:bg-paper/10"
className="h-11 min-h-[44px] border-paper/40 bg-ink/40 px-6 text-paper backdrop-blur-sm hover:bg-paper/10 hover:text-paper"
>
Book a Brewery Tour
</TourInquiryCta>
Expand Down
113 changes: 0 additions & 113 deletions components/mobile-menu.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions components/site-header-default.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions components/site-header.tsx

This file was deleted.

Loading
Loading