From 54e9d81eb1b21565f014d5d7cbca752ecd62082f Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Mon, 22 Feb 2021 10:17:06 +0100 Subject: [PATCH] =?UTF-8?q?=C5=98azen=C3=AD=20pracovn=C3=ADk=C5=AF=20do=20?= =?UTF-8?q?skupin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../katedra/pracovnici/battistova/index.md | 1 + .../katedra/pracovnici/cernochova/index.md | 1 + sass/main.scss | 48 +++++++++++-------- templates/macros.html | 30 ++++++------ templates/people-list.html | 7 ++- 5 files changed, 53 insertions(+), 34 deletions(-) diff --git a/content/katedra/pracovnici/battistova/index.md b/content/katedra/pracovnici/battistova/index.md index a56a084..1abed4a 100644 --- a/content/katedra/pracovnici/battistova/index.md +++ b/content/katedra/pracovnici/battistova/index.md @@ -2,6 +2,7 @@ title = "PaedDr. Eva Battistová" [extra] +group = "ucitele" role = "Studijní referent, Garant elektronického zápisu pro KITTV" email = "eva.battistova@pedf.cuni.cz" phone = "+420 221 900 141" diff --git a/content/katedra/pracovnici/cernochova/index.md b/content/katedra/pracovnici/cernochova/index.md index 09267ab..65bc47a 100644 --- a/content/katedra/pracovnici/cernochova/index.md +++ b/content/katedra/pracovnici/cernochova/index.md @@ -2,6 +2,7 @@ title = "doc. RNDr. Miroslava Černochová, CSc." [extra] +group = "ucitele" role = "Zahraniční referent" email = "miroslava.cernochova@pedf.cuni.cz" phone = "+420 221 900 238" diff --git a/sass/main.scss b/sass/main.scss index 18d7366..9a8a836 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -252,31 +252,41 @@ main { } } - .people-list article { - display: flex; - align-items: center; - height: 8em; - margin-bottom: 3em; - text-align: left; + .people-list { - img { - display: block; - height: 100%; - margin-right: 2.5em; - border-radius: 50%; + h2 { + margin: 3rem 0 4rem 0; + font-size: 1.4rem; + text-align: center; + color: #4C566A; } - .info { - height: 70%; + article { display: flex; - flex-direction: column; - justify-content: space-between; + align-items: center; + height: 8em; + margin-bottom: 3em; + text-align: left; - .name a { + img { display: block; - font-weight: bold; - font-size: 1.5em; - margin-bottom: .3em; + height: 100%; + margin-right: 2.5em; + border-radius: 50%; + } + + .info { + height: 70%; + display: flex; + flex-direction: column; + justify-content: space-between; + + .name a { + display: block; + font-weight: bold; + font-size: 1.5em; + margin-bottom: .3em; + } } } } diff --git a/templates/macros.html b/templates/macros.html index 27f26ad..8e47176 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -110,22 +110,24 @@ {% endfor %} {% endmacro %} -{% macro list_people() %} +{% macro list_people(group) %} {% for page in section.pages %} -
- {{ macro::profile_picture(profile=page) }} -
-
- - {% if page.extra.role %} -
{{ page.extra.role }}
- {% endif %} + {% if page.extra.group and page.extra.group == group %} +
+ {{ macro::profile_picture(profile=page) }} +
+
+ + {% if page.extra.role %} +
{{ page.extra.role }}
+ {% endif %} +
+
+ {{ macro::profile_info(profile=page) }} +
-
- {{ macro::profile_info(profile=page) }} -
-
-
+ + {% endif %} {% endfor %} {% endmacro %} diff --git a/templates/people-list.html b/templates/people-list.html index 72090e4..776fa4e 100644 --- a/templates/people-list.html +++ b/templates/people-list.html @@ -11,7 +11,12 @@ {{ section.content | safe }}
- {{ macro::list_people() }} +

Vedení katedry

+ {{ macro::list_people(group="vedeni") }} +

Vědecko-pedagogičtí pracovníci

+ {{ macro::list_people(group="ucitele") }} +

Odborní pracovníci

+ {{ macro::list_people(group="odborni-pracovnici") }}
{% endblock content %}