From 5bf8ac261fe91b69e457472c560c020445e0a79d Mon Sep 17 00:00:00 2001 From: Frederick O'Brien Date: Wed, 25 Feb 2026 16:33:03 +0000 Subject: [PATCH 01/27] Rough implementation for mobile view --- .../src/layouts/StandardLayout.tsx | 362 +++--------------- 1 file changed, 55 insertions(+), 307 deletions(-) diff --git a/dotcom-rendering/src/layouts/StandardLayout.tsx b/dotcom-rendering/src/layouts/StandardLayout.tsx index 65ebfbc5994..18711289bb0 100644 --- a/dotcom-rendering/src/layouts/StandardLayout.tsx +++ b/dotcom-rendering/src/layouts/StandardLayout.tsx @@ -27,7 +27,6 @@ import { DiscussionLayout } from '../components/DiscussionLayout'; import { FootballMatchHeaderWrapper } from '../components/FootballMatchHeaderWrapper.island'; import { FootballMatchInfoWrapper } from '../components/FootballMatchInfoWrapper.island'; import { Footer } from '../components/Footer'; -import { GridItem } from '../components/GridItem'; import { GuardianLabsLines } from '../components/GuardianLabsLines'; import { HeaderAdSlot } from '../components/HeaderAdSlot'; import { Island } from '../components/Island'; @@ -39,13 +38,13 @@ import { MostViewedFooterData } from '../components/MostViewedFooterData.island' import { MostViewedFooterLayout } from '../components/MostViewedFooterLayout'; import { MostViewedRightWithAd } from '../components/MostViewedRightWithAd.island'; import { OnwardsUpper } from '../components/OnwardsUpper.island'; -import { RightColumn } from '../components/RightColumn'; import { Section } from '../components/Section'; import { SlotBodyEnd } from '../components/SlotBodyEnd.island'; import { Standfirst } from '../components/Standfirst'; import { StickyBottomBanner } from '../components/StickyBottomBanner.island'; import { SubMeta } from '../components/SubMeta'; import { SubNav } from '../components/SubNav.island'; +import { grid } from '../grid'; import { ArticleDesign, type ArticleFormat, @@ -63,239 +62,6 @@ import type { ArticleDeprecated } from '../types/article'; import type { RenderingTarget } from '../types/renderingTarget'; import { BannerWrapper, Stuck } from './lib/stickiness'; -const StandardGrid = ({ - children, - isMatchReport, - isMedia, -}: { - children: React.ReactNode; - isMatchReport: boolean; - isMedia: boolean; -}) => ( -
- {children} -
-); - const maxWidth = css` ${from.desktop} { max-width: 620px; @@ -459,21 +225,9 @@ export const StandardLayout = (props: WebProps | AppProps) => { pageId={article.pageId} pageTags={article.tags} /> -
- - +
+
+
{ contentLayout="StandardLayout" />
- - +
+ - +
{format.theme === ArticleSpecial.Labs ? ( <> ) : ( )} - - +
+
{ starRating={article.starRating} />
- - +
+
- - +
+ +
{/* Only show Listen to Article button on App landscape views */} {isApps && ( @@ -781,53 +545,37 @@ export const StandardLayout = (props: WebProps | AppProps) => { } /> - - -
+
+ + - - - - - -
- - -
+ /> + + + + {isWeb && renderAds && !isLabs && (
Date: Fri, 27 Feb 2026 13:57:33 +0000 Subject: [PATCH 02/27] Desktop layout --- .../src/layouts/StandardLayout.tsx | 38 ++++++++++++++----- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/dotcom-rendering/src/layouts/StandardLayout.tsx b/dotcom-rendering/src/layouts/StandardLayout.tsx index 18711289bb0..d8863ed19ba 100644 --- a/dotcom-rendering/src/layouts/StandardLayout.tsx +++ b/dotcom-rendering/src/layouts/StandardLayout.tsx @@ -79,6 +79,12 @@ const stretchLines = css` } `; +const desktopRow = (row: number) => css` + ${from.desktop} { + grid-row: ${row}; + } +`; + interface Props { article: ArticleDeprecated; format: ArticleFormat; @@ -271,7 +277,7 @@ export const StandardLayout = (props: WebProps | AppProps) => { )} -
+
{ />
-
+