Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
keras-team
GitHub Repository: keras-team/keras-io
Path: blob/master/theme/css/landing.css
3282 views
1
@import url("index.css");
2
@import url("nav.css");
3
4
html {
5
overflow-x: hidden;
6
}
7
8
html,
9
body {
10
width: 100%;
11
}
12
13
.stack--container {
14
position: relative;
15
}
16
17
.stacked__item {
18
position: relative;
19
}
20
21
.stacked {
22
left: 0;
23
position: fixed;
24
top: 0;
25
width: 100%;
26
z-index: 10;
27
}
28
29
.visually-hidden {
30
position: fixed;
31
z-index: -999;
32
}
33
34
.hero {
35
background: radial-gradient(circle at 75% 50%, #d00101, #7a0000);
36
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%);
37
display: flex;
38
flex-direction: column;
39
}
40
41
.hero__description {
42
font-size: 16px;
43
line-height: 25.6px;
44
}
45
46
.hero__content {
47
padding: 80px 24px;
48
}
49
50
.hero__title {
51
font-size: 40px;
52
font-weight: 700;
53
margin: 8px 0;
54
}
55
56
.hero__image {
57
display: none;
58
padding: 0 24px;
59
width: calc(100% - 48px);
60
}
61
62
.hero__buttons {
63
display: flex;
64
flex-direction: row;
65
gap: 12px;
66
padding: 24px 0;
67
}
68
69
.code__container {
70
background-color: var(--grey);
71
border-radius: 8px;
72
box-shadow: 0px 2px 3px 0px #0000004d;
73
box-shadow: 0px 6px 10px 4px #00000026;
74
margin: 40px 0 60px;
75
position: relative;
76
z-index: 1; /* place the code element above the ::before shadow from another component */
77
}
78
79
.code__container--quickstart {
80
padding: 32px 24px;
81
}
82
83
.code__copy--button {
84
background-color: var(--code-background);
85
border: none;
86
height: 32px;
87
position: absolute;
88
right: 32px;
89
top: 28px;
90
width: 32px;
91
}
92
93
.code__copy--button .icon--copy {
94
filter: invert(1);
95
}
96
97
.code__copy--tooltip {
98
background-color: var(--white);
99
border-radius: 4px;
100
color: var(--text-red);
101
display: none;
102
padding: 4px;
103
position: absolute;
104
right: -7px;
105
top: 31px;
106
}
107
108
.explore {
109
background: var(--white);
110
display: flex;
111
gap: 24px;
112
padding: 50px 24px 50px;
113
}
114
115
.explore__description {
116
color: var(--text-black);
117
font-size: 16px;
118
line-height: 25.6px;
119
}
120
121
.explore__wrapper {
122
display: flex;
123
flex-direction: column-reverse;
124
max-width: 100%;
125
}
126
127
.explore__content {
128
display: flex;
129
flex-direction: column;
130
gap: 24px;
131
}
132
133
.explore__image--container {
134
align-items: center;
135
display: flex;
136
gap: 12px;
137
justify-content: space-between;
138
}
139
140
.explore__image--container img {
141
width: 100%;
142
}
143
144
.guide {
145
background: var(--medium-grey);
146
padding: 80px 24px 100px;
147
}
148
149
.guide::before {
150
background: linear-gradient(0deg, var(--text-black) -80%, #0000 20%);
151
content: "";
152
height: 250px;
153
left: 0;
154
position: absolute;
155
top: -250px;
156
width: 100%;
157
}
158
159
.guide__button--mobile {
160
display: block;
161
margin: 0 auto;
162
}
163
164
.guide__button--desktop {
165
display: none;
166
}
167
168
.guide__wrapper {
169
background: var(--white);
170
border-radius: 8px;
171
box-shadow: 0px 1px 3px 0px #0000004d;
172
box-shadow: 0px 4px 8px 3px #00000026;
173
display: flex;
174
flex-direction: column;
175
justify-content: space-between;
176
}
177
178
.guide__wrapper pre {
179
box-sizing: border-box;
180
height: 100%;
181
}
182
183
.guide__content {
184
background: #FFF;
185
display: flex;
186
flex-direction: column;
187
gap: 20px;
188
justify-content: space-between;
189
min-height: 208px;
190
padding: 24px;
191
position: relative;
192
border-radius: 8px;
193
}
194
195
.guide__content h3 {
196
color: #A30000;
197
font-weight: 700;
198
margin-bottom: 20px;
199
}
200
201
.guide .code__container {
202
margin-bottom: 0;
203
}
204
205
.guide__code--container .guide__wrapper {
206
margin-bottom: 32px;
207
}
208
209
.guide__title {
210
margin-bottom: 24px;
211
}
212
213
.guide h3 {
214
color: var(--text-red);
215
font-weight: 700;
216
}
217
218
.guide__code {
219
border-radius: 8px 8px 0 0;
220
height: 380px;
221
margin: 0;
222
object-fit: cover;
223
width: 100%;
224
}
225
226
.models {
227
background: radial-gradient(circle at 75% 50%, #d00101, #7a0000);
228
clip-path: polygon(0 0, 100% 3%, 100% 100%, 0% 97%);
229
display: flex;
230
gap: 64px;
231
padding: 104px 24px 140px;
232
transform: translateY(-60px);
233
}
234
235
.models__wrapper {
236
display: flex;
237
flex-direction: column;
238
justify-content: space-between;
239
margin: 0 auto;
240
max-width: 1440px;
241
padding-top: 40px;
242
width: 100%;
243
}
244
245
.models__content--container {
246
display: flex;
247
flex-direction: column;
248
gap: 24px;
249
margin-bottom: 40px;
250
max-width: 592px;
251
}
252
253
.models__title {
254
color: var(--white);
255
}
256
257
.models__description {
258
color: var(--white);
259
font-size: 16px;
260
letter-spacing: 0.25px;
261
line-height: 36px;
262
}
263
264
.models__button-wrapper {
265
text-align: center;
266
width: 100%;
267
}
268
269
.models__button-wrapper--desktop {
270
display: none;
271
}
272
273
.models__button--contanier {
274
display: flex;
275
flex-wrap: wrap;
276
gap: 32px;
277
justify-content: flex-end;
278
}
279
280
.models__card {
281
background: var(--white);
282
box-shadow: 0px 2px 6px 2px #00000026;
283
box-shadow: 0px 1px 2px 0px #0000004d;
284
min-height: 155px;
285
width: 100%;
286
}
287
288
.models__card:hover {
289
box-shadow: 0px 8px 16px 6px #00000040;
290
box-shadow: 0px 8px 16px 6px #00000040;
291
}
292
293
.models__card--contanier {
294
padding: 32px;
295
}
296
297
.models__card--title {
298
color: var(--text-red);
299
margin: 0 0 8px;
300
}
301
302
.models__card--description {
303
color: var(--dark-grey);
304
font-size: 12px;
305
line-height: 20px;
306
}
307
308
.models__card .button__square {
309
margin: 16px 8px 0 0;
310
}
311
312
.guide__example--wrapper {
313
padding: 0 24px 60px;
314
}
315
316
.guide__example--wrapper .guide__header {
317
margin-bottom: 24px;
318
}
319
320
.research {
321
background: linear-gradient(
322
0deg,
323
var(--medium-grey) 90%,
324
var(--shadow-grey) 105%
325
);
326
padding: 80px 0;
327
text-align: left;
328
}
329
330
.research__content--contanier {
331
display: flex;
332
flex-direction: column;
333
gap: 24px;
334
max-width: 800px;
335
margin: auto;
336
padding: 0 24px;
337
}
338
339
.research__image {
340
height: 220px;
341
padding: 70px;
342
}
343
344
.research__description {
345
color: var(--text-black);
346
font-size: 16px;
347
line-height: 36px;
348
}
349
350
.contacts {
351
background: radial-gradient(circle at 75% 50%, #d00101, #7a0000);
352
clip-path: polygon(0 0, 100% 3%, 100% 100%, 0% 100%);
353
display: flex;
354
gap: 64px;
355
margin: auto;
356
margin-top: -50px;
357
padding: 80px 24px;
358
}
359
360
.contacts__wrapper {
361
display: flex;
362
flex-direction: column;
363
}
364
365
.contacts__contanier {
366
margin-bottom: 60px;
367
width: 100%;
368
}
369
370
.contacts__title {
371
color: var(--white);
372
margin-bottom: 24px;
373
}
374
375
.contacts__description {
376
color: var(--white);
377
font-size: 16px;
378
line-height: 36px;
379
}
380
381
.contacts__border {
382
border: 1px solid var(--white);
383
margin-bottom: 60px;
384
}
385
386
.contacts__button-contanier {
387
display: flex;
388
flex-wrap: wrap;
389
gap: 24px;
390
margin-top: 32px;
391
}
392
393
@media only screen and (min-width: 1200px) {
394
h1 {
395
font-size: 72px;
396
font-weight: 700;
397
}
398
399
h2 {
400
font-size: 40px;
401
font-weight: 700;
402
}
403
404
h3 {
405
font-weight: 700;
406
}
407
408
.hero {
409
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
410
height: 100%;
411
min-height: 758px;
412
}
413
414
.hero__content--wrapper {
415
display: flex;
416
flex: 1;
417
justify-content: space-between;
418
margin: 0 auto;
419
max-width: 1568px;
420
width: 100%;
421
}
422
423
.hero__content {
424
max-width: 665px;
425
padding: 80px 0 0 64px;
426
}
427
428
.hero__title {
429
font-size: 72px;
430
margin: 16px 0;
431
}
432
433
.hero__buttons {
434
flex-direction: row;
435
gap: 24px;
436
margin-top: 24px;
437
}
438
439
.hero__image {
440
display: block;
441
width: 643px;
442
}
443
444
.explore {
445
background: var(--white);
446
display: flex;
447
gap: 64px;
448
padding: 50px 64px 0 64px;
449
}
450
451
.explore::before {
452
background: linear-gradient(
453
184deg,
454
var(--shadow-grey) 20%,
455
var(--white) 58%
456
);
457
clip-path: polygon(0 0, 100% 75%, 100% 100%, 0% 100%);
458
content: "";
459
height: 250px;
460
left: 0;
461
position: absolute;
462
top: -200px;
463
width: calc(100% + 1px);
464
}
465
466
.explore__wrapper {
467
align-items: start;
468
display: flex;
469
flex-direction: row;
470
justify-content: space-between;
471
margin: 0 auto;
472
max-width: 1440px;
473
position: relative;
474
width: 100%;
475
}
476
477
.explore__column {
478
display: flex;
479
flex-direction: column;
480
gap: 60px;
481
margin-right: 64px;
482
padding-bottom: 160px;
483
}
484
485
.explore__content {
486
align-self: start;
487
padding-block: 48px;
488
position: sticky;
489
top: 50%;
490
transform: translateY(-50%);
491
}
492
493
.explore__content h2 {
494
font-size: 40px;
495
}
496
497
.explore__image--container {
498
display: flex;
499
gap: 22px;
500
height: 88px;
501
justify-content: space-between;
502
}
503
504
.explore__image--container img {
505
margin-bottom: 24px;
506
height: 100%;
507
width: auto;
508
}
509
510
.code__container {
511
margin: 0;
512
}
513
514
.guide {
515
display: flex;
516
flex-direction: column;
517
gap: 24px;
518
padding: 110px 64px 230px;
519
}
520
521
.guide::before {
522
background: linear-gradient(0deg, var(--text-black) -80%, #0000 30%);
523
content: "";
524
height: 250px;
525
left: 0;
526
position: absolute;
527
top: -250px;
528
width: 100%;
529
}
530
531
.guide__button {
532
align-self: center;
533
border: 0;
534
display: inline-block;
535
}
536
537
.guide__button--mobile {
538
display: none;
539
}
540
541
.guide__button--desktop {
542
display: inline-block;
543
}
544
545
.guide__header {
546
display: flex;
547
justify-content: space-between;
548
margin-bottom: 32px;
549
}
550
551
.guide__wrapper {
552
position: relative;
553
width: 30%;
554
}
555
556
.guide__container {
557
margin: 0 auto;
558
max-width: 1440px;
559
width: 100%;
560
}
561
562
.guide__title {
563
font-size: 40px;
564
margin-bottom: 0;
565
}
566
567
.guide__example {
568
background: var(--white);
569
display: flex;
570
flex-direction: column;
571
gap: 24px;
572
padding: 0 64px 90px;
573
margin-top: -100px;
574
}
575
576
.guide__example--wrapper {
577
margin: 0 auto;
578
max-width: 1440px;
579
padding: 0;
580
width: 100%;
581
}
582
583
.guide__example::before {
584
background: linear-gradient(7deg, var(--text-black) 10%, #0000 60%);
585
content: "";
586
height: 230px;
587
left: 0;
588
position: absolute;
589
top: -250px;
590
width: calc(100% + 1px);
591
}
592
593
.guide__example::after {
594
background: var(--white);
595
clip-path: polygon(0 0, 100% 75%, 100% 100%, 0% 100%);
596
content: "";
597
height: 230px;
598
left: 0;
599
position: absolute;
600
top: -200px;
601
width: calc(100% + 2px);
602
}
603
604
.guide__code {
605
box-shadow: none;
606
}
607
608
.guide__code--container {
609
display: flex;
610
flex-wrap: wrap;
611
gap: 32px;
612
justify-content: space-between;
613
}
614
615
.models {
616
clip-path: polygon(0 0, 100% 15%, 100% 100%, 0% 85%);
617
padding: 104px 64px 250px;
618
transform: translateY(-160px);
619
}
620
621
.models::before {
622
top: 75px;
623
}
624
625
.models__title {
626
font-size: 40px;
627
}
628
629
.models__wrapper {
630
flex-direction: row;
631
padding-top: 130px;
632
}
633
634
.models__button-wrapper {
635
display: block;
636
}
637
638
.models__button-wrapper--desktop {
639
display: inline-block;
640
text-align: right;
641
}
642
643
.models__button-wrapper--mobile {
644
display: none;
645
}
646
647
.models__content--container {
648
margin-bottom: 0;
649
}
650
651
.models__button--container {
652
padding-left: 64px;
653
}
654
655
.models__card {
656
min-height: 270px;
657
width: 47%;
658
}
659
660
.models__card .button__square {
661
margin-right: 0;
662
}
663
664
.research {
665
padding: 110px 0 150px;
666
text-align: center;
667
}
668
669
.research__description {
670
font-size: 20px;
671
}
672
673
.research__image {
674
height: 180px;
675
padding: 40px;
676
}
677
678
.research__content--contanier h2 {
679
font-size: 40px;
680
}
681
682
.contacts {
683
clip-path: polygon(0 0, 100% 15%, 100% 100%, 0% 100%);
684
margin-top: -115px;
685
padding: 200px 64px 120px;
686
}
687
688
.contacts__title {
689
font-size: 40px;
690
}
691
692
.contacts__wrapper {
693
flex-direction: row;
694
justify-content: space-between;
695
margin: 0 auto;
696
max-width: 1440px;
697
width: 100%;
698
}
699
700
.contacts__contanier {
701
height: 432px;
702
margin-bottom: 0;
703
position: relative;
704
width: 40%;
705
}
706
707
.contacts__border {
708
display: inline-block;
709
height: 432px;
710
margin-bottom: 0;
711
}
712
713
.contacts__description {
714
width: 432px;
715
}
716
}
717
718
@media only screen and (min-width: 1200px) and (max-width: 1409px) {
719
.hero__title {
720
font-size: 48px;
721
}
722
}
723
724