Adjust homepage ads to improve ad display and placement
Remove banner ad from homepage and update HeaderAd component to use a fixed size. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 45a1dcfc-f8a2-475a-a6b9-96fbb841dc27 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/60d372ff-2c10-46c7-b01b-10c3435136b0/45a1dcfc-f8a2-475a-a6b9-96fbb841dc27/FdOxfnm
This commit is contained in:
parent
7c5ede7cdf
commit
bb2a61bff6
@ -21,20 +21,17 @@ export default function HeaderAd() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full flex justify-center py-1 px-2 bg-bunny-dark" ref={adRef}>
|
<div className="w-full flex justify-center py-1 bg-bunny-dark" ref={adRef}>
|
||||||
{/* Responsive Header Ad */}
|
{/* Fixed Small Header Ad */}
|
||||||
<ins
|
<ins
|
||||||
className="adsbygoogle"
|
className="adsbygoogle"
|
||||||
style={{
|
style={{
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
width: '100%',
|
width: '320px',
|
||||||
maxWidth: '728px',
|
height: '50px'
|
||||||
height: '90px'
|
|
||||||
}}
|
}}
|
||||||
data-ad-client="ca-pub-4465464714854276"
|
data-ad-client="ca-pub-4465464714854276"
|
||||||
data-ad-slot="7241323742"
|
data-ad-slot="7241323742"
|
||||||
data-ad-format="auto"
|
|
||||||
data-full-width-responsive="true"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -212,18 +212,6 @@ export default function Home() {
|
|||||||
{/* Fixed Header Ad */}
|
{/* Fixed Header Ad */}
|
||||||
<HeaderAd />
|
<HeaderAd />
|
||||||
|
|
||||||
{/* Header Banner Ad */}
|
|
||||||
<div className="container py-4 border-b border-white/10">
|
|
||||||
<div className="w-full flex justify-center">
|
|
||||||
<AdSenseAd
|
|
||||||
adSlot="5972813417"
|
|
||||||
width={728}
|
|
||||||
height={90}
|
|
||||||
className="max-w-full"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<main className="w-full pt-8 pb-8 relative">
|
<main className="w-full pt-8 pb-8 relative">
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<NetflixGrid
|
<NetflixGrid
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user