Repository navigation
Expand file tree
/
Copy pathprojects.html
More file actions
75 lines (71 loc) · 1.41 KB
/
Copy pathprojects.html
File metadata and controls
75 lines (71 loc) · 1.41 KB
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
---
layout: page
title: Projects
permalink: /projects/
---
<style>
.projects {
display: flex;
flex-diretion: row;
flex-wrap: wrap;
align-items: flex-start;
}
.card {
width: calc(50% - 10px);
box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.2);
margin: 5px;
/*
background: #edf;
padding: 15px;
*/
}
@media(max-width: 600px){
.card {
width: 100%;
}
}
.card-header {
/*
background: url('/assets/drone.png') center / cover;
*/
background: #AAA;
height: 200px;
}
.card-title {
font-size: 150%;
padding: 10px 15px;
}
.card-content {
padding: 10px 15px;
font-size: 90%;
color: gray;
border-top: 0.5px solid rgba(0,0,0,0.3);
}
.card-footer {
padding: 10px;
font-size: 90%;
border-top: 0.5px solid rgba(0,0,0,0.3);
}
</style>
<div class="projects container"> <!-- コンテナ -->
{% for project in site.data.projects %}
<div class="card">
{% if project.image %}
<div class="card-header" style="background: url('{{ project.image }}') center / cover;"></div>
{% else %}
<div class="card-header"></div>
{% endif %}
<div class="card-title">{{ project.title }}</div>
<div class="card-content">
<p>{{ project.description }}</p>
</div>
{% if project.links %}
<div class="card-footer">
{% for link in project.links %}
<a href="{{ link.url }}">[ {{ link.title }} ]</a>
{% endfor %}
</div>
{% endif %}
</div>
{% endfor %}
</div>