@@ -10,12 +10,16 @@ import deviceScreen from 'url:./imgs/demos/demo-device-screen.png';
10
10
import largePhotoIcon from 'url:./imgs/demos/icon-demo-large-photo.jpg' ;
11
11
import artworkIcon from 'url:./imgs/demos/icon-demo-artwork.jpg' ;
12
12
import deviceScreenIcon from 'url:./imgs/demos/icon-demo-device-screen.jpg' ;
13
+ import smallSectionAsset from 'url:./imgs/info-content/small.svg' ;
14
+ import simpleSectionAsset from 'url:./imgs/info-content/simple.svg' ;
15
+ import secureSectionAsset from 'url:./imgs/info-content/secure.svg' ;
13
16
import logoIcon from 'url:./imgs/demos/icon-demo-logo.png' ;
14
17
import logoWithText from 'url:./imgs/logo-with-text.svg' ;
15
18
import * as style from './style.css' ;
16
19
import type SnackBarElement from 'shared/custom-els/snack-bar' ;
17
20
import 'shared/custom-els/snack-bar' ;
18
21
import { startBlobs } from './blob-anim/meta' ;
22
+ import SlideOnScroll from './SlideOnScroll' ;
19
23
20
24
const demos = [
21
25
{
@@ -336,37 +340,125 @@ export default class Intro extends Component<Props, State> {
336
340
</ ul >
337
341
</ div >
338
342
</ div >
339
- < div class = { style . footer } >
343
+
344
+ < div class = { style . bottomWave } >
340
345
< svg viewBox = "0 0 1920 79" class = { style . topWave } >
341
346
< path
342
347
d = "M0 59l64-11c64-11 192-34 320-43s256-5 384 4 256 23 384 34 256 21 384 14 256-30 320-41l64-11v94H0z"
343
- class = { style . footerWave }
348
+ class = { style . infoWave }
344
349
/>
345
350
</ svg >
346
- < div class = { style . contentPadding } >
347
- < footer class = { style . footerItems } >
348
- < a
349
- class = { style . footerLink }
350
- href = "https://github.com/GoogleChromeLabs/squoosh/blob/dev/README.md#privacy"
351
- >
352
- Privacy
353
- </ a >
354
- < a
355
- class = { style . footerLink }
356
- href = "https://github.com/GoogleChromeLabs/squoosh/tree/dev/cli"
357
- >
358
- Squoosh CLI
359
- </ a >
360
- < a
361
- class = { style . footerLinkWithLogo }
362
- href = "https://github.com/GoogleChromeLabs/squoosh"
363
- >
364
- < img src = { githubLogo } alt = "" width = "10" height = "10" />
365
- Source on Github
366
- </ a >
367
- </ footer >
368
- </ div >
369
351
</ div >
352
+
353
+ < section class = { style . info } >
354
+ < div class = { style . infoContainer } >
355
+ < SlideOnScroll >
356
+ < div class = { style . infoContent } >
357
+ < div class = { style . infoTextWrapper } >
358
+ < h2 class = { style . infoTitle } > Small</ h2 >
359
+ < p class = { style . infoCaption } >
360
+ Smaller images mean faster load times. Squoosh can reduce
361
+ file size and maintain high quality.
362
+ </ p >
363
+ </ div >
364
+ < div class = { style . infoImgWrapper } >
365
+ < img
366
+ class = { style . infoImg }
367
+ src = { smallSectionAsset }
368
+ alt = "silhouette of a large 1.4 megabyte image shrunk into a smaller 80 kilobyte image"
369
+ width = "536"
370
+ height = "522"
371
+ />
372
+ </ div >
373
+ </ div >
374
+ </ SlideOnScroll >
375
+ </ div >
376
+ </ section >
377
+
378
+ < section class = { style . info } >
379
+ < div class = { style . infoContainer } >
380
+ < SlideOnScroll >
381
+ < div class = { style . infoContent } >
382
+ < div class = { style . infoTextWrapper } >
383
+ < h2 class = { style . infoTitle } > Simple</ h2 >
384
+ < p class = { style . infoCaption } >
385
+ Open your image, inspect the differences, then save
386
+ instantly. Feeling adventurous? Adjust the settings for even
387
+ smaller files.
388
+ </ p >
389
+ </ div >
390
+ < div class = { style . infoImgWrapper } >
391
+ < img
392
+ class = { style . infoImg }
393
+ src = { simpleSectionAsset }
394
+ alt = "grid of multiple shrunk images displaying various options"
395
+ width = "538"
396
+ height = "384"
397
+ />
398
+ </ div >
399
+ </ div >
400
+ </ SlideOnScroll >
401
+ </ div >
402
+ </ section >
403
+
404
+ < section class = { style . info } >
405
+ < div class = { style . infoContainer } >
406
+ < SlideOnScroll >
407
+ < div class = { style . infoContent } >
408
+ < div class = { style . infoTextWrapper } >
409
+ < h2 class = { style . infoTitle } > Secure</ h2 >
410
+ < p class = { style . infoCaption } >
411
+ Worried about privacy? Images never leave your device since
412
+ Squoosh does all the work locally.
413
+ </ p >
414
+ </ div >
415
+ < div class = { style . infoImgWrapper } >
416
+ < img
417
+ class = { style . infoImg }
418
+ src = { secureSectionAsset }
419
+ alt = "silhouette of a cloud with a 'no' symbol on top"
420
+ width = "498"
421
+ height = "333"
422
+ />
423
+ </ div >
424
+ </ div >
425
+ </ SlideOnScroll >
426
+ </ div >
427
+ </ section >
428
+
429
+ < footer class = { style . footer } >
430
+ < div class = { style . footerContainer } >
431
+ < svg viewBox = "0 0 1920 79" class = { style . topWave } >
432
+ < path
433
+ d = "M0 59l64-11c64-11 192-34 320-43s256-5 384 4 256 23 384 34 256 21 384 14 256-30 320-41l64-11v94H0z"
434
+ class = { style . footerWave }
435
+ />
436
+ </ svg >
437
+ < div class = { style . footerPadding } >
438
+ < footer class = { style . footerItems } >
439
+ < a
440
+ class = { style . footerLink }
441
+ href = "https://github.com/GoogleChromeLabs/squoosh/blob/dev/README.md#privacy"
442
+ >
443
+ Privacy
444
+ </ a >
445
+ < a
446
+ class = { style . footerLink }
447
+ href = "https://github.com/GoogleChromeLabs/squoosh/tree/dev/cli"
448
+ >
449
+ Squoosh CLI
450
+ </ a >
451
+ < a
452
+ class = { style . footerLinkWithLogo }
453
+ href = "https://github.com/GoogleChromeLabs/squoosh"
454
+ >
455
+ < img src = { githubLogo } alt = "" width = "10" height = "10" />
456
+ Source on Github
457
+ </ a >
458
+ </ footer >
459
+ </ div >
460
+ </ div >
461
+ </ footer >
370
462
{ beforeInstallEvent && (
371
463
< button class = { style . installBtn } onClick = { this . onInstallClick } >
372
464
Install
0 commit comments