@@ -359,15 +359,7 @@ const sectionContentBorderFromLeftCol = css`
359359 }
360360` ;
361361
362- // const sectionBottomContent = css`
363- // grid-row: bottom-content;
364- // grid-column: content;
365- // .hidden > & {
366- // display: none;
367- // }
368- // `;
369-
370- const sectionTreats = css `
362+ const sectionFooter = css `
371363 /* Mobile: treats appear at the bottom */
372364 grid- row: botto m- content;
373365 grid- column: content;
@@ -411,26 +403,6 @@ const topBorder = css`
411403 bor der- to p- style: solid;
412404` ;
413405
414- // const bottomPadding = css`
415- // padding-bottom: ${space[4]}px;
416- // `;
417-
418- // const bottomPaddingBetaContainer = (
419- // useLargeSpacingMobile: boolean,
420- // useLargeSpacingDesktop: boolean,
421- // ) => css`
422- // ${until.tablet} {
423- // padding-bottom: ${useLargeSpacingMobile
424- // ? `${space[8]}px`
425- // : `${space[4]}px` };
426- // }
427- // ${from.tablet} {
428- // padding-bottom: ${useLargeSpacingDesktop
429- // ? `${space[8]}px`
430- // : `${space[4]}px` };
431- // }
432- // `;
433-
434406const primaryLevelTopBorder = (
435407 title ?: string ,
436408 showSectionColours ?: boolean ,
@@ -541,11 +513,11 @@ const carouselNavigationPlaceholder = css`
541513 *
542514 */
543515
544- // largely a copy of front section
545- // can probably be trimmed down further once we are sure of requirements
546- // mainly needed for a couple of reasons:
547- // -- so we can have just the section with the gray background ( in frontsection this takes up the full screen width)
548- // -- so we can tweak the look and positioning of the treat (the "AI use" line) to line up with the bottom of the cards -- todo
516+ /** This is largely a copy of front section (notably re the grid layout), but with some modifications:
517+ * Some text has been added below the title about AI use
518+ * In a frontsection, the background normally takes up the full width of the page, but we want just the section to have the grey background
519+ * A portion of the props and logic in frontsection aren't relevant here
520+ */
549521export const StorylineSection = ( {
550522 title,
551523 children,
@@ -635,11 +607,6 @@ export const StorylineSection = ({
635607 // only ever having <CPScott> as the leftContent
636608 title ?. toLowerCase ( ) === 'opinion' ,
637609 ) ,
638- // showVerticalRule &&
639- // !isBetaContainer &&
640- // sectionHeadlineFromLeftCol(
641- // schemePalette('--section-border'),
642- // ),
643610 ] }
644611 >
645612 < FrontSectionTitle
@@ -662,7 +629,7 @@ export const StorylineSection = ({
662629 url = { url }
663630 showDateHeader = { showDateHeader }
664631 editionId = { editionId }
665- containerLevel = { 'Secondary ' }
632+ containerLevel = { 'Primary ' }
666633 />
667634 < div
668635 css = { css `
@@ -672,7 +639,9 @@ export const StorylineSection = ({
672639 Dive deeper into the Guardian's archive.
673640 This product uses GenAI. Learn more about
674641 how it works{ ' ' }
675- < a href = "https://theguardian.com" > here.</ a >
642+ < a href = "https://www.theguardian.com/help/insideguardian/2023/jun/16/the-guardians-approach-to-generative-ai" >
643+ here.
644+ </ a >
676645 </ div >
677646 </ >
678647 }
@@ -711,48 +680,42 @@ export const StorylineSection = ({
711680 { children }
712681 </ div >
713682
714- { treats && (
715- < div css = { [ sectionTreats ] } >
716- { /* <Treats
717- treats={treats}
718- borderColour={schemePalette('--section-border')}
719- /> */ }
720- < Footer
721- dislikeHandler = {
722- dislikeHandler ??
723- ( ( ) =>
724- submitComponentEvent (
725- {
726- component : {
727- componentType : 'QANDA_ATOM' ,
728- id,
729- products : [ ] ,
730- labels : [ ] ,
731- } ,
732- action : 'DISLIKE' ,
683+ < div css = { [ sectionFooter ] } >
684+ < Footer
685+ dislikeHandler = {
686+ dislikeHandler ??
687+ ( ( ) =>
688+ submitComponentEvent (
689+ {
690+ component : {
691+ componentType : 'QANDA_ATOM' ,
692+ id,
693+ products : [ ] ,
694+ labels : [ ] ,
733695 } ,
734- 'Web ',
735- ) )
736- }
737- likeHandler = {
738- likeHandler ??
739- ( ( ) =>
740- submitComponentEvent (
741- {
742- component : {
743- componentType : 'QANDA_ATOM' , //todo: update ophan component types to include storyline?
744- id ,
745- products : [ ] ,
746- labels : [ ] ,
747- } ,
748- action : 'LIKE' ,
696+ action : 'DISLIKE ',
697+ } ,
698+ 'Web' ,
699+ ) )
700+ }
701+ likeHandler = {
702+ likeHandler ??
703+ ( ( ) =>
704+ submitComponentEvent (
705+ {
706+ component : {
707+ componentType : 'QANDA_ATOM' , //todo: update ophan component types to include storyline?
708+ id ,
709+ products : [ ] ,
710+ labels : [ ] ,
749711 } ,
750- 'Web' ,
751- ) )
752- }
753- > </ Footer >
754- </ div >
755- ) }
712+ action : 'LIKE' ,
713+ } ,
714+ 'Web' ,
715+ ) )
716+ }
717+ > </ Footer >
718+ </ div >
756719 </ section >
757720 </ ContainerOverrides >
758721 ) ;
0 commit comments