oglasni pas zozan na 728 px (leaderboard 90 px namesto 248-280) in redkejsi, po vsaki tretji vrstici
This commit is contained in:
@@ -157,13 +157,17 @@ export function GridBannerAd() {
|
|||||||
const [filled, setFilled] = useState<boolean | null>(null);
|
const [filled, setFilled] = useState<boolean | null>(null);
|
||||||
if (filled === false) return null;
|
if (filled === false) return null;
|
||||||
return (
|
return (
|
||||||
<div className="my-2" data-testid="ad-grid-banner">
|
// Pas cez vso sirino je bil visok 248 do 280 px in je bralca prekinil bolj,
|
||||||
|
// kot je prinesel. Zozimo ga na 728 px: pri tej sirini Google servira
|
||||||
|
// leaderboard 728x90, na telefonu pa 320x100. Rezanja ne uporabljamo,
|
||||||
|
// ker je obrezan oglas krsitev pravil.
|
||||||
|
<div className="my-2 mx-auto w-full max-w-[728px]" data-testid="ad-grid-banner">
|
||||||
<div className="text-[9px] text-muted-foreground/40 text-center pb-1 uppercase tracking-widest">
|
<div className="text-[9px] text-muted-foreground/40 text-center pb-1 uppercase tracking-widest">
|
||||||
Anzeige
|
Anzeige
|
||||||
</div>
|
</div>
|
||||||
<AdSense
|
<AdSense
|
||||||
slot="1023820241"
|
slot="1023820241"
|
||||||
format="auto"
|
format="horizontal"
|
||||||
responsive={true}
|
responsive={true}
|
||||||
style={{ display: "block" }}
|
style={{ display: "block" }}
|
||||||
onAdStatus={setFilled}
|
onAdStatus={setFilled}
|
||||||
|
|||||||
@@ -1072,7 +1072,7 @@ export default function Home() {
|
|||||||
? <MediumCard key={item.key} article={item.article} focalPoints={focalPoints} />
|
? <MediumCard key={item.key} article={item.article} focalPoints={focalPoints} />
|
||||||
: null
|
: null
|
||||||
)}
|
)}
|
||||||
{ri > 0 && (ri + 1) % 2 === 0 && (
|
{ri > 0 && (ri + 1) % 3 === 0 && (
|
||||||
<div className="sm:col-span-2 lg:col-span-4">
|
<div className="sm:col-span-2 lg:col-span-4">
|
||||||
<GridBannerAd />
|
<GridBannerAd />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user