-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
95 lines (85 loc) · 2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
layout: articles
title: Latest
show_title: true
---
<!-- <div class="layout--articles">
{%- include article-list.html articles=site.posts type='item' show_cover='true' show_info='true' show_excerpt='true' excerpt_type='html' show_readmore='true' -%}
</div> -->
<h2>Blog Posts</h2>
<div class="row">
{% for post in site.posts limit:3 %}
<div class="column">
<a href="{{site.baseurl}}{{post.url}}">
<div class="card card--clickable">
<div class="card__image">
<img class="image" src="assets/images/blog/thumbnails/{{post.title}}.png"/>
</div>
<div class="card__content">
<div class="card__header">
<h4>{{post.title}}</h4>
</div>
<p>{{post.excerpt}}</p>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
<h2>Projects</h2>
<div class="row">
{% for post in site.projects limit:2 %}
<div class="column">
<a href="{{site.baseurl}}{{post.url}}">
<div class="card card--clickable">
<div class="card__image">
<img class="image" src="{{post.cover}}"/>
</div>
<div class="card__content">
<div class="card__header">
<h4>{{post.title}}</h4>
</div>
<p>{{post.excerpt}}</p>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
/* Float four columns side by side */
.column {
float: left;
width: 30%;
padding: 0 10px;
}
/* Remove extra left and right margins, due to padding in columns */
.row {margin: 0 -5px;}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
/* Style the counter cards */
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */
padding: 16px;
text-align: center;
--background-color: $main-color-3;
}
/* Responsive columns - one column layout (vertical) on small screens */
@media screen and (max-width: 600px) {
.column {
width: 100%;
display: block;
margin-bottom: 20px;
}
}
</style>