-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
116 lines (114 loc) · 4.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300&display=swap"
rel="stylesheet"
/>
<!-- Stylesheets -->
<link rel="stylesheet" href="./styles/reset.css" />
<link rel="stylesheet" href="./styles/style.css" />
<link rel="stylesheet" href="./styles/home.css" />
<title>PIXL</title>
</head>
<body ondragstart="return false;" ondrop="return false;">
<header class="header hidden">
<a href="./gallery">Gallery</a>
<img src="./assets/PIXL-white.png" id="logo" />
<a href="./about">About</a>
</header>
<main>
<section class="welcome-container module">
<img
src="./assets/PIXL-white.png"
alt=""
class="welcome-container__logo"
/>
<a href="./gallery">View Gallery</a>
<p id="welcome-message">
Welcome to PIXL! Fill in pixels with different colors to
create all kinds of pixel-y art.
</p>
<div class="inputs">
<label>
Title
<input
type="text"
id="artwork-title"
placeholder="Canvas Title"
/>
</label>
<label>
Height
<input
type="number"
id="height-input"
placeholder="Height"
value="10"
/>
</label>
<label>
Width
<input
type="number"
id="width-input"
placeholder="Width"
value="10"
/>
</label>
</div>
<button id="submit-title">START</button>
</section>
<section
id="canvas-container"
class="canvas-container module hidden"
>
<h2 id="display-title"></h2>
<div id="canvas"></div>
<div class="toolchest">
<div class="color-tools">
<label>
<img
src="./assets/palette2.png"
id="color-select-img"
/>
<input type="color" id="color-select" />
</label>
<label>
<input type="radio" name="tools" id="pencil" />
<img src="./assets/pencil.png" alt="" />
</label>
<label>
<input type="radio" name="tools" id="eraser" />
<img src="./assets/eraser.png" alt="" />
</label>
<label>
<input type="radio" name="tools" id="rainbow" />
<img src="./assets/rainbowheart.png" alt="" />
</label>
</div>
<button class="clear-canvas">
<img src="./assets/trash.png" alt="" />
</button>
</div>
<div class="save-buttons">
<button id="save-image">SAVE TO GALLERY</button>
<button id="download-image">DOWNLOAD</button>
</div>
<audio controls autoplay loop muted id="audio-bit" src="http://soundimage.org/wp-content/uploads/2017/04/Its-Raining-Pixels.mp3" type="audio/mpeg"></audio>
<button id="audio-button">NEXT SOUND LOOP</button>
</section>
<div id="png-container" class="hidden">
<div id="rendered-img"></div>
<button id="save-download" class="hidden">download</button>
</div>
</main>
<script type="module" src="./app.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/html2canvas.min.js">
</script>
</body>
</html>