import '../../variants.css'; import '../../home.css'; import { createT, formatAmd, isLocale, LOCALES, type Locale } from '@barev/i18n'; import type { Viewport } from 'next'; import { notFound } from 'next/navigation'; import { BotLink, BotLinkProvider } from '../../../components/client'; import { AudienceSwitch, ClubPlans, HomeFooter, homeMetadata } from '../../../components/home'; import { ClubJsonLd } from '../../../components/seo'; import { VariantHeader } from '../../../components/variant'; import { getCatalog } from '../../../lib/data'; export const revalidate = 300; export const dynamicParams = false; export function generateStaticParams() { return LOCALES.map((locale) => ({ locale })); } export function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { return homeMetadata(params, '/live'); } export const viewport: Viewport = { themeColor: '#4A1028' }; /** * Прайс по подписке: клининг можно заказать сразу, трансфер — со скидкой Elite, документы — «от N ֏», * остальное пока «скоро». */ const ITEMS = [ { key: 'cleaning', value: 'order' }, { key: 'repair', value: 'soon' }, { key: 'transfer', value: 'pct' }, { key: 'tours', value: 'soon' }, { key: 'docs', value: 'from' }, { key: 'lang', value: 'soon' }, { key: 'career', value: 'soon' }, { key: 'partners', value: 'soon' }, ] as const; /** Версия главной «Уже живу в Армении»: что даёт подписка — скидки по направлениям и тарифы */ export default async function Live({ params }: { params: Promise<{ locale: string }> }) { const { locale: raw } = await params; if (!isLocale(raw)) notFound(); const locale: Locale = raw; const t = createT(locale); const catalog = await getCatalog(); return (

{t('landing.live.title')}

{t('landing.live.sub')}

{t('landing.live.cta')} {t('landing.live.ctaPlans')}

{t('landing.live.listTitle')}

{t('landing.live.listNote', { pct: catalog.offer.plusMaxPct })}

    {ITEMS.map((it) => (
  • {t(`landing.live.${it.key}`)}
  • ))}

{t('landing.live.finalTitle')}

{t('landing.live.finalText')}

{t('landing.live.cta')}
); }