-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
336 lines (292 loc) · 9.83 KB
/
index.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
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
<html>
<head>
<style>
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@700&display=swap');
/* CSS Reset and Base Styles */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
height: auto;
}
input,
button,
textarea,
select {
font-family: var(--font-family-main);
}
/* Variables */
:root {
color-scheme: light dark;
/* New neon colors from the second CSS */
--neon-green: #E5FF44;
--neon-green-light: #E5FF4488;
--neon-green-xlight: #E5FF4444;
--neon-blue: #44E5FF;
--neon-red: #FF44E5;
--neon-yellow: #FFFF44;
--neon-purple: #E544FF;
--neon-orange: #FF9944;
--neon-pink: #FF44B2;
--neon-cyan: #44FFE5;
/* Original colors kept for fallback */
--orange: #FF4F00;
--dark-orange: #cc4100;
--blue: #2B88D9;
--off-white: #fdfdfd;
--white: #ffffff;
--off-black: #0C090A;
--black: #000000;
--tan: #fdf6e3;
--ansi-red: #dc322f;
--maroon: #4f0000;
--gray: #657b83;
--tasteful-dark: #1f1f1f;
/* New theme variables */
--primary-color: var(--neon-green);
--primary-light: var(--neon-green-light);
--primary-xlight: var(--neon-green-xlight);
--secondary-color: var(--neon-blue);
--tertiary-color: var(--neon-red);
--quaternary-color: var(--neon-yellow);
--font-family-main: 'Kode Mono', monospace;
/* Adding modern variables from second CSS */
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
--transition-fast: 150ms ease;
--transition-normal: 250ms ease;
--button-border-width: 2px;
}
/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
li,
span {
font-family: var(--font-family-main);
color: light-dark(var(--off-black), var(--off-white));
line-height: 1.5;
}
p,
li {
font-size: 0.8em;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.5em;
}
h3 {
font-size: 1.3em;
}
h4 {
font-size: 1.2em;
}
h5 {
font-size: 1.1em;
}
h6 {
font-size: 1em;
}
a {
font-family: var(--font-family-main);
color: light-dark(var(--secondary-color), var(--primary-color));
text-decoration: none;
}
a:hover {
color: light-dark(var(--primary-color), var(--tertiary-color));
text-decoration: underline wavy;
}
/* Layout */
body {
line-height: 1.6;
-webkit-font-smoothing: antialiased;
background-color: light-dark(var(--tan), var(--tasteful-dark));
background-image: radial-gradient(circle at 81% 210%, var(--primary-light) 17%, transparent 77.05%);
min-width: 100vw;
min-height: 100vh;
}
/* Sections */
section {
background-color: light-dark(var(--white), var(--maroon));
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
padding: 2rem;
margin-bottom: 2rem;
transition: transform var(--transition-normal);
}
section:hover {
transform: translateY(-5px);
}
/* Forms */
form {
display: flex;
flex-direction: column;
gap: 1rem;
}
form label {
margin-bottom: 0.5rem;
font-weight: bold;
}
form input {
padding: 0.75rem;
border: var(--button-border-width) solid var(--primary-color);
border-radius: var(--radius-md);
transition: all var(--transition-fast);
background-color: light-dark(var(--white), var(--off-black));
color: light-dark(var(--off-black), var(--off-white));
}
form input:focus {
outline: none;
border-color: var(--primary-light);
box-shadow: 0 0 0 3px var(--primary-xlight);
animation: shine 0.4s ease-out;
background-size: 200% 100%;
background-image: linear-gradient(45deg, transparent 50%, var(--primary-xlight) 51%, var(--primary-light) 52%, transparent);
}
/* Button styles */
button {
display: inline-block;
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
text-align: center;
text-decoration: none;
background-color: var(--primary-color);
color: var(--off-black);
/* Change from 'border: none' to transparent border of the same width */
border: var(--button-border-width) solid transparent;
border-radius: var(--radius-md);
transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
/* Ensure consistent sizing */
box-sizing: border-box;
position: relative;
}
button:hover {
background-color: light-dark(var(--off-white), var(--off-black));
color: var(--primary-color);
border: var(--button-border-width) solid var(--primary-color);
/* Ensure the button doesn't change size when border is added */
box-sizing: border-box;
margin: 0;
/* Prevent any layout shift by maintaining dimensions */
transform: translateY(0);
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
button.secondary {
background-color: light-dark(var(--off-white), var(--off-black));
color: var(--primary-color);
border: var(--button-border-width) solid var(--primary-color);
}
button.secondary:hover {
background-color: var(--primary-color);
color: var(--off-black);
}
.container {
max-width: 600px;
width: 100%;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.form-group {
display: flex;
flex-direction: column;
}
/* Add animation from second CSS */
@keyframes shine {
0% {
background-position: 200% 0%;
}
100% {
background-position: 0% 0%;
}
}
/* Mobile Optimizations from second CSS */
@media (max-width: 768px) {
:root {
--shadow-md: 0 2px 4px -1px rgb(0 0 0 / 0.1);
--shadow-lg: 0 4px 6px -2px rgb(0 0 0 / 0.1);
}
section {
padding: 1rem;
margin-bottom: 1rem;
border-radius: var(--radius-md);
}
form input {
font-size: 16px; /* Prevent zoom on iOS */
}
/* Add smooth scrolling */
html {
scroll-behavior: smooth;
}
}
/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
form input {
background-color: var(--off-black);
color: var(--off-white);
}
button.secondary {
background-color: var(--off-black);
}
}
</style>
</head>
<body>
<div class="container">
<h1>Hyperdrive</h1>
<form id="node-form" class="form">
<h3>Select your Hyperware home directory (where it will store files), or create a new one</h3>
<div class="form-group">
<input type="text" id="node-name" name="node-name" placeholder="Node Home Directory" readonly
title="Select the node's directory to store its home folder on disk. Note that this does not register the name in Hyperdrive.">
<button id="select-dir">Select Directory</button>
</div>
<button id="submit" type="submit">Submit</button>
<details>
<summary>Advanced</summary>
<div>
<label for="node-port">Node port:</label>
<input type="number" id="node-port" name="node-port" min="8000" max="65535" placeholder="(optional)"
title="Enter the port the node should locally serve its frontend on. This should be an unused port between 8000 and 65535.">
</div>
<div>
<label for="node-rpc">Node RPC:</label>
<input type="text" id="node-rpc" name="node-rpc" placeholder="(optional)"
title="Enter the RPC URL for the node. This should be an Optimism Mainnet WebSockets RPC URL, for example: wss://optimism-mainnet.infura.io/v3/YOUR-API-KEY">
</div>
</details>
</form>
<div id="node-dirs">
<h2>Previously booted nodes</h2>
<ul id="node-dirs-list"></ul>
</div>
<script src="./main.js"></script>
</div>
</body>
</html>