fix(birthday): remove static fallback — respect CMS featured flag
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions

This commit is contained in:
Vadym Samoilenko 2026-06-05 11:31:50 +01:00
parent 96c08391e1
commit c6542873b0

View file

@ -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]">