Freeframe

Documentation

Lintel

v1.0.0Updated Nov 29, 2026An architect's portfolio drawn like a construction set, with interactive plans, sections and elevations for every project and a brief builder that plans your timeline.

Overview#

Lintel is a multi-page portfolio website for an architecture practice: an architect's or small architecture firm's site with projects, drawings, the team, the process and a way to start a project. The fictional Lintel Architecture is a six-person practice at 206 Winnebago Street in Decorah, Iowa, working in Central time (America/Chicago) on houses, renovations, cabins and small civic buildings across northeast Iowa and the Driftless. This is the Next.js version: Next.js 16 with the App Router, React 19, TypeScript and Tailwind CSS v4, exported 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/lintel.

The look is an architect's drawing set: warm drafting paper with a measured 12-pixel grid, graphite linework, hairline rules, one accent (blueprint blue), sheet numbers such as A-101 as section labels, title blocks, dimension lines and north arrows. Every project drawing (plan, section, elevation and axonometric) is generated as SVG from the project's data, so each project has its own set. A dark mode turns the set into a blueprint at night.

Quick start#

  1. Unzip the download and open a terminal in the folder.

  2. Install and start the development server:

    sh
    pnpm install
    pnpm dev
  3. Visit http://localhost:3000. Edit files in src/ and the page reloads.

Requirements: Node.js 24 and pnpm (npm works too: npm install, npm run dev). The fonts are bundled, so nothing loads from the internet.

Command What it does
pnpm dev Development server with hot reload
pnpm build Static export to out/
pnpm start Serve out/ locally
pnpm lint ESLint
pnpm typecheck Route types and TypeScript

Pages#

Route File Purpose and notable features
/ src/app/page.tsx Home (sheet A-000): axonometric hero that draws itself with a title block dated today, four featured projects, the practice in brief, recent recognition, projects on the boards (elevations), the next design start, two journal notes
/projects src/app/projects/page.tsx Projects (A-100): all eleven projects as cards with axonometrics, type and status filters, four sorts, starred only, a county diagram with numbered pins; filters kept in the URL
/project src/app/project/page.tsx One project, ?p=<slug>: facts, axonometric, a drawing viewer with Plan, Section and Elevation tabs, room hotspots and a room schedule, the story, collaborators, recognition, a materials schedule, previous and next project; a "not found" state
/practice src/app/practice/page.tsx Practice (G-001): principals and team with drawn monograms, approach, values, an elevation of the studio building, awards and publications
/process src/app/process/page.tsx Process (G-002): phase durations by project type with a bar chart, the six phases (what we do, what you do, what you get), FAQs
/start src/app/start/page.tsx Start a project (G-003): six-step brief builder, a result with a phased timeline and three checks, and a first meeting request with time slots
/journal src/app/journal/page.tsx Journal (G-004), ?post=<slug>: seven notes with a subject filter; a note page with its drawing, body and older/newer links; a "not found" state
/contact src/app/contact/page.tsx Contact (G-005): address, hours with a live open or closed status and the next holiday closure, a drawn map of downtown Decorah, a contact form
404 src/app/not-found.tsx Not found (A-404): a plan with a missing room and links back

Project structure#

