-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (51 loc) · 2.33 KB
/
index.html
File metadata and controls
53 lines (51 loc) · 2.33 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
<!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">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./src/css/index.css">
<title>Tiles!</title>
</head>
<body>
<header class="cmp-header">
<h1 class="cmp-header__heading">Tiles!</h1>
<p class="cmp-header__paragraph"></p>
</header>
<main>
<form class="cmp-color-form">
<div class="cmp-color-form__row">
<input type="color" id="top-left" name="top-left" value="#ffffff" class="cmp-color-form__color-input" title="top left grid color">
<input type="color" id="top-right" name="top-right" value="#ffffff" class="cmp-color-form__color-input" title="top right grid color">
</div>
<div class="cmp-color-form__row">
<input type="color" id="bottom-left" name="bottom-left" value="#ffffff" class="cmp-color-form__color-input" title="bottom left grid color">
<input type="color" id="bottom-right" name="bottom-right" value="#ffffff" class="cmp-color-form__color-input" title="bottom right grid color">
</div>
<fieldset class="cmp-color-form__difficulty">
<legend class="cmp-color-form__difficulty-label">Difficulty</legend>
<label for="grid-size">Easy</label>
<input type="range" min="3" max="16" id="grid-size" name="grid-size" value="5">
<label for="grid-size">Hard</label>
</fieldset>
<label for="mode-select">Choose a mode:</label>
<fieldset class="cmp-color-form__select">
<select name="mode-select" id="mode-select">
<option value="rgb">RGB (original)</option>
<option value="srgb">sRGB</option>
<option value="hsl">HSL</option>
<option value="oklch">OKLCH</option>
</select>
</fieldset>
<nav class="cmp-color-form__navigation">
<button class="cmp-button cmp-color-form__surprise-me" type="button" title="pick colors for me">Surprise me</button>
<input class="cmp-button cmp-color-form__submit" type="submit" value="get colors" title="get color grid">
</nav>
</form>
<div class="cmp-color-grid"></div>
</main>
<script type="module" src="./src/index.js"></script>
</body>
</html>