Adsense fehler

This commit is contained in:
Timo Knuth 2026-01-12 17:36:38 +01:00
parent 5784a52e3c
commit 5b74b7b405
3 changed files with 3 additions and 40 deletions

View File

@ -352,19 +352,7 @@ export default function CryptoGenerator() {
</div> </div>
</div> </div>
{/* Leaderboard Ad - Below Form */}
<div className="mt-12 mb-12">
<div className="text-center text-xs text-slate-400 mb-2 uppercase tracking-wider">Advertisement</div>
<div className="flex justify-center bg-slate-50 rounded-xl p-4 border border-slate-100">
{/* @ts-ignore */}
<ad-banner
data-ad-slot="leaderboard-slot-id"
data-ad-format="auto"
full-width-responsive="true"
className="w-full max-w-[728px]"
/>
</div>
</div>
{/* Upsell Banner */} {/* Upsell Banner */}
<div className="mt-8 bg-gradient-to-r from-slate-900 to-slate-700 rounded-2xl p-6 flex flex-col sm:flex-row items-center justify-between gap-4"> <div className="mt-8 bg-gradient-to-r from-slate-900 to-slate-700 rounded-2xl p-6 flex flex-col sm:flex-row items-center justify-between gap-4">

View File

@ -20,31 +20,16 @@ export default function ToolsLayout({
/> />
<div className="flex-grow relative"> <div className="flex-grow relative">
{children} {children}
{/* Desktop Sidebar Ad - High Resolution Only */}
{/* Positioned absolute to the right, only visible on very wide screens (2xl) */}
<div className="hidden 2xl:block absolute right-4 top-32 w-[160px] z-10">
<div className="sticky top-24">
<div className="text-center text-[10px] text-slate-300 mb-1">AD</div>
<AdBanner
dataAdSlot="sidebar-slot-id"
dataAdFormat="vertical"
className="min-h-[600px] w-[160px]"
/>
</div>
</div>
</div> </div>
{/* Footer Ad Placement - Appears on ALL tool pages */} {/* Footer Ad Placement - Appears on ALL tool pages */}
{/* AdBanner handles its own visibility - only shows when an ad is filled */}
<div className="container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl pb-8"> <div className="container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl pb-8">
<div className="mx-auto max-w-4xl text-center text-xs text-slate-400 mb-2">
Sponsored
</div>
<AdBanner <AdBanner
dataAdSlot="1234567890" // Placeholder dataAdSlot="1234567890" // Placeholder
dataAdFormat="auto" dataAdFormat="auto"
fullWidthResponsive={true} fullWidthResponsive={true}
className="bg-slate-50 rounded-xl p-4 border border-slate-100 min-h-[100px]" className="bg-slate-50 rounded-xl p-4 border border-slate-100"
/> />
</div> </div>
</div> </div>

View File

@ -277,16 +277,6 @@ export const InstantGenerator: React.FC<InstantGeneratorProps> = ({ t }) => {
</div> </div>
</motion.div> </motion.div>
</div> </div>
{/* Leaderboard Ad */}
<div className="mt-16 max-w-4xl mx-auto">
<div className="text-center text-xs text-gray-400 mb-2 uppercase tracking-wider">Advertisement</div>
<AdBanner
dataAdSlot="leaderboard-slot-id"
dataAdFormat="auto"
className="bg-white rounded-xl p-4 border border-gray-100 shadow-sm min-h-[90px]"
/>
</div>
</div> </div>
</section> </section>
); );