@@ -215,36 +215,47 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
215215
216216.sd-home {
217217 position : relative;
218+ isolation : isolate;
218219 width : 100vw ;
219220 margin-top : calc (-1 * var (--vp-nav-height ));
220221 margin-left : calc (50% - 50vw );
221222 padding-top : var (--vp-nav-height );
222223 overflow : hidden;
223- background :
224- linear-gradient (
225- 180deg ,
226- rgba (0 , 112 , 243 , 0.026 ) 0 ,
227- rgba (0 , 112 , 243 , 0.014 ) 18svh ,
228- rgba (0 , 112 , 243 , 0.005 ) 42svh ,
229- rgba (0 , 112 , 243 , 0 ) 76svh
230- ),
231- var (--sd-bg );
224+ background : var (--sd-bg );
232225}
233226
234- .dark .sd-home {
235- background :
236- linear-gradient (
237- 180deg ,
238- rgba (50 , 145 , 255 , 0.034 ) 0 ,
239- rgba (50 , 145 , 255 , 0.018 ) 18svh ,
240- rgba (50 , 145 , 255 , 0.006 ) 42svh ,
241- rgba (50 , 145 , 255 , 0 ) 76svh
242- ),
243- var (--sd-bg );
227+ .sd-home ::before {
228+ content : "" ;
229+ position : fixed;
230+ z-index : 0 ;
231+ inset : 0 ;
232+ height : 100svh ;
233+ pointer-events : none;
234+ background-image : url ("/images/background-light-portrait.png" );
235+ background-position : center var (--sd-hero-bg-camera-y , 0 );
236+ background-repeat : no-repeat;
237+ background-size : auto 170svh ;
238+ opacity : var (--sd-hero-bg-opacity , 1 );
239+ will-change : opacity, background-position;
240+ }
241+
242+ .dark .sd-home ::before {
243+ background-image : url ("/images/background-portrait.png" );
244+ }
245+
246+ @media (min-width : 641px ) {
247+ .sd-home ::before {
248+ background-image : url ("/images/background-light.png" );
249+ }
250+
251+ .dark .sd-home ::before {
252+ background-image : url ("/images/background.png" );
253+ }
244254}
245255
246256.sd-home > * {
247257 position : relative;
258+ z-index : 1 ;
248259}
249260
250261.sd-hero ,
@@ -267,7 +278,7 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
267278
268279.sd-hero-copy {
269280 display : flex;
270- max-width : 860 px ;
281+ max-width : 980 px ;
271282 flex-direction : column;
272283 align-items : center;
273284}
@@ -281,7 +292,7 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
281292}
282293
283294.sd-home .sd-hero-copy p {
284- max-width : 640 px ;
295+ max-width : 920 px ;
285296 margin : 24px auto 0 ;
286297 color : var (--sd-muted );
287298 font-size : 28px ;
@@ -1053,6 +1064,7 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
10531064 }
10541065
10551066 .sd-home .sd-hero-copy p {
1067+ max-width : 680px ;
10561068 font-size : 24px ;
10571069 }
10581070
@@ -1117,6 +1129,7 @@ html:not(.sd-home-active) .VPNavBar.screen-open {
11171129 }
11181130
11191131 .sd-home .sd-hero-copy p {
1132+ max-width : 100% ;
11201133 margin-top : 18px ;
11211134 font-size : 23px ;
11221135 line-height : 1.18 ;
0 commit comments