@@ -52,10 +52,11 @@ const HeroContainerComponent = props => {
5252 const pathname = location . pathname . replace ( / \/ ? $ / , '/' )
5353 const isHome = pathname === '/'
5454 const isAbout = pathname === '/about/'
55- const isCustody = pathname === '/institutions/custody/'
56- const isInstitutions = pathname === '/institutions/'
5755 const isFlask = pathname === '/flask/'
56+ const isInstitutions = pathname === '/institutions/'
5857 const isPortfolio = pathname === '/institutions/portfolio/'
58+ const isCustody = pathname === '/institutions/custody/'
59+ const isThankYou = pathname === '/institutions/thank-you/'
5960 let hubspotWrapper
6061 if ( hubSpotForm ) {
6162 hubspotWrapper = ! isEmpty ( cta ) ? (
@@ -82,7 +83,10 @@ const HeroContainerComponent = props => {
8283 let heroTitleFontsize = ''
8384 if ( isStyleHubspot ) {
8485 heroTitleFontsize = '16px'
85- } else if ( contentAlignment === 'center' || headlineBorderBottom ) {
86+ } else if (
87+ ( contentAlignment === 'center' || headlineBorderBottom ) &&
88+ ! isThankYou
89+ ) {
8690 heroTitleFontsize = '30px'
8791 }
8892
@@ -98,16 +102,22 @@ const HeroContainerComponent = props => {
98102 </ FavIconContainer >
99103 ) : null }
100104 < HeroContainer
105+ isThankYou = { isThankYou }
101106 sectionPadding = { sectionPadding || '' }
102107 headlineBorderBottom = { headlineBorderBottom }
103108 isStyleCenterSimple = { isStyleCenterSimple }
104109 showFavIcon = { showFavIcon }
105- image = { backgroundImage }
110+ image = { ! isThankYou && backgroundImage }
106111 className = { classnames ( {
107112 [ `bg-${ backgroundColor } ` ] : backgroundColor ,
108113 [ `bg-mobile-${ backgroundColorMobile } ` ] : backgroundColorMobile ,
109114 } ) }
110115 >
116+ { isThankYou && backgroundImage ? (
117+ < BackgroundImageContain >
118+ < img src = { backgroundImage } />
119+ </ BackgroundImageContain >
120+ ) : null }
111121 < ContentWrapper customClass = { customClass } >
112122 < HeroContentContainer
113123 isStyleCenterSimple = { isStyleCenterSimple }
@@ -126,12 +136,15 @@ const HeroContainerComponent = props => {
126136 isInstitutions = { isInstitutions }
127137 isFlask = { isFlask }
128138 isPortfolio = { isPortfolio }
139+ isThankYou = { isThankYou }
129140 >
130141 < HeroImageTextContainer
131142 isStyleHubspot = { isStyleHubspot }
132143 isHome = { isHome }
133144 headlineBorderBottom = { headlineBorderBottom }
134- className = "heroMobileOverlayContent"
145+ className = { classnames ( {
146+ heroMobileOverlayContent : ! backgroundImage ,
147+ } ) }
135148 center = { ! sideImageFlex && ! isHome }
136149 sideImageFlex = { sideImageFlex }
137150 >
@@ -274,6 +287,12 @@ const HeroContainer = styled(Section)`
274287 flex-direction: column;
275288 justify-content: center;
276289 min-width: 100%;
290+ ${ ( { isThankYou } ) =>
291+ isThankYou
292+ ? `
293+ z-index: 5;
294+ `
295+ : `` }
277296 ${ ( { image } ) =>
278297 image
279298 ? ` background-image: url(${ image } );
@@ -473,6 +492,23 @@ const HeroContentContainer = styled.div`
473492 `
474493 : '' }
475494
495+ ${ ( { isThankYou, theme } ) =>
496+ isThankYou
497+ ? `
498+ max-width: 480px;
499+ margin: 0 auto!important;
500+
501+ @media (min-width: ${ theme . device . mobile } ){
502+ ${ EyebrowWrapper } {
503+ img {
504+ width: 376px;
505+ height: auto;
506+ margin: 0 auto;
507+ }
508+ }
509+ `
510+ : '' }
511+
476512 ${ ( { reverse, theme } ) =>
477513 reverse
478514 ? `
@@ -758,3 +794,18 @@ const EyebrowText = styled.div`
758794 text-transform: uppercase;
759795 color: ${ ( { theme } ) => theme . eyebrowHero } ;
760796`
797+ const BackgroundImageContain = styled . div `
798+ position: absolute;
799+ left: 0;
800+ right: 0;
801+ bottom: 0;
802+ top: 0;
803+ img {
804+ position: absolute;
805+ top: 50%;
806+ transform: translateY(-50%);
807+ left: 0;
808+ right: 0;
809+ width: 100%;
810+ }
811+ `
0 commit comments