From b22a68bf121841f02d8365653fbf5587c687fb84 Mon Sep 17 00:00:00 2001 From: emil Date: Thu, 14 May 2026 15:33:48 +0300 Subject: [PATCH] feat(ads): replace custom banner with Admitad leaderboard --- src/components/AdBanner.astro | 99 +++++++---------------------------- 1 file changed, 18 insertions(+), 81 deletions(-) diff --git a/src/components/AdBanner.astro b/src/components/AdBanner.astro index e38cf6d..10b01cf 100644 --- a/src/components/AdBanner.astro +++ b/src/components/AdBanner.astro @@ -1,86 +1,23 @@ --- interface Props { - size: "leaderboard" | "rectangle" | "tile"; + size?: "leaderboard" | "rectangle" | "tile"; } - -const { size } = Astro.props; - -const ads = [ - { - href: "https://kjuzv.com/g/q6gfnfvsq067a6d0fce8a804937a48/?erid=MvGzQC98w3Z1gMq1kx5ACoy5", - label: "Читай-город — книги со скидкой", - sublabel: "Более 3 млн книг с доставкой по всей России", - cta: "Купить", - ctaMobile: "Купить", - }, -]; - -const ad = ads[Math.floor(Math.random() * ads.length)]; - -const specs = { - 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 { class: sizeClass, horizontal } = specs[size]; --- - + + + Читай-город + +