Position selected articles to the right side of the page
Adjust the grid layout in `home.tsx` to move `widePickedArticles` to the rightmost columns, utilizing `lg:col-span-4` and `lg:col-start-2` to occupy the last two columns of the grid. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 0904917f-f1f9-4996-9c69-534ba0bda3e8 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
c69efcc53c
commit
7c97f05c36
BIN
attached_assets/image_1772475769889.png
Normal file
BIN
attached_assets/image_1772475769889.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 381 KiB |
@ -561,13 +561,6 @@ export default function Home() {
|
|||||||
<div className="grid grid-cols-1 lg:grid-cols-4 gap-4">
|
<div className="grid grid-cols-1 lg:grid-cols-4 gap-4">
|
||||||
<div className="lg:col-span-3 space-y-4">
|
<div className="lg:col-span-3 space-y-4">
|
||||||
<FeaturedCarousel articles={articles} popular={popular} galleryImages={galleryImages} focalPoints={focalPoints} />
|
<FeaturedCarousel articles={articles} popular={popular} galleryImages={galleryImages} focalPoints={focalPoints} />
|
||||||
{widePickedArticles.length > 0 && (
|
|
||||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
|
||||||
{widePickedArticles.map((a) => (
|
|
||||||
<WideCard key={`wide-top-${a.id}`} article={a} focalPoints={focalPoints} />
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
<div className="lg:col-span-1 space-y-4">
|
<div className="lg:col-span-1 space-y-4">
|
||||||
<SidebarWeatherWidget />
|
<SidebarWeatherWidget />
|
||||||
@ -576,6 +569,15 @@ export default function Home() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{widePickedArticles.length > 0 && (
|
||||||
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
|
||||||
|
<div className="hidden lg:block lg:col-span-2" />
|
||||||
|
{widePickedArticles.map((a) => (
|
||||||
|
<WideCard key={`wide-top-${a.id}`} article={a} focalPoints={focalPoints} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{gridRows.map((row, ri) => (
|
{gridRows.map((row, ri) => (
|
||||||
<div key={`row-${ri}`} className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
|
<div key={`row-${ri}`} className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
|
||||||
{row.map((item) =>
|
{row.map((item) =>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user