Commit graph

5 commits

Author SHA1 Message Date
87182583f8 Wire home page content into Sanity CMS with hardcoded fallbacks
Adds homePage singleton document type (hero headline/mission, video section,
CTA cards, sponsors). Home page fetches from Sanity when configured and
falls back to the existing hardcoded values when not.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 13:19:45 +00:00
fc644510af Add Sanity CMS integration
- Install @sanity/client + @portabletext/to-html
- studio/ — Sanity v3 project with post schema (title, slug, date, category,
  summary, cover image with hotspot, Portable Text body). Run with
  `cd studio && npm install && sanity dev` after setting SANITY_STUDIO_PROJECT_ID.
- src/lib/sanity.ts — typed client, GROQ queries, Portable Text → HTML conversion
- src/lib/news.ts — adds getArticles() / getArticle() async functions that prefer
  Sanity when SANITY_PROJECT_ID is set; fall back to local markdown otherwise
- events/index.astro, events/[slug].astro, events/page/[page].astro — switch to
  async getArticles()/getArticle(); [slug].astro drops getStaticPaths() in favour
  of SSR request-time fetch with redirect-on-not-found
- .env.example — documents SANITY_PROJECT_ID / SANITY_DATASET / SANITY_API_TOKEN

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 11:50:35 +00:00
Calum Muir
e37a97a9e1 Rename "News" to "Events" in nav and footer menus
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 19:52:13 +00:00
Calum Muir
cdec660d10 Apply v3 redesign to homepage, about, events, and footer
- index.astro: full redesign — fixed sticky nav, new hero with kicker/green
  accent, video section, yellow intro strip, editorial CTA cards with hover
  expansion, sponsors section
- about.astro: redesign — mission blockquote, who/what two-col, stats cards,
  ponies panel + profiles grid, testimonials, volunteers panel, location, CTA strip
- events/index.astro: redesign — hero, upcoming events strip, news feed with
  live category filter pills, newsletter section; adds category to all 6 articles
- events/page/[page].astro: updated to match new card grid visual
- SiteFooter.astro: three-column layout (brand / quick links / find us) with
  bottom copyright bar
- news.ts: adds category field to NewsArticle type, defaults to "News"
- news/*.md: adds category frontmatter to all articles

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 14:55:44 +00:00
Calum Muir
00f6ea6b52 convert to astro 2025-12-27 21:55:52 +00:00