-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
535 lines (455 loc) · 14 KB
/
Copy pathindex.html
File metadata and controls
535 lines (455 loc) · 14 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
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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>12 Columns Random Image Prompt Generator</title>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" />
<style>
body {
margin: 0;
padding: 0;
background: #0d1117;
color: #c9d1d9;
font-family: Arial, sans-serif;
overflow-x: hidden;
}
.hero {
padding: 120px 40px 80px;
max-width: 1400px;
margin: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 40px;
flex-wrap: wrap;
}
.hero-text {
max-width: 620px;
}
.hero-title {
font-size: 52px;
font-weight: 800;
color: #58a6ff;
margin-bottom: 18px;
}
.hero-sub {
font-size: 20px;
color: #8b949e;
line-height: 1.6;
margin-bottom: 35px;
}
.hero-buttons {
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.btn {
padding: 20px 42px;
font-size: 20px;
font-weight: 700;
cursor: pointer;
border-radius: 16px;
border: 2px solid #58a6ff;
background: linear-gradient(145deg, #0d1117, #161b22);
color: #58a6ff;
text-shadow: 0 0 4px rgba(88, 166, 255, 0.6);
transition: 0.25s all;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.btn:hover {
transform: translateY(-4px);
background: linear-gradient(145deg, #161b22, #1b1f26);
box-shadow: 0 6px 20px rgba(88, 166, 255, 0.5);
}
.hero-carousel {
width: 700px;
display: flex;
flex-direction: column;
gap: 12px;
}
.carousel-row {
height: 170px;
border-radius: 12px;
overflow: hidden;
border: 2px solid #30363d;
background: #0d1117;
}
.carousel-track {
display: flex;
height: 100%;
}
.carousel-track.slide-left {
animation: slide-left 25s linear infinite;
}
.carousel-track.slide-right {
animation: slide-right 25s linear infinite;
}
.carousel-track img {
height: 170px;
width: auto;
object-fit: cover;
flex-shrink: 0;
}
.carousel-row:hover .carousel-track {
animation-play-state: paused;
}
@keyframes slide-left {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
@keyframes slide-right {
0% {
transform: translateX(-50%);
}
100% {
transform: translateX(0);
}
}
/* Age Popup */
#agePopup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.65);
display: none;
justify-content: center;
align-items: center;
z-index: 9999;
opacity: 0;
transition: opacity 0.3s ease;
}
#agePopup.show {
display: flex;
opacity: 1;
}
.popup-box {
background: #161b22;
border: 2px solid #30363d;
border-radius: 12px;
padding: 32px 38px;
text-align: center;
width: 380px;
}
.popup-box h2 {
color: #58a6ff;
margin-bottom: 16px;
font-size: 26px;
}
.popup-box p {
font-size: 18px;
margin-bottom: 24px;
color: #c9d1d9;
}
.popup-buttons {
display: flex;
justify-content: center;
gap: 16px;
}
.popup-btn {
padding: 12px 28px;
font-size: 16px;
font-weight: 600;
border: none;
border-radius: 10px;
cursor: pointer;
transition: 0.2s;
}
.popup-btn-yes {
background: #238636;
color: #fff;
}
.popup-btn-yes:hover {
background: #2ea043;
}
.popup-btn-no {
background: #d92f2f;
color: #fff;
}
.popup-btn-no:hover {
background: #ff3b3b;
}
@media (max-width: 980px) {
.hero {
flex-direction: column;
align-items: center;
}
.hero-carousel {
width: 100%;
max-width: 700px;
}
.carousel-track img {
width: 100%;
}
}
/* How It Works Section */
.how-it-works {
max-width: 1400px;
margin: 80px auto 100px;
padding: 0 40px;
}
.how-it-works h2 {
color: #58a6ff;
font-size: 48px;
font-weight: 800;
margin-bottom: 20px;
text-align: center;
text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}
.how-it-works-subtitle {
text-align: center;
color: #8b949e;
font-size: 20px;
margin-bottom: 60px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.steps-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 24px;
}
.how-it-works .step {
background: linear-gradient(145deg, #161b22, #1c2128);
padding: 32px;
border-radius: 16px;
border: 1px solid #30363d;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.how-it-works .step::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #58a6ff, #1f6feb);
opacity: 0;
transition: opacity 0.3s ease;
}
.how-it-works .step:hover {
transform: translateY(-4px);
border-color: #58a6ff;
box-shadow: 0 8px 24px rgba(88, 166, 255, 0.15);
}
.how-it-works .step:hover::before {
opacity: 1;
}
.step-number {
display: inline-block;
width: 36px;
height: 36px;
background: #58a6ff;
color: #0d1117;
border-radius: 8px;
text-align: center;
line-height: 36px;
font-weight: 800;
font-size: 16px;
margin-bottom: 16px;
}
.how-it-works .step-title {
font-size: 20px;
font-weight: 700;
margin-bottom: 10px;
color: #c9d1d9;
}
.how-it-works .step-desc {
color: #8b949e;
font-size: 16px;
line-height: 1.6;
}
</style>
</head>
<body>
<section class="hero">
<div class="hero-text">
<div class="hero-title">12 Columns Random Image Prompt Generator</div>
<div class="hero-sub">
Instantly create high-detail AI prompts using 12 dynamic categories including subject, lighting, style, colours,
camera framing, and more.
</div>
<div class="hero-buttons">
<div class="btn" onclick="location.href='12ColumnsPromptGeneratorNormal.html'">Normal Version</div>
<div class="btn" onclick="openNSFW()">NSFW Version</div>
</div>
</div>
<div class="hero-carousel">
<div class="carousel-row">
<div class="carousel-track slide-left" id="carouselTrack1"></div>
</div>
<div class="carousel-row">
<div class="carousel-track slide-right" id="carouselTrack2"></div>
</div>
</div>
</section>
<!-- How It Works -->
<section class="how-it-works">
<h2>How It Works</h2>
<div class="how-it-works-subtitle">
Powerful features to help you generate perfect AI image prompts every time
</div>
<div class="steps-grid">
<div class="step">
<div class="step-number">1</div>
<div class="step-title">Pre-fill columns</div>
<div class="step-desc">Fills in all the columns and titles automatically.</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-title">Empty all</div>
<div class="step-desc">Clears all the columns.</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-title">Clear titles</div>
<div class="step-desc">Removes the column titles.</div>
</div>
<div class="step">
<div class="step-number">4</div>
<div class="step-title">Always add tags</div>
<div class="step-desc">Put the tags you want to always include here.</div>
</div>
<div class="step">
<div class="step-number">5</div>
<div class="step-title">12 columns</div>
<div class="step-desc">You can use up to 12 columns, but you don't have to use all of them.</div>
</div>
<div class="step">
<div class="step-number">6</div>
<div class="step-title">Column titles button</div>
<div class="step-desc">Keeps column titles in your prompt.</div>
</div>
<div class="step">
<div class="step-number">7</div>
<div class="step-title">Include tags</div>
<div class="step-desc">Always adds the same tags to all prompts from the "always add tags" field.</div>
</div>
<div class="step">
<div class="step-number">8</div>
<div class="step-title">Comma mode</div>
<div class="step-desc">Adds commas to the random prompts.</div>
</div>
<div class="step">
<div class="step-number">9</div>
<div class="step-title">Copy JSON prompt button</div>
<div class="step-desc">Gives a simplified JSON format of the prompt.</div>
</div>
<div class="step">
<div class="step-number">10</div>
<div class="step-title">💾 Save presets</div>
<div class="step-desc">Save your current column setup as a named preset for instant reuse later.</div>
</div>
<div class="step">
<div class="step-number">11</div>
<div class="step-title">📂 Load presets</div>
<div class="step-desc">Instantly restore saved presets with all columns, titles, and settings.</div>
</div>
<div class="step">
<div class="step-number">12</div>
<div class="step-title">⬇️ Export / ⬆️ Import</div>
<div class="step-desc">Export presets as JSON files to share or backup. Import with custom prefix naming (e.g.,
"MyPack - Preset1").</div>
</div>
<div class="step">
<div class="step-number">13</div>
<div class="step-title">Auto-save workspace</div>
<div class="step-desc">Your work automatically saves as you type and survives page refreshes. Normal and NSFW
versions use separate storage.</div>
</div>
<div class="step">
<div class="step-number">14</div>
<div class="step-title">Generate new</div>
<div class="step-desc">Generates a new prompt instantly.</div>
</div>
<div class="step">
<div class="step-number">15</div>
<div class="step-title">Fast & pre-generated</div>
<div class="step-desc">The site does not use any API — everything is pre-generated and very fast.</div>
</div>
<div class="step">
<div class="step-number">16</div>
<div class="step-title">Stored locally</div>
<div class="step-desc">Once loaded, the columns and settings are stored in local storage. You can download and
run it locally if preferred.</div>
</div>
</div>
</section>
<!-- Age Confirmation Popup -->
<div id="agePopup">
<div class="popup-box">
<h2>Age Confirmation</h2>
<p>Are you 18 or older?</p>
<div class="popup-buttons">
<button class="popup-btn popup-btn-yes" onclick="confirmAge(true)">Yes</button>
<button class="popup-btn popup-btn-no" onclick="confirmAge(false)">No</button>
</div>
</div>
</div>
<script>
// Carousel
document.addEventListener("DOMContentLoaded", () => {
const track1 = document.getElementById("carouselTrack1");
const track2 = document.getElementById("carouselTrack2");
const images = [];
for (let i = 1; i <= 28; i++) images.push(`images/image${i}.webp`);
// Shuffle all images
for (let i = images.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[images[i], images[j]] = [images[j], images[i]];
}
// Split images between the two tracks
const midpoint = Math.ceil(images.length / 2);
const images1 = images.slice(0, midpoint); // First half
const images2 = images.slice(midpoint); // Second half
// Populate track 1 (moving left)
[...images1, ...images1].forEach(src => {
const img = document.createElement("img");
img.src = src;
img.loading = "lazy";
track1.appendChild(img);
});
// Populate track 2 (moving right)
[...images2, ...images2].forEach(src => {
const img = document.createElement("img");
img.src = src;
img.loading = "lazy";
track2.appendChild(img);
});
});
// NSFW confirmation
function openNSFW() {
try {
if (localStorage.getItem('nsfwVerified') === 'true') {
location.href = '12ColumnsPromptGeneratorNSFW.html';
return;
}
} catch (e) { }
document.getElementById('agePopup').classList.add('show');
}
function confirmAge(isAdult) {
const popup = document.getElementById('agePopup');
popup.classList.remove('show');
if (isAdult) {
try { localStorage.setItem('nsfwVerified', 'true'); } catch (e) { }
location.href = '12ColumnsPromptGeneratorNSFW.html';
}
}
document.addEventListener('keydown', e => {
if (e.key === "Escape") document.getElementById('agePopup').classList.remove('show');
});
</script>
</body>
</html>