The header button, the basket indicator, the shop's "view basket" links, hero buttons and the payment return page all pointed at a hard-coded /book. Site design now has a Booking page (where the CTA leads) and a Basket page (where the basket leads; empty = the booking page), and warns when the page picked is unpublished or lacks its Shop / Checkout block. On a basket page of its own, an empty basket links to the booking page instead of saying "pick a service above". Sites saved before this keep their links: the booking page falls back to the CTA's old address, then /book. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
33 lines
1.2 KiB
Svelte
33 lines
1.2 KiB
Svelte
<script lang="ts">
|
|
import { page } from '$app/state';
|
|
import { shopLinks } from '$shared/types';
|
|
|
|
let { data } = $props<{
|
|
data: {
|
|
heading?: string;
|
|
subheading?: string;
|
|
buttonLabel?: string;
|
|
buttonUrl?: string;
|
|
};
|
|
}>();
|
|
</script>
|
|
|
|
<section class="relative flex min-h-[80vh] items-center justify-center overflow-hidden px-6 py-20 md:min-h-[90vh]">
|
|
<div class="relative z-10 mx-auto max-w-4xl text-center">
|
|
<h1 class="animate-fade-in text-5xl leading-tight text-fg-heading md:text-7xl lg:text-8xl" style="font-family: 'Playfair Display', Georgia, serif;">
|
|
{data.heading || 'Holistic and Experiential Learning about Happiness'}
|
|
</h1>
|
|
{#if data.subheading}
|
|
<p class="animate-fade-in mx-auto mt-6 max-w-2xl text-lg leading-relaxed text-fg-subheading/70 md:text-xl" style="animation-delay: 0.15s;">
|
|
{data.subheading}
|
|
</p>
|
|
{/if}
|
|
{#if data.buttonLabel}
|
|
<div class="animate-fade-in mt-10" style="animation-delay: 0.3s;">
|
|
<a class="btn rounded-full border-0 bg-sage px-10 py-3 text-lg text-primary-content shadow-lg transition hover:bg-sage-dark hover:shadow-xl" href={data.buttonUrl || shopLinks(page.data.header).booking}>
|
|
{data.buttonLabel}
|
|
</a>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</section>
|