Skip to content

Commit 63d6f78

Browse files
committed
engage hero section
1 parent be5e524 commit 63d6f78

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

ims-advocacy.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

web-components/hero-section/hero-section.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
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

88
section {
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 */

web-components/hero-section/hero-section.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
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>

web-components/hero-section/hero-section.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)