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 (
|
||||
<div className="w-full flex justify-center py-1 px-2 bg-bunny-dark" ref={adRef}>
|
||||
{/* Responsive Header Ad */}
|
||||
<div className="w-full flex justify-center py-1 bg-bunny-dark" ref={adRef}>
|
||||
{/* Fixed Small Header Ad */}
|
||||
<ins
|
||||
className="adsbygoogle"
|
||||
style={{
|
||||
display: 'inline-block',
|
||||
width: '100%',
|
||||
maxWidth: '728px',
|
||||
height: '90px'
|
||||
width: '320px',
|
||||
height: '50px'
|
||||
}}
|
||||
data-ad-client="ca-pub-4465464714854276"
|
||||
data-ad-slot="7241323742"
|
||||
data-ad-format="auto"
|
||||
data-full-width-responsive="true"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -212,18 +212,6 @@ export default function Home() {
|
||||
{/* Fixed Header Ad */}
|
||||
<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">
|
||||
<div className="container">
|
||||
<NetflixGrid
|
||||
|
||||
Loading…
Reference in New Issue
Block a user