Oglasi: vsebinske enote odzivne namesto fiksnih 90px, multiplex na koncu clanka
This commit is contained in:
parent
590e5438d3
commit
561d15d8b3
@ -109,14 +109,15 @@ export function TopBannerAd() {
|
||||
}
|
||||
|
||||
export function InArticleAd() {
|
||||
// Odzivna enota: AdSense sam izbere obliko (na mobilnem 300x250 / 336x280,
|
||||
// na namizju leaderboard). Fiksnih 90 px je najslabse placana oblika.
|
||||
return (
|
||||
<div className="my-6 rounded-md overflow-hidden bg-card border border-card-border" style={{ minHeight: "106px" }}>
|
||||
<div className="my-6 rounded-md overflow-hidden bg-card border border-card-border" style={{ minHeight: "260px" }}>
|
||||
<div className="text-[9px] text-muted-foreground/40 text-center pt-1 uppercase tracking-widest">Anzeige</div>
|
||||
<AdSense
|
||||
slot="4154017639"
|
||||
format="horizontal"
|
||||
style={{ display: "block", width: "100%", height: "90px" }}
|
||||
responsive={false}
|
||||
format="auto"
|
||||
style={{ display: "block", width: "100%" }}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -9,7 +9,7 @@ import { Button } from "@/components/ui/button";
|
||||
import { Skeleton } from "@/components/ui/skeleton";
|
||||
import Header from "@/components/header";
|
||||
import Footer from "@/components/footer";
|
||||
import AdSense, { InArticleAd, PageSideAds } from "@/components/adsense";
|
||||
import AdSense, { InArticleAd, PageSideAds, MultiplexAd } from "@/components/adsense";
|
||||
import { useIsMobile } from "@/hooks/use-mobile";
|
||||
import DOMPurify from "dompurify";
|
||||
import ShareButtons from "@/components/share-buttons";
|
||||
@ -418,6 +418,11 @@ export default function ArticlePage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="mt-6" data-testid="ad-multiplex-end">
|
||||
<div className="text-[9px] text-muted-foreground/40 text-center pb-1 uppercase tracking-widest">Anzeige</div>
|
||||
<MultiplexAd />
|
||||
</div>
|
||||
|
||||
<RelatedArticles currentSlug={slug || ""} />
|
||||
</main>
|
||||
<ParallaxAd />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user