-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (55 loc) · 2.36 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RGB Color Slider</title>
<link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon" />
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" />
<!-- Reset de estilos -->
<link rel="stylesheet" href="assets/css/reset.css" />
<!-- Poppins - Google Fonts -->
<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=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet" />
<!-- Meus arquivos-fonte -->
<link rel="stylesheet" href="assets/css/styles.css" />
<script defer src="assets/js/app.js"></script>
</head>
<body class="centered">
<main>
<div id="container" class="centered">
<p id="description">Combine diferentes valores para R, G e B e copie o código RGB ou hexadecimal gerado da cor.</p>
<div id="colors">
<div class="color-container" id="r-container">
<span>R</span>
<input type="range" id="r-slider" min="0" max="255" value="0" />
</div>
<div class="color-container" id="g-container">
<span>G</span>
<input type="range" id="g-slider" min="0" max="255" value="0" />
</div>
<div class="color-container" id="b-container">
<span>B</span>
<input type="range" id="b-slider" min="0" max="255" value="0" />
</div>
</div>
<div id="output-container">
<div id="rgb-output-container">
<input type="text" id="rgb-output" value="rbg(0, 0, 0);" />
<button type="button" class="copy-btn" id="rgb-output-copy-button">
<i id="rgb-output-copy-icon" class="bi bi-copy"></i>
</button>
</div>
<div id="hex-output-container">
<input type="text" id="hex-output" value="#000000;" />
<button type="button" class="copy-btn" id="hex-output-copy-button">
<i id="hex-output-copy-icon" class="bi bi-copy"></i>
</button>
</div>
</div>
</div>
</main>
</body>
</html>