diff --git a/src/components/AdBanner.astro b/src/components/AdBanner.astro index 1073155..1f40538 100644 --- a/src/components/AdBanner.astro +++ b/src/components/AdBanner.astro @@ -5,12 +5,29 @@ interface Props { const { size } = Astro.props; -const href = 'https://redirect.appmetrica.yandex.com/serve/29835370459904648?clid=15006577&appmetrica_js_redirect=0'; +const ads = [ + { + href: 'https://redirect.appmetrica.yandex.com/serve/29835370459904648?clid=15006577&appmetrica_js_redirect=0', + label: 'Яндекс с Алисой — скачать бесплатно', + sublabel: 'Голосовой ИИ-помощник для Android и iOS', + cta: 'Установить', + ctaMobile: 'Установить бесплатно', + }, + { + href: 'https://yandex.ru/project/browser/bonus/multioffer/affiliate_4prod?source=pWRP8eS1VsC2X59560&partner_string=P89XvN11U6RuE47077&cliddbro=15006579&clidmbro=15006578&cliddefault=15006570&clidpp=15006567', + label: 'Яндекс Браузер — быстрый и безопасный', + sublabel: 'Браузер с Алисой и защитой от угроз', + cta: 'Скачать', + ctaMobile: 'Скачать бесплатно', + }, +]; + +const ad = ads[Math.floor(Math.random() * ads.length)]; const specs = { - leaderboard: { class: 'w-full h-[90px]', horizontal: true }, + leaderboard: { class: 'w-full h-[90px]', horizontal: true }, rectangle: { class: 'w-full max-w-[300px] h-[250px]', horizontal: false }, - tile: { class: 'w-full h-[250px]', horizontal: false }, + tile: { class: 'w-full h-[250px]', horizontal: false }, }; const { class: sizeClass, horizontal } = specs[size]; @@ -18,12 +35,11 @@ const { class: sizeClass, horizontal } = specs[size];