From fe5bb4f39ce5b3a335177d20964d29b255b9fd1b Mon Sep 17 00:00:00 2001 From: emil Date: Sat, 9 May 2026 14:40:00 +0300 Subject: [PATCH] feat: replace ad placeholders with Yandex app referral banners Leaderboard shows horizontal layout with logo, text and CTA button. Tile/rectangle show vertical layout. All link to Yandex referral URL with rel=sponsored. Co-Authored-By: Claude Sonnet 4.6 --- src/components/AdBanner.astro | 54 ++++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 10 deletions(-) diff --git a/src/components/AdBanner.astro b/src/components/AdBanner.astro index f516d91..1073155 100644 --- a/src/components/AdBanner.astro +++ b/src/components/AdBanner.astro @@ -5,20 +5,54 @@ interface Props { const { size } = Astro.props; +const href = 'https://redirect.appmetrica.yandex.com/serve/29835370459904648?clid=15006577&appmetrica_js_redirect=0'; + const specs = { - leaderboard: { label: '728 × 90', class: 'w-full h-[90px]' }, - rectangle: { label: '300 × 250', class: 'w-full max-w-[300px] h-[250px]' }, - tile: { label: '300 × 250', class: 'w-full h-[250px]' }, + 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 }, }; -const { label, class: sizeClass } = specs[size]; +const { class: sizeClass, horizontal } = specs[size]; --- -