Site design → Footer picks the privacy policy page; it is linked from the footer and from a short notice above Pay. The notes field asks customers not to write health details (special-category data). 'Create a privacy policy draft' makes an unpublished page describing what this software does with customer data, with gaps for the studio to fill in. No consent checkbox: booking data is processed to perform the contract. Also adds the PrivacyGlobal type used by the retention settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VaXE9U7AmW3dfD2w6cbLfk
32 lines
1.4 KiB
Svelte
32 lines
1.4 KiB
Svelte
<script lang="ts">
|
|
import type { FooterGlobal } from '$lib/types';
|
|
let { footer } = $props<{ footer: FooterGlobal }>();
|
|
</script>
|
|
|
|
<footer class="mt-12 border-t border-charcoal/5 bg-white/45">
|
|
<div class="mx-auto grid max-w-6xl gap-10 px-6 py-12 md:grid-cols-[1.2fr_1fr_1fr]">
|
|
<div>
|
|
<h2 class="text-3xl">{footer.businessName}</h2>
|
|
<p class="mt-4 max-w-sm leading-7 text-charcoal/65">{footer.tagline}</p>
|
|
</div>
|
|
<div class="space-y-2 text-charcoal/70">
|
|
{#if footer.address}<p>{footer.address}</p>{/if}
|
|
{#if footer.phone}<p><a class="hover:text-sage-dark" href={`tel:${footer.phone}`}>{footer.phone}</a></p>{/if}
|
|
{#if footer.email}<p><a class="hover:text-sage-dark" href={`mailto:${footer.email}`}>{footer.email}</a></p>{/if}
|
|
</div>
|
|
<div class="space-y-3">
|
|
{#each footer.socialLinks || [] as link}
|
|
{#if link.url}
|
|
<a class="block font-semibold capitalize text-sage-dark hover:text-terracotta" href={link.url} target="_blank" rel="noreferrer">{link.platform}</a>
|
|
{/if}
|
|
{/each}
|
|
</div>
|
|
</div>
|
|
<div class="border-t border-charcoal/5 px-6 py-5 text-center text-sm text-charcoal/55">
|
|
{footer.copyrightText}
|
|
{#if footer.privacyPage}
|
|
<span aria-hidden="true">·</span>
|
|
<a class="underline-offset-2 hover:text-sage-dark hover:underline" href={`/${footer.privacyPage}`}>Privacy policy</a>
|
|
{/if}
|
|
</div>
|
|
</footer>
|