Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (51 loc) · 1.9 KB
/
Copy pathindex.html
File metadata and controls
51 lines (51 loc) · 1.9 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MarkdownBláthy</title>
<style>
/* Boot note: this markup is the first paint of the webview (the app's
own CSS arrives ~300ms later inside the JS bundle), and React clears
#root on mount — no removal code needed. The style mirrors
`.tilted-note` in src/styles.css (keep in sync); the window
background color (tauri.conf.json backgroundColor, the icon blue
#1859d9) fills the same phase *before* the webview paints anything. */
html,
body {
/* Match the window backgroundColor: WebKit paints the document
background (default light grey) over the window color as soon as
the page commits, long before styles.css exists — without this
the boot flashes blue → grey → blue. Once the app mounts,
Mantine's own body background (bundled CSS, later cascade) wins. */
margin: 0;
background: #1859d9;
}
.tilted-note {
/* Fixed (not #root-centered) so the layout of the mounted app is
unaffected: React only clears #root's children, and these rules
keep living in the document. */
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
opacity: 1;
color: #fff;
font: 600 22px/1.4 system-ui, sans-serif;
letter-spacing: 0.03em;
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.tilted-note > span {
display: inline-block;
transform: rotate(-30deg);
}
</style>
</head>
<body>
<div id="root">
<div class="tilted-note"><span>MarkdownBláthy is starting</span></div>
</div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>