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 Nuxt version: Nuxt 4, Vue 3 single-file components, TypeScript and Tailwind CSS v4, generated as a fully static site. It has the same pages, design and interactions as the HTML version. 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#
-
Unzip the download and open a terminal in the folder.
-
Install and start the development server:
shpnpm install pnpm dev -
Visit
http://localhost:3000. Edit files inapp/and the page reloads.
Requirements: Node.js 24 and pnpm. pnpm install also runs nuxt prepare, which writes the types and the ESLint
config to .nuxt/. The fonts are bundled, so nothing loads from the internet.
| Command | What it does |
|---|---|
pnpm dev |
Development server with hot reload |
pnpm generate |
Static site in .output/public/ |
pnpm build |
Node.js server build in .output/ (pages still prerendered) |
pnpm preview |
Serve the last build locally |
pnpm lint |
ESLint |
pnpm typecheck |
nuxt prepare and vue-tsc |
Pages#
| Route | File | Purpose and notable features |
|---|---|---|
/ |
app/pages/index.vue |
Home: course builder with drip calendar, four tools, upcoming cohorts, a teacher quote, numbers, three teacher stories, call to action |
/product |
app/pages/product.vue |
Product tour: builder, cohort roster mockup, class discussion room, revenue calculator, "things we won't do" |
/pricing |
app/pages/pricing.vue |
Monthly / yearly switch, four plans, plan estimator, comparison table, FAQ |
/teachers |
app/pages/teachers.vue |
Subject filter with counts, ten stories with drawn portraits, quotes and numbers |
/courses |
app/pages/courses.vue |
Search, subject and format filters with counts, 14 courses with drawn covers, detail dialog with the next cohorts |
/guides |
app/pages/guides.vue |
Featured guide, newsletter form with the next issue date, product log, topic filter, ten back issues |
/company |
app/pages/company.vue |
Story, three rules, team of six, office map, support hours note, open roles |
/start |
app/pages/start.vue |
Walkthrough slot picker in Eastern time, validated form, success panel with a CW-1234 style reference |
| 404 | app/error.vue |
Links to the main pages and a drawn, half-erased chalkboard (generated as 404.html) |
Project structure#
chalkwell/
app/
app.vue <NuxtLayout><NuxtPage /></NuxtLayout>, pages keyed by path and query
error.vue 404 page
router.options.ts writes query strings the way the HTML version does
layouts/default.vue skip link, header, page, footer, live region (#live-region)
pages/ one file per page (index, product, pricing, teachers, courses, guides, company, start)
components/
SiteHeader.vue date line, main menu, phone menu, header rule on scroll
SiteFooter.vue footer columns, contact details, copyright year
CourseBuilder.vue the hero course builder with drip scheduling and its preview (home and product)
CohortCalendar.vue the upcoming cohorts section on the home page
RevenueCalculator.vue the product page's revenue calculator
CoverArt.vue, PortraitArt.vue drawn course covers and portraits
LogoMark.vue, ArrowIcon.vue, CheckIcon.vue, CbIcon.vue the logo mark and small icons
composables/
useClock.ts the site's clock: now (or ?now=), today and the time in Eastern time
useForm.ts form validation and success panels
useSupportStatus.ts the support hours note
usePageSeo.ts per-page title, description, canonical and Open Graph tags
useCurrentPage.ts aria-current for menu links
useAfterRestore.ts puts controls back after the browser restores a page
data/
site.ts content and settings: courses, cohorts, plans, stories, guides, people, walkthrough times
nav.ts main menu items
utils/
time.ts Eastern dates, time zone math, federal holidays, business days, ?now= preview
cohorts.ts cohort start dates and seats left
art.ts portrait and cover drawings
format.ts money, plurals, runtimes, reference codes
safeStorage.ts localStorage with an in-memory fallback, storage keys (KEYS)
url.ts reading and writing URL parameters
announce.ts screen reader announcements
plugins/
clock.client.ts starts the clock once the page has hydrated
reveal.client.ts scroll reveal animation
same-page.client.ts links to the page already showing start it afresh, like a page load
blur-after-navigation.client.ts no link left focused after Back
stable-build.server.ts reproducible builds
assets/css/main.css Tailwind import, fonts, color tokens, component classes
assets/fonts/ Ibarra Real Nova and Ysabeau Office (woff2) with their OFL license texts
public/img/ favicon.svg, og-image.png (social image), og-image.svg (its source)
nuxt.config.ts base path, head defaults, SITE_URL, prerendered routes, Tailwind
eslint.config.mjs, tsconfig.json, pnpm-workspace.yaml
package.json, README.md, DOCS.md, CHANGELOG.mdCustomizing#
Brand and colors#
Colors are tokens in the @theme block of app/assets/css/main.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
(app/components/LogoMark.vue), public/img/favicon.svg, og-image.svg and a few drawings use #7a2948
directly; change them too. theme-color is set in nuxt.config.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. Both
are self-hosted: the @font-face rules at the top of app/assets/css/main.css load the woff2 files in
app/assets/fonts/ under their real family names, and the @theme block sets them as --font-serif and
--font-sans:
@font-face {
font-family: "Ysabeau Office";
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url("../fonts/YsabeauOffice-latin.woff2") format("woff2");
}YsabeauOffice-symbols.woff2 adds the arrows (→) used on the 404 page. To swap a font, put its woff2 files in
app/assets/fonts/, change the @font-face rules and the family name in --font-serif or --font-sans.
Content#
Page text is in the page files (app/pages/*.vue) and the components. Everything interactive reads from
app/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 "14 courses" wording in the page's
introduction and meta description is written into app/pages/courses.vue; update it by hand.
The plan cards, comparison table and FAQ in app/pages/pricing.vue are written in the page. If you change a plan in
PLANS, update the cards, the table rows and the revenue calculator's plan rows in
app/components/RevenueCalculator.vue to match.
Images and artwork#
All artwork is inline SVG drawn for this template: the course covers in ART (drawn by CoverArt.vue), the
portraits (drawn by portraitInner in app/utils/art.ts from the settings in PEOPLE, shown by
PortraitArt.vue), 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. Files in public/ need the base path when you link them from a template:
:src="`${$config.app.baseURL}img/photo.jpg`".
ART strings are trusted SVG markup rendered with v-html; only put your own drawings there, never text that
visitors can enter.
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 main menu is NAV in app/data/nav.ts; app/components/SiteHeader.vue renders it in the desktop menu and the
phone menu, and marks the current page with aria-current="page" (useCurrentPage()). The footer columns are in
app/components/SiteFooter.vue. To add a page, create app/pages/<route>.vue with a <main id="main"> and a
usePageSeo({ title, description, page }) call, add the route to routes in nuxt.config.ts (so it is
prerendered), then add it to NAV and the footer. Internal links are <NuxtLink to="/pricing">, which adds the base
path.
The date line above the header (data-today) shows today in Eastern time. The site is light only.
Features#
Dates and the static build#
The generated pages can't know the visitor's date, time zone, URL parameters or saved choices, so everything that
depends on them is filled in once the page has hydrated. useClock() in app/composables/useClock.ts is the
site's clock: null in the generated HTML, then set by app/plugins/clock.client.ts. Until then, pages show the
dates written for Saturday, December 5, 2026 (the build day of version 1.0.0, BUILD_DAY in app/utils/time.ts),
and the real values follow without a hydration mismatch. Components read window.location and localStorage in
onMounted() or in event handlers, never while rendering.
Course builder#
app/components/CourseBuilder.vue, on the home page (/product#builder describes it and links there). It starts from
OUTLINE_DEFAULT: "Wheel-Throwing Foundations" with three modules and 7 lessons, 2 h 26 min in all.
outlineFrom checks an outline (the default or a saved one) and turns it into the builder's state.
- 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#
app/components/CohortCalendar.vue and cohortStarts in app/utils/cohorts.ts. 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#payments, app/components/RevenueCalculator.vue (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 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#
app/pages/pricing.vue (recommend, loadPricing). 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#
app/pages/teachers.vue. 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#
app/pages/courses.vue. 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#
app/pages/guides.vue. 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#
app/composables/useSupportStatus.ts, on /company and /start. 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#
app/pages/start.vue (walkDays, slotTaken). 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 phone menu button (#menu-toggle) opens #mobile-menu (aria-expanded; Escape closes it and returns focus to
the button, and it closes when the window grows to desktop width). The header gets a rule once the page scrolls.
Sections with reveal fade in once as they scroll into view (app/plugins/reveal.client.ts); with reduced motion
they show immediately.
Links are client-side navigations. A link to the page already showing (the Courses menu item on a filtered courses
page, for example) starts that page afresh at the top, like a page load in the HTML version
(app/plugins/same-page.client.ts and the page key in app/app.vue).
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 app/pages/guides.vue |
| Support note | Open now, or the next business day's opening time | COMPANY.supportHours |
| Date line and copyright year | Today | SiteHeader.vue, SiteFooter.vue |
Federal holidays are worked out for any year by rule (federalHolidays in app/utils/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 app/utils/time.ts.
Forms#
All forms validate in the browser with inline messages linked by aria-describedby and aria-invalid on the field,
focus the first problem and then show a success panel. A message clears as soon as the field is fixed. The helper
is useForm in app/composables/useForm.ts. 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.vue |
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.vue |
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.
To connect a form service such as Formspree, send the request in the submit listener in
app/composables/useForm.ts, where it calls onSuccess, and show the success panel only when the service answers
OK:
form.addEventListener("submit", async (e) => {
e.preventDefault();
// ...the checks above, unchanged...
const response = await fetch("https://formspree.io/f/your-id", {
method: "POST",
body: new FormData(form),
headers: { Accept: "application/json" },
});
if (!response.ok) return; // keep the form; show your own error message here
onSuccess(form);
});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.
With pnpm build (a Node.js server build) you can post to a server route instead: add
server/api/walkthrough.post.ts with
export default defineEventHandler(async (event) => { const body = await readFormData(event); ... }) and pass the
data to your email or calendar service.
Saved data (localStorage)#
All storage goes through safeStorage in app/utils/safeStorage.ts, which falls back to memory when the browser
blocks localStorage, so the page keeps working for the visit. The keys are in KEYS in the same file.
| Key | Shape | Validation |
|---|---|---|
chalkwell:outline |
{ "title": "…", "drip": true, "every": 7, "modules": [{ "title": "…", "lessons": [{ "title": "…", "min": 18 }] }] } |
outlineFrom in CourseBuilder.vue: 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 } |
loadPricing in pricing.vue: billing must be monthly or yearly; each number a whole number inside ESTIMATE_LIMITS |
"Reset outline" in the builder restores the example outline. To clear either key, remove it in the browser's developer tools (Application → Local Storage).
SEO and sharing#
Each page sets its title, description and Open Graph tags with usePageSeo() from app/composables/usePageSeo.ts,
which also adds a canonical link. URLs are absolute: set SITE_URL to your domain when you build
(SITE_URL=https://www.example.com pnpm generate), so og:image (/img/og-image.png) and the canonical links point
at your site, which most social sites require. The 404 page is marked noindex. Add a public/robots.txt and a
sitemap (by hand, or with a module such as @nuxtjs/sitemap) if you want 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-regionin the layout, written byannounce()inapp/utils/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.
- Keep one
h1per page and label new inputs.
Building and deploying#
pnpm generate writes a static site to .output/public/, with every route listed in routes in nuxt.config.ts
prerendered to <route>.html (pricing.html, served at /pricing) and the 404 page to 404.html:
- Netlify / Cloudflare Pages / Vercel: build command
pnpm generate, publish directory.output/public. - Any static host: upload the contents of
.output/public/. The host should serve/pricingfrompricing.html(most do) and404.htmlfor unknown paths.
To serve from a sub-folder, build with DEMO_BASE_PATH=/school pnpm generate; nuxt.config.ts turns it into
app.baseURL, which every link, script and asset uses. pnpm build:demo does this for the freeframe.dev demo
(demo/, which you can delete).
Tailwind scans the source files for class names; keep each class name whole (not built from pieces such as
`bg-${color}`), or it won't be generated.
TypeScript setup#
typescript is installed as an alias of @typescript/typescript6, the TypeScript 6 API that vue-tsc needs.
tsconfig.json only references the configs Nuxt writes to .nuxt/, so run pnpm install (or nuxt prepare)
before pnpm typecheck or pnpm lint.
Troubleshooting#
- New classes have no effect: class names built from pieces aren't generated; write them out in full.
- 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.timeZoneinapp/data/site.tsfor another home zone, and the "Eastern" wording in the pages. - A new page shows the 404 page after
pnpm generate: add its route toroutesinnuxt.config.ts. - A hydration warning after editing a component: values that depend on the clock, the URL or storage must be
read in
onMounted()(or come fromuseClock()), not while the component renders. pnpm lintcan't find.nuxt/eslint.config.mjs: runpnpm installorpnpm typecheckfirst.
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 app/assets/fonts/). Chalkwell, its
teachers, courses, students and people are fictional.