-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathportrait.html
More file actions
52 lines (51 loc) · 3.25 KB
/
portrait.html
File metadata and controls
52 lines (51 loc) · 3.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Noir Portrait Generator Demo</title>
<style>
body { background: #181818; color: #f5f5f5; font-family: 'Inter', sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; margin: 0; }
.demo-container { background: #232323; border-radius: 12px; box-shadow: 0 2px 16px #000a; padding: 2rem; margin-top: 2rem; text-align: center; }
#portrait-area { margin: 1.5rem 0; }
button { background: #444; color: #fff; border: none; border-radius: 6px; padding: 0.5rem 1.2rem; font-size: 1.1rem; cursor: pointer; margin: 0 0.5rem; }
button:hover { background: #666; }
.label { font-size: 1.1rem; margin-right: 0.5rem; }
</style>
</head>
<body>
<div class="demo-container">
<h1>Noir Portrait Generator Demo</h1>
<div id="portrait-area"></div>
<div id="controls" style="display:flex;flex-direction:column;gap:0.75rem;align-items:center;margin-top:0.75rem;">
<div style="display:flex;gap:0.5rem;flex-wrap:wrap;justify-content:center;margin-bottom:0.5rem;">
<label class="label">Face</label>
<select id="sel-face"><option value="">Random</option><option>round</option><option>oval</option><option>square</option><option>angular</option></select>
<label class="label">Eyes</label>
<select id="sel-eyes"><option value="">Random</option><option>narrow</option><option>round</option><option>hooded</option><option>wide</option></select>
<label class="label">Nose</label>
<select id="sel-nose"><option value="">Random</option><option>long</option><option>short</option><option>broad</option><option>pointed</option></select>
<label class="label">Mouth</label>
<select id="sel-mouth"><option value="">Random</option><option>thin</option><option>full</option><option>smirk</option><option>stern</option></select>
<label class="label">Hair</label>
<select id="sel-hair"><option value="">Random</option><option>bald</option><option>slick</option><option>messy</option><option>hat</option><option>long</option></select>
<label class="label">Accessory</label>
<select id="sel-accessory"><option value="">Random</option><option>none</option><option>glasses</option><option>scar</option><option>mustache</option><option>cigarette</option></select>
<label class="label">Shadow</label>
<input id="sel-shadow" type="range" min="0" max="1" step="0.01" value="0.5" style="width:120px">
</div>
<div style="margin-bottom:1rem;display:flex;gap:0.5rem;align-items:center;justify-content:center;flex-wrap:wrap;">
<label class="label">Export W</label>
<input id="export-width" type="number" min="1" value="512" style="width:90px;padding:0.25rem;">
<label class="label">H</label>
<input id="export-height" type="number" min="1" value="640" style="width:90px;padding:0.25rem;">
<button id="copy-png">Copy as PNG</button>
<button id="save-png">Save as PNG</button>
<button id="generate">Generate</button>
<button id="randomize">Random</button>
</div>
</div>
</div>
<script src="portrait.js"></script>
</body>
</html>