-
Notifications
You must be signed in to change notification settings - Fork 1
/
pattern.html
318 lines (310 loc) · 19 KB
/
pattern.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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Primary Meta Tags -->
<title>HashCSS || Pattern Generator</title>
<meta name="title" content="HashCSS || Pattern Generator">
<meta name="description" content="HashCSS is a collection of CSS tools for beginner developers. it can be used to get css codes snippets easily. Tools include borders, Glassmorphism UI , Patterns generators.">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://github.com/abhiprojectz/hashcss">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="HashCSS || Pattern Generator">
<meta property="og:description" content="HashCSS is a collection of CSS tools for beginner developers. it can be used to get css codes snippets easily. Tools include borders, Glassmorphism UI , Patterns generators.">
<meta property="og:image" content="assets/img/glass.PNG">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Stylesheet css path -->
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!-- Toast notification starts -->
<div id="toast">
<div id="img">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FFF" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<line x1="12" y1="8" x2="12.01" y2="8" />
<polyline points="11 12 12 12 12 16 13 16" />
</svg>
</div>
<div id="desc"></div>
</div>
<!-- === SHARE WINDOW === -->
<div class="code-container" id="share__">
<div class="code-box">
<div class="code-head">
Share the app:
<svg xmlns="http://www.w3.org/2000/svg" id="cancel_share__" width="30" height="30" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<path d="M10 10l4 4m0 -4l-4 4" />
</svg>
</div>
<pre id="generated-code" class="code-space"><code>
HashCSS :
// We have the right tools for all your CSS Needs.
-> GlassMorphism UI Generator
-> CSS Background Pattern generator
-> Borders generator
-> Shadow Generator
</code></pre>
<div class="button-container">
<button onclick="sharebtn('x')">
<svg style="margin-right: 15px;" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="2em" height="2em" viewBox="0 0 24 24" stroke-width="1.5" stroke="#fff" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<rect x="8" y="8" width="12" height="12" rx="2" />
<path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" />
</svg>
Copy this tools link!
</button>
<button onclick="sharebtn('https://hashcss.netlify.app')" class="btn_tp_b">
<svg style="margin-right: 15px;" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="2em" height="2em" viewBox="0 0 24 24" stroke-width="1.5" stroke="#fff" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<rect x="8" y="8" width="12" height="12" rx="2" />
<path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" />
</svg>
Copy Apps link!
</button>
</div>
</div>
</div>
<!-- === Code space copy === -->
<div class="code-container" id="codecopy">
<div class="code-box">
<div class="code-head">
Generated Code:
<svg xmlns="http://www.w3.org/2000/svg" id="cancel-codecopy" width="30" height="30" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<path d="M10 10l4 4m0 -4l-4 4" />
</svg>
</div>
<pre id="generated-code" class="code-space"><code id="copyoutput">
background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #ffcce0 44px), repeating-linear-gradient(#FF0066, #e22251);
background-color: #ffcce0;
</code></pre>
<div class="button-container">
<button onclick="copycode()">
<svg style="margin-right: 15px;" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="2em" height="2em" viewBox="0 0 24 24" stroke-width="1.5" stroke="#fff" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<rect x="8" y="8" width="12" height="12" rx="2" />
<path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" />
</svg>
Copy to clipboard!
</button>
</div>
</div>
</div>
<!-- === Settings Popup === -->
<div class="settings-container" id="popm">
<div class="settings-popup">
<div class="pop-head">
<p class="pop-heading">HashCSS Settings:</p>
<svg id="pop-close" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<path d="M10 10l4 4m0 -4l-4 4" />
</svg>
</div>
<div class="pop-item">
Animations
<label class="switch">
<input id="anim" type="checkbox" checked/>
<div></div>
</label>
</div>
<div class="pop-item">
Tooltips (hints)
<label class="switch">
<input id="hints" type="checkbox" checked/>
<div></div>
</label>
</div>
</div>
</div>
<!-- === Header === -->
<div class="slideIn" id="header">
<svg xmlns="http://www.w3.org/2000/svg" id="menu" width="30" height="30" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FFF" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M6 17.6l-2 -1.1v-2.5" />
<path d="M4 10v-2.5l2 -1.1" />
<path d="M10 4.1l2 -1.1l2 1.1" />
<path d="M18 6.4l2 1.1v2.5" />
<path d="M20 14v2.5l-2 1.12" />
<path d="M14 19.9l-2 1.1l-2 -1.1" />
<line x1="12" y1="12" x2="14" y2="10.9" />
<line x1="18" y1="8.6" x2="20" y2="7.5" />
<line x1="12" y1="12" x2="12" y2="14.5" />
<line x1="12" y1="18.5" x2="12" y2="21" />
<path d="M12 12l-2 -1.12" />
<line x1="6" y1="8.6" x2="4" y2="7.5" />
</svg>
<span id="title">HashCSS - Pattern Generator </span>
<svg onclick="window.location.href = 'https://github.com/abhiprojectz/HashCSS'" xmlns="http://www.w3.org/2000/svg" class="giticon" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FFF" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" id="about" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FFF" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
<circle cx="12" cy="12" r="3" />
</svg>
</div>
<!-- === Pages Navigation === -->
<button class="page-btn" id="previous" onclick="window.location.href = 'index.html'">
<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M18 12h-15" />
<path d="M6 9l-3 3l3 3" />
<path d="M21 9l-3 3l3 3" />
</svg>
</button>
<button class="page-btn" id="next" onclick="window.location.href = 'borders.html'">
<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M18 15l3 -3l-3 -3" />
<path d="M3 15l3 -3l-3 -3" />
<line x1="6" y1="12" x2="21" y2="12" />
</svg>
</button>
<!-- === Target display === -->
<style>
.pattern_dis {
position: relative;
width: 400px;
height: 300px;
border: 1px solid rgb(225, 225, 239);
border-radius: 8px;
background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #ffcce0 44px), repeating-linear-gradient(#FF0066, #e22251);
background-color: #ffcce0;
}
</style>
<div id="dis-target" class="display-container scaleIn" style="height: 350px;">
<div class="display-c" style="height: 330px;">
<div id="disbox" class="pattern_dis"></div>
</div>
</div>
<!-- === Tools Navigation === -->
<div id="tools-nav" class="panel-container bottomfade">
<div class="wrapper">
<div class="panel1">
<ul id="ccc">
<li>
<!-- PATTERN STYLE -->
<div class="panel-sp">
<div class="color-container">
<label for="backgroundColor" class="czo"><b style="font-family: 'Poppins'; margin-right:15px;">Pattern style</b></label>
<section class="dropsel">
<select id="p_style" class="selectbor" style="font-family: 'Poppins'; cursor:pointer;" onchange="update()">
<option value="Waves">Waves</option>
<option value="Whilrs">Whilrs</option>
<option value="Dots">Dots</option>
<option value="CubeSi">CubeSi</option>
<option value="ZigZag">ZigZag</option>
<option value="Grid">Grid</option>
<option value="VerticalLines">Vertical Lines</option>
<option value="HorizontalLines">Horizontal Lines</option>
<option value="DiagonalLines">Diagonal Lines</option>
<option value="Checkers">Checkers</option>
</select>
</section>
</div>
</li>
<li>
<!-- PATTERN COLOR SECTION -->
<div class="panel-sp" style="margin-top: 25px;">
<div class="color-container" style="margin-bottom: 15px;">
<label for="backgroundColor" class="czo"><b style="font-family: 'Poppins';">Pattern color</b></label>
<input onchange="patternColor(this)" type="color" value="#FF0066" id="p_color" class="colorc"/>
</div>
<div class="color-container" style="margin-bottom: 15px; margin-left:15px;">
<label for="backgroundColor" class="czo"><b style="font-family: 'Poppins';">Background color</b></label>
<input onchange="patternColor(this)" type="color" value="#ffcce0" id="bg_color" class="colorc"/>
</div>
</div>
</li>
</ul>
</div>
<div class="panel2">
<div class="color-container" style="margin-bottom: 15px;">
<label for="backgroundColor" class="czo"><b style="font-family: 'Poppins';">Pattern Size</b></label>
<div class="range">
<input type="range" min="10" max="100" id="p_size" value="33"/>
</div>
</div>
<div class="color-container" id="p_width_con" style="margin-bottom: 15px; display:none;">
<label for="backgroundColor" class="czo"><b style="font-family: 'Poppins';">Pattern width</b></label>
<div class="range">
<input type="range" min="0.5" max="10" id="p_width" value="4"/>
</div>
</div>
</div>
<div class="panel3">
<div class="home_btn_con">
<button id="button__" onclick="sharebtnpopup()">
<svg xmlns="http://www.w3.org/2000/svg" class="btn_svg" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="6" cy="12" r="3" />
<circle cx="18" cy="6" r="3" />
<circle cx="18" cy="18" r="3" />
<line x1="8.7" y1="10.7" x2="15.3" y2="7.3" />
<line x1="8.7" y1="13.3" x2="15.3" y2="16.7" />
</svg>
<span style="margin-left: 6px;">Share</span>
</button>
<button id="button__" onclick="window.location.href = 'home.html'" style="margin-left: 12px;">
<svg xmlns="http://www.w3.org/2000/svg" class="btn_svg" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="1" />
<circle cx="12" cy="12" r="5" />
<line x1="15.9" y1="20.11" x2="15.9" y2="20.12" />
<line x1="19.04" y1="17.61" x2="19.04" y2="17.62" />
<line x1="20.77" y1="14" x2="20.77" y2="14.01" />
<line x1="20.77" y1="10" x2="20.77" y2="10.01" />
<line x1="19.04" y1="6.39" x2="19.04" y2="6.4" />
<line x1="15.9" y1="3.89" x2="15.9" y2="3.9" />
<line x1="12" y1="3" x2="12" y2="3.01" />
<line x1="8.1" y1="3.89" x2="8.1" y2="3.9" />
<line x1="4.96" y1="6.39" x2="4.96" y2="6.4" />
<line x1="3.23" y1="10" x2="3.23" y2="10.01" />
<line x1="3.23" y1="14" x2="3.23" y2="14.01" />
<line x1="4.96" y1="17.61" x2="4.96" y2="17.62" />
<line x1="8.1" y1="20.11" x2="8.1" y2="20.12" />
<line x1="12" y1="21" x2="12" y2="21.01" />
</svg>
<span style="margin-left: 6px;">More Tools</span>
</button>
</div>
<p id="hint" style="font-family: 'Poppins';">Powerful css tools at one place.</p>
<div class="p3-span">
<span class="csave" onclick="result()" type="pattern">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="28" height="28" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<polyline points="7 8 3 12 7 16" />
<polyline points="17 8 21 12 17 16" />
<line x1="14" y1="4" x2="10" y2="20" />
</svg>
</span>
<span class="csave" id="random">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-loom" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M17.464 6.518a6.001 6.001 0 1 0 -3.023 7.965" />
<path d="M17.482 17.464a6.001 6.001 0 1 0 -7.965 -3.023" />
<path d="M6.54 17.482a6.001 6.001 0 1 0 3.024 -7.965" />
<path d="M6.518 6.54a6.001 6.001 0 1 0 7.965 3.024" />
</svg>
</span>
</div>
</div>
</div>
</div>
<!-- === Tooltip . Tippy scripts === -->
<script src="https://unpkg.com/@popperjs/core@2/dist/umd/popper.min.js"></script>
<script src="https://unpkg.com/tippy.js@6/dist/tippy-bundle.umd.js"></script>
</body>
<!-- ==== Inserting all external js scrips -->
<script src="assets/js/base.js"></script>
<script src="assets/js/pattern.js"></script>
<script src="assets/js/props.js"></script>
</html>