fix(birthday): remove static fallback — respect CMS featured flag
This commit is contained in:
parent
96c08391e1
commit
c6542873b0
1 changed files with 1 additions and 52 deletions
|
|
@ -6,57 +6,6 @@ const IMG_CHECK = '/images/figma/check-mark.webp'
|
|||
const IMG_PATTERN_GREEN = '/images/figma/card-pattern-light.png' // lighter green on transparent → visible on dark green bg
|
||||
const IMG_PATTERN_ORANGE = '/images/figma/card-pattern-dark.png' // dark green on transparent → visible on orange bg
|
||||
|
||||
const STATIC_PACKAGES: BirthdayPackageCMS[] = [
|
||||
{
|
||||
id: 'standard',
|
||||
name: 'Стандарт',
|
||||
slug: 'standard',
|
||||
price: 4500,
|
||||
featured: false,
|
||||
features: [
|
||||
{ text: 'Вхід для іменинника + 5 дітей' },
|
||||
{ text: 'Анімаційна програма (1 год)' },
|
||||
{ text: 'Декорації столу' },
|
||||
{ text: 'Торт від кондитера' },
|
||||
],
|
||||
ctaHref: '/dni-narodzhennia#order-form',
|
||||
ctaLabel: 'Обрати пакет',
|
||||
},
|
||||
{
|
||||
id: 'premium',
|
||||
name: 'Преміум',
|
||||
slug: 'premium',
|
||||
price: 8900,
|
||||
featured: true,
|
||||
badge: 'Найпопулярніший',
|
||||
features: [
|
||||
{ text: 'Вхід для іменинника + 10 дітей' },
|
||||
{ text: 'Анімаційна програма (3 год)' },
|
||||
{ text: 'Повна декорація локації' },
|
||||
{ text: 'Фотозона та фотограф' },
|
||||
{ text: 'Сюрприз-подарунок кожному' },
|
||||
],
|
||||
ctaHref: '/dni-narodzhennia#order-form',
|
||||
ctaLabel: 'Обрати пакет',
|
||||
},
|
||||
{
|
||||
id: 'vip',
|
||||
name: 'VIP',
|
||||
slug: 'vip',
|
||||
price: 15000,
|
||||
featured: false,
|
||||
features: [
|
||||
{ text: 'Вхід для іменинника + 20 гостей' },
|
||||
{ text: 'Індивідуальний сценарій' },
|
||||
{ text: 'Квест по всьому парку' },
|
||||
{ text: 'Відео-звіт свята' },
|
||||
{ text: 'Персональний менеджер' },
|
||||
],
|
||||
ctaHref: '/dni-narodzhennia#order-form',
|
||||
ctaLabel: 'Обрати пакет',
|
||||
},
|
||||
]
|
||||
|
||||
interface BirthdayPricingProps {
|
||||
packages?: BirthdayPackageCMS[]
|
||||
title?: string
|
||||
|
|
@ -64,7 +13,7 @@ interface BirthdayPricingProps {
|
|||
}
|
||||
|
||||
export function BirthdayPricing({ packages, title, intro }: BirthdayPricingProps) {
|
||||
const activePackages = packages && packages.length > 0 ? packages : STATIC_PACKAGES
|
||||
const activePackages = packages ?? []
|
||||
|
||||
return (
|
||||
<section className="bg-[#f1fbeb] py-[20px] md:py-[60px] lg:py-[40px]">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue