Skip to content

Commit 07e9316

Browse files
First pass at the design of the website
1 parent e0cd7f5 commit 07e9316

File tree

13 files changed

+84
-29
lines changed

13 files changed

+84
-29
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33

44
## License
55

6-
This project is licensed under either of
6+
This project is licensed under either of:
77

88
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
99
http://www.apache.org/licenses/LICENSE-2.0)
1010
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
1111
http://opensource.org/licenses/MIT)
12+
13+
With the exception of the [Font Awesome](https://fontawesome.com) social icons, which are used under a [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/) license.

_config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
title: Rust Game Development Working Group
22
#author: GitHub User
33
4-
#description: > # this means to ignore newlines until "show_excerpts:"
5-
# Stay up to date with the progress and recent developments in the Rust Game Development Working Group.
4+
description: Stay up to date with the progress and recent developments in the Rust Game Development Working Group.
65
url: "https://rust-gamedev.github.io"
76
show_excerpts: false # set to true to show excerpts on the homepage
87

@@ -12,10 +11,11 @@ minima:
1211
date_format: "%b %-d, %Y"
1312

1413
# generate social links in footer
15-
# social_links:
14+
social_links:
1615
# twitter: jekyllrb
17-
# github: jekyll
18-
# rss: rss
16+
github: rust-gamedev
17+
discord: j6QJsMd
18+
rss: RSS
1919
# dribbble: jekyll
2020
# facebook: jekyll
2121
# flickr: jekyll

_includes/header.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
{%- assign default_paths = site.pages | map: "path" -%}
55
{%- assign page_paths = site.header_pages | default: default_paths -%}
66
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
7-
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
8+
<img src="{{ '/assets/logo_small.png' | relative_url }}" width="48" height="48" alt="" />
9+
{{ site.title | escape }}
10+
</a>
811

912
{%- if titles_size > 0 -%}
1013
<nav class="site-nav">

_includes/social.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
{%- if social.youtube_channel -%}<li><a href="https://www.youtube.com/channel/{{ social.youtube_channel | cgi_escape | escape }}" title="{{ social.youtube_channel_name | escape | default: 'YouTube' }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
1515
{%- if social.telegram -%}<li><a href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#telegram' | relative_url }}"></use></svg></a></li>{%- endif -%}
1616
{%- if social.microdotblog -%}<li><a rel="me" href="https://micro.blog/{{ social.microdotblog | cgi_escape | escape }}" title="{{ social.microdotblog | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#microdotblog' | relative_url }}"></use></svg></a></li>{%- endif -%}
17+
{%- if social.discord -%}<li><a href="https://discord.gg/{{ social.discord | cgi_escape | escape }}" title="Discord"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#discord' | relative_url }}"></use></svg></a></li>{%- endif -%}
1718
{%- if social.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}" title="{{ social.rss | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg></a></li>{%- endif -%}
1819
</ul>

_layouts/default.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
{%- include header.html -%}
99

1010
<main class="page-content" aria-label="Content">
11-
<div class="wrapper">
12-
{{ content }}
13-
</div>
11+
{{ content }}
1412
</main>
1513

1614
{%- include footer.html -%}

_layouts/home.html

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,33 @@
11
---
22
layout: default
33
---
4+
{%- assign social = site.minima.social_links -%}
45

5-
<div class="home">
6-
{%- if page.title -%}
7-
<h1 class="page-heading">{{ page.title }}</h1>
8-
{%- endif -%}
6+
<section class="intro">
7+
<div class="wrapper">
8+
<p class="intro-icons" aria-hidden="true">
9+
🦀 💖 🕹️
10+
</p>
11+
<p class="intro-lead">
12+
Making Rust a first-class choice for game development
13+
</p>
14+
<p>
15+
The Rust game development working group's goals are to improve the experience of using Rust to make games, and to make it accessible even if you're not an experienced engine/graphics developer.
16+
</p>
17+
<p>
18+
Join us on
19+
<a href="https://github.com/{{ social.github | cgi_escape | escape }}/wg"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> Github</a>
20+
or
21+
<a href="https://discord.gg/{{ social.discord | cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#discord' | relative_url }}"></use></svg> Discord</a>,
22+
and help shape the future of game development in Rust!
23+
</p>
24+
</div>
25+
</section>
926

10-
{{ content }}
27+
<div class="home wrapper">
28+
<h2 class="post-list-heading">{{ page.list_title | default: "Latest News" }}</h2>
1129

1230
{%- if site.posts.size > 0 -%}
13-
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
1431
<ul class="post-list">
1532
{%- for post in site.posts -%}
1633
<li>
@@ -27,12 +44,12 @@ <h3>
2744
</li>
2845
{%- endfor -%}
2946
</ul>
30-
31-
<p class="feed-subscribe">
32-
<a href="{{ 'feed.xml' | relative_url }}">
33-
<svg class="svg-icon orange"><use xlink:href="{{ 'assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg><span>Subscribe</span>
34-
</a>
35-
</p>
47+
{%- else -%}
48+
<p class="grey">None yet - stay tuned for updates and announcements!</p>
3649
{%- endif -%}
37-
50+
<p class="feed-subscribe">
51+
<a href="{{ 'feed.xml' | relative_url }}">
52+
<svg class="svg-icon orange"><use xlink:href="{{ 'assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg><span>Subscribe</span>
53+
</a>
54+
</p>
3855
</div>

_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: default
33
---
4-
<article class="post">
4+
<article class="post wrapper">
55

66
<header class="post-header">
77
<h1 class="post-title">{{ page.title | escape }}</h1>

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: default
33
---
4-
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
4+
<article class="post h-entry wrapper" itemscope itemtype="http://schema.org/BlogPosting">
55

66
<header class="post-header">
77
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>

_sass/extra.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.intro {
2+
color: #ffffff;
3+
background-color: #0074D9;
4+
margin-top: -30px;
5+
padding: 32px 0;
6+
border-bottom: 1px solid #e8e8e8;
7+
text-align: center;
8+
9+
.intro-icons {
10+
font-size: 2em;
11+
}
12+
13+
.intro-lead {
14+
font-weight: bold;
15+
font-size: 1.5em;
16+
}
17+
18+
a {
19+
color: white;
20+
font-weight: bold;
21+
}
22+
}
23+
24+
.home {
25+
margin-top: 32px;
26+
}

assets/css/style.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22
# Only the main Sass file needs front matter (the dashes are enough)
33
---
44

5+
// Some of the default colors do not meet the WCAG 2.0 accessibility
6+
// guidelines for contrast.
7+
$grey-color: #595959;
8+
$brand-color: #1757AA;
9+
510
@import "minima";
11+
@import "extra";

assets/logo_small.png

3.44 KB
Loading

assets/minima-social-icons.svg

Lines changed: 6 additions & 2 deletions
Loading

index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@
77
#
88
layout: home
99
---
10-
11-
Stay up to date with the news and progress related to the Rust Game Development Working Group.

0 commit comments

Comments
 (0)