Skip to content

Commit f35e3eb

Browse files
committed
more design
1 parent 29b1d8a commit f35e3eb

File tree

5 files changed

+82
-51
lines changed

5 files changed

+82
-51
lines changed

_layouts/default.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@
1717
</head>
1818

1919
<body>
20-
<header>
21-
<a class="nav-link site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
22-
<nav class="site-nav">
23-
{% for my_page in site.pages %}
24-
{% if my_page.title %}
25-
<a class="nav-link" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a>
26-
{% endif %}
27-
{% endfor %}
28-
</nav>
29-
</header>
30-
3120
<main>
3221
{{ content }}
3322
</main>

_posts/2019-07-24-rust-analyzer-changelog-0.md renamed to _posts/2019-07-24-changelog-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: "rust-analyzer Changelog #0"
3+
title: "Changelog #0"
44
date: 2019-07-24 14:34:00 +0200
55
---
66

assets/github.svg

Lines changed: 1 addition & 0 deletions
Loading

css/main.css

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600";
2+
13
* {
24
box-sizing: border-box;
35
margin: 0;
46
padding: 0;
57
}
68

9+
p {
10+
margin-bottom: 1em;
11+
}
12+
713
h1, h2, h3 { font-weight: 300; }
814

915
body {
@@ -23,16 +29,6 @@ main {
2329
padding-right: 2ch;
2430
}
2531

26-
header {
27-
display: flex;
28-
justify-content: space-between;
29-
align-items: baseline;
30-
width: 100%;
31-
max-width: 80ch;
32-
padding: 1ch;
33-
border-bottom: 1px solid rgba(0, 0, 0, .8);
34-
}
35-
3632
footer {
3733
display: flex;
3834
justify-content: center;
@@ -43,22 +39,6 @@ footer {
4339
border-top: 1px solid rgba(0, 0, 0, .8);
4440
}
4541

46-
.nav-link {
47-
font-weight: 400;
48-
font-style: normal;
49-
color: rgba(0, 0, 0, .8);
50-
text-decoration: none;
51-
}
52-
53-
.nav-link:hover {
54-
color: rgba(0, 0, 0, .8);
55-
text-decoration: underline;
56-
}
57-
58-
.site-title {
59-
font-size: 1.5em;
60-
}
61-
6242
.footer-link {
6343
padding-left: 2ch;
6444
font-weight: 600;
@@ -73,21 +53,43 @@ footer > p {
7353
margin-bottom: 0;
7454
}
7555

56+
section {
57+
margin-bottom: 2em;
58+
}
59+
60+
section > h2 {
61+
margin-bottom: 1em;
62+
}
63+
7664
.greeting {
7765
margin-top: 3em;
78-
margin-bottom: 3em;
7966
text-align: center;
8067
}
8168

8269
.greeting > h1 {
83-
font-weight: bold;
70+
font-weight: 400;
8471
font-size: 3em;
8572
}
8673

8774
.greeting > p {
8875
font-size: 2em;
8976
}
9077

78+
.source > img {
79+
width: 1em;
80+
height: 1em;
81+
}
82+
83+
.source {
84+
color: black;
85+
text-decoration: none;
86+
font-size: 2em;
87+
}
88+
.source:hover {
89+
text-decoration: underline;
90+
}
91+
92+
9193
.post-list {
9294
margin-left: 0;
9395
list-style: none;
@@ -105,10 +107,10 @@ footer > p {
105107

106108
.post-meta {
107109
color: #828282;
110+
font-weight: 400;
108111
}
109112

110113
.post-link {
111-
display: block;
112114
text-decoration: none;
113115
}
114116

index.html

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,55 @@ <h1>rust-analyzer</h1>
88
<p>
99
Bringing <em>great</em> IDE experience to the Rust programming language.
1010
</p>
11+
12+
<a class="source" href="https://rust-analyzer.github.io/">
13+
<img src="/assets/github.svg"> Source
14+
</a>
15+
</section>
16+
17+
<section class="installation">
18+
<h2>Installation</h2>
19+
20+
<p>
21+
rust-analyzer is in the alpha stage, installation requires building from source.
22+
To install the language server and VS Code plugin, use
23+
</p>
24+
25+
<p>
26+
<code>
27+
<pre>$ git clone https://github.com/rust-analyzer/rust-analyzer && cd rust-analyzer
28+
$ cargo install-ra</pre>
29+
</code>
30+
31+
</p>
32+
33+
<p>
34+
See the <a href="https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/user">manual</a> for
35+
alternative installation methods and support for other editors.
36+
</p>
37+
1138
</section>
1239

40+
<section class="support">
41+
<h2>Support</h2>
1342

14-
<ul class="post-list">
15-
{% for post in site.posts %}
16-
<li>
17-
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
18-
<h2>
19-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
20-
</h2>
21-
</li>
22-
{% endfor %}
23-
</ul>
43+
rust-analyzer is a free and open source project, developed by
44+
<a href="https://ferrous-systems.com/">Ferrous Systems</a>
45+
with support from multiple companies and individuals.
46+
Donate to rust-analyzer on <a href="https://opencollective.com/rust-analyzer/">Open Collective</a>.
47+
</section>
48+
49+
<section>
50+
<h2>Latest News</h2>
51+
52+
<ul class="post-list">
53+
{% for post in site.posts %}
54+
<li>
55+
<h3>
56+
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span> <a class="post-link"
57+
href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
58+
</h3>
59+
</li>
60+
{% endfor %}
61+
</ul>
62+
</section>

0 commit comments

Comments
 (0)