Updates the packages and the banner live in the browser
The build still bakes the current packages and the active banner into the HTML. After hydration the page asks /api/v1/offerings and /api/v1/offerings/banner once and replaces what differs; errors and time-outs keep what was baked, and a 204 from the banner route hides the banner. The banner is now the OfferingBanner contract (title, text, optional link) instead of layout=banner. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -101,17 +101,15 @@ export interface PricingPackage {
|
||||
featured?: boolean;
|
||||
}
|
||||
|
||||
// The one optional banner under the price cards (an offering with
|
||||
// layout=banner in the CMS). It is not a bookable package: it is not in the
|
||||
// form's choices and not in the package count. The price is free text. Only
|
||||
// the title is required; the banner hides what is empty.
|
||||
// The one optional announcement banner under the price cards (GET
|
||||
// /api/v1/offerings/banner in the CMS). It is not a bookable package: it is
|
||||
// not in the form's choices and not in the package count. Only the title is
|
||||
// required; the banner hides what is empty. The link is a https address or a
|
||||
// path on this site.
|
||||
export interface PricingBanner {
|
||||
title: string;
|
||||
description?: string;
|
||||
priceText?: string;
|
||||
priceNote?: string;
|
||||
features: string[];
|
||||
ctaLabel?: string;
|
||||
text?: string;
|
||||
link?: { label: string; url: string };
|
||||
}
|
||||
|
||||
// The kinds of shoot Andrea offers. The ids are stable: they go into URLs
|
||||
|
||||
Reference in New Issue
Block a user