Magic & Math with Cards: course site organised by lecture #1

Merged
neeldhara merged 5 commits from magic-course into main 2026-10-30 22:43:27 +05:30
Owner

Replaces the magic placeholder with the full course site. It follows the 60 lectures and keeps the 22 interactive trick pages.

Pages

  • /: home
  • /introduction/: the old /about/ redirects here
  • /sections/<slug>/: 7 section pages
  • /lectures/NN-<slug>/: 60 lecture pages, each with a video slot read from src/magic/data/videos.json
  • /tricks/ and /tricks/<slug>/: the 22 trick pages, at unchanged URLs

Shared files touched

  • src/pages/[course]/index.astro: skips the magic course
  • src/styles/global.css: two @source not lines, so Tailwind doesn't scan the magic files
  • The old magic placeholder pages are removed.

Checks

  • npm run build passes.
  • Playwright passed all 184 page visits (every page at 1280 and 390 px wide).
  • The other 12 courses' site-dist output is byte-identical to main.

Merging deploys to magic.neeldhara.courses through Dokploy.

🤖 Generated with Claude Code

https://claude.ai/code/session_012yR4PLoAq6MxUVq4Gb5QQT

Replaces the magic placeholder with the full course site. It follows the 60 lectures and keeps the 22 interactive trick pages. **Pages** - `/`: home - `/introduction/`: the old `/about/` redirects here - `/sections/<slug>/`: 7 section pages - `/lectures/NN-<slug>/`: 60 lecture pages, each with a video slot read from `src/magic/data/videos.json` - `/tricks/` and `/tricks/<slug>/`: the 22 trick pages, at unchanged URLs **Shared files touched** - `src/pages/[course]/index.astro`: skips the magic course - `src/styles/global.css`: two `@source not` lines, so Tailwind doesn't scan the magic files - The old magic placeholder pages are removed. **Checks** - `npm run build` passes. - Playwright passed all 184 page visits (every page at 1280 and 390 px wide). - The other 12 courses' `site-dist` output is byte-identical to main. Merging deploys to magic.neeldhara.courses through Dokploy. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012yR4PLoAq6MxUVq4Gb5QQT
Card engine, stylesheets, self-hosted fonts and the homepage Gilbreath demo
from the static Magic & Math with Cards site, plus one folder per trick:
the page body (page.html, the original <main> verbatim), its description,
and its ES modules and CSS, byte for byte.

site.js keeps the curtain, ledger follow, skip link and explicit-index
links unchanged; the header, footer, section label, title, principle and
pager it used to inject are now rendered at build time. course.css styles
the new course pages under new class names only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012yR4PLoAq6MxUVq4Gb5QQT
registry.js (moved from the trick site) stays the single source for trick
titles, hooks and principles; sections gain a URL slug, lecture range and
a short introduction. episodes.json is generated from the scripting
package by tools/build-episodes.mjs: titles, formats, learning goals,
prerequisites with lecture numbers parsed out, an outline from each
scene's purpose and on-screen statements (no draft narration), the
companion goal and tidied source citations. videos.json holds lecture
videos by number (empty for now); course.js joins the three.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012yR4PLoAq6MxUVq4Gb5QQT
A bespoke layout (paper page, ink stage, the trick site's fonts and card
engine) instead of the docs theme, loading only plain files from
/magic/assets and /magic/tricks, never the shared _astro bundle.

- /: the hero with the live Gilbreath demo, how a trick page works, and
  all 60 lectures in seven sections (performances show their trick and
  hook, mathematics lectures their learning goal)
- /introduction/: what the course is, how it is organised, how to use
  lectures and tricks, colour legend, sources, accessibility (/about/
  redirects here)
- /sections/<slug>/: blurb, running time, lecture list, prev/next
- /lectures/NN-<slug>/: video slot from videos.json ("Video in
  production" until then), learning goal, linked prerequisites, scene
  outline with on-screen statements, companion interactive, notes slot
  on mathematics lectures, sources, prev/next; performances link to
  "Play the trick"
- /tricks/ and /tricks/<slug>/: the 22 trick pages with server-rendered
  chrome, "Watch the lecture", the lectures that follow, and the pager
- [...file].ts publishes assets and trick modules byte for byte, so
  relative imports such as ../../assets/js/cards.js keep working

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012yR4PLoAq6MxUVq4Gb5QQT
- Drop the magic placeholder docs and sidebar; the course now has its
  pages under src/pages/magic.
- [course]/index.astro no longer generates /magic/, which is the course
  home page.
- Keep src/magic and src/pages/magic out of Tailwind's source scan, so
  their class names do not change the utility CSS (and its hash) that
  every other course ships. Every other site-dist/<course> is byte for
  byte what it was before this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012yR4PLoAq6MxUVq4Gb5QQT
How the course is laid out, how to add a lecture video or notes, how to
regenerate lecture content from the scripting package, and a Playwright
check of every page at 1280 and 390 pixels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012yR4PLoAq6MxUVq4Gb5QQT
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Courses/courses!1
No description provided.