Skip to content

Commit e4cf805

Browse files
0xPoedjc
authored andcommitted
Add the main element and header to setup new layout
Signed-off-by: Rustin170506 <[email protected]>
1 parent db0fb82 commit e4cf805

File tree

4 files changed

+51
-4
lines changed

4 files changed

+51
-4
lines changed

www/fonts/AlfaSlabOne-Regular.woff

23 KB
Binary file not shown.

www/fonts/AlfaSlabOne-Regular.woff2

17 KB
Binary file not shown.

www/index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515

1616
<body id="idx">
1717

18+
<main>
19+
<header>
20+
<div>
21+
<h1>rustup</h1>
22+
<h2>An installer for the systems programming language <a href="https://www.rust-lang.org">Rust</a></h2>
23+
</div>
24+
</header>
1825
<a id="platform-button" class="display-none" href="#">
1926
click or press "n" to cycle platforms
2027
</a>
@@ -217,7 +224,7 @@
217224
</div>
218225
</div>
219226

220-
<p>
227+
<p id="help">
221228
Need help?<br>Ask on <a href="https://discord.gg/rust-lang">#beginners in the Rust Discord</a><br>
222229
or in the <a href="https://users.rust-lang.org">Rust Users Forum</a>.
223230
</p>
@@ -232,6 +239,7 @@
232239
&nbsp;&middot;&nbsp;
233240
<a href="https://rust-lang.github.io/rustup/">about rustup</a>
234241
</p>
242+
</main>
235243

236244
<script src="rustup.js"></script>
237245
</body>

www/rustup.css

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
src: local('Work Sans Medium'), url("fonts/WorkSans-Medium.ttf") format('truetype');
3232
}
3333

34+
@font-face {
35+
font-family: 'Alfa Slab One';
36+
font-style: normal;
37+
font-weight: 400;
38+
src: local('Alfa Slab One'),
39+
url("fonts/AlfaSlabOne-Regular.woff2") format('woff2'),
40+
url("fonts/AlfaSlabOne-Regular.woff") format('woff');
41+
}
42+
3443
body {
3544
margin-top: 2em;
3645
background-color: white;
@@ -45,6 +54,29 @@ pre {
4554
font-weight: 400;
4655
}
4756

57+
header > div {
58+
display: flex;
59+
flex-direction: column;
60+
align-items: flex-start;
61+
}
62+
63+
header > div > h1 {
64+
font-family: "Alfa Slab One", serif;
65+
color: black;
66+
font-size: 4rem;
67+
margin-bottom: 0;
68+
margin-top: 1rem;
69+
line-height: 1;
70+
font-weight: 300;
71+
letter-spacing: 1px;
72+
}
73+
74+
header > div > h2 {
75+
color: black;
76+
font-size: 2rem;
77+
font-weight: 300;
78+
}
79+
4880
a {
4981
color: #428bca;
5082
text-decoration: none;
@@ -54,11 +86,12 @@ a:hover {
5486
color: rgb(42, 100, 150);
5587
}
5688

57-
body#idx > * {
89+
main {
90+
width: 80%;
91+
max-width: 1200px;
92+
padding: 0 20px;
5893
margin-left: auto;
5994
margin-right: auto;
60-
text-align: center;
61-
width: 35em;
6295
}
6396

6497
body#idx p {
@@ -195,9 +228,15 @@ hr {
195228
line-height: 2rem;
196229
}
197230

231+
#help {
232+
font-size: 20px;
233+
text-align: center;
234+
}
235+
198236
#about {
199237
font-size: 16px;
200238
line-height: 2em;
239+
text-align: center;
201240
}
202241

203242
#about > img {

0 commit comments

Comments
 (0)