Skip to content

Commit

Permalink
Card-like pattern on homepage. refs #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryuno-Ki committed Nov 25, 2017
1 parent 552991f commit 4f74d6c
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 8 deletions.
1 change: 1 addition & 0 deletions _i18n/de.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
page:
heading: "Willkommen auf "
title: "WeAreFairphone"

pages:
Expand Down
1 change: 1 addition & 0 deletions _i18n/en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
page:
heading: "Welcome to "
title: "WeAreFairphone"

pages:
Expand Down
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{% seo title=false %}
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}" />
<link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}" />
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}" />
{% if jekyll.environment == 'production' and site.google_analytics %}
{% include google-analytics.html %}
Expand Down
28 changes: 28 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: default
---

<div class="home">

{{ content }}

<h1 class="page-heading">{% translate page.heading %}{{ site.title }}</h1>

<ul class="page-list">
{% for page in site.pages %}
{% if page.layout == 'page' %}
<li class="page-list-item">
<h2>
<a class="page-link" href="{{ page.url | relative_url }}">
{% translate page.title %}
</a>
</h2>
<div class="page-content">
{{ page.content }}
</div>
</li>
{% endif %}
{% endfor %}
</ul>

</div>
7 changes: 0 additions & 7 deletions about.md

This file was deleted.

21 changes: 21 additions & 0 deletions assets/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
---
.page-list {
display: flex;
flex-wrap: wrap;
list-style: none;
margin-left: 0;

&-item {
border: 1px solid lightgray;
border-radius: 2%;
box-sizing: border-box;
flex: 1 0 45%;
margin: 0.5em;
padding: 0.5em;
}

.page-content {
padding-bottom: 0;
}
}
2 changes: 1 addition & 1 deletion installation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: page
title: pages.installation.title
permalink: /installation/
---
Expand Down

0 comments on commit 4f74d6c

Please sign in to comment.