Skip to content

Commit b0d247f

Browse files
committed
Add a call to action on our landing page
Fixes rustwasm#25
1 parent 4476646 commit b0d247f

File tree

4 files changed

+98
-1
lines changed

4 files changed

+98
-1
lines changed

_includes/head.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55
{%- seo -%}
66
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
7+
<link rel="stylesheet" href="{{ "/assets/extra.css" | relative_url }}">
78
{%- feed_meta -%}
89
{%- if jekyll.environment == 'production' and site.google_analytics -%}
910
{%- include google-analytics.html -%}
1011
{%- endif -%}
11-
</head>
12+
</head>

_layouts/home.html

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
---
3+
4+
<!DOCTYPE html>
5+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
6+
7+
{%- include head.html -%}
8+
9+
<body>
10+
11+
{%- include header.html -%}
12+
13+
<main class="page-content" aria-label="Content">
14+
<div class="home">
15+
{%- if page.title -%}
16+
<h1 class="page-heading">{{ page.title }}</h1>
17+
{%- endif -%}
18+
19+
<section id="call-to-action">
20+
<div class="wrapper">
21+
<img src="{{ "/assets/wasm-ferris.png" | relative_url }}"/>
22+
<h2>Learn Rust and WebAssembly</h2>
23+
<p>
24+
<a href="https://rustwasm.github.io/book/">Read the Rust and WebAssembly book</a> to
25+
learn how to design, develop, test, debug, profile, and publish Rust and
26+
WebAssembly applications.
27+
</p>
28+
<h2>Get Involved</h2>
29+
<p>
30+
<a href="https://github.com/rustwasm/team/blob/master/README.md#get-involved">Join the Rust and WebAssembly domain working group!</a> Help us craft the future of Rust and WebAssembly.
31+
</p>
32+
</div>
33+
</section>
34+
35+
{{ content }}
36+
37+
<div class="wrapper">
38+
{%- if site.posts.size > 0 -%}
39+
<section>
40+
<h2 class="post-list-heading">{{ page.list_title | default: "Blog Posts" }}</h2>
41+
<ul class="post-list">
42+
{%- for post in site.posts -%}
43+
<li>
44+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
45+
<span class="post-meta">{{ post.date | date: date_format }}</span>
46+
<h3>
47+
<a class="post-link" href="{{ post.url | relative_url }}">
48+
{{ post.title | escape }}
49+
</a>
50+
</h3>
51+
{%- if site.show_excerpts -%}
52+
{{ post.excerpt }}
53+
{%- endif -%}
54+
</li>
55+
{%- endfor -%}
56+
</ul>
57+
58+
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
59+
</section>
60+
{%- endif -%}
61+
</div>
62+
</div>
63+
</main>
64+
65+
{%- include footer.html -%}
66+
67+
{%- include analytics.html -%}
68+
69+
</body>
70+
71+
</html>

assets/extra.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#call-to-action {
2+
margin-top: -30px;
3+
margin-bottom: 30px;
4+
background-color: #403D58;
5+
color: #fff;
6+
padding: 30px;
7+
}
8+
9+
#call-to-action a {
10+
color: #FECD2F;
11+
}
12+
13+
#call-to-action h2 {
14+
font-weight: bold;
15+
}
16+
17+
#call-to-action img {
18+
float: right;
19+
max-width: 45%;
20+
padding-left: 5%;
21+
}
22+
23+
section {
24+
clear: both;
25+
}

assets/wasm-ferris.png

117 KB
Loading

0 commit comments

Comments
 (0)