lintel/
  src/
    app/
      layout.tsx             <html>, the boot script (theme, .js class), header, footer, live region, metadata defaults
      page.tsx               home; each route folder has its own page.tsx (projects, project, practice, process,
                             start, journal, contact)
      not-found.tsx          the 404 page
      fonts.ts               Tenor Sans, Inria Sans and Syncopate with next/font/local
      globals.css            Tailwind import, @theme tokens, dark mode, the component layer and the drawing styles
      icon.svg               favicon (the logo mark)
    components/
      SiteHeader.tsx         header, navigation, dark mode switch, phone menu
      SiteFooter.tsx         footer title block with the sheet index, hours and open status
      LiveDates.tsx          dates worked out from today: YearText, TodayText, YearsPractice, NextStart, ReplyBy,
                             NextHoliday, OpenStatus
      ProjectCard.tsx        project card and StatusChip
      Stars.tsx              StarButton and StarCount
      ProjectsBrowser.tsx    /projects filters, sorts, starred only, list and county diagram
      ProjectView.tsx        /project: the project, the drawing viewer and the "not found" state
      ProcessView.tsx        /process: the type switch, totals, chart and phases
      BriefBuilder.tsx       /start: the brief, its result and the first meeting request
      JournalView.tsx        /journal: the index with subjects, a note, the "not found" state
      ContactForm.tsx        /contact form and success panel
      Rows.tsx               AwardRow and PostCard
      icons.tsx              LogoMark, ArrowIcon, StarIcon
      RevealController.tsx   scroll reveals (.reveal)
      NavigationSync.tsx     tells address readers when the router moves
      NavigationFocus.tsx    clears focus after a client-side navigation, as a page load does
      use-after-restore.ts   keeps form controls in step after Back or a reload
    data/
      lintel.ts              all content and settings, with their types (see Content)
      nav.ts                 header menu and footer sheet index
    lib/
      drawings.ts            the drawing generator: plan, section, elevation, axonometric, county map, journal art,
                             monograms
      art.ts                 the hand-drawn SVGs: home hero, studio elevation, downtown map, 404 plan
      time.ts                Central time, federal holidays, design starts, meeting slots, seasons, studio hours
      brief.ts               the brief's answers, their validation and computeBrief()
      stars.ts               starred projects (lintel:starred)
      client.ts              browser-only hooks: useNow, useParams, useSearch, setParams, announce
      safe-storage.ts        localStorage with an in-memory fallback, and KEYS
      site.ts                lookups: projectBySlug, personById, projectNumber, sortedPosts
      format.ts              has(), plural(), money(), sqft(), feet()
      metadata.ts            pageMetadata(): title, description, Open Graph
      asset.ts               asset() and pageUrl(): the base path for files and generated links
      theme.ts               the theme-color values
      title.ts               useDocumentTitle(): the tab title for the project or note shown
    fonts/                   the woff2 files and their license texts
  public/img/                og-image.png (and its og-image.svg source), favicon.svg
  next.config.ts             static export, base path
  package.json, pnpm-workspace.yaml, tsconfig.json, eslint.config.mjs, postcss.config.mjs
  README.md, DOCS.md, CHANGELOG.md

Customizing#

Brand and colors#

All colors are tokens in the @theme block of src/app/globals.css, so Tailwind generates bg-paper, text-blue, border-ink and so on. Dark mode redefines the same tokens under :root.dark, so you rarely need dark: classes.

Token Light Dark Used for
--color-paper / --color-paper-2 #f4f1e9 / #ebe6da #11161d / #17202a Page / bands, roofs in drawings
--color-card #faf8f2 #1a232e Sheets, cards, inputs
--color-ink, --color-ink-soft, --color-ink-faint #23262b, #484c53, #5f636a #ebe7dd, #c0bcb2, #a09d95 Text and linework
--color-line / --color-line-strong #d3cdbf / #8d887c #2b3542 / #66717f Hairlines and the grid / inputs, dimensions
--color-blue, --color-blue-deep, --color-blue-soft #1d4f8f, #143b6d, #dde5ef #8fb5ea, #b7d0f3, #1f3048 The accent: links, buttons, sheet numbers, tags
--color-on-blue #faf8f2 #10161d Text on blue
--color-glass #c9d7e6 #2c4561 Glazing and rivers in drawings
--color-danger #a3361a #ff9d85 Form errors

To change the accent, edit both values of --color-blue (and its -deep and -soft partners):

css
@theme {
  --color-blue: #8a3b24; /* brick */
  --color-blue-deep: #6b2c1a;
  --color-blue-soft: #f1e1d9;
}

If you change the paper color, also change THEME_COLORS in src/lib/theme.ts (the browser bar color, set by viewport in src/app/layout.tsx and by the dark mode switch).

