Skip to content

Commit 29b1d8a

Browse files
committed
some css
1 parent 75651e4 commit 29b1d8a

File tree

2 files changed

+38
-14
lines changed

2 files changed

+38
-14
lines changed

css/main.css

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
* {
22
box-sizing: border-box;
3+
margin: 0;
4+
padding: 0;
35
}
46

57
h1, h2, h3 { font-weight: 300; }
@@ -9,6 +11,7 @@ body {
911
flex-direction: column;
1012
align-items: center;
1113
min-height: 100vh;
14+
font-family: "Open Sans", "DejaVu Sans", sans-serif;
1215
}
1316

1417
main {
@@ -41,10 +44,9 @@ footer {
4144
}
4245

4346
.nav-link {
44-
font-family: "Open Sans", "DejaVu Sans", sans-serif;
45-
font-weight: 400;
46-
font-style: normal;
47-
color: rgba(0, 0, 0, .8);
47+
font-weight: 400;
48+
font-style: normal;
49+
color: rgba(0, 0, 0, .8);
4850
text-decoration: none;
4951
}
5052

@@ -59,7 +61,6 @@ footer {
5961

6062
.footer-link {
6163
padding-left: 2ch;
62-
font-family: "Open Sans", "DejaVu Sans", sans-serif;
6364
font-weight: 600;
6465
font-style: normal;
6566
text-decoration: none;
@@ -72,6 +73,21 @@ footer > p {
7273
margin-bottom: 0;
7374
}
7475

76+
.greeting {
77+
margin-top: 3em;
78+
margin-bottom: 3em;
79+
text-align: center;
80+
}
81+
82+
.greeting > h1 {
83+
font-weight: bold;
84+
font-size: 3em;
85+
}
86+
87+
.greeting > p {
88+
font-size: 2em;
89+
}
90+
7591
.post-list {
7692
margin-left: 0;
7793
list-style: none;

index.html

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@
22
layout: default
33
---
44

5+
<section class="greeting">
6+
<h1>rust-analyzer</h1>
7+
8+
<p>
9+
Bringing <em>great</em> IDE experience to the Rust programming language.
10+
</p>
11+
</section>
12+
13+
514
<ul class="post-list">
6-
{% for post in site.posts %}
7-
<li>
8-
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
9-
10-
<h2>
11-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
12-
</h2>
13-
</li>
14-
{% endfor %}
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 %}
1523
</ul>

0 commit comments

Comments
 (0)