Adds a slim top bar above the packages and centres the last row of cards

The CMS serves a second banner at /api/v1/offerings/banner?position=top. The
site bakes it into the HTML at build time and replaces it live after
hydration, like the banner under the cards, and both may show at once.
The cards now sit in a wrapping flex row so an incomplete last row is centred
for any number of cards on desktop; phone and tablet stay one column.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 12:42:07 +01:00
co-authored by Claude Sonnet 5.5
parent e28188c997
commit 6f1be2f7f5
14 changed files with 474 additions and 20 deletions
+5 -1
View File
@@ -1,9 +1,11 @@
import type { PricingBanner, PricingPackage } from './types';
import type { PricingBanner, PricingPackage, PricingTopBanner } from './types';
import snapshot from './offerings.snapshot.json';
interface Offerings {
packages: PricingPackage[];
banner: PricingBanner | null;
// Missing in a generated file from before the top bar existed
topBanner?: PricingTopBanner | null;
}
// The shoot packages and the optional banner. config/fetchOfferings.ts writes
@@ -27,4 +29,6 @@ const packages: PricingPackage[] = offerings.packages;
export const banner: PricingBanner | null = offerings.banner;
export const topBanner: PricingTopBanner | null = offerings.topBanner ?? null;
export default packages;