-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
698 lines (651 loc) · 36.7 KB
/
Copy pathindex.html
File metadata and controls
698 lines (651 loc) · 36.7 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
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
<!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" />
<meta name="theme-color" content="#0F172A" />
<!-- Primary Meta -->
<title>PromptForge — Premium Visual Prompt Generator for AI Image Creation</title>
<meta name="description" content="PromptForge is a premium open-source visual prompt generator for posters, thumbnails, ads, covers, wallpapers, concept art, character art, product renders, marketing assets, and AI image generation. Rule-based engine. Supports ChatGPT Images, Flux, SDXL, Midjourney, and Gemini." />
<meta name="keywords" content="prompt generator, AI prompt generator, image prompt, midjourney prompt generator, sdxl prompt, flux prompt, ChatGPT image prompt, poster prompt, thumbnail prompt, concept art prompt, character art prompt, product render prompt, marketing asset prompt, open source prompt generator, vanilla javascript prompt generator" />
<meta name="author" content="PromptForge — AzkiVIP" />
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
<meta name="googlebot" content="index, follow" />
<meta name="language" content="English" />
<meta name="revisit-after" content="7 days" />
<meta name="rating" content="general" />
<meta name="distribution" content="global" />
<link rel="canonical" href="https://azkivip.github.io/PromptForge/" />
<!-- Sitemap discovery -->
<link rel="sitemap" type="application/xml" title="Sitemap" href="sitemap.xml" />
<link rel="alternate" type="application/xml" title="Sitemap" href="sitemap.xml" />
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="PromptForge" />
<meta property="og:title" content="PromptForge — Premium Visual Prompt Generator" />
<meta property="og:description" content="Craft cinematic, professional prompts for posters, thumbnails, ads, concept art, and AI image generation. Rule-based engine. Supports ChatGPT Images, Flux, SDXL, Midjourney, and Gemini. No AI APIs." />
<meta property="og:url" content="https://azkivip.github.io/PromptForge/" />
<meta property="og:image" content="https://azkivip.github.io/PromptForge/assets/og-image.png" />
<meta property="og:image:secure_url" content="https://azkivip.github.io/PromptForge/assets/og-image.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="PromptForge — premium visual prompt generator" />
<meta property="og:locale" content="en_US" />
<meta property="og:locale:alternate" content="id_ID" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@AzkiVIP" />
<meta name="twitter:creator" content="@AzkiVIP" />
<meta name="twitter:title" content="PromptForge — Premium Visual Prompt Generator" />
<meta name="twitter:description" content="Craft cinematic, professional prompts for posters, thumbnails, ads, concept art, and AI image generation. Rule-based engine. No AI APIs." />
<meta name="twitter:image" content="https://azkivip.github.io/PromptForge/assets/og-image.png" />
<meta name="twitter:image:alt" content="PromptForge — premium visual prompt generator" />
<!-- Favicon — multiple sizes for full browser + device support -->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<link rel="icon" type="image/png" sizes="192x192" href="assets/logo-192.png" />
<link rel="icon" type="image/png" sizes="512x512" href="assets/logo-512.png" />
<link rel="icon" type="image/png" sizes="64x64" href="assets/favicon.png" />
<link rel="apple-touch-icon" sizes="192x192" href="assets/logo-192.png" />
<link rel="apple-touch-icon" href="assets/logo-192.png" />
<link rel="mask-icon" href="assets/favicon.png" color="#3B82F6" />
<link rel="manifest" href="manifest.json" />
<!-- Styles -->
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/components.css" />
<link rel="stylesheet" href="css/responsive.css" />
<!-- JSON-LD: WebSite schema (helps Google's Knowledge Graph) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "PromptForge",
"alternateName": "PromptForge Visual Prompt Generator",
"url": "https://azkivip.github.io/PromptForge/",
"description": "Premium open-source visual prompt generator for posters, thumbnails, ads, covers, wallpapers, concept art, character art, product renders, marketing assets, and AI image generation.",
"inLanguage": ["en", "id"],
"image": "https://azkivip.github.io/PromptForge/assets/og-image.png",
"isAccessibleForFree": true,
"applicationCategory": "DesignApplication",
"author": {
"@type": "Person",
"name": "AzkiVIP",
"url": "https://github.com/AzkiVIP"
},
"publisher": {
"@type": "Organization",
"name": "PromptForge",
"url": "https://azkivip.github.io/PromptForge/",
"logo": {
"@type": "ImageObject",
"url": "https://azkivip.github.io/PromptForge/assets/logo-512.png",
"width": 512,
"height": 512
}
},
"potentialAction": {
"@type": "UseAction",
"target": "https://azkivip.github.io/PromptForge/#generator",
"name": "Use the prompt generator"
}
}
</script>
<!-- JSON-LD: SoftwareApplication schema (richer app metadata) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "PromptForge",
"applicationCategory": "DesignApplication",
"applicationSubCategory": "AI Prompt Generator",
"operatingSystem": "Any (web browser)",
"browserRequirements": "Requires a modern web browser with JavaScript enabled.",
"description": "Premium open-source visual prompt generator for posters, thumbnails, ads, covers, wallpapers, concept art, character art, product renders, marketing assets, and AI image generation. Rule-based engine with no AI APIs.",
"url": "https://azkivip.github.io/PromptForge/",
"downloadUrl": "https://github.com/AzkiVIP/PromptForge/releases",
"installUrl": "https://azkivip.github.io/PromptForge/",
"screenshot": "https://azkivip.github.io/PromptForge/assets/og-image.png",
"featureList": [
"Rule-based prompt generation engine",
"Smart searchable comboboxes with fuzzy match",
"Multiple AI presets (ChatGPT Images, Flux, SDXL, Midjourney, Gemini)",
"Multiple subjects with importance ranking",
"Watermark, custom effects, and custom resolution support",
"Auto-translation to Indonesian",
"LocalStorage history and favorites",
"No frameworks, no build step, no dependencies"
],
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"license": "https://github.com/AzkiVIP/PromptForge/blob/main/LICENSE",
"author": {
"@type": "Person",
"name": "AzkiVIP",
"url": "https://github.com/AzkiVIP"
},
"publisher": {
"@type": "Organization",
"name": "PromptForge",
"url": "https://azkivip.github.io/PromptForge/",
"logo": {
"@type": "ImageObject",
"url": "https://azkivip.github.io/PromptForge/assets/logo-512.png",
"width": 512,
"height": 512
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"ratingCount": "1",
"bestRating": "5",
"worstRating": "1"
}
}
</script>
</head>
<body>
<!-- ===================== NAVBAR ===================== -->
<header class="navbar" role="banner">
<div class="navbar__inner">
<a href="#" class="brand" aria-label="PromptForge home">
<img src="assets/logo-cropped.png" alt="PromptForge" class="brand__mark" width="40" height="40" />
<span class="brand__name">Prompt<span class="brand__accent">Forge</span></span>
</a>
<!-- Desktop navigation (hidden on mobile) -->
<nav class="nav nav--desktop" aria-label="Primary desktop">
<a href="#generator" class="nav__link" data-nav="generator">Generator</a>
<a href="#history" class="nav__link" data-nav="history">History</a>
<a href="#favorites" class="nav__link" data-nav="favorites">Favorites</a>
</nav>
<div class="navbar__actions">
<a class="btn btn--ghost btn--sm navbar__github" href="https://github.com/AzkiVIP/PromptForge" target="_blank" rel="noopener" aria-label="GitHub repository">
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true">
<path d="M12 .5A11.5 11.5 0 0 0 .5 12a11.5 11.5 0 0 0 7.86 10.92c.58.1.79-.25.79-.56v-2.1c-3.2.7-3.88-1.36-3.88-1.36-.53-1.34-1.3-1.7-1.3-1.7-1.06-.72.08-.71.08-.71 1.17.08 1.78 1.2 1.78 1.2 1.04 1.78 2.73 1.27 3.4.97.1-.76.41-1.27.74-1.56-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.2-3.1-.12-.3-.52-1.48.1-3.08 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.8 0c2.2-1.5 3.17-1.18 3.17-1.18.63 1.6.23 2.78.11 3.07.75.82 1.2 1.85 1.2 3.1 0 4.43-2.69 5.41-5.25 5.69.42.36.8 1.1.8 2.22v3.29c0 .31.21.67.8.56A11.5 11.5 0 0 0 23.5 12 11.5 11.5 0 0 0 12 .5Z"/>
</svg>
<span>GitHub</span>
</a>
<!-- Hamburger toggle (mobile only) -->
<button class="nav-toggle" id="navToggle" type="button"
aria-label="Open menu" aria-expanded="false" aria-controls="mobileNav">
<span class="nav-toggle__bar"></span>
<span class="nav-toggle__bar"></span>
<span class="nav-toggle__bar"></span>
</button>
</div>
</div>
<!-- Mobile navigation drawer (hidden on desktop) -->
<nav class="nav nav--mobile" id="mobileNav" aria-label="Primary mobile" hidden>
<a href="#generator" class="nav__link nav__link--mobile" data-nav="generator">Generator</a>
<a href="#history" class="nav__link nav__link--mobile" data-nav="history">History</a>
<a href="#favorites" class="nav__link nav__link--mobile" data-nav="favorites">Favorites</a>
<a class="nav__link nav__link--mobile nav__link--github" href="https://github.com/AzkiVIP/PromptForge" target="_blank" rel="noopener">
<svg viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true">
<path d="M12 .5A11.5 11.5 0 0 0 .5 12a11.5 11.5 0 0 0 7.86 10.92c.58.1.79-.25.79-.56v-2.1c-3.2.7-3.88-1.36-3.88-1.36-.53-1.34-1.3-1.7-1.3-1.7-1.06-.72.08-.71.08-.71 1.17.08 1.78 1.2 1.78 1.2 1.04 1.78 2.73 1.27 3.4.97.1-.76.41-1.27.74-1.56-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.2-3.1-.12-.3-.52-1.48.1-3.08 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.8 0c2.2-1.5 3.17-1.18 3.17-1.18.63 1.6.23 2.78.11 3.07.75.82 1.2 1.85 1.2 3.1 0 4.43-2.69 5.41-5.25 5.69.42.36.8 1.1.8 2.22v3.29c0 .31.21.67.8.56A11.5 11.5 0 0 0 23.5 12 11.5 11.5 0 0 0 12 .5Z"/>
</svg>
GitHub
</a>
</nav>
<!-- Click-outside overlay (mobile only) -->
<div class="nav-backdrop" id="navBackdrop" hidden></div>
</header>
<!-- ===================== MAIN APP ===================== -->
<main class="app" id="generator" role="main">
<!-- ============== LEFT PANEL (40%) ============== -->
<section class="panel panel--left" aria-label="Generator controls">
<div class="panel__header">
<div>
<h2 class="panel__title">Generator</h2>
<p class="panel__subtitle">Configure your visual prompt</p>
</div>
<button class="btn btn--ghost btn--sm" id="resetAllBtn" type="button" title="Reset all fields">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 12a9 9 0 1 0 3-6.7"/><path d="M3 4v5h5"/></svg>
Reset
</button>
</div>
<div class="panel__body" id="generatorPanel">
<!-- Project Type -->
<div class="accordion" data-section="projectType">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">01</span>
<span class="accordion__label">Project Type</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label" for="projectType-category">Category</label>
<div class="combobox" data-combobox="projectTypeCategory" data-mode="single"></div>
</div>
<div class="field">
<label class="field__label" for="projectType-preset">Preset</label>
<div class="combobox" data-combobox="projectTypePreset" data-mode="single"></div>
</div>
<div class="field">
<label class="field__label" for="projectType-custom">Custom Project Type</label>
<input class="input" id="projectType-custom" type="text" placeholder="e.g. Festival Poster" />
</div>
</div>
</div>
<!-- Subject -->
<div class="accordion" data-section="subject">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">02</span>
<span class="accordion__label">Subject</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Subjects <span class="field__hint">(add multiple — primary, secondary, background, etc.)</span></label>
<div class="subjects" id="subjectsList" aria-live="polite"></div>
<button class="btn btn--ghost btn--sm subjects__add" id="addSubjectBtn" type="button">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v14"/><path d="M5 12h14"/></svg>
Add Subject
</button>
</div>
<div class="field">
<label class="field__label">Reference Images</label>
<div class="dropzone" id="subject-dropzone" tabindex="0">
<input class="dropzone__input" id="subject-file" type="file" accept="image/*" multiple />
<div class="dropzone__prompt">
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v12"/><path d="m7 8 5-5 5 5"/><path d="M5 21h14"/></svg>
<span>Drag & drop or <em>click to browse</em></span>
</div>
</div>
<div class="previews" id="subject-previews" aria-live="polite"></div>
</div>
</div>
</div>
<!-- Art Style -->
<div class="accordion" data-section="artStyle">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">03</span>
<span class="accordion__label">Art Style</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Art Style</label>
<div class="combobox" data-combobox="artStyle" data-mode="single"></div>
</div>
<div class="field">
<label class="field__label" for="artStyle-custom">Custom Style</label>
<input class="input" id="artStyle-custom" type="text" placeholder="e.g. Watercolor + Ink" />
</div>
</div>
</div>
<!-- Camera Angle -->
<div class="accordion" data-section="cameraAngle">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">04</span>
<span class="accordion__label">Camera Angle</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Camera Angle</label>
<div class="combobox" data-combobox="cameraAngle" data-mode="single"></div>
</div>
<div class="field">
<label class="field__label" for="cameraAngle-custom">Custom Angle</label>
<input class="input" id="cameraAngle-custom" type="text" placeholder="e.g. 35° Dutch angle" />
</div>
</div>
</div>
<!-- Lighting -->
<div class="accordion" data-section="lighting">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">05</span>
<span class="accordion__label">Lighting</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Lighting</label>
<div class="combobox" data-combobox="lighting" data-mode="single"></div>
</div>
<div class="field">
<label class="field__label" for="lighting-custom">Custom Lighting</label>
<input class="input" id="lighting-custom" type="text" placeholder="e.g. Soft window light" />
</div>
</div>
</div>
<!-- Color Palette -->
<div class="accordion" data-section="colorPalette">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">06</span>
<span class="accordion__label">Color Palette</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Palette Mode</label>
<div class="seg" id="colorMode" role="tablist" aria-label="Color palette mode">
<button class="seg__btn is-active" type="button" data-mode="single">Single</button>
<button class="seg__btn" type="button" data-mode="dual">Dual</button>
<button class="seg__btn" type="button" data-mode="multi">Multi</button>
</div>
</div>
<div class="field">
<label class="field__label">Colors</label>
<div class="color-row" id="colorRow">
<div class="color-slot" data-slot="0">
<input type="color" class="color-slot__picker" value="#3B82F6" />
<input type="text" class="color-slot__hex" value="#3B82F6" maxlength="7" />
</div>
</div>
<button class="btn btn--ghost btn--sm color-row__add" id="colorAddBtn" type="button" hidden>+ Add color</button>
</div>
<div class="field">
<label class="field__label">Live Preview</label>
<div class="palette-preview" id="palettePreview"></div>
</div>
</div>
</div>
<!-- Background -->
<div class="accordion" data-section="background">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">07</span>
<span class="accordion__label">Background</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Background Scene</label>
<div class="combobox" data-combobox="background" data-mode="single"></div>
</div>
<div class="field">
<label class="field__label" for="background-custom">Custom Background</label>
<input class="input" id="background-custom" type="text" placeholder="e.g. Floating islands at dawn" />
</div>
<div class="field">
<label class="field__label">Background Reference</label>
<div class="dropzone" id="background-dropzone" tabindex="0">
<input class="dropzone__input" id="background-file" type="file" accept="image/*" />
<div class="dropzone__prompt">
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v12"/><path d="m7 8 5-5 5 5"/><path d="M5 21h14"/></svg>
<span>Drag & drop or <em>click to browse</em></span>
</div>
</div>
<div class="previews" id="background-previews" aria-live="polite"></div>
</div>
</div>
</div>
<!-- Mood -->
<div class="accordion" data-section="mood">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">08</span>
<span class="accordion__label">Mood</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Mood</label>
<div class="combobox" data-combobox="mood" data-mode="single"></div>
</div>
<div class="field">
<label class="field__label" for="mood-custom">Custom Mood</label>
<input class="input" id="mood-custom" type="text" placeholder="e.g. Nostalgic serenity" />
</div>
</div>
</div>
<!-- Typography -->
<div class="accordion" data-section="typography">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">09</span>
<span class="accordion__label">Typography Style</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Typography</label>
<div class="combobox" data-combobox="typography" data-mode="single"></div>
</div>
<div class="field">
<label class="field__label" for="typography-custom">Custom Typography</label>
<input class="input" id="typography-custom" type="text" placeholder="e.g. Serif headline, sans body" />
</div>
</div>
</div>
<!-- Effects -->
<div class="accordion" data-section="effects">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">10</span>
<span class="accordion__label">Effects</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Effects (multi-select)</label>
<div class="chip-grid" id="effectsGrid" role="group" aria-label="Effects"></div>
</div>
<div class="field">
<label class="field__label" for="effects-custom">Custom Effects <span class="field__hint">(comma-separated, e.g. floating particles, energy aura, magic sparks)</span></label>
<input class="input" id="effects-custom" type="text" placeholder="floating particles, energy aura, magic sparks" />
</div>
</div>
</div>
<!-- Watermark -->
<div class="accordion" data-section="watermark">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">11</span>
<span class="accordion__label">Watermark</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Watermark Position</label>
<div class="chip-grid" id="watermarkPosGrid" role="group" aria-label="Watermark position" data-single="1"></div>
</div>
<div class="field">
<label class="field__label" for="watermark-custom-pos">Custom Position</label>
<input class="input" id="watermark-custom-pos" type="text" placeholder="e.g. bottom-right corner, 20px from edge" />
</div>
<div class="field">
<label class="field__label" for="watermark-text">Watermark Text</label>
<input class="input" id="watermark-text" type="text" placeholder="e.g. @PromptForge" />
</div>
</div>
</div>
<!-- Aspect Ratio -->
<div class="accordion" data-section="aspectRatio">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">12</span>
<span class="accordion__label">Aspect Ratio</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Aspect Ratio</label>
<div class="ratio-grid" id="ratioGrid" role="group" aria-label="Aspect ratio"></div>
</div>
<div class="field">
<label class="field__label" for="custom-resolution">Custom Resolution <span class="field__hint">(overrides aspect ratio when provided)</span></label>
<input class="input" id="custom-resolution" type="text" placeholder="e.g. 1920x1080, 3840x2160, 1080x1920" />
</div>
</div>
</div>
<!-- Advanced -->
<div class="accordion" data-section="advanced">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">13</span>
<span class="accordion__label">Advanced</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label">Composition</label>
<div class="chip-grid" id="compositionGrid" role="group" aria-label="Composition" data-single="1"></div>
</div>
<div class="field">
<label class="field__label">Rendering Quality</label>
<div class="chip-grid" id="renderingGrid" role="group" aria-label="Rendering quality" data-single="1"></div>
</div>
<div class="field">
<label class="field__label">Prompt Expansion</label>
<div class="chip-grid" id="expansionGrid" role="group" aria-label="Prompt expansion" data-single="1"></div>
</div>
<div class="field">
<label class="field__label">AI Preset</label>
<div class="chip-grid" id="aiPresetGrid" role="group" aria-label="AI preset" data-single="1"></div>
</div>
</div>
</div>
<!-- Additional Description -->
<div class="accordion" data-section="additional">
<button class="accordion__head" type="button" aria-expanded="false">
<span class="accordion__index">14</span>
<span class="accordion__label">Additional Description</span>
<span class="accordion__chevron" aria-hidden="true">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
</span>
</button>
<div class="accordion__body">
<div class="field">
<label class="field__label" for="additional-desc">Extra Instructions / Notes <span class="field__hint">(always appended to the generated prompt)</span></label>
<textarea class="textarea" id="additional-desc" rows="5" placeholder="e.g. Make sure the dragon's eyes glow softly. Avoid any text in the image. The mood should feel melancholic but hopeful."></textarea>
</div>
</div>
</div>
</div>
</section>
<!-- ============== RIGHT PANEL (60%) ============== -->
<section class="panel panel--right" aria-label="Output and history">
<!-- Output block -->
<div class="output" id="output">
<div class="output__header">
<div>
<h2 class="panel__title">Output</h2>
<p class="panel__subtitle">Generated prompt & negative prompt</p>
</div>
<div class="output__actions">
<button class="btn btn--primary btn--sm" id="generateBtn" type="button">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 3v4"/><path d="M19 17v4"/><path d="M3 5h4"/><path d="M17 19h4"/><path d="m12 3 9 9-9 9-9-9 9-9Z"/></svg>
Generate
</button>
<button class="btn btn--ghost btn--sm" id="clearBtn" type="button">Clear</button>
</div>
</div>
<div class="output__body">
<div class="output__block">
<div class="output__block-head">
<span class="output__label">Prompt</span>
<button class="btn btn--ghost btn--xs" id="copyPromptBtn" type="button" data-copy="prompt">
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg>
Copy
</button>
</div>
<div class="output__text" id="promptOutput" aria-live="polite">
<span class="output__placeholder">Configure options on the left, then press <strong>Generate</strong>.</span>
</div>
</div>
<div class="output__block">
<div class="output__block-head">
<span class="output__label">Negative Prompt</span>
<button class="btn btn--ghost btn--xs" id="copyNegativeBtn" type="button" data-copy="negative">
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg>
Copy
</button>
</div>
<div class="output__text output__text--muted" id="negativeOutput" aria-live="polite">
<span class="output__placeholder">Negative prompt will appear here.</span>
</div>
</div>
<div class="output__meta" id="outputMeta"></div>
<div class="output__save">
<button class="btn btn--ghost btn--sm" id="saveFavoriteBtn" type="button" disabled>
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 2 3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2Z"/></svg>
Save to Favorites
</button>
<button class="btn btn--ghost btn--sm" id="saveHistoryBtn" type="button" disabled>
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 8v4l3 3"/><circle cx="12" cy="12" r="9"/></svg>
Save to History
</button>
</div>
</div>
</div>
<!-- History block -->
<div class="history" id="history">
<div class="history__head">
<div>
<h3 class="panel__title panel__title--sm">History</h3>
<p class="panel__subtitle">Recent prompts (stored locally)</p>
</div>
<button class="btn btn--ghost btn--xs" id="clearHistoryBtn" type="button">Clear all</button>
</div>
<div class="history__body" id="historyList" aria-live="polite"></div>
</div>
<!-- Favorites block -->
<div class="history" id="favorites">
<div class="history__head">
<div>
<h3 class="panel__title panel__title--sm">Favorites</h3>
<p class="panel__subtitle">Starred prompts (stored locally)</p>
</div>
<button class="btn btn--ghost btn--xs" id="clearFavoritesBtn" type="button">Clear all</button>
</div>
<div class="history__body" id="favoritesList" aria-live="polite"></div>
</div>
</section>
</main>
<!-- Toast -->
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<!-- ===================== FOOTER ===================== -->
<footer class="footer" role="contentinfo">
<div class="footer__inner">
<div class="footer__brand">
<img src="assets/logo-cropped.png" alt="PromptForge" class="brand__mark brand__mark--sm" width="32" height="32" />
<div>
<div class="footer__title">PromptForge</div>
<div class="footer__sub">Premium visual prompt generator · Open source</div>
</div>
</div>
<div class="footer__links">
<a href="https://github.com/AzkiVIP/PromptForge" target="_blank" rel="noopener">GitHub</a>
<a href="https://github.com/AzkiVIP/PromptForge/issues" target="_blank" rel="noopener">Issues</a>
<a href="https://github.com/AzkiVIP/PromptForge#license" target="_blank" rel="noopener">License</a>
</div>
<div class="footer__copy">
<div>© <span id="year"></span> PromptForge</div>
<div>MIT License · Built with HTML, CSS & Vanilla JS</div>
</div>
</div>
</footer>
<!-- Scripts (defer not strictly needed; loaded in order at end of body) -->
<script src="js/data.js"></script>
<script src="js/combobox.js"></script>
<script src="js/accordion.js"></script>
<script src="js/generator.js"></script>
<script src="js/history.js"></script>
<script src="js/app.js"></script>
</body>
</html>