Skip to content

Commit 447137c

Browse files
committed
Trophy graphics
1 parent 0e0a9b8 commit 447137c

19 files changed

+72
-9
lines changed

_includes/comp-awards-card.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
<div class="grid" id="comp-awards-card">
3+
{% for award in page.awards %}
4+
<div class="column">
5+
<div class="card">
6+
<div class="award-graphic">
7+
<img src="{{page.graphic}}" alt="Award graphic">
8+
</div>
9+
<div class="card-content">
10+
<h2 class="name has-text-white-ter has-text-weight-bold is-size-6">{{ award.name }}</h2>
11+
<p class="roles has-text-weight-normal">{{ award.division }}</p>
12+
</div>
13+
</div>
14+
</div>
15+
{% endfor %}
16+
</div>

_includes/comp-awards.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<section class="section has-text-centered has-background-black-bis" id="comp-awards">
2+
<div class="container">
3+
<h2 class="title has-text-left has-text-white-ter is-size-2 has-text-weight-bold mgb-medium">
4+
MATE World Championship Awards
5+
</h2>
6+
<br>
7+
{% include comp-awards-card.html %}
8+
</div>
9+
</section>

_layouts/comp.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
{% include navbar.html %}
1212
{% include comp-showcase.html %}
1313
{% include comp-description.html %}
14-
{% include comp-awards.html %}
14+
{% if page.awards %}
15+
{% include comp-awards.html %}
16+
{% endif %}
1517
{% include footer.html %}
1618
</body>
1719
</html>

_site/assets/css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/style.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,3 +1357,13 @@ body { background-color: var(--background); }
13571357
max-width: 300px;
13581358
}
13591359
}
1360+
1361+
#comp-awards-card{
1362+
display: grid;
1363+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
1364+
justify-content: center;
1365+
.card {
1366+
display: flex;
1367+
flex-direction: column;
1368+
}
1369+
}
24.8 KB
Loading
28.5 KB
Loading
50.5 KB
Loading
25.6 KB
Loading
File renamed without changes.

0 commit comments

Comments
 (0)