Typography#

Three families, self-hosted from src/fonts/ with next/font/local in src/app/fonts.ts. They are the exact Latin files the HTML version loads from Google Fonts, so lines wrap the same way:

  • Tenor Sans (font-display): headings and large numbers.
  • Inria Sans 300, 400, 700 and italic 400 (font-sans): body text.
  • Syncopate 400 and 700 (font-label): sheet numbers, labels and the text inside drawings, like wide drafting lettering.

Each face is declared under its plain family name (declarations: [{ prop: "font-family", value: "Syncopate" }], with fallback: ["Syncopate"] and adjustFontFallback: false), so the --font-* tokens in globals.css and the drawings can name the family directly. To swap a family, put its woff2 files in src/fonts/, change the localFont call (file, weights, the family name in declarations and fallback) and the matching --font-* token.

Content#

Text that only appears once is in the page files. Everything listed or computed lives in src/data/lintel.ts, with a TypeScript type for each structure:

Constant What it holds
STUDIO Name, address, phone, email, timeZone: "America/Chicago", founded: 2011, and hours (Mon–Thu 8:30–17:30, Fri 8:30–15:00)
TYPES Project types: residential, civic, renovation, small (shown as "Small buildings")
STATUSES built, construction ("In construction"), design ("In design")
SORTS recent, oldest, largest, name
COUNTIES, RIVERS, TOWNS The county diagram on /projects, in miles from the northwest corner of Howard County. Each county and town has a label position chosen to stay clear of the pins (towns also have an anchor); the studio (studio: true) is a square with a leader line to its label
PROJECTS Eleven projects with facts, story, collaborators, awards and the data for every drawing (below)
PEOPLE Six people: id, name, role, group (principal or team), initials, since, bio, fact
AWARDS, PUBLICATIONS Past recognition with real dates (YYYY-MM-DD) and a project slug
PHASES The six phases with weeks per brief type (house, renovation, small, civic) and the copy for each
FAQS Questions and answers on /process
BRIEF Brief builder options: types, sites (with extraWeeks), sizes (with mid and factor), budgets (with mid), costPerSqFt, priorities (with a note), maxPriorities: 3, seasonCount: 8, seasonLeadDays: 182
CAPACITY leadDays: 21, queueWeeks per type (civic: 8, others 0) and a note
CONSULT First meetings: days: [2, 3, 4] (Tue–Thu), times: ["10:00", "15:00"], leadDays: 3, count: 6, and modes (studio, site, video)
POSTS Seven journal notes: slug, date, tag, author (a PEOPLE id), optional project, title, dek, body paragraphs

The project slugs, in order (their sheet numbers are A-101 to A-111): trout-run-house, canoe-creek-farmhouse, turkey-river-library, burr-oak-meeting-house, yellow-river-cabin, winnebago-alley-house, arcade-block-storefront, paint-creek-house, mcgregor-bluff-house, castalia-township-hall, calmar-seed-barn. Four have featured: true and appear on the home page; the four that aren't built have a phase line ("This week") and appear in "Currently on the boards".

Adding a project

Copy a project object in PROJECTS and change it (the Project type in the same file lists every field). Drawing data is in feet:

