|
8 | 8 | --icon-bg: rgba(20, 25, 45, 0.8); |
9 | 9 | --space-section: clamp(3rem, 7vw, 5.5rem); |
10 | 10 | --space-content: clamp(1rem, 2.6vw, 1.8rem); |
| 11 | + --hero-background-image: url("../images/hero-background.png"); |
| 12 | +} |
| 13 | + |
| 14 | +@supports ( |
| 15 | + background-image: |
| 16 | + image-set(url("../images/hero-background.webp") type("image/webp")) |
| 17 | +) { |
| 18 | + :root { |
| 19 | + --hero-background-image: image-set( |
| 20 | + url("../images/hero-background.webp") type("image/webp"), |
| 21 | + url("../images/hero-background.png") type("image/png") |
| 22 | + ); |
| 23 | + } |
11 | 24 | } |
12 | 25 |
|
13 | 26 | * { |
|
22 | 35 | rgba(3, 11, 40, 0.94) 0%, |
23 | 36 | rgba(3, 11, 40, 0.99) 100% |
24 | 37 | ), |
25 | | - url("../images/Default Background.png"); |
| 38 | + var(--hero-background-image); |
26 | 39 | background-position: center; |
| 40 | + background-repeat: no-repeat; |
27 | 41 | background-size: cover; |
28 | 42 | color: var(--text-primary); |
29 | 43 | font-family: "Ruda", sans-serif; |
@@ -96,7 +110,12 @@ body::before { |
96 | 110 | } |
97 | 111 |
|
98 | 112 | .brand-logo { |
99 | | - background: url("../images/v33_6.png") no-repeat center center / contain; |
| 113 | + background: url("../images/rocketpy-logo-white.png") no-repeat center center / |
| 114 | + contain; |
| 115 | + background-image: image-set( |
| 116 | + url("../images/rocketpy-logo-white.webp") type("image/webp"), |
| 117 | + url("../images/rocketpy-logo-white.png") type("image/png") |
| 118 | + ); |
100 | 119 | display: block; |
101 | 120 | height: 48px; |
102 | 121 | width: 220px; |
@@ -135,7 +154,11 @@ body::before { |
135 | 154 | } |
136 | 155 |
|
137 | 156 | .simulate-icon { |
138 | | - background: url("../images/v33_9.png") no-repeat center center / contain; |
| 157 | + background: url("../images/launch-icon.png") no-repeat center center / contain; |
| 158 | + background-image: image-set( |
| 159 | + url("../images/launch-icon.webp") type("image/webp"), |
| 160 | + url("../images/launch-icon.png") type("image/png") |
| 161 | + ); |
139 | 162 | display: inline-block; |
140 | 163 | height: 14px; |
141 | 164 | width: 14px; |
@@ -253,44 +276,32 @@ body::before { |
253 | 276 | .hero-logo-graphic, |
254 | 277 | .environment-graphic, |
255 | 278 | .predictions-graphic { |
256 | | - background-position: center; |
257 | | - background-repeat: no-repeat; |
258 | | - background-size: contain; |
259 | | - height: 290px; |
| 279 | + display: block; |
260 | 280 | margin: 0 auto; |
261 | 281 | max-width: 330px; |
262 | 282 | width: 100%; |
263 | 283 | } |
264 | 284 |
|
265 | | -.hero-logo-graphic { |
266 | | - background-image: url("../images/v35_22.png"); |
267 | | -} |
268 | | - |
269 | | -.environment-graphic { |
270 | | - background-image: url("../images/v40_94.png"); |
271 | | -} |
272 | | - |
273 | | -.predictions-graphic { |
274 | | - background-image: url("../images/v36_82.png"); |
275 | | -} |
276 | | - |
277 | 285 | .hero-plot-graphic, |
278 | 286 | .community-graphic { |
279 | | - background-position: center; |
280 | | - background-repeat: no-repeat; |
281 | | - background-size: contain; |
| 287 | + display: block; |
| 288 | +} |
| 289 | + |
| 290 | +.section-graphic { |
| 291 | + display: block; |
| 292 | + height: auto; |
| 293 | + object-fit: contain; |
| 294 | + width: 100%; |
282 | 295 | } |
283 | 296 |
|
284 | 297 | .hero-plot-graphic { |
285 | | - background-image: url("../images/Group 5.png"); |
286 | 298 | height: 190px; |
287 | 299 | margin-top: var(--space-content); |
288 | 300 | max-width: 320px; |
| 301 | + width: 100%; |
289 | 302 | } |
290 | 303 |
|
291 | 304 | .community-graphic { |
292 | | - background-image: url("../images/v73_37.png"); |
293 | | - height: 220px; |
294 | 305 | max-width: 360px; |
295 | 306 | width: 100%; |
296 | 307 | } |
@@ -338,7 +349,11 @@ body::before { |
338 | 349 | } |
339 | 350 |
|
340 | 351 | .footer-logo { |
341 | | - background-image: url("../images/v33_7.png"); |
| 352 | + background-image: url("../images/rocketpy-logo-white.png"); |
| 353 | + background-image: image-set( |
| 354 | + url("../images/rocketpy-logo-white.webp") type("image/webp"), |
| 355 | + url("../images/rocketpy-logo-white.png") type("image/png") |
| 356 | + ); |
342 | 357 | background-position: left center; |
343 | 358 | background-repeat: no-repeat; |
344 | 359 | background-size: contain; |
|
0 commit comments