Skip to content

Commit 04a54ba

Browse files
authored
Merge pull request #14561 from guardian/doml/us-masthead-articles
Add US masthead to articles
2 parents 62b8d09 + b737096 commit 04a54ba

16 files changed

+72
-0
lines changed

dotcom-rendering/src/components/Masthead/Masthead.stories.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const meta = {
3030
},
3131
},
3232
} satisfies Meta<typeof Masthead>;
33+
3334
export default meta;
3435

3536
export const WithoutSubnav = {};
@@ -49,3 +50,30 @@ export const WithPageSkin = {
4950
export const WithPageSkinAndContentSelfContstrain = {
5051
args: { hasPageSkinContentSelfConstrain: true },
5152
};
53+
54+
export const WithUsLogoAndWithoutSubnav = {
55+
args: { wholePictureLogoSwitch: true, editionId: 'US' },
56+
};
57+
58+
export const WithUsLogoAndSubnav = {
59+
args: { ...WithUsLogoAndWithoutSubnav.args, showSubNav: true },
60+
};
61+
62+
export const WithUsLogoAndSlimNav = {
63+
args: {
64+
...WithUsLogoAndWithoutSubnav.args,
65+
showSlimNav: true,
66+
displayRoundel: true,
67+
},
68+
};
69+
70+
export const WithUsLogoAndPageSkin = {
71+
args: { ...WithUsLogoAndWithoutSubnav.args, hasPageSkin: true },
72+
};
73+
74+
export const WithUsLogoAndPageSkinAndContentSelfContstrain = {
75+
args: {
76+
...WithUsLogoAndWithoutSubnav.args,
77+
hasPageSkinContentSelfConstrain: true,
78+
},
79+
};

dotcom-rendering/src/layouts/AllEditorialNewslettersPageLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const AllEditorialNewslettersPageLayout = ({
4444
showSlimNav={false}
4545
hasPageSkin={false}
4646
hasPageSkinContentSelfConstrain={false}
47+
wholePictureLogoSwitch={config.switches.wholePictureLogo}
4748
/>
4849
</div>
4950

dotcom-rendering/src/layouts/AudioLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ export const AudioLayout = (props: WebProps) => {
184184
showSlimNav={false}
185185
hasPageSkinContentSelfConstrain={true}
186186
pageId={article.pageId}
187+
wholePictureLogoSwitch={
188+
article.config.switches.wholePictureLogo
189+
}
187190
/>
188191
</div>
189192

dotcom-rendering/src/layouts/CommentLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ export const CommentLayout = (props: WebProps | AppsProps) => {
335335
hasPageSkin={false}
336336
hasPageSkinContentSelfConstrain={false}
337337
pageId={article.pageId}
338+
wholePictureLogoSwitch={
339+
article.config.switches.wholePictureLogo
340+
}
338341
/>
339342
</div>
340343
)}

dotcom-rendering/src/layouts/CrosswordLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ export const CrosswordLayout = (props: Props) => {
157157
hasPageSkin={false}
158158
hasPageSkinContentSelfConstrain={false}
159159
pageId={article.pageId}
160+
wholePictureLogoSwitch={
161+
article.config.switches.wholePictureLogo
162+
}
160163
/>
161164
</div>
162165

dotcom-rendering/src/layouts/FullPageInteractiveLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ const NavHeader = ({ article, NAV, renderAds }: HeaderProps) => {
181181
hasPageSkin={false}
182182
hasPageSkinContentSelfConstrain={false}
183183
pageId={article.pageId}
184+
wholePictureLogoSwitch={
185+
article.config.switches.wholePictureLogo
186+
}
184187
/>
185188
</section>
186189
);

dotcom-rendering/src/layouts/GalleryLayout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
181181
frontendData.isCommentable && !frontendData.config.isPaidContent;
182182

183183
const { absoluteServerTimes = false } = switches;
184+
184185
return (
185186
<>
186187
{isWeb && (
@@ -213,6 +214,7 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
213214
hasPageSkin={false}
214215
hasPageSkinContentSelfConstrain={false}
215216
pageId={frontendData.pageId}
217+
wholePictureLogoSwitch={switches.wholePictureLogo}
216218
/>
217219
</div>
218220
)}

dotcom-rendering/src/layouts/ImmersiveLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ export const ImmersiveLayout = (props: WebProps | AppProps) => {
326326
hasPageSkin={false}
327327
hasPageSkinContentSelfConstrain={false}
328328
pageId={article.pageId}
329+
wholePictureLogoSwitch={
330+
article.config.switches.wholePictureLogo
331+
}
329332
/>
330333
)}
331334

dotcom-rendering/src/layouts/InteractiveLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ export const InteractiveLayout = (props: WebProps | AppsProps) => {
291291
hasPageSkin={false}
292292
hasPageSkinContentSelfConstrain={false}
293293
pageId={article.pageId}
294+
wholePictureLogoSwitch={
295+
article.config.switches.wholePictureLogo
296+
}
294297
/>
295298
</div>
296299

dotcom-rendering/src/layouts/LiveLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ export const LiveLayout = (props: WebProps | AppsProps) => {
327327
hasPageSkin={false}
328328
hasPageSkinContentSelfConstrain={false}
329329
pageId={article.pageId}
330+
wholePictureLogoSwitch={
331+
article.config.switches.wholePictureLogo
332+
}
330333
/>
331334
</div>
332335
)}

0 commit comments

Comments
 (0)