Site design: separate booking page and basket page
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
This commit is contained in:
parent
76b297153e
commit
c3c10229b0
12 changed files with 105 additions and 28 deletions
|
|
@ -1,4 +1,7 @@
|
|||
<script lang="ts">
|
||||
import { page } from '$app/state';
|
||||
import { shopLinks } from '$shared/types';
|
||||
|
||||
let { data } = $props<{
|
||||
data: {
|
||||
heading?: string;
|
||||
|
|
@ -21,7 +24,7 @@
|
|||
{/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 || '/book'}>
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue