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 is the Astro version: Astro 7 with TypeScript and Tailwind CSS v4, no UI framework, and a static build that runs on any host. It matches the HTML version page for page. 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. The site is light only.
Quick start#
Requirements: Node.js 24 or newer and pnpm (npm works too).
pnpm install
pnpm dev # http://localhost:4321With npm: npm install, then npm run dev.
| Command | What it does |
|---|---|
pnpm dev |
Development server at http://localhost:4321 with hot reload |
pnpm build |
Static site in dist/ |
pnpm preview |
Serve dist/ locally after a build |
pnpm check |
astro check: type-checks .astro files and TypeScript |
pnpm typecheck |
Generate Astro's types, then type-check with tsc (TypeScript 7) |
pnpm lint |
ESLint (TypeScript and Astro rules) |
pnpm build:demo |
Build for /demos/astro/chalkwell into demo/ (only used for the demo on freeframe.dev) |
Google Fonts load from the internet, so the fonts need a connection.
Pages#
| File | Route | Purpose and notable features |
|---|---|---|
src/pages/index.astro |
/ |
Home: course builder with drip calendar, four tools, upcoming cohorts, a teacher quote, numbers, three teacher stories, call to action |
src/pages/product.astro |
/product |
Product tour: builder, cohort roster mockup, class discussion room, revenue calculator, "things we won't do" |
src/pages/pricing.astro |
/pricing |
Monthly / yearly switch, four plans, plan estimator, comparison table, FAQ |
src/pages/teachers.astro |
/teachers |
Subject filter with counts, ten stories with drawn portraits, quotes and numbers |
src/pages/courses.astro |
/courses |
Search, subject and format filters with counts, 14 courses with drawn covers, detail dialog with the next cohorts |
src/pages/guides.astro |
/guides |
Featured guide, newsletter form with the next issue date, product log, topic filter, ten back issues |
src/pages/company.astro |
/company |
Story, three rules, team of six, office map, support hours note, open roles |
src/pages/start.astro |
/start |
Walkthrough slot picker in Eastern time, validated form, success panel with a CW-1234 style reference |
src/pages/404.astro |
404.html |
Links to the main pages and a drawn, half-erased chalkboard |
Project structure#
chalkwell/
astro.config.mjs site URL, base path, file-style output, Tailwind plugin
package.json scripts and dependencies
tsconfig.json Astro's strict TypeScript preset
eslint.config.mjs ESLint flat config (typescript-eslint, eslint-plugin-astro)
public/img/ favicon.svg, og-image.svg (source) and og-image.png (social image)
src/
pages/*.astro one file per page (see Pages)
layouts/Layout.astro <html>, <head> metadata, header, <main>, footer, live region, script import
components/
SiteHeader.astro date line, logo, main menu, "Start teaching", mobile menu
SiteFooter.astro footer columns, contact details, copyright year
Logo.astro the Chalkwell mark
ArrowIcon.astro the arrow on call-to-action buttons
CheckIcon.astro the check mark in plan lists
data/ content and settings, typed (see Content)
lib/site.ts site name, theme color and the url() helper
scripts/main.ts every interaction, in 16 numbered sections
styles/global.css Tailwind source: color tokens, fonts, small component layer
README.md short introduction
DOCS.md this guide
CHANGELOG.md version historyCustomizing#
Brand and colors#
Colors are tokens in the @theme block at the top of src/styles/global.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; the dev server picks up the change at once:
--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 in
src/components/Logo.astro, public/img/favicon.svg, public/img/og-image.svg and a few drawings use #7a2948
directly; change them too. The browser's theme-color is site.themeColor in src/lib/site.ts.
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 load from Google Fonts with one <link> in src/layouts/Layout.astro:
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Ysabeau+Office:wght@400;500;600;700&display=swap" />The families are set as --font-serif and --font-sans in src/styles/global.css. To swap fonts, change the
link and those two variables.
Content#
Page text is in the .astro pages. Lists that repeat (the plan cards, the comparison table, the pricing FAQ, the
home page's four tools and three stories, the company values, team and open roles, the guides product log) come
from src/data/pages.ts, and the menus from src/data/nav.ts. Everything interactive reads from the other files
in src/data/:
| File | Constant | What it holds |
|---|---|---|
company.ts |
COMPANY |
Name, timeZone (America/New_York), phone, email and supportHours (09:00 to 17:30, Eastern) |
company.ts |
CLOSED_DAYS, TRIAL_DAYS |
Extra closed days ('YYYY-MM-DD'); free trial length (14 days) |
people.ts |
ART |
Course cover drawings, inner SVG for a 200×130 box |
people.ts |
PEOPLE |
Teachers and team: name, town and portrait settings (skin, hair, style, top, bg, glasses) |
courses.ts |
SUBJECTS, SUBJECT_TEACHERS, FORMATS |
Subject filters, how the stories count reads per subject, course formats (cohort, self) |
courses.ts |
COURSES |
The 14 showcase courses: id, title, teacher, subject, format, weeks, lessons, hours, price, seats, level, art, bg, blurb, modules |
courses.ts |
COHORTS |
Cohort calendar: leadDays: 7, count: 6, and the rotation of courses that start on successive Mondays |
builder.ts |
OUTLINE_DEFAULT, OUTLINE_LIMITS |
The builder's starting outline and its limits (6 modules, 8 lessons each, 70-character titles, 1 to 240 minutes) |
pricing.ts |
PLANS, PROCESSING |
Plans with monthly and yearly prices, per-seat fee and limits; card processing (2.9% + 30¢ per seat) |
pricing.ts |
DEFAULT_PRICING, ESTIMATE_LIMITS |
Pricing estimator defaults and allowed ranges |
pricing.ts |
REVENUE_DEFAULT, REVENUE_LIMITS |
Revenue calculator defaults and allowed ranges |
stories.ts |
STORIES |
Ten teacher stories, two per subject |
guides.ts |
GUIDE_TOPICS, GUIDES, GUEST_AUTHORS |
Guide topics, the back issues (fixed past dates) and guest writers |
start.ts |
WALK_DAYS, WALK_TIMES, WALK_LENGTH_MIN |
Walkthrough slot picker |
Each file exports the types of its data (Course, Plan, Story, Guide...), so pnpm check flags a missing
or misspelled field.
Example: add a course to COURSES in src/data/courses.ts. 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 "14 courses" line and the meta
descriptions are written into courses.astro so they read right before the script runs; update them by hand.
The plan cards on pricing.astro take their names and starting prices from PLANS and their words from
PLAN_CARDS in src/data/pages.ts. If you change a plan in PLANS, update PLAN_CARDS, COMPARE_ROWS,
PRICING_FAQ and the revenue calculator's plan rows in product.astro 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/scripts/main.ts 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. Elements with data-portrait="<person id>" or
data-cover="<course id>" are filled in by initArt.
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 public/img/favicon.svg.
Navigation, header and footer#
The header is src/components/SiteHeader.astro and the footer src/components/SiteFooter.astro; both read their
links from src/data/nav.ts (MAIN_NAV for the desktop and mobile menus, FOOTER_NAV for the footer columns).
To add a page, create src/pages/<name>.astro with <Layout title=… description=… page="<name>" current="<name>">, add { key: "<name>", label: "…", href: "/<name>" } to MAIN_NAV, and the header marks it
with aria-current="page" when current matches its key (current="start" marks "Start teaching").
Write every internal link with url() from src/lib/site.ts (url("/pricing"), url("/start?plan=studio")), so
it keeps working under a base path. The date line above the header (data-today) shows today in Eastern time.
The site is light only; color-scheme: light is set on <html> in global.css.
Features#
Every feature lives in src/scripts/main.ts, which the layout loads on every page. Each part looks for its markup
([data-cb], [data-revenue], [data-pricing]...) and does nothing on pages without it.
Course builder#
index.astro (the #builder section of product.astro describes it and links here), section 6 of
src/scripts/main.ts (initBuilder, outlineFrom). 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.
- 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."
Cohort calendar#
index.astro, section 7 (cohortStarts, initCohorts). 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 (seatsLeft), 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#
product.astro (#payments), section 8 (revenueFor, bestPlan, initRevenue). 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 is stated next to the result and 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 plan menu and in its row ("Over 60 students").
Pricing and plan estimator#
pricing.astro, section 9 (recommend, loadPricing, initPricing). 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 a year |
| 4 / 30 / 3 | Yearly | School; "Studio includes 1 teacher seat." |
| 4 / 30 / 8 | Any | Guild, Custom |
The estimate is saved (chalkwell:pricing). URL parameters override it: ?billing=monthly|yearly,
?courses=1–100, ?students=1–1000, ?teachers=1–50. The page writes only billing back to the address bar.
"Start with this plan" links to /start?plan=<id>. The FAQ uses native <details> elements.
Teacher stories#
teachers.astro, section 10 (initStories). 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#
courses.astro, section 11 (initCourses). 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> 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 or "Close" returns focus to the card.
Guides and newsletter#
guides.astro, section 12 (initGuides, initLetter). 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), "Thursday, January 7" on December 5, 2026.
Support hours note#
company.astro and start.astro, section 13 (initSupportStatus). 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.
Walkthrough slot picker#
start.astro, section 15 (walkDays, initStart). 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 toggles #mobile-menu (aria-expanded, Escape closes). Sections with reveal fade in
once as they scroll into view; with reduced motion they show immediately.
Keeping the demo current#
Nothing dated goes stale. Everything "upcoming" is computed from today in Eastern time (COMPANY.timeZone):
| 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/scripts/main.ts |
| Support note | Open now, or the next business day's opening time | COMPANY.supportHours |
| Date line and copyright year | Today | [data-today], [data-year] |
Federal holidays are worked out for any year by rule (federalHolidays in section 3): 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/scripts/main.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.
| Form | Page | Checks | Success |
|---|---|---|---|
Walkthrough request (data-start-form) |
start.astro |
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) |
guides.astro |
Email format | "You’re on the list." with the next letter's date |
/start reads ?plan=slate|studio|school|guild to show the plan from the pricing page, 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.
Connecting a form service#
To use a form service such as Formspree, add the request inside setupForm in src/scripts/main.ts (section 14,
"Form helper"), where it calls onSuccess, and show the success panel only when the service answers OK:
fetch("https://formspree.io/f/your-id", { method: "POST", body: new FormData(form), headers: { Accept: "application/json" } })
.then((r) => { if (r.ok) onSuccess(form); else showError(); });showError is yours to write (for example, show a message next to the submit button). 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. The site is a static build, so there is no server code to add; if you would rather send
the forms to your own endpoint, add an Astro adapter and an API route, or point fetch at any serverless
function.
Saved data (localStorage)#
All storage goes through safeStorage in src/scripts/main.ts, which falls back to memory when the browser
blocks localStorage, so the page keeps working for the visit.
| Key | Shape | Validation |
|---|---|---|
chalkwell:outline |
{ "title": "…", "drip": true, "every": 7, "modules": [{ "title": "…", "lessons": [{ "title": "…", "min": 18 }] }] } |
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 } |
billing must be monthly or yearly; each number a whole number inside ESTIMATE_LIMITS |
"Reset outline" in the builder restores the example outline and removes chalkwell:outline. To clear either key,
remove it in the browser's developer tools (Application → Local Storage).
SEO and sharing#
Each page passes its title and description to <Layout> (the home page also an ogTitle). The layout writes
the description, a canonical URL, Open Graph tags and twitter:card. Canonical, og:url and og:image are
absolute URLs built from site in astro.config.mjs, which reads SITE_URL:
SITE_URL=https://www.example.com pnpm buildThe 404 page passes noindex. Add a sitemap with @astrojs/sitemap and a public/robots.txt 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). - 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.
- Keep one
h1per page and label new inputs.
Building and deploying#
pnpm build # static site in dist/
pnpm preview # preview dist/ locallydist/ is plain HTML, CSS and JavaScript. Tailwind is compiled by @tailwindcss/vite during the build, so there
is no separate CSS step; it scans src/ for class names, including the strings in src/scripts/main.ts, so
classes must be written out in full. Pages are written as pricing.html rather than pricing/index.html
(build.format: "file" in astro.config.mjs), and links point to /pricing without a trailing slash. Netlify,
Cloudflare Pages and GitHub Pages serve /pricing from pricing.html automatically; Vercel does with cleanUrls
(below).
- Netlify / Cloudflare Pages: build command
pnpm build, publish directorydist. - Vercel: import the repository; it detects Astro and static output needs no adapter. Add a
vercel.jsonwith{ "cleanUrls": true }so/pricingservespricing.html. - GitHub Pages: use the official Astro GitHub Action.
For a project site (
username.github.io/repo), build withDEMO_BASE_PATH=/repo. - Any static host: upload the contents of
dist/. If the host doesn't map/pricingtopricing.html, changebuild.formatto"directory"inastro.config.mjs.
To serve the site from a sub-folder, set DEMO_BASE_PATH when building, e.g.
DEMO_BASE_PATH=/chalkwell pnpm build. It becomes Astro's base, and every link written with url() (including
the links the script writes: course links in the cohort calendar and stories, and the estimator's "Start with this
plan") includes it.
demo/ (if present) is the build used for the freeframe.dev demo; you can delete it.
TypeScript 7 setup#
package.json installs two TypeScript packages on purpose. @typescript/native is TypeScript 7 and provides the
tsc that pnpm typecheck runs. typescript is an alias for @typescript/typescript6, the TypeScript 6 API that
astro check and typescript-eslint load. When those tools support TypeScript 7, replace both with a single
typescript@7. tsconfig.json extends Astro's strict preset.
Troubleshooting#
- A new class has no effect: Tailwind only sees whole class names in
src/. Write"bg-mulberry", not`bg-${color}`. - Links 404 on the host: the host doesn't map
/pricingtopricing.html. UsecleanUrlson Vercel, or switchbuild.formatto"directory". - 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/company.tsfor another home zone, and the "Eastern" wording insrc/scripts/main.tsand the pages. - Fonts look different offline: Ibarra Real Nova and Ysabeau Office come from Google Fonts and need a connection.
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 provided by Google Fonts under the SIL Open Font License. Chalkwell, its teachers,
courses, students and people are fictional.