From a8416440fdf23f57a52e6082f7aa21db91c80f0a Mon Sep 17 00:00:00 2001 From: Charlie Hinojosa Date: Tue, 20 Oct 2026 16:17:47 +0000 Subject: [PATCH 1/5] Polish the Inference Day page and promote the event on the homepage Follow-up to the merged Inference Day page (#40), rebased onto the lint fix (#41): - Make the hero and closing-CTA contrail full-bleed, sized in vw so the wave spans the section at every width (the fan reaches the lower-left, the lines run off the top-right) instead of being cut off; soften it on phones for legibility. - Add a dismissible homepage announcement bar linking to /inference-day. It is rendered client-only (its visibility depends on localStorage and the date), so there is no effect-driven state and no hydration mismatch; it hides itself once the event has passed. - Add an Inference Day link to the main nav (next to Slack, cyan accent) using next/link, and give the landing page a two-tier header: the main site Nav plus a slim event sub-nav for the on-page jump links. This replaces the standalone EventNav. npm run lint, build and validate-posts all pass. Signed-off-by: Charlie Hinojosa --- pages/index.tsx | 5 + pages/inference-day.tsx | 6 +- src/components/AnnouncementBar.tsx | 57 ++++++++++ src/components/Nav.tsx | 2 + src/components/inference-day/EventNav.tsx | 61 ----------- src/components/inference-day/EventSubNav.tsx | 20 ++++ src/styles/globals.css | 71 ++++++++++++ src/styles/inference-day.css | 107 +++++++++---------- 8 files changed, 211 insertions(+), 118 deletions(-) create mode 100644 src/components/AnnouncementBar.tsx delete mode 100644 src/components/inference-day/EventNav.tsx create mode 100644 src/components/inference-day/EventSubNav.tsx diff --git a/pages/index.tsx b/pages/index.tsx index b01a345..f63c2b2 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,6 +1,7 @@ import { useEffect } from 'react' import Seo from '@/components/Seo' import { SITE_URL } from '@/lib/site' +import dynamic from 'next/dynamic' import Nav from '@/components/Nav' import Hero from '@/components/Hero' import Capabilities from '@/components/Capabilities' @@ -11,6 +12,9 @@ import OpenSource from '@/components/OpenSource' import Partners from '@/components/Partners' import Footer from '@/components/Footer' +// Client-only: its visibility depends on localStorage and the current date. +const AnnouncementBar = dynamic(() => import('@/components/AnnouncementBar'), { ssr: false }) + export default function Home() { // Set up scroll-reveal observer (mirrors the original HTML script) useEffect(() => { @@ -35,6 +39,7 @@ export default function Home() { return ( <> +