Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (101 loc) · 2.21 KB
/
Copy pathindex.html
File metadata and controls
114 lines (101 loc) · 2.21 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Advanced Rust</title>
<style>
:root {
--bg: #ffffff;
--fg: #333333;
--links: #4183c4;
--border: #e0e0e0;
--page-padding: 15px;
--content-max-width: 750px;
--menu-bar-height: 50px;
font-size: 62.5%;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: hsl(226, 23%, 11%);
--fg: #bcbdd0;
--links: #2b79a2;
--border: #2d334f;
}
}
* {
box-sizing: border-box;
}
html {
font-family: "Open Sans", sans-serif;
color: var(--fg);
background: var(--bg);
color-scheme: light dark;
}
body {
margin: 0;
font-size: 1.6rem;
}
.menu-bar {
height: var(--menu-bar-height);
display: flex;
align-items: center;
padding: 0 var(--page-padding);
border-bottom: 1px solid var(--border);
background: var(--bg);
}
.menu-title {
margin: 0 auto;
color: #737480;
font-size: 1.6rem;
font-weight: 400;
}
main {
max-width: var(--content-max-width);
margin: 0 auto;
padding: 0 15px 50px;
}
h1 {
margin: 48px 0 24px;
font-size: 3.2rem;
font-weight: 600;
line-height: 1.2;
}
p {
line-height: 1.7;
}
.description {
margin-bottom: 28px;
}
.language-list {
margin: 0;
padding-left: 24px;
line-height: 1.9;
}
.language-list a {
color: var(--links);
text-decoration: none;
}
.language-list a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="page-wrapper">
<header class="menu-bar">
<p class="menu-title">Advanced Rust</p>
</header>
<main>
<h1>Choose your language</h1>
<p class="description">
An advanced Rust programming guide available in English and Simplified Chinese.
</p>
<ol class="language-list">
<li><a href="./en/">English version</a></li>
<li><a href="./zh-Hans/">简体中文版</a></li>
</ol>
</main>
</div>
</body>
</html>