-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·177 lines (143 loc) · 7.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- TITLE AND DESCRIPTION -->
<title>Color Generator</title>
<meta name="description" content="Perhaps the easiest way in the world to find your next favorite color.">
<link href="./dist/assets/icons/favicon.ico" rel="icon" type="image/x-icon" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="./dist/styles/styles.min.css">
<!-- JS -->
<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
</head>
<body>
<!-- FULL PAGE CONTAINER -->
<div class="page-container">
<!-- UI ELEMENT CONTAINER | FLEX CONTAINER 1 -->
<div class="ui-container">
<!-- TOP BAR -->
<div class="top-bar">
<!-- SITE TITLE -->
<div class="header-item-sm">
<h1 class="logo">Color Generator</h1>
</div>
<!-- INFO LINK -->
<div id="help-btn" class="header-item-sm">
<p id="about-modal-open" class="ui float-right">
<a href="#">Info</a>
</p>
</div>
</div>
<!-- COLOR DISPLAY -->
<div class="display">
<!-- rgb display -->
<ul id="rgb-display" class="color-display">
<li id="red-display"></li>
<li id="green-display"></li>
<li id="blue-display"></li>
</ul>
<!-- hexidecimal display -->
<ul id="hex-display" class="color-display">
<li id="hex-value-display"></li>
</ul>
<!-- hsl display -->
<ul id="hsl-display" class="color-display">
<li id="hue-display"></li>
<li id="saturation-display"></li>
<li id="lightness-display"></li>
</ul>
</div>
<!-- COLOR CONTROL BAR -->
<div class="controls-container">
<!-- TOGGLE SETTINGS BUTTON FOR SMALLER SCREENS -->
<div class="sm-visible">
<button id="settings-toggle" type="button" name="settings panel toggle" aria-label="Open Settings Panel">
Settings
<svg class="settings-icon" viewBox="0 0 66 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
<title>arrow</title>
<g id="arrow" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
<g id="Group" transform="translate(2.000000, 4.000000)" stroke="#000000" stroke-width="8">
<path d="M25.1133767,15.0857864 L65.2554811,15.0857864" id="Path-3" transform="translate(45.556349, 15.585786) rotate(45.000000) translate(-45.556349, -15.585786) "></path>
<path d="M15.8847763,-4.91421356 L15.8847763,35.2430728" id="Path-4" transform="translate(16.384776, 15.585786) rotate(45.000000) translate(-16.384776, -15.585786) "></path>
</g>
</g>
</svg>
<!-- <img class="icon" alt="Arrow Icon" src="assets/icons/arrow.svg" /> -->
</button>
</div>
<!-- FLEX CONTAINER 4 -->
<div class="settings-container">
<!-- COLOR DISPLAY MODE SELECTOR | FLEX ITEM 4.1 -->
<div class="control-container color-modes-container toggle-group">
<button id="rgb" type="button" class="toggle" name="RGB" aria-label="View RGB Values" aria-pressed="true">
RGB
</button>
<button id="hex" type="button" class="toggle" name="Hex" aria-label="View Hex Code" aria-pressed="false">
HEX
</button>
<button id="hsl" type="button" class="toggle" name="HSL" aria-label="View HSL Values" aria-pressed="false">
HSL
</button>
</div>
<!-- RGB SLIDERS | FLEX ITEM 4.2 -->
<div class="control-container sliders">
<div class="slider-container">
<div class="slider-info-container">
<label id="red-control-label" for="red-control">Red</label>
<p id="red-slider-display" class="ui"></p>
</div>
<input type="range" id="red-control" min="0" max="255" value="255" aria-labelledby="red-control-label" aria-valuemin="0" aria-valuemax="255" aria-valuenow="255">
</div>
<div class="slider-container">
<div class="slider-info-container">
<label id="green-control-label" for="green-control">Green</label>
<p id="green-slider-display" class="ui"></p>
</div>
<input type="range" id="green-control" min="0" max="255" value="0" aria-labelledby="green-control-label" aria-valuemin="0" aria-valuemax="255" aria-valuenow="0">
</div>
<div class="slider-container">
<div class="slider-info-container">
<label id="blue-control-label" for="blue-control">Blue</label>
<p id="blue-slider-display" class="ui"></p>
</div>
<input type="range" id="blue-control" min="0" max="255" value="255" aria-labelledby="blue-control-label" aria-valuemin="0" aria-valuemax="255" aria-valuenow="255">
</div>
</div>
<!-- COPY CSS BUTTON | FLEX ITEM 4.3 -->
<div class="control-container copy-container sm-hidden">
<button id="copy-css-btn" type="button" name="Copy CSS" aria-label="Copy CSS">
<span class="copy-btn-label">Copy CSS</span>
</button>
</div>
<!-- END SETTINGS -->
</div>
<!-- END CONTROL BAR -->
</div>
<!-- END UI CONTAINER -->
</div>
<!-- ABOUT MODAL -->
<div id="about-modal" class="modal">
<button id="about-modal-close" class="close-btn" type="button" name="Close">
</button>
<div class="modal-content">
<!-- TITLE -->
<div class="content-section">
<h1>Color Generator</h1>
</div>
<!-- HOW TO PLAY -->
<div class="content-section">
<p>Perhaps the easiest way to find your next favorite color.</p>
<p>Press the <span class="heavy">spacebar</span> or <span class="heavy">tap</span> to create a new color. The <span class="heavy">back key</span> will take you through your color history. The <span class="heavy">forward key</span> will go the other way.</p>
<p>Built by Chris Schnaars. Find the code on <a href="https://github.com/chrisschnaars/color-generator">Github</a>.</p>
</div>
</div>
<!-- END PAGE CONTAINER -->
</div>
<!-- Javascript -->
<script src="dist/scripts/app.min.js"></script>
</body>
</html>