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. The site is plain HTML5 with Tailwind CSS v4 and vanilla JavaScript, with no dependencies and no build
step needed to view it. 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#
-
Unzip the download.
-
Open
index.htmlin a browser, or serve the folder with any static server:shpython3 -m http.server 8080Then visit
http://localhost:8080. -
Edit the HTML pages and
assets/js/data.js, then reload.
Requirements: a modern browser. Google Fonts load from the internet. Node 24 is needed only to rebuild the CSS after adding Tailwind classes (see Building and deploying).
Pages#
| File | Purpose | Notable sections and features |
|---|---|---|
index.html |
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.html |
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.html |
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.html |
Practice (G-001) | Principals and team with drawn monograms, approach, values, an elevation of the studio building, awards and publications |
process.html |
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.html |
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.html |
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.html |
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.html |
Not found (A-404) | A plan with a missing room and links back |
Project structure#
lintel/
index.html, projects.html, project.html, practice.html, process.html,
start.html, journal.html, contact.html, 404.html
assets/
css/style.css compiled Tailwind CSS (generated; do not edit by hand)
js/data.js content and settings (window.LINTEL): projects and their drawings, people, awards,
phases, FAQs, brief options, capacity, meeting slots, journal posts
js/main.js all interactions and the drawing generator, in numbered sections
img/favicon.svg the logo mark (a beam on two posts)
img/og-image.svg social image source (1200×630)
img/og-image.png social image used by og:image
src/input.css Tailwind source: theme tokens, dark mode, a small component layer and drawing styles
package.json npm scripts to rebuild the CSS
README.md short introduction
DOCS.md this guide
CHANGELOG.md version historyCustomizing#
Brand and colors#
All colors are tokens in the @theme block of src/input.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), then rebuild the
CSS:
@theme {
--color-blue: #8a3b24; /* brick */
--color-blue-deep: #6b2c1a;
--color-blue-soft: #f1e1d9;
}Also change the theme-color values in applyTheme() in main.js and the <meta name="theme-color"> in each
page if you change the paper color.
Typography#
Three Google Fonts families, loaded with one <link> in every page's <head>:
- 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.
To swap a family, change the family= part of the Google Fonts URL in every page and the matching --font-* token
in src/input.css.
Content#
Text on the pages lives in the HTML. Everything listed or computed lives in assets/js/data.js as
window.LINTEL:
| 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.html, 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.html |
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. Drawing data is in feet:
{
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
main.jssection 5 (drawPlan,drawSection,drawElevation,drawAxon). Sheets are drawn into a 600 × 420 viewBox (axonometrics 600 × 380 or 340) and scaled to fit, so they stay sharp at any width. To use photos instead, replace thedrawAxon()call inprojectCard()with an<img>at about a 16:10 ratio. - Hand-drawn SVG in the HTML: the home hero axonometric (inside
.axo), the studio elevation onpractice.html, the downtown map oncontact.htmland the 404 plan. - Monograms for people are generated by
monogram(), each with its own motif (gable, arch, lintel, stair, circle, pediment). - Social image:
assets/img/og-image.svgis the source andog-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:
assets/img/favicon.svg.
Navigation, header and footer#
The header and footer are repeated in every HTML page. To add a page, copy an existing page, then add a link to
the <nav aria-label="Main"> list, the #mobile-menu list and the footer's "Sheet index" in every page. Mark the
current page with aria-current="page".
Dark mode#
The moon button in the header ([data-theme-toggle]) switches dark mode. An inline script in each page's <head>
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 that inline script and the [data-theme-toggle] buttons; to default to dark,
change the script's fallback to 'dark'.
Features#
Hero axonometric#
The home hero is a static SVG in index.html. Each line has pathLength="1" and a delay (--d); CSS in
src/input.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. The title block under it shows today's date ([data-today]).
Projects index#
projects.html, initProjects() in main.js. 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, so unknown values fall back to the defaults. The count reads "Showing 3 of 11 projects", and an
empty state offers "Clear filters".
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, so everything shown stays readable. If you move a pin (map in PROJECTS), check that it doesn't land on a label.
Project page and drawing viewer#
project.html?p=<slug>, initProject() and initViewer(). 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 viewer has three tabs ([data-sheet-tab]: Plan A-101, Elevation A-201, Section A-301) 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". 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 ([data-star], aria-pressed). Starred slugs are saved in
lintel:starred; the counts ([data-star-count]) and the "Starred only" filter use them.
Process durations#
process.html, initProcess(). 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#
start.html, initBrief() and computeBrief(). 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):
- 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. - Phases: for each phase,
Math.round(PHASES[i].weeks[type] × sizes[size].factor)weeks, plussites[site].extraWeekson 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". - Realistic finish: the last day of construction, shown as month and year.
- 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 offersseasonCount(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. - Budget check: typical cost = size
mid×costPerSqFt[type]low and high, each rounded to $5,000. "Tight" if the budget band'smidis below the low, "Room to spare" if above the high, otherwise "In range". - Capacity: "We have room" when the type's queue is 0, otherwise "A short wait" with the queue in weeks.
- Reference:
LT-+ two-digit year and month of today +-+ a four-digit number:h = (h × 31 + charCode) % 9000overtype|site|size|budget|season|priorities joined with +(priorities in the order ofBRIEF.priorities), then1000 + 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. Slots (meetingSlots()): 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.
US federal holidays#
federalHolidays(year) in main.js 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#
initHours() shows "Open now, until 5:30 p.m. Central" or "Closed now. Opens tomorrow at 8:30 a.m. Central" in the
footer and on contact.html, the next holiday closure ("Closed Friday, Dec 25 for Christmas Day.") and the
contact reply date (two working days ahead, [data-reply-by]). Hours come from STUDIO.hours.
Journal#
journal.html, initJournal(). 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#
Elements with data-year (copyright), data-today (title block "Nov 29, 2026"), data-years-practice (years since
STUDIO.founded) and data-next-start (the design start for that type, "Monday, Dec 21") are filled in from today.
Forms#
There are two forms; neither sends anything until you connect it.
- Contact (
#contact-form,initContact()): 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 witharia-invalid; the success panel shows a reference (LT-Mplus four digits) and the reply date. - First meeting (
#consult-form, insideinitBrief()), described above.
To connect a form service such as Formspree, find the comment in the submit handler and send the form with fetch,
showing the success panel only when the service answers OK:
fetch('https://formspree.io/f/your-id', {
method: 'POST',
headers: { Accept: 'application/json' },
body: new FormData(form)
}).then(function (res) {
if (res.ok) { form.hidden = true; success.hidden = false; }
});For the meeting request, add the brief's answers (from lintel:brief) as hidden fields or extra FormData entries.
Saved data (localStorage)#
All storage goes through safeStorage in main.js, which falls back to memory when the browser blocks storage (a
sandboxed iframe or strict privacy settings), so features keep working for the page view.
| Key | Shape | Validation on read |
|---|---|---|
lintel:theme |
'light' or 'dark' |
Anything else means "follow the system" |
lintel:starred |
["trout-run-house", ...] |
Must be an array; unknown slugs and duplicates are dropped |
lintel:brief |
{ v: 1, step, type, site, size, budget, season, priorities: [] } |
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.
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 ofmain.js,true): add?now=2027-06-01T10:00to any page to preview another moment (Central time). Set it tofalseon a live site.- The "This week" phase lines of projects in progress (
phaseinPROJECTS) are written text; update them as your projects move along. - For fixed dates on a real site, change
CAPACITY,CONSULTandBRIEF.seasonLeadDays, or replacedesignStart()andmeetingSlots()with your own lists.
SEO and sharing#
Each page has its own <title>, meta description, Open Graph tags, theme-color and favicon in the <head>.
project.html and journal.html also set document.title to the project or note shown. og:image points at
assets/img/og-image.png; social sites need an absolute URL, so replace it with your domain
(https://example.com/assets/img/og-image.png) when you deploy. Project and note pages are driven by URL
parameters, so for search engines consider listing project.html?p=<slug> URLs in a sitemap, or generating one
HTML page per project.
Accessibility#
- Skip link, landmarks, one
<h1>per page (the project and journal pages remove the view they don't show) andaria-current="page"in the navigation. - Filters and toggles are buttons with
aria-pressed; the drawing viewer usesrole="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 anaria-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). - Visible focus outlines, AA contrast in light and dark, and
prefers-reduced-motionturns off the hero animation, scroll reveals and transitions. - When editing, keep one
<h1>, label new form fields and keeparia-describedbyids matching.
Building and deploying#
The compiled CSS is included. If you add Tailwind classes, rebuild it (Node 24):
npm install
npm run build # or: npm run watchTailwind scans the HTML and JavaScript files, so classes written inside main.js strings are generated too; keep
them as whole class names. Upload the folder to any static host (Netlify Drop, GitHub Pages, Cloudflare Pages, an
S3 bucket). All links are relative, so it also works from a subfolder.
Troubleshooting#
- The drawings are empty.
data.jsmust load beforemain.js(both aredeferin each page's<head>). Check the console for a syntax error indata.jsafter editing. - 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 new Tailwind class has no effect. Rebuild the CSS with
npm run build. - My brief keeps coming back. It is saved in
lintel:brief; use Start over. - Dates look wrong while testing. Remove
?now=from the URL, or setALLOW_NOW_PARAMtofalse. - Fonts look different offline. Google Fonts need a connection; the system fallbacks in
--font-*are used otherwise.
License#
MIT. The code and all included artwork are free for personal and commercial use; see LICENSE.txt.
Tenor Sans and Inria Sans are provided by Google Fonts under the SIL Open Font License, and Syncopate under the Apache License 2.0.
Lintel Architecture, its people, clients, projects and contact details are fictional.