@@ -35,6 +35,7 @@ type Props = {
3535 collectionId : number ;
3636 /** Feature flag for the labs redesign work */
3737 showLabsRedesign ?: boolean ;
38+ SCStyle ?: boolean ;
3839} ;
3940
4041type RowLayout = 'oneCardHalfWidth' | 'oneCardFullWidth' | 'twoCard' ;
@@ -172,6 +173,7 @@ const decideSplashCardProperties = (
172173 mediaCard : boolean ,
173174 useLargerHeadlineSizeDesktop : boolean ,
174175 avatarUrl : boolean ,
176+ SCStyle ?: boolean ,
175177) : BoostedSplashProperties => {
176178 switch ( boostLevel ) {
177179 // The default boost level is equal to no boost. It is the same as the default card layout.
@@ -201,10 +203,13 @@ const decideSplashCardProperties = (
201203 mediaPositionOnDesktop : 'right' ,
202204 mediaPositionOnMobile : mediaCard ? 'top' : 'bottom' ,
203205 mediaSize : avatarUrl ? 'large' : 'xlarge' ,
204- supportingContentAlignment :
205- supportingContentLength >= 4 ? 'horizontal' : 'vertical' ,
206+ supportingContentAlignment : SCStyle
207+ ? 'vertical'
208+ : supportingContentLength >= 4
209+ ? 'horizontal'
210+ : 'vertical' ,
206211 liveUpdatesAlignment : 'vertical' ,
207- trailTextSize : 'regular' ,
212+ trailTextSize : SCStyle ? 'large' : 'regular' ,
208213 subtitleSize : 'medium' ,
209214 } ;
210215 case 'megaboost' :
@@ -256,6 +261,7 @@ type SplashCardLayoutProps = {
256261 collectionId : number ;
257262 /** Feature flag for the labs redesign work */
258263 showLabsRedesign ?: boolean ;
264+ SCStyle ?: boolean ;
259265} ;
260266
261267const SplashCardLayout = ( {
@@ -269,6 +275,7 @@ const SplashCardLayout = ({
269275 containerLevel,
270276 collectionId,
271277 showLabsRedesign,
278+ SCStyle,
272279} : SplashCardLayoutProps ) => {
273280 const card = cards [ 0 ] ;
274281 if ( ! card ) return null ;
@@ -308,6 +315,7 @@ const SplashCardLayout = ({
308315 isMediaCard ( card . format ) ,
309316 useLargerHeadlineSizeDesktop ,
310317 ! ! card . avatarUrl ,
318+ SCStyle ,
311319 ) ;
312320
313321 return (
@@ -617,12 +625,17 @@ export const FlexibleGeneral = ({
617625 containerLevel = 'Primary' ,
618626 collectionId,
619627 showLabsRedesign,
628+ SCStyle = false ,
620629} : Props ) => {
621630 const splash = [ ...groupedTrails . splash ] . slice ( 0 , 1 ) . map ( ( snap ) => ( {
622631 ...snap ,
623632 uniqueId : `collection-${ collectionId } -splash-0` ,
624633 } ) ) ;
625634
635+ splash [ 0 ] ?. headline . includes ( 'Senate' ) &&
636+ containerLevel === 'Primary' &&
637+ console . dir ( { groupedTrails } , { depth : null } ) ;
638+
626639 const cards = [ ...groupedTrails . standard ]
627640 . slice ( 0 , 19 )
628641 . map ( ( standard , i ) => ( {
@@ -646,6 +659,7 @@ export const FlexibleGeneral = ({
646659 containerLevel = { containerLevel }
647660 collectionId = { collectionId }
648661 showLabsRedesign = { showLabsRedesign }
662+ SCStyle = { SCStyle }
649663 />
650664 ) }
651665 { groupedCards . map ( ( row , i ) => {
0 commit comments