-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
657 lines (611 loc) · 28.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
<!DOCTYPE html>
<html>
<head>
<title>Website Design System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<link href="colorSchemes.css" rel="stylesheet" type="text/css">
<link href="fontCombinations.css" rel="stylesheet" type="text/css">
<link href="buttonStyles.css" rel="stylesheet" type="text/css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed&family=Cantarell&family=Cardo&family=DM+Sans&family=DM+Serif+Display&family=Fjalla+One&family=Hind&family=Inconsolata&family=Inter&family=Josefin+Sans&family=Karla&family=Libre+Baskerville&family=Lora&family=Montserrat&family=PT+Serif&family=Quattrocento+Sans&family=Source+Sans+Pro&family=Syne&family=Ultra&family=Yeseva+One&display=swap" rel="stylesheet">
</head>
<body>
<header>
<h1>Website Design System</h1>
<h3>A Codecademy Challenge Project by Anton Vlasenko</h3>
</header>
<!-- Navigation -->
<nav>
<ul>
<li><a href="#color-schemes">Color Schemes</a></li>
<li><a href="#font-combinations">Font Combinations</a></li>
<li><a href="#button-styles">Buttons</a></li>
</ul>
</nav>
<!-- Color Schemes Section -->
<section class="container" id="color-schemes">
<div class="h2-container">
<h2>Popular Website Color Schemes</h2>
<p class="container-paragraphs">Using color schemes can vastly improve your website's aesthetic and brand perception. Each scheme suits some website styles more than others, so it's important to choose colors that not only compliment eachother, but also fit the main theme of your brand.<br><br>The five color schemes below have been used in many modern websites in recent years: </p>
<!-- Scheme 1 -->
<div class="color-container" id="scheme-1">
<div class="color-panel" id="blue-yonder">
<p class="color-label">Blue Yonder</p>
<p>#587291</p>
</div>
<div class="color-panel" id="blue-green">
<p class="color-label">Blue Green</p>
<p>#2F97C1</p>
</div>
<div class="color-panel" id="dark-turquoise">
<p class="color-label">Dark Turquoise</p>
<p>#1CCAD8</p>
</div>
<div class="color-panel" id="turquoise">
<p class="color-label">Turquoise</p>
<p>#15E6CD</p>
</div>
<div class="color-panel" id="spring-green">
<p class="color-label">Spring Green</p>
<p>#0CF574</p>
</div>
</div>
<hr class="line-color">
<!-- Scheme 2 -->
<div class="color-container" id="scheme-2">
<div class="color-panel" id="electric-blue">
<p class="color-label">Electric Blue</p>
<p>#373E98</p>
</div>
<div class="color-panel" id="hot-pink">
<p class="color-label">Hot Pink</p>
<p>#F16775</p>
</div>
<div class="color-panel" id="shocking-yellow">
<p class="color-label">Shocking Yellow</p>
<p>#FEE36E</p>
</div>
<div class="color-panel" id="chartreuse-ish">
<p class="color-label">Chartreuse-ish</p>
<p>#CEB92C</p>
</div>
<div class="color-panel" id="darkest-gray">
<p class="color-label">Darkest Gray</p>
<p>#2A2A2A</p>
</div>
</div>
<hr class="line-color">
<!-- Scheme 3 -->
<div class="color-container" id="scheme-3">
<div class="color-panel" id="black">
<p class="color-label">Black</p>
<p>#000000</p>
</div>
<div class="color-panel" id="medium-gray">
<p class="color-label">Medium Gray</p>
<p>#565656</p>
</div>
<div class="color-panel" id="light-gray">
<p class="color-label">Light Gray</p>
<p>#9E9E9E</p>
</div>
<div class="color-panel" id="hot-orange">
<p class="color-label">Hot Orange</p>
<p>#FBA92C</p>
</div>
<div class="color-panel" id="white">
<p class="color-label">White</p>
<p>#FFFFFF</p>
</div>
</div>
<hr class="line-color">
<!-- Scheme 4 -->
<div class="color-container" id="scheme-4">
<div class="color-panel" id="beige">
<p class="color-label">Beige</p>
<p>#C8B7A6</p>
</div>
<div class="color-panel" id="perriwinkle">
<p class="color-label">Perriwinkle</p>
<p>#7D94B5</p>
</div>
<div class="color-panel" id="dusty-rose">
<p class="color-label">Dusty Rose</p>
<p>#C29591</p>
</div>
<div class="color-panel" id="maroon-brown">
<p class="color-label">Maroon Brown</p>
<p>#703F37</p>
</div>
<div class="color-panel" id="muted-green">
<p class="color-label">Muted Green</p>
<p>#B6C199</p>
</div>
</div>
<hr class="line-color">
<!-- Scheme 5 -->
<div class="color-container" id="scheme-5">
<div class="color-panel" id="light-lime">
<p class="color-label">Light Lime</p>
<p>#ABD699</p>
</div>
<div class="color-panel" id="fresh-lemon">
<p class="color-label">Fresh Lemon</p>
<p>#FFE26A</p>
</div>
<div class="color-panel" id="teal">
<p class="color-label">Teal</p>
<p>#75C9B7</p>
</div>
<div class="color-panel" id="mint">
<p class="color-label">Mint</p>
<p>#C7DDCC</p>
</div>
<div class="color-panel" id="navy">
<p class="color-label">Navy</p>
<p>#16123F</p>
</div>
</div>
</div>
</section>
<!-- Font Combinations Section -->
<section class="container" id="font-combinations">
<h2>Common Font Combinations</h2>
<p class="container-paragraphs">Here are some of my favorite font combinations that can really make a website stand out and look professional. All of these fonts can be found in the <a href="https://fonts.google.com/" target="_blank">Google Fonts API</a>.</p>
<div class="font-container">
<!-- Combination 1 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/Barlow+Condensed" target="_blank">Barlow Condensed</a> &
<a href="https://fonts.google.com/specimen/Cantarell" target="_blank">Cantarell</a>
-</b>
</h4>
<p class="title-fonts" id="barlow-condensed">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="cantarell">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
<hr class="line-font">
<!-- Combination 2 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/Cardo" target="_blank">Cardo</a> &
<a href="https://fonts.google.com/specimen/DM+Sans" target="_blank">DM Sans</a>
-</b>
</h4>
<p class="title-fonts" id="cardo">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="dm-sans">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
<hr class="line-font">
<!-- Combination 3 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/DM+Serif+Display" target="_blank">DM Serif Display</a> &
<a href="https://fonts.google.com/specimen/Fjalla+One" target="_blank">Fjalla One</a>
-</b>
</h4>
<p class="title-fonts" id="dm-serif-display">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="fjalla-one">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
<hr class="line-font">
<!-- Combination 4 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/Hind" target="_blank">Hind</a> &
<a href="https://fonts.google.com/specimen/Inconsolata" target="_blank">Inconsolata</a>
-</b>
</h4>
<p class="title-fonts" id="hind">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="inconsolata">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
<hr class="line-font">
<!-- Combination 5 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/Inter" target="_blank">Inter</a> &
<a href="https://fonts.google.com/specimen/Josefin+Sans" target="_blank">Josefin Sans</a>
-</b>
</h4>
<p class="title-fonts" id="inter">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="josefin-sans">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
<hr class="line-font">
<!-- Combination 6 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/Karla" target="_blank">Karla</a> &
<a href="https://fonts.google.com/specimen/Libre+Baskerville" target="_blank">Libre Baskerville</a>
-</b>
</h4>
<p class="title-fonts" id="karla">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="libre-baskerville">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
<hr class="line-font">
<!-- Combination 7 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/Lora" target="_blank">Lora</a> &
<a href="https://fonts.google.com/specimen/Montserrat" target="_blank">Montserrat</a>
-</b>
</h4>
<p class="title-fonts" id="lora">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="montserrat">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
<hr class="line-font">
<!-- Combination 8 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/PT+Serif" target="_blank">PT Serif</a> &
<a href="https://fonts.google.com/specimen/Quattrocento+Sans" target="_blank">Quattrocento Sans</a>
-</b>
</h4>
<p class="title-fonts" id="pt-serif">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="quattrocento-sans">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
<hr class="line-font">
<!-- Combination 9 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/Source+Sans+Pro" target="_blank">Source Sans Pro</a> &
<a href="https://fonts.google.com/specimen/Syne" target="_blank">Syne</a>
-</b>
</h4>
<p class="title-fonts" id="source-sans-pro">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="syne">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
<hr class="line-font">
<!-- Combination 10 -->
<div class="combination">
<h4 class="combination-name">
<b>-
<a href="https://fonts.google.com/specimen/Ultra" target="_blank">Ultra</a> &
<a href="https://fonts.google.com/specimen/Yeseva+One" target="_blank">Yeseva One</a>
-</b>
</h4>
<p class="title-fonts" id="ultra">The Quick Brown Fox Jumps Over the Lazy Dog</p>
<p class="paragraph-fonts" id="yeseva-one">Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.<br><br>- William Strunk, Jr.</p>
</div>
</div>
</section>
<!-- Button Styles Section -->
<section class="container" id="button-styles">
<h2>Button Styles</h2>
<p class="container-paragraphs">Using a call-to-action button that clearly differentiates itself from the rest of the website is one of the best ways to improve conversion rates. This is mostly achieved in 2 ways - by focusing on the button's colors and it's styling.<br><br>Buttons come in all shapes and sizes, ranging from simple, minimalistic styles to much more vibrant and animated buttons that change their style after user interaction (such as mouse clicks and hovers).</p>
<h4 class="button-subheader">- Minimalistic Buttons -</h4>
<div class="button-panel">
<!-- Button 1 -->
<div class="button-card">
<div class="button">
<button class="button-1" role="button">Button 1</button>
</div>
<p class="button-code-header">HTML Code</p>
<p class="button-code"><button class="button-1" role="button">Button 1</button></p>
<br>
<p class="button-code-header">CSS Code</p>
<p class="button-code">.button-1 {<br>
background-color: #FAFBFC;<br>
border: 1px solid rgba(27, 31, 35, 0.15);<br>
border-radius: 6px;<br>
color: #24292E;<br>
cursor: pointer;<br>
font-family: Helvetica, sans-serif;<br>
font-size: 14px;<br>
line-height: 20px;<br>
padding: 6px 16px;<br>
}<br><br>
.button-1:hover {<br>
background-color: #F3F4F6;<br>
transition-duration: 0.2s;<br>
}<br><br>
.button-1:active {<br>
background-color: #EDEFF2;<br>
transition: none 0s;<br>
}
</p>
</div>
<!-- Button 2 -->
<div class="button-card">
<div class="button">
<button class="button-2" role="button">Button 2</button>
</div>
<p class="button-code-header">HTML Code</p>
<p class="button-code"><button class="button-2" role="button">Button 2</button></p>
<br>
<p class="button-code-header">CSS Code</p>
<p class="button-code">.button-2 {<br>
background-color: transparent;<br>
border: 2px solid #1A1A1A;<br>
border-radius: 15px;<br>
color: #3B3B3B;<br>
cursor: pointer;<br>
font-family: "Segoe UI", Arial, sans-serif;<br>
font-size: 16px;<br>
font-weight: 600;<br>
padding: 16px 24px;<br>
transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);<br>
}<br><br>
.button-2:hover {
color: #fff;<br>
background-color: #1A1A1A;<br>
box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;<br>
transform: translateY(-2px);<br>
}<br><br>
.button-2:active {<br>
box-shadow: none;<br>
transform: translateY(0);<br>
}
</p>
</div>
<!-- Button 3 -->
<div class="button-card">
<div class="button">
<button class="button-3" role="button">Button 3</button>
</div>
<p class="button-code-header">HTML Code</p>
<p class="button-code"><button class="button-3" role="button">Button 3</button></p>
<br>
<p class="button-code-header">CSS Code</p>
<p class="button-code">.button-3 {<br>
align-items: center;<br>
background-color: #fff;<br>
border: 2px solid #000;<br>
color: #000;<br>
cursor: pointer;<br>
font-family: Inter, sans-serif;<br>
font-size: 16px;<br>
font-weight: 600;<br>
height: 48px;<br>
letter-spacing: -.8px;<br>
line-height: 24px;<br>
min-width: 140px;<br>
padding: 0 17px;<br>
transition: all .3s;<br>
}<br><br>
.button-3:hover {<br>
border-color: #06f;<br>
color: #06f;<br>
}<br><br>
.button-3:active {<br>
border-color: #06f;<br>
color: #06f;<br>
height: 68px;<br>
}
</p>
</div>
<!-- Button 4 -->
<div class="button-card">
<div class="button">
<button class="button-4" role="button">Button 4</button>
</div>
<p class="button-code-header">HTML Code</p>
<p class="button-code"><button class="button-4" role="button">Button 4</button></p>
<br>
<p class="button-code-header">CSS Code</p>
<p class="button-code">.button-4 {<br>
color: #668ad8;<br>
width: 120px;<br>
height: 120px;<br>
font-size: 16px;<br>
font-family: Verdana, Geneva, Tahoma, sans-serif;<br>
line-height: 120px;<br>
border-radius: 50%;<br>
border: solid 2px #668ad8;<br>
font-weight: bold;<br>
transition: .4s;<br>
cursor: pointer;<br>
}<br><br>
.button-4:hover {<br>
background: #b3e1ff;<br>
}
</div>
</div>
<h4 class="button-subheader">- Colorful Buttons -</h4>
<div class="button-panel">
<!-- Button 5 -->
<div class="button-card">
<div class="button">
<button class="button-5" role="button">
<span class="text">Button 5</span>
</button>
</div>
<p class="button-code-header">HTML Code</p>
<p class="button-code"><button class="button-5" role="button"><br>
<span class"text">Button 5</span><br>
</button>
</p>
<br>
<p class="button-code-header">CSS Code</p>
<p class="button-code">.button-5 {<br>
background-image: linear-gradient(144deg,#AF40FF, #5B42F3 50%,#00DDEB);<br>
border: 0;<br>
border-radius: 8px;<br>
box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;<br>
color: #FFFFFF;<br>
display: flex;<br>
font-family: Tahoma, sans-serif;<br>
font-size: 20px;<br>
justify-content: center;<br>
line-height: 16px;<br>
padding: 3px;<br>
cursor: pointer;<br>
}<br><br>
.button-5:active,<br>
.button-5:hover {<br>
outline: 0;<br>
}<br><br>
.button-5 span {<br>
background-color: rgb(5, 6, 45);<br>
padding: 16px 24px;<br>
border-radius: 6px;<br>
transition: 300ms;<br>
}<br><br>
.button-5:hover span {<br>
background: none;<br>
}
</div>
<!-- Button 6 -->
<div class="button-card">
<div class="button">
<button class="button-6" role="button">
<span class="text">Button 6</span>
</button>
</div>
<p class="button-code-header">HTML Code</p>
<p class="button-code"><button class="button-6" role="button">Button 6</button></p>
<br>
<p class="button-code-header">CSS Code</p>
<p class="button-code">.button-6 {<br>
background-color: #FFFFFF;<br>
border-radius: 40px;<br>
border-style: none;<br>
box-shadow: #ADCFFF 0 -12px 6px inset;<br>
color: #000000;<br>
cursor: pointer;<br>
font-family: sans-serif;<br>
font-size: 18px;<br>
font-weight: 700;<br>
letter-spacing: -.24px;<br>
padding: 16px 18px;<br>
transition: all .15s;<br>
}<br><br>
.button-6:hover {<br>
background-color: #FFC229;<br>
box-shadow: #FF6314 0 -6px 8px inset;<br>
transform: scale(1.125);<br>
}<br><br>
.button-6:active {<br>
transform: scale(1.025);<br>
}
</div>
<!-- Button 7 -->
<div class="button-card">
<div class="button">
<button class="button-7" role="button">
<span class="text">Button 7</span>
</button>
</div>
<p class="button-code-header">HTML Code</p>
<p class="button-code"><button class="button-7" role="button">Button 7</button></p>
<br>
<p class="button-code-header">CSS Code</p>
<p class="button-code">.button-7 {<br>
content: "";<br>
background: linear-gradient(<br>
45deg,<br>
#ff0000,<br>
#ff7300,<br>
#fffb00,<br>
#48ff00,<br>
#00ffd5,<br>
#002bff,<br>
#7a00ff,<br>
#ff00c8,<br>
#ff0000<br>
);<br>
position: absolute;<br>
top: -2px;<br>
left: -2px;<br>
background-size: 400%;<br>
z-index: -1;<br>
filter: blur(5px);<br>
width: calc(100% + 4px);<br>
height: calc(100% + 4px);<br>
animation: glowing-button-7 20s linear infinite;<br>
transition: opacity 0.3s ease-in-out;<br>
border-radius: 10px;<br>
}<br><br>
@keyframes glowing-button-7 {<br>
0% {<br>
background-position: 0 0;<br>
}<br>
50% {<br>
background-position: 400% 0;<br>
}<br>
100% {<br>
background-position: 0 0;<br>
}<br>
}<br><br>
.button-7:after {<br>
z-index: -1;<br>
content: "";<br>
position: absolute;<br>
width: 100%;<br>
height: 100%;<br>
background: #222;<br>
left: 0;<br>
top: 0;<br>
border-radius: 10px;<br>
}
</div>
<!-- Button 8 -->
<div class="button-card">
<div class="button">
<button class="button-8" role="button">
<span class="text">Button 8</span>
</button>
</div>
<p class="button-code-header">HTML Code</p>
<p class="button-code"><button class="button-8" role="button">Button 8</button></p>
<br>
<p class="button-code-header">CSS Code</p>
<p class="button-code">.button-8 {<br>
background-color: initial;<br>
border-style: none;<br>
color: #fff;<br>
cursor: pointer;<br>
flex-shrink: 0;<br>
font-family: sans-serif;<br>
font-size: 16px;<br>
font-weight: 800;<br>
line-height: 24px;<br>
padding: 19px 26px;<br>
position: relative;<br>
}<br><br>
.button-8:before,<br>
.button-8:after {<br>
border-radius: 80px;<br>
}<br><br>
.button-8:before {<br>
background-image: linear-gradient(92.83deg, #ff7426 0, #f93a13 100%);<br>
content: "";<br>
height: 100%;<br>
left: 0;<br>
top: 0;<br>
position: absolute;<br>
width: 100%;<br>
z-index: -2;<br>
}<br><br>
.button-8:after {<br>
background-image: linear-gradient(#541a0f 0, #0c0d0d 100%);<br>
inset: 4px;<br>
content: "";<br>
position: absolute;<br>
transition: all 0.2s ease-out;<br>
z-index: -1;<br>
}<br><br>
.button-8:hover:after {<br>
transition-timing-function: ease-in;<br>
opacity: 0;<br>
}<br><br>
.button-8:active {<br>
color: #ccc;<br>
}<br><br>
.button-8:active:before {<br>
background-image: linear-gradient(0deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)),<br> linear-gradient(92.83deg, #ff7426 0, #f93a13 100%);<br>
}
</div>
</section>
</body>
<footer>
<p>This webpage was made using HTML and CSS only.</p>
<p>Created by Anton Vlasenko</p>
</footer>
</html>