From 94c1e0b6794fa7244f2b3c73415bdcecd9db9c32 Mon Sep 17 00:00:00 2001 From: Jakub Dorfman Date: Mon, 18 May 2026 18:39:49 +0200 Subject: [PATCH] Added background and foreground settings to blocks, and scroll in animations --- AGENTS.md | 105 ++++++++++++ app/src/app.css | 48 +++++- app/src/lib/admin/blockDefaults.ts | 89 +++++++++- app/src/lib/admin/editors/BlockEditor.svelte | 158 ++++++++++++++++++ .../lib/admin/editors/RichTextEditor.svelte | 10 ++ app/src/lib/blocks/ArticlesListBlock.svelte | 25 +++ app/src/lib/blocks/BackgroundWrapper.svelte | 51 ++++++ app/src/lib/blocks/BlockRenderer.svelte | 72 +++++--- app/src/lib/blocks/ColumnsBlock.svelte | 26 +++ app/src/lib/blocks/CtaBlock.svelte | 4 +- app/src/lib/blocks/FeaturesListBlock.svelte | 30 ++++ app/src/lib/blocks/HeroBlock.svelte | 35 ++++ .../lib/blocks/HorizontalCardsBlock.svelte | 10 +- app/src/lib/blocks/ImageBlock.svelte | 6 +- app/src/lib/blocks/ImageTextBlock.svelte | 6 +- app/src/lib/blocks/NewsletterBlock.svelte | 23 +++ app/src/lib/blocks/PricingTableBlock.svelte | 33 ++++ app/src/lib/blocks/ProfileCardBlock.svelte | 57 +++++++ app/src/lib/blocks/ServicesBlock.svelte | 10 +- app/src/lib/blocks/TestimonialsBlock.svelte | 5 +- app/src/lib/blocks/TextBlock.svelte | 6 +- app/src/lib/blocks/TimelineBlock.svelte | 8 +- app/src/lib/scrollReveal.ts | 30 ++++ app/src/lib/types.ts | 23 ++- 24 files changed, 826 insertions(+), 44 deletions(-) create mode 100644 AGENTS.md create mode 100644 app/src/lib/blocks/ArticlesListBlock.svelte create mode 100644 app/src/lib/blocks/BackgroundWrapper.svelte create mode 100644 app/src/lib/blocks/ColumnsBlock.svelte create mode 100644 app/src/lib/blocks/FeaturesListBlock.svelte create mode 100644 app/src/lib/blocks/HeroBlock.svelte create mode 100644 app/src/lib/blocks/NewsletterBlock.svelte create mode 100644 app/src/lib/blocks/PricingTableBlock.svelte create mode 100644 app/src/lib/blocks/ProfileCardBlock.svelte create mode 100644 app/src/lib/scrollReveal.ts diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..97996a8 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,105 @@ +# Massage Studio Website CMS — Agent Guidelines + +## Stack + +- **SvelteKit 2** (SSR, Svelte 5 runes mode) — all `.svelte` files use `$state`, `$derived`, `$props()` etc. +- **PocketBase** — REST API via the `pocketbase` SDK (v0.26). Auth, DB, and image storage. +- **Tailwind CSS v4** + **DaisyUI 5** — utility-first CSS with DaisyUI components for admin; custom theme for the public site. +- **Docker Compose** — two services: `app` (SvelteKit) and `pocketbase`. + +## Project Structure + +``` +app/ # SvelteKit application +├── src/ +│ ├── lib/ +│ │ ├── admin/ # Admin UI components (BlockList, editors) +│ │ ├── blocks/ # Public block renderers (one per BlockType) +│ │ ├── components/ # Header.svelte, Footer.svelte +│ │ ├── pb.ts # PocketBase client factory + helpers +│ │ └── types.ts # ContentBlock, PageRecord, HeaderGlobal, FooterGlobal +│ ├── routes/ +│ │ ├── +layout.svelte # Root layout (admin vs public shell) +│ │ ├── +page.svelte # Home page (slug=home) +│ │ ├── [slug]/ # Dynamic CMS pages +│ │ ├── admin/ # Admin area (login, pages, globals) +│ │ └── preview/ # Draft preview via sessionStorage +│ └── app.css # Tailwind + DaisyUI + custom theme +├── static/ # Static assets +├── build/ # Production build output +├── svelte.config.js # Adapter-node, runes mode forced +├── vite.config.ts # Tailwind v4 + SvelteKit plugins +└── package.json +pocketbase/pb_data/ # PocketBase data (mounted volume-mounted) +docker-compose.yml # app + pocketbase services +Dockerfile # Multi-stage Node 22 build +``` + +## Key Conventions + +### Svelte 5 Runes Mode +All components use Svelte 5 runes syntax — **never** `export let`, `$:`, or `on:click`. Use: +- `$props()` for component props +- `$state()` for reactive local state +- `$derived()` for computed values +- `$effect()` / `onMount` for side effects +- `{@render children()}` for slots +- `onclick={handler}` (not `on:click`) + +### Block System +Pages are composed of `ContentBlock[]`. Each block has `{ id, type, data }`. Block types are defined in `$lib/types.ts`: +`text | image | image_text | timeline | testimonials | services | cta | spacer | horizontal_cards` + +- **Public renderers**: `$lib/blocks/Block.svelte` — one per type, receives `data` prop +- **Admin editors**: `$lib/admin/editors/BlockEditor.svelte` — switches editor UI by type +- **Defaults**: `$lib/admin/blockDefaults.ts` — `createBlock(type)` generates a new block with sensible defaults +- **Block list**: `$lib/admin/BlockList.svelte` — draggable reorder, select, delete + +To add a new block type: add to `BlockType` union in `types.ts`, create renderer in `$lib/blocks/`, add editor case in `BlockEditor.svelte`, add default in `blockDefaults.ts`, add import in `BlockRenderer.svelte`. + +### PocketBase Integration +- Client created in `hooks.server.ts` (`event.locals.pb`) — injected per-request with auth cookie +- `$lib/pb.ts` exports `createPocketBase()`, `getFileUrl()`, `uploadMedia()` +- Collections: `pages` (slug, title, blocks[], published), `globals` (key, data), `media` (file, alt) +- Server load functions use `locals.pb.collection('pages').getFirstListItem()` + +### Styling +- **Public site**: Custom theme via `@theme` in `app.css` — colors: `warm`, `charcoal`, `sage`, `sage-dark`, `terracotta`. Fonts: `DM Sans` (body), `Playfair Display` (headings). +- **Admin area**: DaisyUI utility classes (`btn`, `card`, `input`, `select`, `rounded-box`, etc.) +- **Prose**: `.prose-wellness` class for rich text content styling + +### Routing +- `+layout.server.ts` fetches header/footer globals for every public page +- `+page.server.ts` for home fetches `slug = "home" && published = true` +- `[slug]/+page.server.ts` fetches by dynamic slug +- Admin routes protected in `hooks.server.ts` — redirects to `/admin/login` if unauthenticated + +## Build & Dev Commands + +```sh +# Development (from app/) +cd app +npm install +npm run dev # http://localhost:5173 + +# Production build +npm run build + +# Type checking +npm run check + +# Docker full stack +docker compose up --build +# App: http://localhost:3000 +# PocketBase admin: http://localhost:8090/_/ + +# PocketBase only (for local dev) +docker compose up pocketbase +``` + +## Environment + +- `PUBLIC_POCKETBASE_URL` — public-facing PocketBase URL (default `http://localhost:8090`) +- `POCKETBASE_INTERNAL_URL` — internal Docker network URL (`http://pocketbase:80`) +- `ORIGIN` — SvelteKit origin for SSR (`http://localhost:3000`) +- Copy `app/.env.example` → `app/.env` for local dev diff --git a/app/src/app.css b/app/src/app.css index 3af097e..43ed12a 100644 --- a/app/src/app.css +++ b/app/src/app.css @@ -15,11 +15,22 @@ } :root { + --fg-heading: #2c2c2c; + --fg-body: #2c2c2c; background: #faf8f5; - color: #2c2c2c; + color: var(--fg-body); font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif; } +/* ── Foreground colour utilities (set per-block via BackgroundWrapper) ── */ +.text-fg-body { color: var(--fg-body, #2c2c2c); } +.text-fg-body\/85 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 85%, transparent); } +.text-fg-body\/80 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 80%, transparent); } +.text-fg-body\/75 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 75%, transparent); } +.text-fg-body\/70 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 70%, transparent); } +.text-fg-body\/60 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 60%, transparent); } +.text-fg-heading { color: var(--fg-heading, #2c2c2c); } + body { min-height: 100vh; margin: 0; @@ -33,7 +44,7 @@ h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; - color: #2c2c2c; + color: var(--fg-heading, #2c2c2c); } .prose-wellness p { @@ -62,3 +73,36 @@ h4 { text-decoration: underline; text-underline-offset: 3px; } + +/* ── Scroll-reveal animations ── */ +.reveal { + opacity: 0; + transform: translateY(30px); + transition: + opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), + transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1); +} + +.reveal-visible { + opacity: 1; + transform: translateY(0); +} + +/* ── Hero fade-in stagger ── */ +.animate-fade-in { + opacity: 0; + transform: translateY(20px); + animation: fadeInUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; +} + +@keyframes fadeInUp { + to { + opacity: 1; + transform: translateY(0); + } +} + +/* ── Smooth scroll ── */ +html { + scroll-behavior: smooth; +} diff --git a/app/src/lib/admin/blockDefaults.ts b/app/src/lib/admin/blockDefaults.ts index 5559b6e..8ee4e6f 100644 --- a/app/src/lib/admin/blockDefaults.ts +++ b/app/src/lib/admin/blockDefaults.ts @@ -10,7 +10,14 @@ export const blockLabels: Record = { services: 'Services', cta: 'Call to Action', spacer: 'Spacer', - horizontal_cards: 'Horizontal Cards' + horizontal_cards: 'Horizontal Cards', + hero: 'Hero', + columns: 'Columns', + pricing_table: 'Pricing Table', + newsletter: 'Newsletter', + articles_list: 'Articles List', + profile_card: 'Profile Card', + features_list: 'Features List' }; export const blockTypes = Object.keys(blockLabels) as BlockType[]; @@ -45,6 +52,86 @@ export function createBlock(type: BlockType): ContentBlock { case 'horizontal_cards': base.data = { items: [{ title: 'Card title', description: 'Card description', url: '', link: '' }] }; break; + case 'hero': + base.data = { + heading: 'Holistic and Experiential Learning about Happiness', + subheading: 'Individual sessions, workshops and events in Oslo', + buttonLabel: 'BOOK NOW', + buttonUrl: '/book', + backgroundImage: '' + }; + break; + case 'columns': + base.data = { + heading: 'Elements of Holistic Sexology', + items: [ + { title: 'Coaching and Mind Work', content: '

