-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (40 loc) · 1.29 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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Pixel art studio</title>
<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=Press+Start+2P&family=VT323&display=swap" rel="stylesheet"> <link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<div class="wrapper">
<header>
<h1>Pixel Art Studio</h1>
<p>Make your own single-div pixel art with CSS.</p>
</header>
<div class="controls">
<label for="colorPicker">Color picker</label>
<input type="color" id="colorPicker">
<label for="cellSize">Columns</label>
<input type="range" min="10" max="60" id="columns" step="10" value="30">
<button data-undo>Undo</button>
<button data-clear>Clear</button>
<button data-save>Save</button>
</div>
<div class="canvas">
<div class="draw-area">
<div class="marker"></div>
</div>
</div>
<div class="css">
<label for="css">CSS:</label>
<textarea name="cssCode" id="css" rows="10"></textarea>
<button data-copy>Copy to clipboard</button>
</div>
</div>
<!-- partial -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/d3/7.7.0/d3.min.js'></script><script src="./script.js"></script>
</body>
</html>