Place advertisement in empty space on homepage
Add an AdSense ad unit to the homepage, occupying the previously empty space to the left of the featured articles. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: cfdd2f06-528d-46d0-b0d1-f6b38bcf03b8 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/nFw7xof Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
db6233c8fb
commit
d56ce2aacf
@ -570,7 +570,17 @@ export default function Home() {
|
||||
</div>
|
||||
|
||||
{widePickedArticles.length > 0 && (
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4 lg:ml-auto lg:w-3/4">
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
|
||||
<div className="hidden lg:block rounded-lg overflow-hidden bg-card border border-card-border">
|
||||
<AdSense
|
||||
slot="3854634730"
|
||||
format="fluid"
|
||||
layoutKey="-6r+cy-10+8a-3"
|
||||
style={{ display: "block" }}
|
||||
className="w-full h-full min-h-[250px]"
|
||||
/>
|
||||
</div>
|
||||
<div className="hidden lg:block" />
|
||||
{widePickedArticles.map((a) => (
|
||||
<WideCard key={`wide-top-${a.id}`} article={a} focalPoints={focalPoints} />
|
||||
))}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user