-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (81 loc) · 3.02 KB
/
index.html
File metadata and controls
91 lines (81 loc) · 3.02 KB
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="This tool blends two hex colors by giving specified number of intermediates between them :).">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>Hex Color Blender</title>
<!--inline critical css-->
<style>
body{
font-family: Arial, Helvetica, sans-serif;
}
h1{
text-align: center;
}
.input{
display: flex;
justify-content: space-around;
}
.card{
display: none;
}
.colorList{
margin-top: 3rem;
display: flex;
flex-wrap: wrap;
line-height: 2.5rem;
font-size: 0.9rem;
}
.colorListText{
flex: 0 1 7rem;
text-align: center;
}
</style>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css">
<link rel="stylesheet" href="style/style.scss">
<link rel="stylesheet" href="style/mobile.scss">
</head>
<body>
<div class="wrapper">
<h1>Hex Color Blender</h1>
<section class="input">
<div class="formfield">
<label for="color1">Color 1:</label>
<div class="inpfield">
<input type="text" id="color1" value="#4400ff"> or
<div class="colorwrapper" id="clrw1">
<input type="color" id="clr-1" value="#4400ff">
</div>
</div>
</div>
<div class="formfield">
<label for="color2">Color 2:</label>
<div class="inpfield">
<input type="text" id="color2" value="#00e1ff"> or
<div class="colorwrapper" id="clrw2">
<input type="color" id="clr-2" value="#00e1ff">
</div>
</div>
</div>
<div class="formfield">
<label for="num">Intermediate colors:</label>
<input type="number" id="num" value="15" min="1">
</div>
</section>
<section class="output">
<p class="tip">Tip: Click on a color to copy its hex code!</p>
<div class="card"></div>
<div class="colorList"></div>
</section>
<div class="alert"></div>
</div>
<footer>
<a rel="noopener" target="_blank" href="https://github.com/1Hibiki1/hex-color-blender"><i class="fab fa-github"></i>github</a>
</footer>
<script src="js/app.js"></script>
</body>
</html>