-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathindex.html
More file actions
131 lines (127 loc) · 4.11 KB
/
Copy pathindex.html
File metadata and controls
131 lines (127 loc) · 4.11 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hong Kong Building Generator</title>
<style>
:root {
color-scheme: dark;
--accent: #8fcfff; /* icy cinematic blue */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
#app { width: 100vw; height: 100vh; display: block; }
/* Letterbox bars */
.bar {
position: fixed;
left: 0;
width: 100%;
height: 0;
background: #000;
z-index: 50;
pointer-events: none;
transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar.top { top: 0; }
.bar.bottom { bottom: 0; }
#loading {
position: fixed;
inset: 0;
z-index: 70;
display: flex;
align-items: center;
justify-content: center;
font: 11px/1.5 ui-monospace, "SF Mono", monospace;
letter-spacing: 0.18em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.5);
pointer-events: none;
user-select: none;
transition: opacity 0.4s;
}
.credit {
position: fixed;
left: 16px;
bottom: 14px;
z-index: 60;
font: 11px/1.5 ui-monospace, "SF Mono", monospace;
letter-spacing: 0.04em;
color: rgba(255, 255, 255, 0.4);
text-transform: uppercase;
pointer-events: none;
user-select: none;
}
.credit b { color: var(--accent); font-weight: 600; }
/* ---- Stylized lil-gui panel ---- */
.lil-gui {
--background-color: rgba(18, 21, 28, 0.55);
--widget-color: rgba(255, 255, 255, 0.07);
--hover-color: rgba(255, 255, 255, 0.13);
--focus-color: rgba(143, 207, 255, 0.35);
--number-color: var(--accent);
--string-color: #9fd6c2;
--text-color: #d7d8dd;
--title-background-color: rgba(0, 0, 0, 0.35);
--title-text-color: #ffffff;
--font-family: "Inter", system-ui, -apple-system, sans-serif;
--font-size: 11px;
--input-font-size: 11px;
--widget-height: 24px;
--padding: 6px;
--spacing: 5px;
--slider-knob-color: var(--accent);
--slider-input-min-width: 42px;
}
.lil-gui.root {
right: 14px;
top: 14px;
width: 312px;
border-radius: 14px;
overflow: hidden;
backdrop-filter: blur(18px) saturate(1.2);
-webkit-backdrop-filter: blur(18px) saturate(1.2);
border: 1px solid rgba(255, 255, 255, 0.09);
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55),
inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.lil-gui.root > .title {
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
padding: 11px 12px;
color: var(--accent);
background: rgba(255, 255, 255, 0.03);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lil-gui .title {
transition: color 0.15s ease;
}
.lil-gui .children { padding-bottom: 2px; }
.lil-gui .controller { --gap: 6px; }
.lil-gui .controller.string input,
.lil-gui .controller.number input { border-radius: 6px; }
.lil-gui .slider {
border-radius: 6px;
background: rgba(255, 255, 255, 0.06);
}
.lil-gui .slider .fill {
background: var(--accent);
opacity: 0.85;
}
.lil-gui button:hover,
.lil-gui .controller:hover { --background-color: rgba(255, 255, 255, 0.03); }
.lil-gui .folder > .title:hover { color: var(--accent); }
</style>
</head>
<body>
<div id="app"></div>
<div id="bar-top" class="bar top"></div>
<div id="bar-bottom" class="bar bottom"></div>
<div id="loading">Loading asset kit…</div>
<div class="credit">
<b>HK BUILDING STUDIO</b> · drag to orbit · scroll to zoom · tweak the panel to regenerate
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>