Explore beliefs, thoughts and emotions associated with your sexuality.

', icon: '🧠' }, + { title: 'Somatic Practices', content: '

Use sound, breathing, movement, touch to increase sensitivity.

', icon: '🧘' }, + { title: 'Harmonizing the Energy System', content: '

Techniques of Shiatsu based on Chinese medicine to resolve blockages.

', icon: '⚡' } + ] + }; + break; + case 'pricing_table': + base.data = { + heading: 'Prices', + items: [ + { duration: '60 min', price: '2000 NOK' }, + { duration: '90 min', price: '2500 NOK' }, + { duration: '120 min', price: '3000 NOK' }, + { duration: '150 min', price: '3500 NOK' }, + { duration: '180 min', price: '4000 NOK' } + ] + }; + break; + case 'newsletter': + base.data = { + heading: 'Want to stay connected?', + subtext: 'Sign up to receive my free videos and articles that allow you to know more about the secrets of sexual bliss.', + buttonLabel: 'Yes, please!', + placeholder: 'Your email address' + }; + break; + case 'articles_list': + base.data = { + heading: 'My Favourite Articles', + items: [ + { title: 'As a "real" man you need to be hard! Sexual performance anxiety in men', url: '/article1' }, + { title: 'Listen to your body! What numbness is communicating to you?', url: '/article2' }, + { title: 'Reclaim your pleasure and joy! Consent and clear empowered communication are the basis', url: '/article3' } + ] + }; + break; + case 'profile_card': + base.data = { + name: 'Alegría', + tagline: 'Holistic Sensual Massage Therapist', + image: '', + description: '

