Skip to content

Commit 38ea4cf

Browse files
committed
create hero section type for 404
1 parent 09e1768 commit 38ea4cf

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

404.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@
110110
<hero-section
111111
name="We're sorry!"
112112
image="wp-content/404_Error.svg"
113-
section="Engage"
113+
section="404"
114114
desc="The page you're looking for might have been moved or deleted.">
115115
</hero-section>
116116

117-
<div class="bg-404 main-sec">
117+
<!-- <div class="bg-404 main-sec">
118118
<section id="intro-section" class="pure-g zs-section">
119119
<div class="pure-u-3-25">
120120
<img
@@ -132,7 +132,7 @@ <h1>We<span>&#8217;</span>re sorry!</h1>
132132
<h2 class="text-404">404</h2>
133133
</div>
134134
</section>
135-
</div>
135+
</div> -->
136136

137137
<!-- =========================== White Space =========================== -->
138138
<!-- <div class="bg-404">

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
backdrop-filter: blur(6px);
3333
}
3434

35+
.black-bg {
36+
background-color: #161616;
37+
color: white;
38+
}
39+
3540
section {
3641
/* Button Color */
3742
--btn-prim: #0f62fe;
@@ -93,6 +98,10 @@ h6, p {
9398
font-weight: bold;
9499
}
95100

101+
.hidden {
102+
visibility: hidden;
103+
}
104+
96105
.name {
97106
grid-column: 2;
98107
grid-row: 2;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function createComponent(html) {
100100

101101
const heroSection = shadow.querySelector('.hero-section');
102102
const hero = shadow.querySelector('.hero');
103+
const subheader = shadow.querySelector('.section');
103104

104105
// Set content
105106
setImage('.image', this.image, shadow);
@@ -164,6 +165,9 @@ function createComponent(html) {
164165
case 'Support':
165166
heroSection.classList.add('learn-bg');
166167
break;
168+
case '404':
169+
heroSection.classList.add('black-bg');
170+
subheader.classList.add('hidden');
167171
}
168172
}
169173
}

0 commit comments

Comments
 (0)