ts
{
  slug: "bluff-sauna", name: "Bluff Sauna", town: "Decorah", county: "Winneshiek",
  map: [42, 12],                 // position on the county diagram, in miles
  type: "small", status: "built", year: 2026, area: 140, featured: false,
  client: "...", summary: "...", story: ["..."], facts: { stories: "1", structure: "...", energy: "..." },
  collaborators: ["..."], awards: [],
  plan: {
    label: "Floor plan", north: 0,                      // north arrow rotation in degrees
    outline: [[0, 0], [10, 0], [10, 14], [0, 14]],      // exterior wall
    rooms: [
      { name: "Hot room", x: 0, y: 0, w: 10, h: 8, note: "..." },
      { name: "Deck", x: 0, y: 14, w: 10, h: 6, outdoor: true, note: "..." },
    ],
    windows: [[2, 0, 8, 0]],                            // wall segments x1, y1, x2, y2
    doors: [[0, 10, 3, 0]],                             // hinge x, y, radius, start angle (0 east, 90 south)
  },
  section: { width: 10, profile: [[0, 0], [10, 0], [10, 8], [5, 12], [0, 8]], levels: [{ z: 0, label: "Floor" }], spaces: [{ x: 5, z: 4, name: "Hot room" }] },
  elevation: { label: "South elevation", width: 10, profile: [[0, 0], [10, 0], [10, 8], [5, 12], [0, 8]], cladding: "board",
               openings: [{ x: 3.5, z: 0, w: 3, h: 7, kind: "door" }], tags: [{ code: "M1", x: 2, z: 5 }] },
  axon: { depth: 14 },
  materials: [{ code: "M1", name: "Cedar siding", spec: "...", where: "..." }],
}

Optional drawing fields: plan.existing (an existing building drawn hatched), section.floors (floor lines), section.steps, section.piers, section.ground (a polyline), section.below (a dashed basement or crawl space), elevation.lines (eaves, cornices), elevation.base (a base band with its own cladding), elevation.piers. Cladding types: board, batten, lap, metal, brick, stone, concrete. Opening kinds: window, glass, door, garage, transom, screen, round. A room's area is w × h; area on the project is the gross conditioned area you quote, which can include other floors.

Images and artwork#

There are no photos. All drawings are SVG:

  • Project drawings are generated in src/lib/drawings.ts (drawPlan, drawSection, drawElevation, drawAxon, drawCountyMap) as SVG markup, which the components put in the page with dangerouslySetInnerHTML. Sheets are drawn into a 600 × 420 viewBox (axonometrics 600 × 380 or 340) and scaled to fit, so they stay sharp at any width. The classes they use (.dwg, .wall, .t-room…) are styled in globals.css. To use photos instead, replace the drawing <div> in src/components/ProjectCard.tsx with an <img src={asset("/img/...")}> at about a 16:10 ratio.
  • Hand-drawn SVG is in src/lib/art.ts: the home hero axonometric (HERO_AXON, inside .axo), the studio elevation on /practice (STUDIO_ELEVATION), the downtown map on /contact (DOWNTOWN_MAP) and the 404 plan (MISSING_PLAN).
  • Monograms for people are generated by monogram(), each with its own motif (gable, arch, lintel, stair, circle, pediment).
  • Journal art: a note about a project shows its axonometric; the others get a drawing for their subject (postArt()).
  • Social image: public/img/og-image.svg is the source and public/img/og-image.png (1200 × 630) is what pages use. Regenerate the PNG after editing the SVG (any SVG to PNG converter works; keep 1200 × 630).
  • Favicon: src/app/icon.svg (Next.js serves it as the page icon).

The header is src/components/SiteHeader.tsx and the footer src/components/SiteFooter.tsx; both are in the layout, so every page has them. Menu items come from MAIN_NAV and the footer's sheet index from SHEET_INDEX in src/data/nav.ts. To add a page, create src/app/<route>/page.tsx and add it to both lists. The current page gets aria-current="page" from the address (a project page counts as Projects).

Dark mode#

The moon button in the header ([data-theme-toggle]) switches dark mode. The boot script in src/app/layout.tsx adds the dark class to <html> before the page paints, using the saved choice (lintel:theme) or the system setting. To ship light only, delete the theme part of the boot script and the [data-theme-toggle] button; to default to dark, change the script's fallback to 'dark'.

Features#

Dates and the static build#

The static build can't know the visitor's date, URL parameters or saved choices, so everything that depends on them renders right after the page loads. The hooks in src/lib/client.ts (useNow, useParams, useSearch) and useStarred() in src/lib/stars.ts use useSyncExternalStore and return null while the page is prerendered: the static HTML shows the text as of Sunday, Nov 29, 2026 (WRITTEN_DAY in src/lib/time.ts), the first project and the default filters, and the real values follow without a hydration mismatch.