Let yourself be pampered like Caesar by Cleopatra.

', + education: ['Professional training in holistic sensual massage Core Touch I and II'], + contact: '+47 40158395', + profileUrl: '' + }; + break; + case 'features_list': + base.data = { + heading: 'In my sessions, I teach...', + categories: [ + { + title: 'For men', + items: ['Overcome sexual anxiety', 'Last as long as you want', 'Treat erectile dysfunction without drugs'] + }, + { + title: 'For women', + items: ['Increase sensitivity in the whole body', 'Unlock every possible kind of orgasm', 'Release fear, shame and trauma'] + }, + { + title: 'For couples', + items: ['Feel more connected while lovemaking', 'Master the art of Tantric sex', 'Deepen your relationship'] + } + ] + }; + break; } + base.data._background = { type: 'none', color: '', imageUrl: '', attachment: 'scroll', overlay: false, overlayOpacity: 40 }; return base; } diff --git a/app/src/lib/admin/editors/BlockEditor.svelte b/app/src/lib/admin/editors/BlockEditor.svelte index 17faab4..c0c49b1 100644 --- a/app/src/lib/admin/editors/BlockEditor.svelte +++ b/app/src/lib/admin/editors/BlockEditor.svelte @@ -94,6 +94,164 @@ {/each} + {:else if block.type === 'hero'} + {#each ['heading', 'subheading', 'buttonLabel', 'buttonUrl', 'backgroundImage'] as field} + + {/each} + {:else if block.type === 'columns'} + {#each ['heading'] as field} + + {/each} +

