Overview#
Chalkwell is a multi-page marketing website for an online course and cohort platform for independent teachers: potters, language tutors, fiddle players, bookkeepers and bakers who want to build a course, run small live cohorts, keep the class talking and get paid. The fictional Chalkwell, Inc. is based in Montpelier, Vermont, and works in Eastern time. This version is built with Next.js 16 (App Router), React 19, TypeScript and Tailwind CSS v4, and exports as a fully static site. This guide covers version 1.0.0. The template page, with a link to the live demo, is at freeframe.dev/templates/chalkwell.
The look is minimal and editorial, like a small-press catalog: a warm paper page, hairline and double rules, numbered sections, italic serif kickers, drawn course covers and portraits, and one mulberry accent. Headings are set in Ibarra Real Nova and body text in Ysabeau Office.
Quick start#
You need Node 24 and pnpm (corepack enable pnpm), or npm.
pnpm install
pnpm devThen visit http://localhost:3000. pnpm build writes the static site to out/, and pnpm start serves it.
Pages#
| Route | File | Purpose | Notable sections and features |
|---|---|---|---|
/ |
src/app/page.tsx |
Home | Course builder with drip calendar, four tools, upcoming cohorts, a teacher quote, numbers, three teacher stories, call to action |
/product |
src/app/product/page.tsx |
Product tour | Builder, cohort roster mockup, class discussion room, revenue calculator, "things we won't do" |
/pricing |
src/app/pricing/page.tsx |
Pricing | Monthly / yearly switch, four plans, plan estimator, comparison table, FAQ |
/teachers |
src/app/teachers/page.tsx |
Teacher stories | Subject filter with counts, ten stories with drawn portraits, quotes and numbers |
/courses |
src/app/courses/page.tsx |
Course showcase | Search, subject and format filters with counts, 14 courses with drawn covers, detail dialog with the next cohorts |
/guides |
src/app/guides/page.tsx |
Guides | Featured guide, newsletter form with the next issue date, product log, topic filter, ten back issues |
/company |
src/app/company/page.tsx |
Company | Story, three rules, team of six, office map, support hours note, open roles |
/start |
src/app/start/page.tsx |
Start teaching | Walkthrough slot picker in Eastern time, validated form, success panel with a CW-1234 style reference |
| 404 | src/app/not-found.tsx |
Not found | Links to the main pages and a drawn, half-erased chalkboard |
Project structure#
chalkwell/
src/app/ one folder per route, plus layout.tsx and not-found.tsx
src/app/layout.tsx the page frame: skip link, header, footer, live region, metadata defaults
src/app/globals.css Tailwind: color tokens, fonts and the small component layer
src/app/fonts.ts the two fonts, loaded with next/font/local
src/app/icon.svg the favicon
src/components/ header, footer and every interactive feature
CourseBuilder.tsx the course builder on the home page
Cohorts.tsx upcoming cohorts on the home page
RevenueCalculator.tsx revenue calculator (product page)
Pricing.tsx billing switch, plan prices and badges, estimator
TeacherStories.tsx subject filter and stories
Courses.tsx course search, filters, cards and the detail dialog
Guides.tsx topic filter, guide list and newsletter form
StartForm.tsx slot picker and walkthrough request form
live.tsx date line, year, trial end, next letter and support note, worked out in the browser
StartOver.tsx starts a page's filters over when its own menu link is clicked
art.tsx draws the portraits and course covers
src/data/site.ts all content the features read (COURSES, PLANS, STORIES, GUIDES, PEOPLE...)
src/data/nav.ts the menu links
src/lib/ the logic: outline, courses and cohorts, plans, time and holidays, storage, forms
src/fonts/ the font files and their licenses
public/img/ favicon.svg, og-image.svg, og-image.png
next.config.ts static export and DEMO_BASE_PATH
package.json scripts, dependencies and browser targets
README.md short introduction
DOCS.md this guide
CHANGELOG.md the template's own changelog
LICENSE.txt added to the downloadCustomizing#
Brand and colors#
Colors are tokens in the @theme block of src/app/globals.css, so each one is also a Tailwind class
(bg-paper-2, text-muted, border-mulberry-line):
| Token | Value | Used for |
|---|---|---|
--color-paper / --color-paper-2 |
#f6f2ea / #eee8dc |
Page background / alternate sections and table heads |
--color-card |
#fbf9f4 |
Raised panels and inputs |
--color-ink, --color-ink-soft, --color-muted |
#1b1a17, #48443d, #6a655b |
Text: headings and body, secondary, captions |
--color-rule / --color-rule-strong |
#d9d2c4 / #8e877a |
Hairlines / input borders and chart axes |
--color-mulberry / --color-mulberry-deep |
#7a2948 / #5e1f37 |
The accent: links, primary buttons, focus outlines, section numbers / hover |
--color-mulberry-soft / --color-mulberry-line |
#f2e4e8 / #d9b6c2 |
Tinted backgrounds and underlines behind the accent |
--color-sage, --color-ochre (and -soft) |
#5f6f58, #d1a253 |
Drawings and status marks only |
To change the accent, edit the four mulberry tokens:
--color-mulberry: #1f5a6b;
--color-mulberry-deep: #16434f;
--color-mulberry-soft: #e1ecef;
--color-mulberry-line: #a9c7cf;Button text on the accent is card (near white), so keep the accent dark. The logo mark (Logo in
src/components/icons.tsx), icon.svg, og-image.svg and a few drawings use #7a2948 directly; change them too.
The browser theme color is viewport.themeColor in src/app/layout.tsx.
The component classes (.btn-ink, .btn-mulberry, .kicker, .panel, .chip, .filter-btn, .seg, .slot
and the rest) are in the @layer components block of the same file.
Typography#
Headings, numbers and kickers use Ibarra Real Nova; body text, labels and buttons use Ysabeau Office. They
are self-hosted with next/font/local in src/app/fonts.ts, from the .woff2 files in src/fonts/ (the same files
Google Fonts serves the HTML version: Latin, plus Ysabeau Office's symbols file for the arrows), so the site makes no
requests to Google. Each face keeps its plain family name, so the CSS can name it directly:
const sans = localFont({
src: "../fonts/YsabeauOffice-latin.woff2",
weight: "400 700",
display: "swap",
fallback: ["Ysabeau Office"],
adjustFontFallback: false,
declarations: [{ prop: "font-family", value: "Ysabeau Office" } /* , unicode-range */],
});The families are set as --font-serif and --font-sans in src/app/globals.css. To swap a font, put its files in
src/fonts/, change the matching localFont() call (paths, weights and the family name in fallback and
declarations) and the variable.
Content#
Page text is in the route files under src/app/. Everything interactive reads from src/data/site.ts. The main
structures:
| Constant | What it holds |
|---|---|
COMPANY |
Name, timeZone (America/New_York), phone, email and supportHours (09:00 to 17:30, Eastern) |
CLOSED_DAYS, TRIAL_DAYS |
Extra closed days ("YYYY-MM-DD"); free trial length (14 days) |
ART |
Course cover drawings, inner SVG for a 200×130 box |
PEOPLE |
Teachers and team: name, town and portrait settings (skin, hair, style, top, bg, glasses) |
SUBJECTS, SUBJECT_TEACHERS, FORMATS |
Subject filters, how the stories count reads per subject, course formats (cohort, self) |
COURSES |
The 14 showcase courses: id, title, teacher, subject, format, weeks, lessons, hours, price, seats, level, art, bg, blurb, modules |
COHORTS |
Cohort calendar: leadDays: 7, count: 6, and the rotation of courses that start on successive Mondays |
OUTLINE_DEFAULT, OUTLINE_LIMITS |
The builder's starting outline and its limits (6 modules, 8 lessons each, 70-character titles, 1 to 240 minutes) |
PLANS, PROCESSING |
Plans with monthly and yearly prices, per-seat fee and limits; card processing (2.9% + 30¢ per seat) |
DEFAULT_PRICING, ESTIMATE_LIMITS |
Pricing estimator defaults and allowed ranges |
REVENUE_DEFAULT, REVENUE_LIMITS |
Revenue calculator defaults and allowed ranges |
STORIES |
Ten teacher stories, two per subject |
GUIDE_TOPICS, GUIDES, GUEST_AUTHORS |
Guide topics, the back issues (fixed past dates) and guest writers |
WALK_DAYS, WALK_TIMES, WALK_LENGTH_MIN |
Walkthrough slot picker |
Example: add a course. Give it a unique id, a teacher from PEOPLE, a subject from SUBJECTS, a format
from FORMATS and an art key from ART:
{
id: "rug-hooking", title: "Hooked Rugs From Wool Scraps", teacher: "fiorella", subject: "making", format: "self",
weeks: null, lessons: 9, hours: 4, price: 120, seats: null, level: "Beginner", art: "dye", bg: "#e3e8dc",
blurb: "Cut strips, hook a sampler and finish the edge, from wool you already have.",
modules: ["Wool and strips", "Hooking a sampler", "Finishing the edge"],
},Search, the counts and the detail dialog pick it up automatically. For a live cohort course, set weeks and
seats and add its id to COHORTS.rotation so it gets start dates. The page descriptions in each route's
metadata mention the number of courses; update them by hand.
The plan cards' features, the comparison table and the FAQ are JSX in src/app/pricing/page.tsx; prices and the
"Fits your estimate" badge come from PLANS. If you change a plan's limits in PLANS, update the card and table
rows to match.
Images and artwork#
All artwork is inline SVG drawn for this template: the course covers in ART, the portraits (drawn by
PortraitSvg in src/components/art.tsx from the settings in PEOPLE), the feature drawings, the product mockups,
the Montpelier map and the 404 chalkboard. There are no photos. If you add photos, keep the aspect ratios: covers
are 200×130 (about 3:2) and portraits are square, shown in a circle. Use asset() from src/lib/asset.ts for any
<img> path under public/, so it keeps working under a base path.
The social image is public/img/og-image.png (1200×630), rendered from og-image.svg. After editing the SVG,
regenerate the PNG with any SVG renderer. The favicon is src/app/icon.svg (a copy is in public/img/favicon.svg).
Navigation, header and footer#
The menu links are the NAV array in src/data/nav.ts; the header (src/components/SiteHeader.tsx) reads it for
the desktop and phone menus and marks the current page with aria-current="page". The footer's columns are written
out in src/components/SiteFooter.tsx. To add a page, create src/app/<route>/page.tsx, export metadata from
pageMetadata() and add an entry to NAV and, if you like, to the footer.
The date line above the header ([data-today]) shows today in Eastern time. The site is light only;
color-scheme: light is set in globals.css.
Features#
Course builder#
src/components/CourseBuilder.tsx, with the outline rules in src/lib/outline.ts (outlineFrom,
outlineTotals, moduleOpens). The builder starts from OUTLINE_DEFAULT: "Wheel-Throwing Foundations" with three
modules and 7 lessons, 2 h 26 min in all.
- Editing: the course title, module titles and lesson titles are text fields; lesson lengths are minutes from 1 to 240. A length outside that range is marked invalid and the total keeps the last good value, which comes back when you leave the field. An emptied title becomes "Untitled module" or "Untitled lesson".
- Reordering: each module and lesson has move up and move down buttons, labeled for screen readers with the row they move ("Move lesson 1.1, Wedging and preparing clay, down"). Focus stays on the moved row's button (or the other one at the end of the list), and the new position is announced ("It is now lesson 1.2.").
- Adding and removing: "Add a lesson" (up to 8 per module), "Add a module" (up to 6) and a remove button on each row; the last lesson of a module and the last module can't be removed. "Reset outline" restores the example.
- Drip scheduling: the "Drip schedule" switch (
aria-pressed) releases one module every 7 or 14 days, starting today. The preview lists the open date of each module and a month calendar marks them.
With the defaults and drip on, on Saturday, December 5, 2026 the line reads "Starts today, Saturday, December 5. A module opens every week; the last one on Saturday, December 19." The modules open Today, Sat, Dec 12 and Sat, Dec 19, with 1 h 4 min, 47 min and 35 min of video. Every 14 days moves the last one to Saturday, January 2. One more lesson makes 8 lessons, 2 h 41 min.
The outline is saved as chalkwell:outline and comes back on the next visit with the note "Picked up your saved
draft." The editor list is drawn again only after adding, moving or removing, so the field you are typing in keeps
its focus while the preview follows along.
Cohort calendar#
src/components/Cohorts.tsx, with the rules in src/lib/courses.ts (cohortStarts, courseStarts). Cohorts start
on Mondays at least COHORTS.leadDays (7) days after today, and a Monday that is a US federal holiday is skipped.
Each Monday runs one course from COHORTS.rotation, picked by the week, so the same Monday always shows the same
course. Seats left are worked out from the date and the course, so every visitor sees the same numbers, between 1
and the course's seats. Three or fewer seats left are shown in mulberry.
On Saturday, December 5, 2026 the six starts are: Dec 14 Spanish for the Kitchen Table (1 seat left of 10), Dec 21 Bookkeeping for Freelancers (7 of 20), Dec 28 Japanese for Your First Trip (8 of 14), Jan 4 Finding Your Singing Voice (8 of 8), Jan 11 Your First Federal Grant (7 of 16) and Jan 25 Italian Through Film (5 of 12); Monday, January 18 is skipped for Martin Luther King Jr. Day. The note above reads "Next start Monday, December 14. Cohorts begin on Mondays and skip federal holidays."
Revenue calculator#
src/components/RevenueCalculator.tsx, with the sums in src/lib/plans.ts (revenueFor, bestPlan). Inputs:
students per cohort (1 to 250), price per seat ($0 to $5,000), cohorts a year (1 to 52) and a plan.
Sales = students × price × cohorts
Chalkwell = plan price × 12 (monthly billing) + plan fee × sales
Processing = seats sold × (price × 2.9% + $0.30)
Take-home = sales − Chalkwell − processingThe processing rate comes from PROCESSING. The recommended plan is the one that leaves the most take-home among
the plans that fit the cohort size, with the reason:
| Students / price / cohorts | Result |
|---|---|
| 14 / $240 / 5 (default, Studio) | Sales $16,800, Chalkwell −$804 ($468 plan + 2% of sales), processing −$508, take-home $15,488, $221 per seat; best Studio, "Studio leaves you $384 more a year than School." |
| 8 / $120 / 4 | Best Slate, take-home $3,412 |
| 30 / $400 / 6 | Best School |
| 80 / $150 / 4 | "Only School fits 80 students in a cohort." |
"Use the best fit" switches the calculator to the recommended plan. A plan that is too small for the cohort says so under the result and in its row ("Over 60 students"). A field that isn't a whole number in range shows "Enter a whole number from 1 to 250." and the sums keep the last good number.
Pricing and plan estimator#
src/components/Pricing.tsx, with the rules in src/lib/plans.ts (recommend, loadEstimate). Prices are in
PLANS: Slate free with an 8% per-seat fee, Studio $39 a month or $32 billed yearly with 2%, School $99 or $82 with
no fee, Guild custom. The trial line shows today plus TRIAL_DAYS (14): on Saturday, December 5, 2026 it reads
"Saturday, December 19".
The estimator takes published courses, students per cohort and teachers (with − and + buttons) and recommends the first plan whose limits fit, with the reason the plan before it doesn't:
| Courses / students / teachers | Billing | Result |
|---|---|---|
| 3 / 14 / 1 (default) | Yearly | Studio, $32 a month, $384 billed yearly, saves $84; "Slate includes 1 published course." |
| 3 / 14 / 1 | Monthly | Studio, $39 a month, $468 a year, billed monthly |
| 1 / 12 / 1 | Any | Slate, $0 |
| 4 / 80 / 1 | Yearly | School, $82 a month, $984 billed yearly |
| 4 / 30 / 3 | Yearly | School; "Studio includes 1 teacher seat." |
| 4 / 30 / 8 | Any | Guild, Custom |
The estimate is saved (chalkwell:pricing) when you change it. URL parameters override what was saved:
?billing=monthly|yearly, ?courses=1–100, ?students=1–1000, ?teachers=1–50. The page writes only billing
back to the address bar, and only after you change something. "Start with this plan" links to /start?plan=<id>.
The FAQ uses native <details> elements.
Teacher stories#
src/components/TeacherStories.tsx. Subject buttons filter STORIES; the URL keeps the choice as ?type= (a key
of SUBJECTS: making, languages, music, work, food). Each subject has 2 of the 10 stories, and the count
reads, for example, "2 stories from language teachers". Unknown values show all stories.
Course showcase#
src/components/Courses.tsx. Search matches the title, description, teacher, subject, level and modules. Subject
buttons show counts (All 14, Making 4, Languages 3, Music 2, Work skills 3, Food 2) that follow the format and the
search; the format buttons pick "All formats", "Live cohorts" (9 courses) or "Self-paced" (5), and the count line
reads, for example, "9 live cohort courses". Searching "spanish" finds 1. The URL keeps ?subject=,
?format=cohort|self and ?q=. When nothing matches, "Show all courses" resets them.
Each card opens a native <dialog> (CourseDialog) with the cover, teacher, syllabus, price and, for live cohort
courses, the next three start dates from the cohort calendar with seats left. The URL keeps ?course=<id> while it
is open, so /courses?course=spanish-table opens straight to it. Escape, "Close" or a click outside returns focus to
the card's button.
Guides and newsletter#
src/components/Guides.tsx. GUIDES are listed newest first; topic buttons (All 10, Pricing 2, Teaching online 3,
Finding students 3, Running a school 2) keep the choice as ?topic=. Guides and the product log keep their real
past dates. The newsletter goes out on the first Thursday of each month; the form names the next one strictly after
today (nextLetterDay in src/lib/courses.ts), "Thursday, January 7" on December 5, 2026.
Support hours note#
SupportStatus in src/components/live.tsx, on /company and /start, with the rule in supportStatus() in
src/lib/time.ts. Using COMPANY.supportHours and Eastern time, it reads "Teacher support is open now, until 5:30
p.m. Eastern." on business days from 9:00 a.m. to 5:30 p.m., and otherwise "Teacher support opens
today/tomorrow/Monday at 9:00 a.m. Eastern.", skipping weekends, federal holidays and CLOSED_DAYS. The dot beside
it turns from sage to ochre when support is closed.
Walkthrough slot picker#
src/components/StartForm.tsx (walkDays). Days are the next WALK_DAYS (5) business days strictly after today in
Eastern time: never today, never a Saturday or Sunday, a US federal holiday or a date in CLOSED_DAYS. Each day
offers WALK_TIMES (9:30, 10:30 and 11:30 a.m., 1:00, 2:00, 3:00 and 4:00 p.m. Eastern). Some times show as taken
by a fixed pattern per date (slotTaken), and every day keeps at least three open. Below the slots, a note says
times are Eastern and, when the visitor's zone is different, gives the day's first time in their zone.
Examples: on Saturday, December 5, 2026 the days are Monday, December 7 to Friday, December 11. On Wednesday, December 23, 2026 they are December 24, 28, 29, 30 and 31 (Christmas Day is skipped). On Thursday, December 31, 2026 they start on Monday, January 4, 2027, because New Year's Day falls on a Friday.
Day and time buttons use aria-pressed; each day button tells screen readers how many times are open, and
picking a time is announced.
Menu, header and motion#
The mobile menu button in SiteHeader.tsx toggles #mobile-menu (aria-expanded, Escape closes). Sections with
reveal fade in once as they scroll into view (src/components/RevealController.tsx); with reduced motion they
show immediately. Clicking the menu link of the page you are on starts its filters and fields over, as a page load
does in the HTML version (StartOver.tsx).
Keeping the demo current#
Nothing dated goes stale. Everything "upcoming" is computed in the browser from today in Eastern time
(COMPANY.timeZone). The static HTML holds the text as written, and the live value replaces it after the page loads:
| Content | Rule | Switch |
|---|---|---|
| Drip calendar | Modules open from today, every 7 or 14 days | Builder controls |
| Cohort starts | Mondays at least 7 days out, skipping federal holidays | COHORTS |
| Walkthrough days | Next 5 business days after today | WALK_DAYS, WALK_TIMES, CLOSED_DAYS |
| Trial end date | Today plus 14 days | TRIAL_DAYS |
| Next newsletter | First Thursday of a month, after today | nextLetterDay in src/lib/courses.ts |
| Support note | Open now, or the next business day's opening time | COMPANY.supportHours |
| Date line and copyright year | Today | TodayText and YearText in src/components/live.tsx |
Federal holidays are worked out for any year by rule (federalHolidays() in src/lib/time.ts): New Year's Day,
Martin Luther King Jr. Day, Washington's Birthday, Memorial Day, Juneteenth, Independence Day, Labor Day, Columbus
Day, Veterans Day, Thanksgiving and Christmas Day. A holiday on a Saturday is observed the Friday before, one on a
Sunday the Monday after. Add office closures as "YYYY-MM-DD" strings in CLOSED_DAYS.
Guides, the product log, the company story and story "since" years keep their fixed past dates. For reviews and
screenshots, ?now=YYYY-MM-DDTHH:MM (read as Eastern time) pretends it is another moment, for example
/start?now=2026-12-23T10:00; turn it off with ALLOW_NOW_PARAM = false at the top of src/lib/time.ts.
Forms#
All forms validate in the browser with inline messages linked by aria-describedby, focus the first problem
and then show a success panel. A message clears as soon as the field is fixed. No form sends anything until you
connect it, and the success panels don't claim an email was sent. Both use useFormChecks() from
src/lib/use-form.ts, which takes the form, a check per field name and an onSuccess callback.
| Form | Where | Checks | Success |
|---|---|---|---|
Walkthrough request ([data-start-form]) |
src/components/StartForm.tsx |
A day and time, first and last name, email format, what you teach, how you teach today | "Thanks, {first name}. Your walkthrough request is in.", the time in Eastern, a reference like CW-4821, the email and subject, and what happens on the call |
Newsletter ([data-subscribe-form]) |
src/components/Guides.tsx |
Email format | "You’re on the list." with the next letter's date |
/start reads ?plan=slate|studio|school|guild to show "From your estimate: the Studio plan." and
?subject=making|languages|music|work|food to preselect what you teach. Phone, class size and the message (up to
500 characters, counted) are optional. "Request another time" clears the form for a new request.
Connect a form#
Send the data in the onSuccess callback you pass to useFormChecks() (the last argument in StartForm.tsx and in
SubscribeForm in Guides.tsx), and show the success panel only when the service answers OK. With Formspree:
async (f) => {
const response = await fetch("https://formspree.io/f/your-id", {
method: "POST",
headers: { Accept: "application/json" },
body: new FormData(f),
});
if (!response.ok) return; // show an error and keep the form
// then set the success state, as the callback does now
};The walkthrough's chosen slot is in the hidden slot field as YYYY-MM-DDTHH:MM in Eastern time, and the plan from
the pricing page in the hidden plan field.
If you remove static export (see Building and deploying), you can post to a Route Handler
instead, in src/app/api/walkthrough/route.ts:
export async function POST(request: Request) {
const form = await request.formData();
// validate, send the email or store the request, then answer
return Response.json({ ok: true, slot: form.get("slot") });
}Saved data (localStorage)#
All storage goes through safeStorage in src/lib/safe-storage.ts, which falls back to memory when the browser
blocks localStorage, so the page keeps working for the visit. Keys are in STORAGE_KEYS.
| Key | Shape | Validation on read |
|---|---|---|
chalkwell:outline |
{ "title": "…", "drip": true, "every": 7, "modules": [{ "title": "…", "lessons": [{ "title": "…", "min": 18 }] }] } |
outlineFrom(): 1 to 6 modules, 1 to 8 lessons each, string titles (trimmed to 70 characters), whole minutes from 1 to 240, every 7 or 14; anything else falls back to the example |
chalkwell:pricing |
{ "billing": "yearly", "courses": 3, "students": 14, "teachers": 1 } |
loadEstimate(): billing must be monthly or yearly; each number a whole number inside ESTIMATE_LIMITS |
"Reset outline" in the builder restores the example and removes chalkwell:outline. To clear either key, remove it
in the browser's developer tools (Application → Local Storage), or run:
["chalkwell:outline", "chalkwell:pricing"].forEach((key) => localStorage.removeItem(key));SEO and sharing#
Each page exports metadata from pageMetadata(title, description) in src/lib/metadata.ts, which sets the title,
description and Open Graph tags and keeps the social image. Set NEXT_PUBLIC_SITE_URL to your domain when you build,
so metadataBase in src/app/layout.tsx makes og:image an absolute URL (it defaults to
https://chalkwell.example). Regenerate public/img/og-image.png from the SVG if you change the name or colors. Add
src/app/sitemap.ts and src/app/robots.ts if your host doesn't create them.
Accessibility#
- Skip link, landmarks, one
<h1>per page andaria-current="page"in the menus. - Visible mulberry focus outlines, AA contrast on paper, and reduced motion respected.
- Builder changes, filter results, estimator results and slot choices are announced in a polite live region
(
#live-region, throughannounce()insrc/lib/announce.ts). - Filters, the billing switch, the drip switch and slot buttons use
aria-pressed; the course dialog is a native<dialog>; the FAQ uses<details>. - The builder's move buttons have labels that name the lesson or module, and keep focus after a move.
- The wide comparison table scrolls sideways inside a focusable region on small screens.
- After you follow a link, focus is not left on it, as after a full page load (
NavigationFocus.tsx). - Keep one
h1per page and label new inputs.
Building and deploying#
pnpm typecheck
pnpm lint
pnpm build # static site in out/
pnpm start # serves out/next.config.ts sets output: "export", so out/ can go on any static host, such as Netlify Drop, GitHub Pages or
Cloudflare Pages. On Vercel, import the repository and it deploys as is. To serve the site from a sub-folder, set
DEMO_BASE_PATH=/your/folder when you build. Internal links and asset() paths follow it. If you need server
features such as Route Handlers, remove output: "export" from next.config.ts and deploy to a host that runs
Next.js.
Tailwind scans the template folder (globals.css leaves out *.md, *.json and demo/), so classes in components
and in src/data/site.ts are picked up. Write class names out in full; Tailwind can't see one built from a template
expression such as `bg-${color}`.
Browser targets#
The browserslist field in package.json lists the oldest browsers the build supports (Chrome and Edge 111,
Firefox 113, Safari 16.4). All of them support oklch() colors, so the Tailwind palette ships as written instead of
being converted to lab(). Add older browsers there if you need them; the build then adds color fallbacks.
Troubleshooting#
- A new class has no effect: write the whole class name in a file under
src/, not built from pieces. - The builder shows an old outline: it's saved in
chalkwell:outline. Click "Reset outline" or remove the key. - The pricing estimate isn't the default: it's saved in
chalkwell:pricing, and URL parameters override it. Remove the key or open/pricingwithout parameters. - A cohort Monday or walkthrough day is missing: it is a federal holiday (or its observed day), a weekend, or
in
CLOSED_DAYSfor walkthroughs. - A course has no start dates: live cohort courses get dates only when their
idis inCOHORTS.rotation. - Dates look a day off: dates are computed in Eastern time. Change
COMPANY.timeZoneinsrc/data/site.tsfor another home zone, and the "Eastern" wording in the components and pages. - The date line or trial date shows the written text for a moment: they are worked out in the browser after the page loads, so the static HTML can't go stale. This is expected.
- Saved choices don't persist in a preview frame: some sandboxed frames block storage; the site then keeps state in memory for the visit only.
License#
Freeframe Commercial License: use it in unlimited websites and apps for yourself and your clients; it may not
be resold or redistributed as a template. The full terms, with your licensee details, are in LICENSE.txt and
at https://freeframe.dev/license#commercial. Third-party components keep their own licenses. Ibarra Real Nova
and Ysabeau Office are included under the SIL Open Font License (see src/fonts/). Chalkwell, its teachers,
courses, students and people are fictional.