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 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>’</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">
Original file line number Diff line number Diff line change 3232 backdrop-filter : blur (6px );
3333 }
3434
35+ .black-bg {
36+ background-color : # 161616 ;
37+ color : white;
38+ }
39+
3540section {
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 ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments