@@ -11,10 +11,12 @@ import {
1111} from '@guardian/source/foundations' ;
1212import { SvgGuardianLogo } from '@guardian/source/react-components' ;
1313import { nestedOphanComponents } from '../lib/ophan-helpers' ;
14+ import type { Branding } from '../types/branding' ;
15+ import { BrandingLabel } from './BrandingLabel' ;
1416
15- type Props = {
17+ export type Props = {
1618 accentColor : string ;
17- branding : string ;
19+ branding : Branding ;
1820} ;
1921
2022const HOSTED_CONTENT_HEIGHT_MOBILE = 48 ;
@@ -95,15 +97,14 @@ const badgeWrapperStyles = css`
9597 position: absolute;
9698 dis play: block;
9799 width: 80px;
98- height: 45px; /* This is temporary, replace with actual badge height */
100+ height: au to ;
99101 to p: 100%;
100- background- color : ${ sourcePalette . neutral [ 60 ] } ;
101102 text- align: center;
102103 z- index: 10;
103104
104105 ${ from . desktop } {
105106 width: 132px;
106- height: 75px ;
107+ height: au to ;
107108 }
108109` ;
109110
@@ -125,10 +126,11 @@ const Right = ({ children }: { children: React.ReactNode }) => (
125126 < div
126127 css = { css `
127128 dis play: flex;
128- padding: ${ space [ 1 ] } px 10px;
129+ padding: ${ space [ 1 ] } px 0;
130+ margin- right: 10px;
129131
130- @media ( min-width : 330 px ) {
131- margin-right : 0.625 rem ;
132+ ${ from . mobileLandscape } {
133+ margin- right: ${ space [ 5 ] } px ;
132134 }
133135 ` }
134136 >
@@ -148,14 +150,16 @@ const HeaderSection = ({
148150 height: 100%;
149151 dis play: flex;
150152 align- items: center;
151- ${ isFirst ? ' margin-left: 1.25rem;' : 'margin-left: 0.625rem;' }
153+ margin- left: 10px;
152154
153- ${ from . desktop } {
154- ${ isFirst ? null : 'margin-left: 1.25rem;' }
155+ ${ from . mobileLandscape } {
156+ ${ isFirst
157+ ? `margin-left: ${ space [ 5 ] } px;`
158+ : 'margin-left: 10px;' }
155159 }
156160
157161 ${ from . leftCol } {
158- ${ isFirst ? null : ' margin-left: 2rem;' }
162+ ${ isFirst ? null : ` margin-left: ${ space [ 8 ] } px;` }
159163 }
160164 ` }
161165 >
@@ -180,8 +184,9 @@ const TitleAndBadge = ({ accentColor, branding }: Props) => (
180184 < p css = { titleStyles } > Advertiser content</ p >
181185 </ div >
182186
183- { /* The following div is a placeholder for the badge */ }
184- < div css = { badgeWrapperStyles } > { branding } </ div >
187+ < div css = { badgeWrapperStyles } >
188+ < BrandingLabel branding = { branding } isHosted = { true } />
189+ </ div >
185190 </ >
186191) ;
187192
0 commit comments