-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_prototype.html
226 lines (216 loc) · 8.88 KB
/
ui_prototype.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!--host style-->
<style>
:root {
--host-bg: hsl(212, 7%, 42%);
--host-text: hsl(203, 16%, 85%);
--host-busname: hsl(203, 10%, 50%);
--window-frame: hsl(201, 10%, 27%);
--window-border: hsl(201, 14%, 19%);
}
html, body {
width: 100%;
height: 100%
}
body {
margin: 0;
background-color: var(--host-bg);
display: flex;
justify-content: center;
align-items: center;
}
.host-window {
display: inline-block;
background-color: var(--window-frame);
outline: 1px solid var(--window-border);
padding: 3px;
text-align: initial;
}
.titlebar {
color: var(--host-text);
display: block;
height: 24px;
font-size: 13px;
}
.titlebar i, titlebar span {
margin-inline: 4px;
margin-top: 4px;
}
.titlebar-right {
float: right;
}
.bus-name {
color: var(--host-busname);
}
.client-window {
border: 1px solid var(--window-border);
width: 600px;
height: 500px;
resize: both;
min-width: 200px;
min-height: 250px;
overflow: auto;
}
</style>
<!--plugin style-->
<style>
:root {
--plugin-fg: hsl(0, 0%, 80%);
--accent: hsl(40, 100%, 35%);
--plugin-bg: hsl(0, 0%, 28%);
--viewport-bg: linear-gradient(hsl(240, 5%, 23%), hsl(0 0% 8%));
--global-bg: linear-gradient(hsl(233, 53%, 50%), hsl(234, 46%, 31%));
--mode-bg: linear-gradient(hsl(233, 5%, 40%), hsl(0 0% 25%));
--section-radius: 3px;
--viewport-border: 2px solid var(--accent);
--viewport-margin: 16px;
--section-margin: 8px;
--section-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
--control-panel-shadow: rgba(0, 0, 0, 0.8);
--control-panel-bg: hsl(0, 0%, 15%);
}
.plugin {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
font-family: "Courier New";
.display {
height: calc(100% - 120px);
background-color: var(--plugin-bg);
box-shadow: 0 0 10px var(--control-panel-shadow);
z-index: 10;
.viewport {
height: calc(100% - var(--viewport-margin) * 2);
margin: 16px;
border-radius: var(--section-radius);
border: var(--viewport-border);
background: var(--viewport-bg);
box-shadow: var(--section-shadow);
overflow: hidden;
.vp-info {
color: var(--accent);
font-weight: bold;
font-size: 0.7rem;
margin: var(--section-margin);
}
.scene-3d {
width: 100%;
height: 90%;
display: flex;
justify-content: center;
#grid {
display: block;
position: relative;
width: 60%;
max-height: 150%;
filter: invert(0.5) sepia(1) saturate(200%);
transform: perspective(10cm) rotateX(60deg);
opacity: 50%;
}
}
}
}
.control-panel {
color: var(--plugin-fg);
display: flex;
height: calc(120px - var(--section-margin) * 2);
background: var(--control-panel-bg);
border-top: 1px solid rgba(255 255 255 0.2);
position: relative;
bottom: 0;
padding: var(--section-margin);
section {
height: calc(100% - var(--section-margin) * 2);
padding: var(--section-margin);
border-top: 1px solid hsl(0 0% 50%);
border-bottom: 1px solid hsl(0 0% 5%);
border-radius: var(--section-radius);
box-shadow: var(--section-shadow);
font-size: 10pt;
input[type=range] {
height: 16px;
width: 100px;
}
&.global-options {
background: var(--global-bg);
width: 190px;
margin-right: var(--section-margin);
}
&.mode-options {
background: var(--mode-bg);
flex-grow: 1;
}
table {
border-spacing: 0;
border-collapse: collapse;
}
td {
padding: 0;
}
}
}
}
</style>
</head>
<body>
<div class="host-window">
<div class="titlebar">
<span class="titlebar-left">
<i class="fa-solid fa-caret-right"></i>
<i class="fa-solid fa-gear"></i>
<span class="window-title">Sauna</span>
<span class="bus-name">(Master)</span>
</span>
<span class="titlebar-right">
<i class="fa-solid fa-window-minimize"></i>
<i class="fa-solid fa-xmark"></i>
</span>
</div>
<div class="client-window">
<div class="plugin">
<div class="display">
<div class="viewport">
<div class="vp-info">44100hz stereo</div>
<div class="scene-3d">
<img id="grid" src="https://www.pngkey.com/png/full/97-977095_big-image-grid-png.png">
</div>
</div>
</div>
<div class="control-panel">
<section class="global-options">
<table>
<tr>
<td><label for="speed">Speed</label></td>
<td><input name=speed type=range></td>
</tr>
<tr>
<td><label for="phase">Phase</label></td>
<td><input name=phase type=range></td>
</tr>
<tr>
<td><label for="minDistance">Min. Dist.</label></td>
<td><input name=minDistance type=range></td>
</tr>
<tr>
<td><label for="tempoSync">Tempo Sync</label></td>
<td><input name=tempoSync type="checkbox"></td>
</tr>
</table>
</section>
<section class="mode-options">
<select>
<option>Static</option>
<option>Orbit</option>
<option>Path</option>
</select>
</section>
</div>
</div>
</div>
</div>
</body>
</html>