Hero axonometric#

The home hero is HERO_AXON in src/lib/art.ts. Each line has pathLength="1" and a delay (--d); CSS in globals.css (.axo, @keyframes ax-draw) draws the lines one by one, fills the faces in afterward and fades in the dimensions and notes. With prefers-reduced-motion: reduce (or without JavaScript) the drawing is shown complete. Below 640 px the notes and dimension text are hidden. The title block under it shows today's date ([data-today], TodayText).

Projects index#

src/components/ProjectsBrowser.tsx. Type and status buttons ([data-filter-type], [data-filter-status]), the sort select (#sort) and the "Starred only" toggle ([data-filter-starred]) filter and sort PROJECTS. Sorts: Most recent puts in design first, then in construction, then built work by year (newest first, name for ties); Oldest first is the reverse; Largest first sorts by area; Name, A to Z by name. URL parameters keep the view shareable: type, status, sort and starred=1; values are looked up with own-key checks (has()), so unknown values (even ?status=__proto__) fall back to the defaults. The count reads "Showing 3 of 11 projects", and an empty state offers "Clear filters", which keeps the sort.

The county diagram (drawCountyMap()) draws six counties, three rivers, nine towns, the studio and a numbered pin per project (pin 1 is A-101); pins hidden by a filter fade. Each pin links to its project. Below 1024 px a numbered key under the diagram lists each pin's project and town; below 640 px the town names on the diagram are hidden and the county names are drawn larger. If you move a pin (map in PROJECTS), check that it doesn't land on a label.

Project page and drawing viewer#

/project?p=<slug>, src/components/ProjectView.tsx. Without ?p the first project (trout-run-house) is shown; an unknown slug shows "We couldn’t find that project." with a list of all projects. The browser tab title becomes "Trout Run House, Decorah · Lintel Architecture".

The viewer has three tabs ([data-sheet-tab]: Plan A-101, Section A-301, Elevation A-201) using the ARIA tab pattern (arrow keys, Home and End). The chosen sheet is kept in ?sheet=section or ?sheet=elevation. On the plan, numbered buttons sit on each room ([data-room], absolutely positioned over the SVG); choosing one, or a row of the room schedule, highlights the room and shows its name, area ("168 sq ft"), size ("12′-0″ × 14′-0″") and note. Choosing it again clears it. The schedule ends with the net area on the floor and the project's total, for example "2,368 sq ft net on this floor · 2,480 sq ft total". Room names are drawn on the plan only when they fit the room (name.length × 5.8 < width − 8 in drawing units) and are hidden below 640 px; the hotspots and the schedule always name every room. Every sheet has a graphic scale (0, 4, 8, 16 feet) and the plan a north arrow; elevations carry circled material tags that match the materials schedule.

Starred projects#

Every project card and project page has a Star button (StarButton, [data-star], aria-pressed). Starred slugs are saved in lintel:starred; the counts (StarCount, [data-star-count]) and the "Starred only" filter use them, and every button and count on the page updates together. While "Starred only" is on, unstarring a project removes its card right away.

Process durations#

src/components/ProcessView.tsx. The project type buttons ([data-process-type]: New house, Renovation, Small building, Civic) set the weeks shown in every phase (PHASES[i].weeks[type]), the bar chart, "Design and permits" (all phases but construction) and "Start to finish", with months as Math.round(weeks × 7 / 30.4375). Totals: house 72 weeks (about 17 months), renovation 57 (13), small 40 (9), civic 92 (21). The type is kept in ?type= (default house).

Brief builder#

src/components/BriefBuilder.tsx, with the math in computeBrief() in src/lib/brief.ts. Six steps: type, site, size, budget, move-in season and up to three priorities (the last is optional; a fourth checkbox is disabled once three are chosen). Next checks that the step has an answer ("Choose a project type to continue.") and Back returns. Answers and the current step are saved after every change, so a reload returns to the same place; Start over clears them, Change answers returns to step 1.

How the result is worked out (all dates in Central time):

  1. Design start: the first Monday on or after today + CAPACITY.leadDays (21) + 7 × queueWeeks[type]; a Monday that is a federal holiday moves to the next Monday (designStart() in src/lib/time.ts).
  2. Phases: for each phase, Math.round(PHASES[i].weeks[type] × sizes[size].factor) weeks, plus sites[site].extraWeeks on pre-design. Each phase starts the day after the previous one ends and lasts 7 × weeks days. Ranges show as "Dec 2026–Jan 2027", "Jan–Mar 2027" or "Mar 2027".
  3. Realistic finish: the last day of construction, shown as month and year.
  4. Move-in check: seasons are spring (Mar–May), summer (Jun–Aug), fall (Sep–Nov) and winter (Dec–Feb, labeled "Winter 2027–28", id 2027-winter). The list offers seasonCount (8) seasons starting with the one that contains today + seasonLeadDays (182). "On track" if the finish is on or before the chosen season's last day, otherwise "Later than hoped" with the season that contains the finish.
  5. Budget check: typical cost = size mid × costPerSqFt[type] low and high, each rounded to $5,000. "Tight" if the budget band's mid is below the low, "Room to spare" if above the high, otherwise "In range".
  6. Capacity: "We have room" when the type's queue is 0, otherwise "A short wait" with the queue in weeks.
  7. Reference: LT- + two-digit year and month of today + - + a four-digit number: h = (h × 31 + charCode) % 9000 over type|site|size|budget|season|priorities joined with + (priorities in the order of BRIEF.priorities), then 1000 + h.

Example for today Nov 29, 2026 (a Sunday), with a new house, own the site, 1,800 to 3,000 sq ft, $700,000 to $1.2 million, fall 2027, and energy, aging in place and daylight: design starts Monday, Dec 21, 2026; phases Dec 2026–Jan 2027, Jan–Mar 2027, Mar–May 2027, May–Aug 2027, Aug–Oct 2027, Oct 2027–Sep 2028; 91 weeks, about 21 months; finish Sep 2028, so "Later than hoped" with fall 2028; typical cost $780,000 to $1,080,000, "In range"; reference LT-2611-3517. A civic project on the same day starts Monday, Feb 22, 2027 (Feb 15 is Washington’s Birthday).

First meeting request#

Below the result (ConsultRequest in the same file). Slots (meetingSlots() in src/lib/time.ts): CONSULT.days (Tuesday to Thursday) at CONSULT.times (10:00 a.m. and 3:00 p.m. Central), from today + leadDays (3), skipping federal holidays, the first count (6). On Nov 29, 2026 they are Wed, Dec 2 and Thu, Dec 3 at both times, then Tue, Dec 8 at both times. The form needs a slot, a place to meet, a name and an email (the phone is optional, 10 digits if given). The success panel repeats the time, the place and the brief reference and says Astrid will confirm by the next working day. Choose another time clears the request.

US federal holidays#

federalHolidays(year) in src/lib/time.ts computes the observed dates by rule: 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 (a Saturday holiday is observed on Friday, a Sunday one on Monday). They close the studio, skip meeting slots and move design starts.

Studio hours#

openStatus() in src/lib/time.ts, shown by OpenStatus in the footer and on /contact: "Open now, until 5:30 p.m. Central", "Closed now. Opens tomorrow at 8:30 a.m. Central" or "Closed today for Christmas Day. Opens Monday at 8:30 a.m. Central". /contact also shows the next holiday closure (NextHoliday: "Closed Friday, Dec 25 for Christmas Day.") and the reply date (ReplyBy, two working days ahead). Hours come from STUDIO.hours.

Journal#

src/components/JournalView.tsx. Notes are sorted newest first, with subject buttons built from the posts' tag values. ?post=<slug> shows one note with its drawing (the project's axonometric, or a drawing for its subject), its project link and older and newer notes. An unknown slug shows "We couldn’t find that note."

