Skip to main content

Repository Structure

fortadamswebsite/
├── AGENTS.md / CLAUDE.md      # AI-assistant notes (Next 16 warning)
├── README.md                  # Project readme (partly outdated — this book is current)
├── .env.example               # All env vars, documented
├── next.config.ts             # output: export, trailingSlash, custom image loader
├── eslint.config.mjs          # next core-web-vitals + typescript; `_`-prefixed unused vars allowed
├── .prettierrc.json           # 100 cols, double quotes, trailing commas, Tailwind plugin
├── postcss.config.mjs         # @tailwindcss/postcss
├── tsconfig.json              # strict; alias @/* → src/*
│
├── content/                   # ◀ CMS-editable JSON (Decap writes here)
│   ├── alert.json             #   site alert banner
│   ├── tour-booking.json      #   FareHarbor default + guided URLs
│   ├── events.json            #   special events
│   ├── event-categories.json  #   event filter categories
│   ├── staff.json             #   staff members + board
│   └── sponsors.json          #   annual corporate sponsors
│
├── functions/
│   └── api/event-inquiry.ts   # ◀ Cloudflare Pages Function → HighLevel API
│
├── public/
│   ├── _redirects             # Cloudflare Pages redirects (old WordPress URLs)
│   ├── admin/
│   │   ├── index.html         # Staff workspace (task dashboard + help)
│   │   ├── workspace.css/.js  # workspace styles; old-bookmark redirect
│   │   ├── edit/index.html    # Decap editor shell (/admin/edit/)
│   │   ├── editor-loader.js   # loads pinned [email protected] from unpkg
│   │   └── config.yml         # CMS collections & fields
│   └── images/
│       ├── events/ staff/ sponsors/   # CMS upload folders
│       ├── venues/ visit/ home/ history/ explore/ logo/ layout/
│       └── placeholders/      # branded fallbacks (fort-fallback.svg, etc.)
│
├── docs/bookstack/            # This book (Markdown sources + ZIP builder)
│
└── src/
    ├── app/                   # App Router routes
    │   ├── layout.tsx         # root layout: fonts, metadata, alert, header, footer, FareHarbor script
    │   ├── globals.css        # Tailwind import + @theme design tokens + base styles
    │   ├── page.tsx           # /
    │   ├── visit/ events/ history/ host-an-event/ support-us/ about/
    │   ├── architecture-and-terminology/
    │   ├── sitemap.ts         # /sitemap.xml
    │   └── robots.ts          # /robots.txt
    ├── components/
    │   ├── layout/            # Header, Footer, AlertBanner, Logo, PageHero
    │   ├── ui/                # Button, Card, Badge, Tag, FilterPill, Accordion, StickyTabNav,
    │   │                      #   Breadcrumb, Container, FortImage
    │   ├── home/              # HomeHero, QuickInfoStrip, ExploreFort, UpcomingEvents,
    │   │                      #   AudienceRouter, VenueTeaser, FortressStory
    │   ├── visit/             # TourCard, FareharborWidget (+ FareharborScript)
    │   ├── events/            # EventsExplorer, EventsCalendar, EventCard, FeaturedEventCard,
    │   │                      #   EventsSidebar, EmailSignup
    │   ├── history/           # HistoryExperience, RestorationTimeline
    │   ├── host/              # VenueCard, EventInquiryForm
    │   └── support/           # DonateWidget, DafPanel, MembershipTiers, LeadForm, SponsorGrid
    └── lib/                   # Data + loaders (no React)
        ├── site-config.ts     # org info, nav, CTAs, footer links
        ├── content.ts         # alert + tour-booking loaders, FareHarbor URL validation
        ├── events.ts          # events loader, sorting, grouping, date formatting
        ├── event-calendar.ts  # calendar-grid helpers (Eastern Time)
        ├── staff.ts sponsors.ts
        ├── tours.ts faq.ts venues.ts host-content.ts support-content.ts
        ├── history.ts         # chapters, map hotspots, restoration projects
        ├── fort-terminology.ts
        ├── explore-fort.ts    # six Explore the Fort videos (build-time validated)
        └── image-loader.ts    # next/image custom loader

Git conventions

  • main is production. Every push deploys.
  • Decap commits directly to main, so CMS-authored commits appear in history alongside code commits. Pull before you start work to avoid conflicts in content/.
  • .gitattributes normalises line endings to LF and marks images as binary.