File tree Expand file tree Collapse file tree
web-components/hero-section Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ <h5>IMS support</h5>
289289 < div id ="content " class ="main-content ">
290290 < main id ="main ">
291291 <!-- =========================== Hero =========================== -->
292- < section class ="engage-bg ">
292+ <!-- < section class="engage-bg">
293293 <div id="intro-section" class="pure-g hero">
294294 <div class="pure-u-1 pure-u-md-1-24">
295295 <img src="wp-content/icons/icon_engage.svg" alt="" class="icon">
@@ -316,7 +316,7 @@ <h1>Advocates and ideas</h1>
316316 </div>
317317 </div>
318318 </div>
319- </ section >
319+ </section> -->
320320
321321 < hero-section
322322 name ="Advocates and ideas "
Original file line number Diff line number Diff line change 1- /* section {
2- display: flex ;
3- flex-flow: row wrap ;
4- gap: 2em ;
5- padding: 4em ;
6- } */
1+ . engage-bg {
2+ background-image : url(.. / .. / wp-content/backgrounds/Engage_HomepageBG.png) ;
3+ background-repeat : no-repeat ;
4+ background-size : cover ;
5+ color : white ;
6+ }
77
88section {
99 display : grid;
1010 grid-template-columns : 4em 2fr ;
1111 grid-template-rows : repeat (4 , 1fr );
12- padding : 4em ;
12+ padding : 3em ;
13+ padding-top : 2em ;
1314 align-items : center;
1415
1516 /* Button Color */
Original file line number Diff line number Diff line change 66 < span class ="desc "> </ span >
77 < div class ="links ">
88 < a onfocus ="closeNavMenu() "
9- rel ="noopener noreferrer "
10- class ="link-primary button button-primary "
9+ rel ="noopener noreferrer "
10+ class ="link-primary button button-primary "
1111 >
1212 < span class ="link-primary-text "> </ span >
1313 </ a >
Original file line number Diff line number Diff line change @@ -61,8 +61,7 @@ function createComponent(html) {
6161 switch ( this . section ) {
6262 case 'Engage' :
6363 const selector = shadow . querySelector ( '.hero' ) ;
64- selector . style . backgroundColor = 'black' ;
65- selector . style . color = 'white' ;
64+ selector . classList . add ( 'engage-bg' ) ;
6665 setImage ( '.image' , 'wp-content/icons/icon_engage.svg' , shadow ) ;
6766 break ;
6867 }
You can’t perform that action at this time.
0 commit comments