Site design | CMS {#snippet status(section: string)} {#if statusShown === section && form?.section === section && form.message}
{form.message}
{/if} {/snippet} {#snippet info(text: string)} {/snippet} {#snippet saveButton(section: string, label: string)}
{@render status(section)} {/snippet}

Site design

The header, footer, colors and style shared by every page of the site.

Header

Logo

(header.logo = { url: image.url, alt: image.alt })} />

Home page

The page that "/" will redirect to.

Navigation

{#each header.navLinks || [] as link, i}
{/each}

CTA button {@render info('Hero buttons without a link and “Book another” after paying go here too.')}

{#if ctaProblem()}

⚠ {ctaProblem()}

{/if}

Basket page (optional) {@render info('Slug of the page with the Checkout block. Empty = the CTA button’s page.')}

{#if basketProblem()}

⚠ {basketProblem()}

{/if} {@render saveButton('header', 'Save header')}

Footer

{#each footerFields as field (field.key)} {/each}

Social links

{#each footer.socialLinks || [] as link, i}
{/each}

Privacy policy page

Linked from the footer and the checkout. Only published pages work as links.

{#if !data.pages.some((page) => page.slug === PRIVACY_PAGE_SLUG)}

An unpublished page describing what this site does with customer data, with [gaps] for you to fill in. You're responsible for it being accurate.

{/if} {@render saveButton('footer', 'Save footer')}

Colors

Default colors for the public site. Individual blocks can override them.

{#each colorFields as field (field.key)}
(colors[field.key] = e.currentTarget.value)} />
{/each} {@render saveButton('colors', 'Save colors')}

Style

Fonts and shapes for the public site. The fonts come with the site, so visitors' browsers don't contact Google for them.

{#snippet fontSelect(label: string, key: 'headingFont' | 'bodyFont')} {/snippet} {@render fontSelect('Headings', 'headingFont')} {@render fontSelect('Body text', 'bodyFont')}
(style.corners = v as typeof style.corners)} /> (style.textSize = v as typeof style.textSize)} /> (style.shadows = v as typeof style.shadows)} /> (style.width = v as typeof style.width)} />

Page width is how wide text and sections may get on a big screen; phones are unaffected.

A calm space for you

Body text looks like this. Sessions last an hour.

Book
{@render saveButton('style', 'Save style')}