-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
254 lines (250 loc) · 7.68 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hexagon Grid Generator</title>
</head>
<body>
<main>
<section class="header">
<header>
<h1 class="header__brand">Hexagon Grid Generator</h1>
</header>
<section class="header__section-buttons">
<button class="header__button" id="cssBtn">css</button>
<button class="header__button" id="htmlBtn">html</button>
</section>
</section>
<section class="generator">
<section class="hexagon-wrapper">
<div
class="hexagon-wrapper__hexagon-container"
id="hexagon__container"
></div>
</section>
</section>
<section class="controls">
<form autocomplete="off" class="controls__input">
<p class="input-field">
<label for="bg-color" class="input-field__label"
>Background<span class="tooltip-text"
>Color of the background</span
></label
>
<input
id="bg-color"
type="color"
value="#dddddd"
name="background-color"
/>
</p>
<p class="input-field">
<label for="hexagon-color" class="input-field__label"
>Hexagon<span class="tooltip-text"
>Color of the hexagons</span
></label
>
<input
id="hexagon-color"
type="color"
value="#E29609"
name="hexagon-color"
/>
</p>
<p class="input-field">
<label for="text-color" class="input-field__label"
>Text<span class="tooltip-text"
>Color of the text inside the hexagons</span
></label
>
<input
id="text-color"
type="color"
value="#284646"
name="text-color"
/>
</p>
<p class="input-field">
<label for="numberOfHexagons" class="input-field__label"
>Hexagons<span class="tooltip-text"
>Total number of hexagons</span
></label
>
<input
id="numberOfHexagons"
type="number"
min="0"
value="34"
name="number-of-hexagons"
/>
</p>
<p class="input-field">
<label for="hexagon-first-row" class="input-field__label"
>1st Row<span class="tooltip-text"
>Number of hexagons on the first row</span
></label
>
<input
id="hexagon-first-row"
type="number"
min="0"
value="9"
name="hexagon-first-row"
/>
</p>
<p class="input-field">
<label for="hexagon-size" class="input-field__label"
>Size<span class="tooltip-text"
>The relative size of the hexagon</span
></label
>
<input
id="hexagon-size"
type="number"
min="0"
value="6"
name="hexagon-size"
/>
</p>
<p class="input-field">
<label for="hexagon-gap" class="input-field__label"
>Gap<span class="tooltip-text"
>The size of the gap between the hexagons</span
></label
>
<input
id="hexagon-gap"
type="number"
min="0"
value="14"
name="hexagon-gap"
/>
</p>
<p class="input-field">
<label for="container-skew-X" class="input-field__label"
>Skew X<span class="tooltip-text"
>The value for skewing on the X-axis (deg)</span
></label
>
<input
id="container-skew-X"
type="number"
value="0"
name="container-skew-x"
/>
</p>
<p class="input-field">
<label for="container-skew-Y" class="input-field__label"
>Skew Y<span class="tooltip-text"
>The value for skewing on the Y-axis (deg)</span
></label
>
<input
id="container-skew-Y"
type="number"
value="0"
name="container-skew-y"
/>
</p>
<p class="input-field">
<label class="input-field__label"
>Rotation<span class="tooltip-text"
>The rotation on hover over the hexagon (deg)</span
></label
>
<input
id="hexagon-rotation"
type="number"
value="6"
name="hexagon-rotation"
/>
</p>
<p class="input-field">
<label for="hexagon-scale" class="input-field__label"
>Scale<span class="tooltip-text"
>The scale on hover over the hexagon (%)</span
></label
>
<input
id="hexagon-scale"
type="number"
step="0.1"
value="1.6"
name="hexagon-scale"
/>
</p>
<p class="input-field">
<label for="hexagon-transition" class="input-field__label"
>Transition<span class="tooltip-text"
>The transition value on hover (seconds)</span
></label
>
<input
id="hexagon-transition"
type="number"
step="0.1"
value="0.7"
name="hexagon-transition"
/>
</p>
<p class="input-field">
<label for="media-query--1" class="input-field__label"
>@media 1<span class="tooltip-text"
>The 1st media query (value in px)</span
></label
>
<input
id="media-query--1"
type="number"
min="0"
value="900"
name="mediaquery1"
/>
</p>
<p class="input-field">
<label for="media-query--2" class="input-field__label"
>@media 2<span class="tooltip-text"
>The 2nd media query (value in px)</span
></label
>
<input
id="media-query--2"
type="number"
min="0"
value="700"
name="mediaquery2"
/>
</p>
<p class="input-field">
<label for="media-query--3" class="input-field__label"
>@media 3<span class="tooltip-text"
>The 3rd media query (value in px)</span
></label
>
<input
id="media-query--3"
type="number"
min="0"
value="500"
name="mediaquery3"
/>
</p>
</form>
</section>
<dialog id="dialog">
<section class="dialog__btns">
<button id="dialog__copy-btn">Copy</button>
<button id="dialog__close-btn">Close</button>
</section>
<section class="dialog__header">
<h2 id="dialog__title"></h2>
</section>
<section>
<pre><code id="dialog__text"></code></pre>
</section>
</dialog>
</main>
</body>
<script type="module" src="/src/main.ts"></script>
</html>