-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (68 loc) · 1.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Color Flipper</title>
<style>
*,
*::after,
*::before {
box-sizing: border-box;
}
body {
margin: 0;
}
main {
background-color: rgb(174 60 183);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 100vh;
min-height: 100svh;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande',
'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
h1 {
margin: 0;
color: rgb(255 255 255);
text-align: center;
font-size: 3rem;
}
pre {
padding: 0.786rem 0.8rem;
border-radius: 0.3rem;
background-color: rgb(21 21 21);
color: white;
width: auto;
text-align: center;
font-size: 1.5rem;
}
button {
background-color: rgba(255 255 255 / 0.35);
border-radius: 0.5rem;
border-style: none;
color: rgb(0 0 0);
cursor: pointer;
font-size: 0.875rem;
font-weight: 500;
line-height: 1.25rem;
padding: 0.625rem 0.75rem;
text-align: center;
transition-duration: 100ms;
}
button:active {
transform: scale(1.1);
}
</style>
</head>
<body>
<main>
<h1>Color Flipper</h1>
<pre>background-color: <span>rgb(174, 60, 183)</span></pre>
<button type="button">Flip Color</button>
</main>
<script src="./main.js"></script>
</body>
</html>