Live dates#

src/components/LiveDates.tsx: YearText (copyright), TodayText (title block "Nov 29, 2026"), YearsPractice (years since STUDIO.founded) and NextStart (the design start for a type, "Monday, Dec 21") are worked out from today. The elements around them keep the HTML version's attributes (data-year, data-today, data-years-practice, data-next-start).

Below 1024 px the menu button (#menu-toggle) opens #mobile-menu; Escape closes it and returns focus to the button, and it closes when the window grows to desktop width or the page changes. The header gets a hairline shadow once the page scrolls. Sections marked .reveal fade in as they scroll into view (RevealController); with reduced motion everything shows at once.

Forms#

There are two forms; neither sends anything until you connect it.

  • Contact (#contact-form, src/components/ContactForm.tsx): name (2+ characters), email, optional phone (10 digits), a topic (project, existing, press, careers, other; preset with ?topic=press) and a message of 20+ characters. Errors show under each field with aria-invalid, and the first problem gets focus; the success panel shows a reference (LT-M plus four digits worked out from the email) and the reply date.
  • First meeting (#consult-form, in src/components/BriefBuilder.tsx), described above.

To connect a form service such as Formspree, find the comment in the form's onSubmit and send the form with fetch, showing the success panel only when the service answers OK:

ts
const response = await fetch("https://formspree.io/f/your-id", {
  method: "POST",
  headers: { Accept: "application/json" },
  body: new FormData(e.currentTarget as HTMLFormElement),
});
if (!response.ok) return;
setSent({ name: firstName(v.name), ref });

Make the handler async for this. For the meeting request, add the brief's answers (briefRecord(a) from src/lib/brief.ts, the same object that is saved in lintel:brief) as extra FormData entries. With a server deployment (remove output: "export", see Building and deploying) you can post to a Route Handler instead, for example src/app/api/contact/route.ts with export async function POST(request: Request) that reads await request.formData() and passes it to your email service, or call a Server Action from the form.

Saved data (localStorage)#

All storage goes through safeStorage in src/lib/safe-storage.ts, which falls back to memory when the browser blocks storage (a sandboxed iframe or strict privacy settings), so features keep working for the visit. The keys are in KEYS in the same file.

Key Shape Validation on read
lintel:theme light or dark (a plain string) Anything else means "follow the system"
lintel:starred ["trout-run-house", ...] Must be an array; unknown slugs and duplicates are dropped (src/lib/stars.ts)
lintel:brief { "v": 1, "step": 2, "type": "house", "site": "owned", "size": null, "budget": null, "season": null, "priorities": [] } cleanBrief() in src/lib/brief.ts: v must be 1; each answer must be an own key of its BRIEF list; a season that has rolled out of the current list is dropped; priorities are capped at 3 and kept in the order of BRIEF.priorities; the step falls back to the first unanswered question

To reset, use Start over on the brief, unstar projects, or clear the site's storage in the browser's developer tools (Application > Local Storage).

Demo dates#

Nothing on the site goes stale: design starts, meeting slots, move-in seasons, the studio's open status, holiday closures, the title block date, years in practice and the copyright year are all computed from today in Central time. Past content keeps its real dates: journal notes, awards and publications, and project years.

  • ALLOW_NOW_PARAM (top of src/lib/time.ts, true): add ?now=2027-06-01T10:00 to any page to preview another moment (Central time). Set it to false on a live site.
  • The "This week" phase lines of projects in progress (phase in PROJECTS) are written text; update them as your projects move along.
  • For fixed dates on a real site, change CAPACITY, CONSULT and BRIEF.seasonLeadDays, or replace designStart() and meetingSlots() with your own lists.

SEO and sharing#

Each page sets its title, description and Open Graph tags with pageMetadata() from src/lib/metadata.ts (export const metadata = pageMetadata(...) at the top of each page.tsx); the layout has the defaults and viewport (theme color, color scheme). /project and /journal also set the browser tab title to the project or note shown. Set NEXT_PUBLIC_SITE_URL to your domain when you build (NEXT_PUBLIC_SITE_URL=https://www.example.com pnpm build): metadataBase in src/app/layout.tsx uses it so og:image (/img/og-image.png) gets an absolute URL, which social sites require. Project and note pages are driven by URL parameters, so for search engines consider listing /project?p=<slug> URLs in a sitemap (src/app/sitemap.ts), or making a route per project with generateStaticParams.

Accessibility#

  • Skip link, landmarks, one <h1> per page (the project and journal pages render only the view they show) and aria-current="page" in the navigation.
  • Filters and toggles are buttons with aria-pressed; the drawing viewer uses role="tablist" with arrow-key navigation; room hotspots are labeled buttons ("Room 1: Entry and mudroom") mirrored by the room schedule.
  • Drawings have role="img" and an aria-label; the pins on the county map are labeled links.
  • Changes in counts, stars and the brief are announced through a polite live region (#live-region, announce() in src/lib/client.ts).
  • Visible focus outlines, AA contrast in light and dark, and prefers-reduced-motion turns off the hero animation, scroll reveals and transitions.
  • When editing, keep one <h1>, label new form fields and keep aria-describedby ids matching.

Building and deploying#

pnpm build writes a static site to out/ (output: "export" in next.config.ts):

  • Vercel: import the repository; no settings needed.
  • Netlify / Cloudflare Pages: build command pnpm build, publish directory out.
  • Any static host: upload the contents of out/.

To serve from a sub-folder, build with DEMO_BASE_PATH=/studio pnpm build; next.config.ts passes it to basePath and NEXT_PUBLIC_BASE_PATH, which asset() and pageUrl() (the county map's pin links) use. pnpm build:demo does this for the freeframe.dev demo (demo/, which you can delete).

Tailwind scans the source files for class names, including the strings in src/lib/drawings.ts and src/lib/art.ts; keep each class name whole (not built from pieces such as `bg-${color}`), or it won't be generated.

To use server features (Route Handlers, Server Actions), remove output: "export" and images.unoptimized from next.config.ts and deploy to a Node-capable host such as Vercel.

Browser targets#

package.json has a browserslist (Chrome and Edge 111, Firefox 113, Safari 16.4), the browsers Tailwind CSS v4 supports. Without it Next.js targets older browsers and converts Tailwind's oklch() colors to lab(), which renders some grays slightly differently.

TypeScript setup#

package.json installs @typescript/native (TypeScript 7, which provides tsc) and typescript as an alias of @typescript/typescript6, because typescript-eslint and parts of the Next.js toolchain still need the TypeScript 6 API. When typescript-eslint supports TypeScript 7, replace both with typescript@7. eslint.config.mjs pins settings.react.version, because eslint-plugin-react can't detect it under ESLint 10.

Troubleshooting#

  • A new room label is missing on the plan. Names that don't fit the room are left off the drawing; the numbered hotspot and the room schedule still show them.
  • A drawing looks wrong after editing a project. Coordinates are in feet; check that plan.rooms sit inside plan.outline and that section.profile and elevation.profile are closed outlines in order.
  • New classes have no effect. Class names built from pieces aren't generated; write them out in full.
  • My brief keeps coming back. It is saved in lintel:brief; use Start over.
  • Dates look wrong while testing. Remove ?now= from the address, or set ALLOW_NOW_PARAM to false.
  • The forms say "received" but nothing arrives. The demo forms are not connected; see Forms.
  • Links or images break under a sub-folder. Use asset() for files in public/ and pageUrl() for links written into generated markup, and build with DEMO_BASE_PATH.
  • A hydration warning after editing a component. Values that depend on the clock, the address or storage must come from useNow, useParams or useStarred, which return null until the page has loaded.

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. Tenor Sans and Inria Sans are included under the SIL Open Font License, and Syncopate under the Apache License 2.0 (see src/fonts/). Lintel Architecture, its people, clients, projects and contact details are fictional.

Search documentation

Search the guides and every template's documentation