Skip to content

Commit 0bb754a

Browse files
Merge branch 'master' into quotes
2 parents d4a2312 + a251e4c commit 0bb754a

File tree

11 files changed

+37
-28
lines changed

11 files changed

+37
-28
lines changed

src/styles/app.scss

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ $yellow: #FECD2F;
1212
body {
1313
font-family: $body-font;
1414
background-color: white;
15+
16+
/* Ensure the footer is always at the bottom of the screen */
17+
min-height: 100vh;
18+
display: flex;
19+
flex-direction: column;
20+
& > #main-content {
21+
flex: 1;
22+
}
1523
}
1624

1725
#ferris img {
@@ -41,15 +49,12 @@ header h1, section h2 {
4149
}
4250

4351
header h1 {
52+
line-height: 1;
4453
font-size: 10rem;
4554
margin-bottom: 0;
4655
margin-top: 0;
4756
}
4857

49-
header {
50-
padding: 30px 0 60px 0;
51-
}
52-
5358
header .button.button-primary.button-download {
5459
background-color: $yellow;
5560
border-color: $yellow;
@@ -58,11 +63,13 @@ header .button.button-primary.button-download {
5863
padding: 20px;
5964
height: auto;
6065
font-size: 2em;
61-
margin-top: 20px;
66+
margin-top: 25px;
6267
}
6368

64-
header .button.button-primary.button-download:hover {
65-
border-color: black;
69+
header .button.button-primary.button-download {
70+
&:hover, &:focus {
71+
border-color: black;
72+
}
6673
}
6774

6875
h2.subtitle {
@@ -74,7 +81,7 @@ h2.subtitle {
7481
}
7582

7683
section {
77-
padding: 30px 0 60px 0;
84+
padding: 30px 0;
7885
}
7986

8087
ul {
@@ -147,7 +154,7 @@ a.brand {
147154
display: block;
148155
overflow: hidden;
149156
text-overflow: ellipsis;
150-
&:hover {
157+
&:hover, &:focus {
151158
border-color: white;
152159
}
153160
}
@@ -174,7 +181,7 @@ a.brand {
174181
display: block;
175182
overflow: hidden;
176183
text-overflow: ellipsis;
177-
&:hover {
184+
&:hover, &:focus {
178185
border-color: white;
179186
}
180187
}
@@ -202,7 +209,7 @@ a.brand {
202209
display: block;
203210
overflow: hidden;
204211
text-overflow: ellipsis;
205-
&:hover {
212+
&:hover, &:focus {
206213
border-color: $gray;
207214
}
208215
}
@@ -231,7 +238,7 @@ a.brand {
231238
display: block;
232239
overflow: hidden;
233240
text-overflow: ellipsis;
234-
&:hover {
241+
&:hover, &:focus {
235242
border-color: white;
236243
}
237244
}
@@ -558,7 +565,7 @@ blockquote::before {
558565
.button.button-primary.button-download {
559566
padding: 5px;
560567
font-size: 1.5em;
561-
margin-top: 20px;
568+
margin-top: 0;
562569
}
563570
}
564571
}

static/images/favicon-16x16.png

193 Bytes
Loading

static/images/favicon-32x32.png

304 Bytes
Loading

templates/index.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{{#*inline "page"}}
2-
<header class="mb6-ns">
2+
<header class="pt4 pb4-ns">
33
<div class="container flex flex-column flex-row-l justify-between-l">
44
<div class="mw8-l">
55
<h1>Rust</h1>
6-
<h2 class="mt4 f2 f1-ns">
6+
<h2 class="f2 f1-ns">
77
The programming language that empowers <em>everyone</em> to become a
88
systems programmer.
99
</h2>
1010
</div>
11-
<div class="mt4 mt0-l">
11+
<div>
1212
<a class="button button-primary button-download ph4 mt0" href="/learn/get-started">
1313
Get started
1414
</a>

templates/layout.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
</head>
4949
<body>
5050
{{> nav}}
51-
{{~> page}}
51+
<div id="main-content">
52+
{{~> page}}
53+
</div>
5254
{{> footer}}
5355
</body>
5456
</html>

templates/learn/get-started.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fn main() {
154154
<div class="highlight"></div>
155155
</header>
156156
<p>Ferris (they/them) is the unofficial mascot of the Rust Community. Rust programmers call themselves
157-
“Rustaceans,” which is a play on the word “crustacean,” which is set of creatures, one of which is a crab!</p>
157+
“Rustaceans,” which is a play on the word “crustacean,” which is set a of creatures, one of which is a crab!</p>
158158
<p>Ferris is a name playing off of the adjective, “ferrous,” meaning of or pertaining to iron. Since Rust often
159159
forms on iron, it seemed like a fun origin for our mascot’s name!</p>
160160
<p>You can find more images of Ferris on <a href="http://rustacean.net/" target="_blank" rel="noopener">http://rustacean.net/</a>.

templates/learn/index.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
</header>
1515
<div class="flex flex-column flex-row-l justify-between">
1616
<section class="pt0">
17-
<p>Affectionately nicknamed “the book,” The Rust Programming Language
18-
will give you an overview of the language from first principles.
19-
You’ll build a few projects along the way, and by the end, you’ll have
20-
a solid grasp of the language.</p>
17+
<p>Affectionately nicknamed “the book,” <cite>The Rust Programming
18+
Language</cite> will give you an overview of the language from first
19+
principles. You’ll build a few projects along the way, and by the end,
20+
you’ll have a solid grasp of the language.</p>
2121
<a class="button button-secondary" href="https://doc.rust-lang.org/book/">Read the Book!</a>
2222
</section>
2323
<section class="pl5-l pt4 pt0-l">

templates/nav.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<span class="pl4 db dn-l">{{!-- spacer --}}</span>
88
</a>
99

10-
<ul class="nav list w-100 w-auto-l flex flex-none flex-row flex-wrap justify-center justify-end-l items-center pv2 ph4-ns">
10+
<ul class="nav list w-100 w-auto-l flex flex-none flex-row flex-wrap justify-center justify-end-l items-center pv2 ph4-ns pl0">
1111
<li class="flex-inline pv2 ph2 ph4-ns"><a href="/learn">Learn</a></li>
1212
<li class="flex-inline pv2 ph2 ph4-ns"><a href="/tools">Tools</a></li>
1313
<li class="flex-inline pv2 ph2 ph4-ns"><a href="/governance">Governance</a></li>

templates/panels/language-values.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
<div class="flex flex-column flex-row-l pv4 pv0-l">
1010
<section class="flex flex-column mw8 measure-wide-l pv3 pt4-ns pr4-l">
1111
<h3 class="f2 f1-l">Performance</h3>
12-
<p class="f3 lh-copy">
12+
<p class="mb0 f3 lh-copy">
1313
Rust is blazingly fast and memory-efficient: with no runtime or
1414
garbage collector, it can power performance-critical services, run on
1515
embedded devices, and easily integrate with other languages.
1616
</p>
1717
</section>
1818
<section class="flex flex-column mw8 measure-wide-l pv3 pt4-ns ph3-l">
1919
<h3 class="f2 f1-l">Reliability</h3>
20-
<p class="f3 lh-copy">
20+
<p class="mb0 f3 lh-copy">
2121
Rust’s rich type system and ownership model guarantee memory-safety
2222
and thread-safety &mdash; and enable you to eliminate many other
2323
classes of bugs at compile-time.
2424
</p>
2525
</section>
2626
<section class="flex flex-column mw8 measure-wide-l pv3 pt4-ns pl4-l">
2727
<h3 class="f2 f1-l">Productivity</h3>
28-
<p class="f3 lh-copy">
28+
<p class="mb0 f3 lh-copy">
2929
Rust has great documentation, a friendly compiler with useful error
3030
messages, and top-notch tooling &mdash; an integrated package manager
3131
and build tool, a multi-editor language server, an auto-formatter, and

templates/panels/production.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<div class="four columns">
3131
<a href="https://www.youtube.com/watch?v=u6ZbF4apABk" target="_blank" rel="noopener"><img src="/static/images/user-logos/yelp.png" alt="Yelp Logo" /></a>
3232
</div>
33-
<div class="eight columns" id="chucklefish-testimonial">
33+
<div class="eight columns" id="yelp-testimonial">
3434
<blockquote>
3535
All the documentation, the tooling, the community is great - you have all the tools to succeed in writing Rust code.
3636
</blockquote>

templates/what/cli/pitch.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
33
<header>
44
<h2>
5-
A maintainable code base
5+
Why Rust?
66
</h2>
77
<div class="highlight"></div>
88
</header>

0 commit comments

Comments
 (0)