Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (70 loc) · 3.67 KB
/
Copy pathindex.html
File metadata and controls
71 lines (70 loc) · 3.67 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/app-icons/recordly-32.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Recordly</title>
<script>
// Paint the editor shell before the renderer bundle is downloaded or evaluated.
// Keep recording overlays transparent during their own startup.
document.documentElement.dataset.windowType =
new URLSearchParams(location.search).get("windowType") || "";
if (document.documentElement.dataset.windowType === "editor") {
let preference = "system";
try {
preference = window.electronAPI?.getAppSetting("recordly.theme") ||
localStorage.getItem("recordly.theme") || "system";
} catch { /* Use the system theme when persisted settings are unavailable. */ }
document.documentElement.dataset.theme =
preference === "dark" ||
(preference !== "light" && matchMedia("(prefers-color-scheme: dark)").matches)
? "dark" : "light";
}
</script>
<style>
.boot-shell { display: none; }
html[data-window-type="editor"] { background: #f6f6f7; }
html[data-window-type="editor"][data-theme="dark"] { background: #171719; }
html[data-window-type="editor"] .boot-shell {
--boot-block: #e5e5e9;
position: fixed; inset: 0; display: flex; flex-direction: column;
padding: 0 20px 20px; gap: 16px; box-sizing: border-box;
background: #f6f6f7; overflow: hidden;
}
html[data-theme="dark"] .boot-shell { --boot-block: #303034; background: #171719; }
.boot-shell i { display: block; background: var(--boot-block); border-radius: 8px; }
.boot-header { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.boot-header i { width: 96px; height: 28px; }
.boot-header i:nth-child(2) { width: 144px; height: 16px; }
.boot-body { display: flex; flex: 1; min-height: 0; gap: 20px; }
.boot-rail { width: 28px; display: flex; flex-direction: column; gap: 16px; }
.boot-rail i { height: 32px; flex-shrink: 0; }
.boot-settings { width: min(28vw, 320px); padding: 20px; display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; }
.boot-settings i { height: 20px; }
.boot-settings i:nth-child(3) { height: 140px; }
.boot-preview { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.boot-preview i:first-child { flex: 1; }
.boot-preview i:last-child { width: 160px; height: 32px; margin: auto; border-radius: 20px; }
.boot-timeline { height: 22vh; min-height: 140px; max-height: 240px; display: flex; flex-direction: column; gap: 14px; }
.boot-timeline i { height: 24px; width: 240px; }
.boot-timeline i:nth-child(2) { height: 12px; width: 100%; }
.boot-timeline i:nth-child(3) { height: 54px; width: 80%; }
.boot-timeline i:nth-child(4) { width: 33%; }
</style>
</head>
<body>
<div id="root">
<div class="boot-shell" role="status" aria-label="Loading editor" aria-busy="true">
<div class="boot-header" aria-hidden="true"><i></i><i></i><i></i></div>
<div class="boot-body" aria-hidden="true">
<div class="boot-rail"><i></i><i></i><i></i><i></i><i></i><i></i></div>
<div class="boot-settings"><i></i><i></i><i></i><i></i><i></i></div>
<div class="boot-preview"><i></i><i></i></div>
</div>
<div class="boot-timeline" aria-hidden="true"><i></i><i></i><i></i><i></i></div>
</div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>