Add basic personnel profile pages

This commit is contained in:
Emil Miler 2024-01-11 18:10:51 +01:00
parent 18e2e0b304
commit feb5fdd36c
58 changed files with 292 additions and 5 deletions

View File

@ -1,5 +1,6 @@
+++
title = "Personál"
template = "personnel.html"
sort_by = "weight"
page_template = "page.html"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Anežka Kolešová"
role = "Instruktor"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Bára Vavřínová"
role = "Instruktor"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Dalibor Brabec"
role = "Instruktor"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 7
[extra]
name = "David Malý"
role = "Hospodář"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 2
[extra]
name = "Emil Miler"
role = "Oddílák"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 6
[extra]
name = "Hanka Malá"
role = "Kuchař"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Hanka Vajsejtlová"
role = "Instruktor"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 99
[extra]
name = "Honza Kubíček"
role = "Hlavas na dovolené"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 2
[extra]
name = "Jan Šruc"
role = "Oddílák"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 2
[extra]
name = "Janča Blahoudková"
role = "Oddílák"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 5
[extra]
name = "Jára Dryml"
role = "Technik"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 7
[extra]
name = "Jindra Jobbik"
role = "Hospodář"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Kačka Kolářová"
role = "Instruktor"
+++

View File

@ -1,4 +1,6 @@
+++
weight = 2
[extra]
name = "Kamil Koza"
role = "Oddílák, Hokr"

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 6
[extra]
name = "Karel Matoušek"
role = "Kuchař"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Kristýna Dusová"
role = "Instruktor"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Lucka Odradovcová"
role = "Instruktor"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 2
[extra]
name = "Lukáš Brůžek"
role = "Oddílák"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 5
[extra]
name = "Martin Kocourek"
role = "Technik"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Martina Babáková"
role = "Instruktor"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 2
[extra]
name = "Míša Michalová"
role = "Oddílák"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 1
[extra]
name = "Michal Roučka"
role = "Hlavní vedoucí"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 4
[extra]
name = "Mirka Lišková"
role = "Zdravotník"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 2
[extra]
name = "Ondra Slavík"
role = "Oddílák"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 5
[extra]
name = "Pavel Kačírek"
role = "Technik"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 5
[extra]
name = "Pavel Sebera"
role = "Technik"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 2
[extra]
name = "Petra Skotnicová"
role = "Oddílák"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 4
[extra]
name = "Šárka Seberová"
role = "Zdravotník"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 7
[extra]
name = "Standa Skotnica"
role = "Hospodář"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Terka Jánová"
role = "Instruktor"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 3
[extra]
name = "Tomáš Brůžek"
role = "Instruktor"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 0
[extra]
name = "Tomáš Zdobnický"
role = "Předseda"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -0,0 +1,7 @@
+++
weight = 6
[extra]
name = "Venca Třeštík"
role = "Kuchař"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 2
[extra]
name = "Verča Pekařová"
role = "Oddílák"
+++

View File

@ -0,0 +1,7 @@
+++
weight = 1
[extra]
name = "Verča Roučková"
role = "Hlavní vedoucí"
+++

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

13
sass/_grid.scss Normal file
View File

@ -0,0 +1,13 @@
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 1em;
}
.grid-2 { grid-template-columns: 1fr 1fr }
.grid-3 { grid-template-columns: 1fr 1fr 1fr }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr }
.grid-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr }
.gap-2 { gap: 2em }
.gap-3 { gap: 3em }

15
sass/_personnel.scss Normal file
View File

@ -0,0 +1,15 @@
.personnel {
.person {
text-align: center;
img {
border-radius: 1em;
margin-bottom: 1em;
filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
}
.name {
font-weight: bold;
}
}
}

View File

@ -1,4 +1,6 @@
@import "fonts";
@import "grid";
@import "personnel";
* {
box-sizing: border-box;
@ -31,7 +33,7 @@ body {
.wrap {
width: 100%;
max-width: 50em;
max-width: 80em;
margin-left: auto;
margin-right: auto;
}

BIN
static/img/placeholder.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -10,7 +10,18 @@
{% macro personnel() %}
{% for person in section.pages %}
{{ person.extra.name }}
{{ person.extra.role }}
{%- set_global image = "/static/img/placeholder.jpg" %}
{%- for asset in person.assets %}
{%- if asset is matching(person.slug~"[.](jpg|png)$") %}
{%- set_global image = asset %}
{%- break %}
{% endif %}
{%- endfor %}
{%- set image = resize_image(path=image, width=300, height=300, op="fill") %}
<div class="person">
<img src="{{ image.url }}" alt={{ person.extra.name }}>
<div class="name">{{ person.extra.name }}</div>
<div class="role">{{ person.extra.role }}</div>
</div>
{% endfor %}
{% endmacro %}

View File

@ -1,7 +1,12 @@
{% extends "base.html" %}
{% block content %}
<section class="personnel">
{{ macros::personnel() }}
<section class="wrap">
{{ section.content | safe }}
</section>
<section class="wrap personnel">
<div class="grid grid-5 gap-3">
{{ macros::personnel() }}
</div>
</section>
{% endblock %}