A modern, statically-exported Astro rebuild of the Harvard Alumni in Tech website — a faithful reproduction of the original (built on a no-code tool) using modern technology, hostable for free on GitHub Pages.
Page content lives in typed
content collections
(markdown under src/content/) and editable JSON singletons (src/data/), not a
runtime database — so there is no server to run.
@codeyam/cms edits those same
files: an Astro integration that owns /admin — content dashboard, entry
editor, media library, site settings, and a publish flow that batches edits into
one GitHub commit. See CMS_SETUP.md for the two sign-in
paths: Local and Token (paste a fine-grained GitHub PAT).
npm run setup # install dependencies (+ Playwright browser for captures)
npm run dev # http://127.0.0.1:4321
npm run build # responsive image variants, then type-check + static build into dist/
npm run test # component unit tests (vitest + jsdom)A fresh clone works with: git clone → npm run setup → npm run dev.
@codeyam/cms is pinned to an exact version and carries a local patch in
patches/, applied automatically by patch-package on postinstall. The patch
adds two admin controls the package does not ship: reorder arrows on any
collection declaring a numeric order, and Duplicate on every entry row,
which opens the ordinary create form prefilled from the source entry. Without
them, rearranging the donate page means opening each section and typing a number
while holding the other five in your head, and starting a section from an
existing one means retyping it. The version is pinned exactly because the patch
is version-stamped: a floating range would install a version the patch cannot
apply to and break npm install for everyone. Duplicate landed upstream in
0.13.0, so that half of the patch was deleted — the feature moved into the
dependency rather than out of the product. The reorder arrows are still ours.
Both are covered from this repo — src/lib/cmsOrderControls.test.ts for the
arrows, src/lib/duplicateEntry.test.ts now holding the released Duplicate to
its contract — so if a future release drops or reworks either, CI says so
instead of an editor finding the buttons gone. The arrows belong upstream too;
drop the rest of the patch once they land there. See CMS_SETUP.md for the
upgrade procedure.
src/
pages/index.astro # the landing page — composes the section components
pages/volunteer.astro # /volunteer — the volunteer pitch + open-projects grid
pages/volunteer/projects/[slug].astro
# /volunteer/projects/<slug> — one page per project,
# where a project's full markdown description renders
pages/donate.astro # /donate — the Momentum Fund campaign page
pages/events.astro # /events — Luma calendar embed + upcoming/past listing
components/landing/ # one component per landing section (Hero, Board, …)
components/volunteer/ # /volunteer sections (hero, benefits, project cards)
components/donate/ # /donate campaign sections (hero, stats, gift pillars,
# quotes, donor recognition wall)
layouts/BaseLayout.astro # site shell: data-driven header/nav + footer + SEO
content/ # typed content collections (events, team, chapters,
# communities, pages, blog, projects, sponsors,
# testimonials, donors, momentumSections, and the
# page copy an editor owns: volunteerPage,
# sponsorPage, sponsorLevels, siteIntegrations,
# pageCopy)
data/ # settings.json + nav.json singletons, cms.json +
# collections.json (CMS config). volunteerPage,
# sponsorPage and donatePage still live here as the
# FALLBACK behind their collections — the CMS has no
# notion of a required singleton, so a deleted entry
# degrades to this committed copy rather than a blank page
lib/ # site.ts, mailto.ts, drafts.ts (draft filtering),
# personalize.ts (?name= hero personalization), giving.ts
styles/tokens.css # design tokens (brand blue, Roboto, spacing)
public/images/ # hero/section backgrounds, board graphic, event gallery
# (/admin is injected by @codeyam/cms — no admin code in this repo)
- In
astro.config.mjs, setsiteto your Pages URL andbaseto your repo path (dropbasefor a<user>.github.ioroot site). - Push to
main—.github/workflows/deploy.ymlenables Pages automatically (Source: GitHub Actions), then builds and deploys. No manual Settings → Pages toggle in the common case; seeDEPLOY_SETUP.mdfor the fallback if the first deploy 404s.
This project is built with codeyam-editor — code and runnable data scenarios are authored side by side against a live preview.
# Clone the repo
git clone https://github.com/codeyam-ai/harvardintech && cd harvardintech
# Install codeyam-editor
npm install -g @codeyam-editor/codeyam-editor@latest
# Launch the editor (split-screen terminal + live preview)
codeyam-editor startStates captured as runnable scenarios with codeyam-editor:
A blog post as a reader who still holds its link meets it. This scenario used to show the Welcome post, which was retired when the blog was hidden for launch — the owner decided on 2026-09-14 not to advertise a blog until there are real articles for it. So it now shows one of the ten Medium stubs instead, which is what a retained link actually resolves to: the posts keep building at their own URLs even with every route INTO the blog closed, so nobody holding an old link gets a 404. Note what is ABSENT — the back link that used to sit above the title is gone, because with the blog hidden there is no index for it to return to.
The page a reviewer actually lands on. An unpublished post, cloned to an unguessable URL and rendered in the site's real layout — no sign-in, no CMS account, no passphrase. The post it stands in for is still a draft and appears in no listing; this URL is the only way to reach it. Proves the load-bearing half of preview links: routableEntries built a page that publishedEntries deliberately excludes from every index.
The founding chapter with NO events tagged to it — the counterpart to London, where tags match and the events section appears. Neither an upcoming nor a recent block renders here, which is the assertion: both sections stay away entirely rather than leaving an empty heading behind. It is also the state a chapter sits in whenever its tags are typo'd, since a near-miss tag belongs to nobody and looks exactly like this.
The /events past grid now that the NYC Fall Welcome Mixer is written up after the fact: its card leads with "Sold out within 24 hours, with more than 90% of registrants attending", the October 2026 volunteer all-hands figure, instead of the old space-is-limited pitch. The card clamps its description, which is why the result comes first. The grid now opens with the London Alumni Founders Co-working Day of October 9, one of the two London events the Luma import missed while Luma was refusing its requests (fixed 2026-11-06 by naming the importer in a User-Agent header); the earlier monthly London co-working days fill the rest of the frame, and Alumni Day (June 5) is below the fold. The hover only scrolls the past grid into view.
The founding chapter with NO events tagged to it, at phone and tablet widths — the small-screen half of 'Chapter Route - New York City' (split in two because the NYC photo gallery makes all four sizes in one capture exceed the capture tool's per-scenario time limit). Neither an upcoming nor a recent events block renders; the capped photo gallery and its 'Show all' control fit the narrow grid.
The site-wide integration keys on a screen of their own: the analytics measurement id, the Givebutter account id, and the raw head/body HTML escape hatch. Doubles as the live-preview pane's NO-PAGE state — siteIntegrations is the one collection declared with a null path, so the pane says 'This content has no page of its own' and falls back to the plain body preview rather than guessing an address and embedding a 404 beside the form for the whole session.
The homepage at 768px (iPad portrait), scrolled to the numbers band. Since the October 2026 all-hands the band carries six figures, and one row of six would push the page sideways ("10,000+" alone is ~180px), so between 761px and 1200px it wraps to two rows of three and the page stays inside the screen. The hover only scrolls the band into view, since a URL fragment does not scroll a capture.
A community once it has people and a calendar behind it. Its events are tagged the ORIGINAL way — a single chapter tag naming the community — which this seed keeps on purpose: that path still works and this is what proves it. The newer alternative is an event's own communities list, which is what lets one London co-working day sit on the London chapter page and here at the same time without either tag having to win; the production Founders content uses that path, and this scenario deliberately covers the other. Its Join link points at the shared Google Form: this seed previously carried a raw chat.whatsapp.com invite, which put the one pattern the site forbids into a frame that looks like the product.







