Now welcoming new patients at all three Caldria practices.

Template

How to customize Caldria

Everything you need to make Caldria your own — publishing, colors, logo, content, images, forms and animations.

Getting started

Caldria is a static website generated from this project. You need Node.js 18 or newer — nothing else to install. Open a terminal in the project folder and run:

node build.mjs --portable

This creates a deploy folder with the complete website. Upload the contents of deploy to your hosting — at the domain root or in a subfolder. Every page lives in its own folder as index.html, so addresses stay clean (/about/, /treatments/dental-implants/), and no server configuration is needed.

To preview while you edit, run node build.mjs and then node serve.mjs, and open http://localhost:4321. After every change, run the build again.

Changing colors

All colors are CSS variables at the top of css/caldria.css (the :root block), for example --color-forest and --color-ivory. Change a value once and every page updates. Keep body text at a contrast of at least 4.5:1 against its background. --color-sand is decorative — for small text on light backgrounds use --color-sand-text.

Palette presets

Three ready-made palettes are included: Forest (default), Harbor and Clay. Preview them by adding ?palette=harbor or ?palette=clay to any page address. To make one permanent, open css/caldria.css, find the Palette presets section, and copy the values of the preset you like into the :root block at the top of the file.

Changing fonts

Caldria uses Manrope (text) and Newsreader Italic (accent words), loaded from Google Fonts in the <head> of each page. To change them, replace the Google Fonts link and update --font-sans and --font-serif in css/caldria.css. Heading sizes are fluid (--text-h1 to --text-h6) and adapt automatically to screen size.

Editing text, dentists, treatments and locations

All content is in src/data.mjs: practice details, treatments, dentists, before/after cases, locations, reviews, articles and FAQs. Each entry links to others by its slug — for example a location lists the dentists who work there — so cards, profile pages and related sections update together when you rebuild.

Page layouts are in src/pages-*.mjs and shared parts (navigation, footer, cards, forms) in src/components.mjs. Styles are in public/css/caldria.css.

Replacing images

Photos are in images/photos/ as WebP files in two sizes (for example dentist-elena-700.webp and dentist-elena-1200.webp). The simplest way to replace a photo is to keep the file name and overwrite both sizes with your own image, cropped to the same shape. Every image sits in a frame with a fixed ratio, so the layout never jumps. Recommended ratios: dentists 4:5, treatment and location cards 3:2, before/after 4:3, hero 4:5. To add a new image, save it in public/images/photos/ and add an entry to src/images.json (w = the widths you saved, ratio = width and height ratio). Always write meaningful alt text.

Connecting the forms

The booking and contact forms validate fields and show styled success and error messages. Out of the box they run in demo mode: they show the success message without sending anything. To receive submissions, create a free form endpoint with a service such as Formspree, Getform or Basin, and add its URL to the form:

<form id="appointment" action="https://formspree.io/f/your-id" method="post" …>

That is all — Caldria sends the form in the background and shows the success or error message. Keep the privacy note: website forms should not collect medical history, diagnoses or insurance ID numbers.

Booking: preferred-time picker

On the booking page, patients choose a practice, day and time; the choice is sent with the form as preferred-slot. Days and times are generated from each location's opening hours. If the practice uses an online scheduler (Calendly, a dental practice system, etc.), replace the picker and form with the scheduler's embed code — the rest of the page stays the same.

Before & after cases

Each case uses two images with identical framing (4:3, at least 1200px wide): case-name-before-… and case-name-after-…. Visitors drag the handle, tap, or use the arrow keys. The demo pairs are simulated for layout purposes and are labelled as such. Replace them only with consented, non-identifying clinical photography.

Choosing a homepage

Three homepages are included: Main (multi-location group), Cosmetic (smile design studio) and Family (single practice). In build.mjs, the main homepage is the "index" entry — swap it with homeCosmetic() or homeFamily() to use another one as your homepage. Remove the "Home variants" links from the footer (in src/components.mjs) when you go live.

Animations

Elements fade and rise into view as visitors scroll, and images unveil gently. All motion is in js/caldria.js and the Motion sections of css/caldria.css. Content is never hidden from visitors who prefer reduced motion, and if the script fails to load, everything is shown automatically. To switch animations off, remove the data-reveal and data-reveal-group attributes, or delete the reveal blocks from the CSS.

Accepted plans strip

The insurer names shown are fictional. Replace them with the plans your practice accepts, and only display insurer logos you have permission to use.

Photography direction

Caldria photography is warm, natural and editorial: real consultations, calm interiors and clinicians at work with patients rather than posing. Avoid extreme mouth close-ups, crossed-arm headshots and cold clinical lighting.

Localizing for other regions

The demo is written in US English. For the UK, rename “Insurance & Financing” to “Fees & Finance” and describe private / NHS options where relevant; for Australia use “Health Funds & Payment”; for Europe, “Fees & Insurance”. Change the emergency number (911) on the Emergency page and in the FAQ.