-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (79 loc) · 2.92 KB
/
Copy pathindex.html
File metadata and controls
80 lines (79 loc) · 2.92 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>Compose</title>
<style>
/*
* Pre-React skeleton of the three-pane shell (sidebar | editor | chat),
* empty but for the pane dividers — so the very first paint is the app's
* own structure and the real UI fills into it with no flash or swap. (A
* brand splash only blinked for ~100ms before the app on a fast boot and
* read as a flash.) Kept inline so it ships in the first HTML payload —
* no CSS round-trip, no flash of unstyled content — and mirrored in
* global.scss for the React <SplashScreen/>.
*
* The column template + divider colour match
* `.workspace--editor-open.workspace--chat-open` in global.scss, so the
* dividers land exactly where the real panes' dividers will and content
* fills in without a shift.
*/
html, body {
margin: 0;
padding: 0;
height: 100%;
background: #ffffff;
/* Matches the app's single UI stack ($ui-font in global.scss):
IBM Plex isn't bundled, so the chrome uses system-ui everywhere. */
font-family: system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, sans-serif;
color: #161616;
}
#root {
height: 100%;
}
.app-skeleton {
position: fixed;
inset: 0;
display: grid;
grid-template-columns: 15rem minmax(17rem, 1fr) minmax(18rem, 22rem);
background: #ffffff;
}
.app-skeleton__pane {
min-inline-size: 0;
}
.app-skeleton__pane--sidebar {
border-inline-end: 1px solid #c6c6c6;
}
.app-skeleton__pane--chat {
border-inline-start: 1px solid #c6c6c6;
}
/* Below the workspace's 48rem breakpoint the real layout collapses to a
single column — match it so the dividers aren't left mid-canvas. */
@media (max-width: 48rem) {
.app-skeleton {
grid-template-columns: minmax(0, 1fr);
}
.app-skeleton__pane--sidebar,
.app-skeleton__pane--chat {
display: none;
}
}
</style>
</head>
<body>
<div id="root">
<!-- Three-pane skeleton. Replaced by React on mount; lives inside #root
so React discards it automatically. Mirrors the workspace shell so the
skeleton → app transition is a fill-in, not a swap. -->
<div class="app-skeleton" aria-hidden="true">
<div class="app-skeleton__pane app-skeleton__pane--sidebar"></div>
<div class="app-skeleton__pane app-skeleton__pane--editor"></div>
<div class="app-skeleton__pane app-skeleton__pane--chat"></div>
</div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>