Columns

+ {#each block.data.items || [] as item, i} +
+ updateArray('items', i, { title: e.currentTarget.value })} /> + updateArray('items', i, { icon: e.currentTarget.value })} /> + + +
+ {/each} + + {:else if block.type === 'pricing_table'} + {#each ['heading'] as field} + + {/each} +

Price rows

+ {#each block.data.items || [] as item, i} +
+ updateArray('items', i, { duration: e.currentTarget.value })} /> + updateArray('items', i, { price: e.currentTarget.value })} /> + +
+ {/each} + + {:else if block.type === 'newsletter'} + {#each ['heading', 'subtext', 'buttonLabel', 'placeholder'] as field} + + {/each} + {:else if block.type === 'articles_list'} + {#each ['heading'] as field} + + {/each} +

Articles

+ {#each block.data.items || [] as item, i} +
+ updateArray('items', i, { title: e.currentTarget.value })} /> + updateArray('items', i, { url: e.currentTarget.value })} /> + +
+ {/each} + + {:else if block.type === 'profile_card'} + {#each ['name', 'tagline', 'image', 'contact', 'profileUrl'] as field} + + {/each} + +

Education

+ {#each block.data.education || [] as edu, i} +
+ { + const arr = [...(block.data.education || [])]; + arr[i] = e.currentTarget.value; + updateData({ education: arr }); + }} /> + +
+ {/each} + + {:else if block.type === 'features_list'} + {#each ['heading'] as field} + + {/each} +

Categories

+ {#each block.data.categories || [] as cat, ci} +
+ updateArray('categories', ci, { title: e.currentTarget.value })} /> +

Items (one per line)

+ + +
+ {/each} + {/if} + +
+ +
+ Background settings +
+ + + {#if (block.data._background?.type) === 'color'} + + + {/if} + + {#if (block.data._background?.type) === 'image'} + + + + {#if block.data._background?.overlay} + + {/if} + {/if} +
+
+ +
+ Foreground settings +
+ + + + +
+
{/if} diff --git a/app/src/lib/admin/editors/RichTextEditor.svelte b/app/src/lib/admin/editors/RichTextEditor.svelte index 72a0572..c00f38c 100644 --- a/app/src/lib/admin/editors/RichTextEditor.svelte +++ b/app/src/lib/admin/editors/RichTextEditor.svelte @@ -13,6 +13,16 @@ } }); + // Sync content from props when a different block is selected, + // without overwriting content while the user is actively editing. + $effect(() => { + if (mounted && editorEl && value !== undefined) { + if (editorEl.innerHTML !== value) { + editorEl.innerHTML = value || ''; + } + } + }); + function exec(cmd: string, val?: string) { if (!browser) return; editorEl?.focus(); diff --git a/app/src/lib/blocks/ArticlesListBlock.svelte b/app/src/lib/blocks/ArticlesListBlock.svelte new file mode 100644 index 0000000..12d32da --- /dev/null +++ b/app/src/lib/blocks/ArticlesListBlock.svelte @@ -0,0 +1,25 @@ + + +
+ {#if data.heading} +

{data.heading}

+ {/if} +
+ {#each items as item} + +
+ {item.title} + → +
+
+ {/each} +
+
diff --git a/app/src/lib/blocks/BackgroundWrapper.svelte b/app/src/lib/blocks/BackgroundWrapper.svelte new file mode 100644 index 0000000..c3c851c --- /dev/null +++ b/app/src/lib/blocks/BackgroundWrapper.svelte @@ -0,0 +1,51 @@ + + +
+ {#if background.type === 'image' && background.overlay && background.imageUrl} +
+ {/if} +
+ {@render children()} +
+
diff --git a/app/src/lib/blocks/BlockRenderer.svelte b/app/src/lib/blocks/BlockRenderer.svelte index 01a993c..c581bb1 100644 --- a/app/src/lib/blocks/BlockRenderer.svelte +++ b/app/src/lib/blocks/BlockRenderer.svelte @@ -1,5 +1,6 @@ {#each blocks as block (block.id)} - {#if block.type === 'text'} - - {:else if block.type === 'image'} - - {:else if block.type === 'image_text'} - - {:else if block.type === 'timeline'} - - {:else if block.type === 'testimonials'} - - {:else if block.type === 'services'} - - {:else if block.type === 'cta'} - - {:else if block.type === 'spacer'} - - {:else if block.type === 'horizontal_cards'} - - {/if} + + {#if block.type === 'text'} + + {:else if block.type === 'image'} + + {:else if block.type === 'image_text'} + + {:else if block.type === 'timeline'} + + {:else if block.type === 'testimonials'} + + {:else if block.type === 'services'} + + {:else if block.type === 'cta'} + + {:else if block.type === 'spacer'} + + {:else if block.type === 'horizontal_cards'} + + {:else if block.type === 'hero'} + + {:else if block.type === 'columns'} + + {:else if block.type === 'pricing_table'} + + {:else if block.type === 'newsletter'} + + {:else if block.type === 'articles_list'} + + {:else if block.type === 'profile_card'} + + {:else if block.type === 'features_list'} + + {/if} + {/each} diff --git a/app/src/lib/blocks/ColumnsBlock.svelte b/app/src/lib/blocks/ColumnsBlock.svelte new file mode 100644 index 0000000..3e40748 --- /dev/null +++ b/app/src/lib/blocks/ColumnsBlock.svelte @@ -0,0 +1,26 @@ + + +
+ {#if data.heading} +

{data.heading}

+ {/if} +
+ {#each items as item, i} +
+ {#if item.icon} + {item.icon} + {/if} +

{item.title}

+
{@html item.content}
+
+ {/each} +
+
diff --git a/app/src/lib/blocks/CtaBlock.svelte b/app/src/lib/blocks/CtaBlock.svelte index 3eca73e..b7dce10 100644 --- a/app/src/lib/blocks/CtaBlock.svelte +++ b/app/src/lib/blocks/CtaBlock.svelte @@ -1,10 +1,12 @@ -
+

{data.heading || 'Ready to feel restored?'}

{data.subtext || 'Book a massage session designed around your body, pace, and needs.'}

diff --git a/app/src/lib/blocks/FeaturesListBlock.svelte b/app/src/lib/blocks/FeaturesListBlock.svelte new file mode 100644 index 0000000..01524ef --- /dev/null +++ b/app/src/lib/blocks/FeaturesListBlock.svelte @@ -0,0 +1,30 @@ + + +
+ {#if data.heading} +

{data.heading}

+ {/if} +
+ {#each categories as cat, i} +
+

{cat.title}

+
    + {#each cat.items as item} +
  • + ✓ + {item} +
  • + {/each} +
+
+ {/each} +
+
diff --git a/app/src/lib/blocks/HeroBlock.svelte b/app/src/lib/blocks/HeroBlock.svelte new file mode 100644 index 0000000..0069e6b --- /dev/null +++ b/app/src/lib/blocks/HeroBlock.svelte @@ -0,0 +1,35 @@ + + +
+ {#if data.backgroundImage} + +
+ {/if} +
+

+ {data.heading || 'Holistic and Experiential Learning about Happiness'} +

+ {#if data.subheading} +

+ {data.subheading} +

+ {/if} + {#if data.buttonLabel} + + {/if} +
+
diff --git a/app/src/lib/blocks/HorizontalCardsBlock.svelte b/app/src/lib/blocks/HorizontalCardsBlock.svelte index 75ea2da..9b3768e 100644 --- a/app/src/lib/blocks/HorizontalCardsBlock.svelte +++ b/app/src/lib/blocks/HorizontalCardsBlock.svelte @@ -1,4 +1,6 @@ -
+
{#if data.url} {data.alt @@ -10,7 +12,7 @@
Image coming soon
{/if} {#if data.caption} -
{data.caption}
+
{data.caption}
{/if}
diff --git a/app/src/lib/blocks/ImageTextBlock.svelte b/app/src/lib/blocks/ImageTextBlock.svelte index 8bd5333..da233e2 100644 --- a/app/src/lib/blocks/ImageTextBlock.svelte +++ b/app/src/lib/blocks/ImageTextBlock.svelte @@ -1,10 +1,12 @@ -
+
{#if data.url} @@ -13,7 +15,7 @@
Upload an image
{/if}
-
+
{@html data.content || '

A gentler rhythm

Pair meaningful copy with a calming studio image.

'}
diff --git a/app/src/lib/blocks/NewsletterBlock.svelte b/app/src/lib/blocks/NewsletterBlock.svelte new file mode 100644 index 0000000..1a476e0 --- /dev/null +++ b/app/src/lib/blocks/NewsletterBlock.svelte @@ -0,0 +1,23 @@ + + +
+
+

{data.heading || 'Want to stay connected?'}

+

{data.subtext || 'Sign up to receive updates.'}

+
e.preventDefault()}> + + +
+
+
diff --git a/app/src/lib/blocks/PricingTableBlock.svelte b/app/src/lib/blocks/PricingTableBlock.svelte new file mode 100644 index 0000000..ca0c81b --- /dev/null +++ b/app/src/lib/blocks/PricingTableBlock.svelte @@ -0,0 +1,33 @@ + + +
+ {#if data.heading} +

{data.heading}

+ {/if} +
+ + + + + + + + + {#each items as item} + + + + + {/each} + +
DurationPrice
{item.duration}{item.price}
+
+
diff --git a/app/src/lib/blocks/ProfileCardBlock.svelte b/app/src/lib/blocks/ProfileCardBlock.svelte new file mode 100644 index 0000000..feea4d0 --- /dev/null +++ b/app/src/lib/blocks/ProfileCardBlock.svelte @@ -0,0 +1,57 @@ + + +
+
+
+ {#if data.image} + {data.name + {:else} +
Photo
+ {/if} +
+
+ {#if data.name} +

{data.name}

+ {/if} + {#if data.tagline} +

{data.tagline}

+ {/if} + {#if data.description} +
{@html data.description}
+ {/if} + {#if data.education?.length} +
+

Education

+
    + {#each data.education as edu} +
  • + + {edu} +
  • + {/each} +
+
+ {/if} + {#if data.contact} +

Contact: {data.contact}

+ {/if} + {#if data.profileUrl} + View full profile + {/if} +
+
+
diff --git a/app/src/lib/blocks/ServicesBlock.svelte b/app/src/lib/blocks/ServicesBlock.svelte index 1c7eca8..a41e3c2 100644 --- a/app/src/lib/blocks/ServicesBlock.svelte +++ b/app/src/lib/blocks/ServicesBlock.svelte @@ -1,4 +1,6 @@ -
(paused = true)} onmouseleave={() => (paused = false)} role="region" aria-label="Testimonials carousel"> +
(paused = true)} onmouseleave={() => (paused = false)} role="region" aria-label="Testimonials carousel">
@@ -44,7 +45,7 @@ diff --git a/app/src/lib/blocks/TextBlock.svelte b/app/src/lib/blocks/TextBlock.svelte index c6f3598..5abeecb 100644 --- a/app/src/lib/blocks/TextBlock.svelte +++ b/app/src/lib/blocks/TextBlock.svelte @@ -1,9 +1,11 @@ -
-
+
+
{@html data.content || '

Welcome

Add warm, inviting copy in the CMS.

'}
diff --git a/app/src/lib/blocks/TimelineBlock.svelte b/app/src/lib/blocks/TimelineBlock.svelte index db3509d..962a580 100644 --- a/app/src/lib/blocks/TimelineBlock.svelte +++ b/app/src/lib/blocks/TimelineBlock.svelte @@ -1,4 +1,6 @@