diff --git a/frontend/artifacts/BIT-26761/after-home-andebol.png b/frontend/artifacts/BIT-26761/after-home-andebol.png new file mode 100644 index 0000000..0f081e6 Binary files /dev/null and b/frontend/artifacts/BIT-26761/after-home-andebol.png differ diff --git a/frontend/artifacts/BIT-26761/after-latest-magazine.png b/frontend/artifacts/BIT-26761/after-latest-magazine.png new file mode 100644 index 0000000..bab275a Binary files /dev/null and b/frontend/artifacts/BIT-26761/after-latest-magazine.png differ diff --git a/frontend/artifacts/BIT-26761/before-home-viewport.png b/frontend/artifacts/BIT-26761/before-home-viewport.png new file mode 100644 index 0000000..7c231c7 Binary files /dev/null and b/frontend/artifacts/BIT-26761/before-home-viewport.png differ diff --git a/frontend/artifacts/BIT-26761/before-latest-compact.png b/frontend/artifacts/BIT-26761/before-latest-compact.png new file mode 100644 index 0000000..ccb2425 Binary files /dev/null and b/frontend/artifacts/BIT-26761/before-latest-compact.png differ diff --git a/frontend/src/components/home/LatestCompact.astro b/frontend/src/components/home/LatestCompact.astro index 03f7858..4f14cc1 100644 --- a/frontend/src/components/home/LatestCompact.astro +++ b/frontend/src/components/home/LatestCompact.astro @@ -21,145 +21,506 @@ const { } = Astro.props; const ui = getUiStrings(locale); const items = articles.slice(0, max_items); +const lead = items[0] ?? null; +const stacked = items.slice(1, 3); +const spotlight = items.slice(3, 7); +const dense = items.slice(7); + +function thumb(article: ArticleListItem, eager = false) { + return { + src: article.featured_image, + alt: article.featured_image_alt || article.title, + eager, + }; +} --- {items.length > 0 && ( -
+
-
-

{ui.latest_news}

+
+

{ui.latest_news}

{show_more_href && ( - {ui.view_all} + {ui.view_all} )}
-
    - {items.map((article, index) => ( -
  1. - -
    - - {article.category.name} - - - {truncate(article.title, 110)} + + {/* Photo-led mosaic: lead + stacked secondaries (BIT-26761) */} + {lead && ( +
    +
  2. - ))} -
+ + + {stacked.length > 0 && ( +
+ {stacked.map((article, i) => { + const t = thumb(article, i === 0); + return ( + + ); + })} +
+ )} +
+ )} + + {/* Mid band: four photo-dominant tiles */} + {spotlight.length > 0 && ( + + )} + + {/* Dense photo rail — remaining latest with thumbs on every item */} + {dense.length > 0 && ( + + )}
)} diff --git a/frontend/src/pages/index.astro b/frontend/src/pages/index.astro index 80df208..02e5c3d 100644 --- a/frontend/src/pages/index.astro +++ b/frontend/src/pages/index.astro @@ -65,7 +65,7 @@ const website_schema = { - {/* Compact rail near fold — denser than card grid (BIT-26753) */} + {/* Photo-led magazine mosaic near fold — thumbs on every latest item (BIT-26761) */}