initial
This commit is contained in:
commit
b4fbf3e411
59 changed files with 4735 additions and 0 deletions
26
app/src/lib/blocks/ServicesBlock.svelte
Normal file
26
app/src/lib/blocks/ServicesBlock.svelte
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<script lang="ts">
|
||||
type Service = { title: string; description: string; duration: string; price: string };
|
||||
let { data } = $props<{ data: { items?: Service[] } }>();
|
||||
let items = $derived(data.items?.length ? data.items : [
|
||||
{ title: 'Restorative Massage', description: 'A personalized session to ease tension and support deep rest.', duration: '60 min', price: '£70' }
|
||||
]);
|
||||
</script>
|
||||
|
||||
<section class="mx-auto max-w-6xl px-6 py-16 md:py-20">
|
||||
<div class="mb-10 text-center">
|
||||
<p class="mb-2 text-sm font-semibold uppercase tracking-[0.25em] text-sage-dark">Treatments</p>
|
||||
<h2 class="text-4xl md:text-5xl">Services</h2>
|
||||
</div>
|
||||
<div class="grid gap-6 md:grid-cols-2">
|
||||
{#each items as item}
|
||||
<article class="group rounded-[2rem] bg-white/75 p-7 shadow-sm ring-1 ring-charcoal/5 transition hover:-translate-y-1 hover:shadow-md">
|
||||
<div class="flex items-start justify-between gap-4">
|
||||
<h3 class="text-2xl">{item.title}</h3>
|
||||
<span class="rounded-full bg-sage/10 px-4 py-2 text-sm font-semibold text-sage-dark">{item.duration}</span>
|
||||
</div>
|
||||
<p class="mt-4 leading-7 text-charcoal/70">{item.description}</p>
|
||||
<p class="mt-6 text-xl font-bold text-terracotta">{item.price}</p>
|
||||
</article>
|
||||
{/each}
|
||||
</div>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue