diff --git a/content/katedra/pracovnici/_index.md b/content/katedra/pracovnici/_index.md new file mode 100644 index 0000000..9f38c55 --- /dev/null +++ b/content/katedra/pracovnici/_index.md @@ -0,0 +1,14 @@ ++++ +title = "Pracovníci" + +template = "people-list.html" +page_template = "people-profile.html" + +[extra] +icon = "♥" ++++ + +Zde najdete informace a kontaktní údaje pracovníků katedry. Další termíny konzultací zde uvedených pracovníků mohou být stanoveny individuálně na základě dohody s příslušným pracovníkem e-mailem. + +Kontakty na studijní oddělení najdete na [webových stránkách fakulty](https://pedf.cuni.cz/PEDF-220.html). + diff --git a/content/katedra/pracovnici/battistova/battistova.jpg b/content/katedra/pracovnici/battistova/battistova.jpg new file mode 100644 index 0000000..ef0895a Binary files /dev/null and b/content/katedra/pracovnici/battistova/battistova.jpg differ diff --git a/content/katedra/pracovnici/battistova/index.md b/content/katedra/pracovnici/battistova/index.md new file mode 100644 index 0000000..85a60f1 --- /dev/null +++ b/content/katedra/pracovnici/battistova/index.md @@ -0,0 +1,11 @@ ++++ +title = "PaedDr. Eva Battistová" + +[extra] +role = "Studijní referent, Garant elektronického zápisu pro KITTV" +email = "eva.battistova@pedf.cuni.cz" +phone = "+420 221 900 141" +time = "Pondělí 12:00 – 13:00" +image = "battistova.jpg" ++++ + diff --git a/content/katedra/pracovnici/cernochova/cernochova.jpg b/content/katedra/pracovnici/cernochova/cernochova.jpg new file mode 100644 index 0000000..0c19afd Binary files /dev/null and b/content/katedra/pracovnici/cernochova/cernochova.jpg differ diff --git a/content/katedra/pracovnici/cernochova/index.md b/content/katedra/pracovnici/cernochova/index.md new file mode 100644 index 0000000..0ce3a69 --- /dev/null +++ b/content/katedra/pracovnici/cernochova/index.md @@ -0,0 +1,11 @@ ++++ +title = "doc. RNDr. Miroslava Černochová, CSc." + +[extra] +role = "Zahraniční referent" +email = "miroslava.cernochova@pedf.cuni.cz" +phone = "+420 221 900 238" +time = "Středa 12:00 – 13:00" +image = "cernochova.jpg" ++++ + diff --git a/content/katedra/zamestnanci/_index.md b/content/katedra/zamestnanci/_index.md deleted file mode 100644 index aaebfee..0000000 --- a/content/katedra/zamestnanci/_index.md +++ /dev/null @@ -1,7 +0,0 @@ -+++ -title = "Zaměstnanci" - -[extra] -icon = "♥" -+++ - diff --git a/sass/main.scss b/sass/main.scss index 1389223..ccaab73 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -207,6 +207,53 @@ main { } } + .people-list { + display: flex; + flex-direction: column; + + article { + display: flex; + align-items: center; + height: 8em; + margin-bottom: 3em; + text-align: left; + + a { font-weight: normal } + a:hover { text-decoration: underline } + + img { + display: block; + 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; + } + + .role { color: #81A1C1 } + + .other { + display: flex; + + div { + margin-right: 2em; + } + } + } + } + } + .centering { text-align: center; } diff --git a/templates/macros.html b/templates/macros.html index e470a5b..4ef695f 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -109,3 +109,34 @@ {% endfor %} {% endmacro %} + +{% macro list_people() %} + {% for page in section.pages %} +
+ {% if page.extra.image %} + {{ page.title }} + {% else %} + {{ page.title }} + {% endif %} +
+
+ + {% if page.extra.email %} +
{{ page.extra.role }}
+ {% endif %} +
+
+ {% if page.extra.email %} +
{{ page.extra.email }}
+ {% endif %} + {% if page.extra.phone %} +
{{ page.extra.phone }}
+ {% endif %} + {% if page.extra.time %} +
{{ page.extra.time | safe }}
+ {% endif %} +
+
+
+ {% endfor %} +{% endmacro %} diff --git a/templates/people-list.html b/templates/people-list.html new file mode 100644 index 0000000..72090e4 --- /dev/null +++ b/templates/people-list.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block extra %} + {{ macro::breadcrumbs(page=section) }} +{% endblock %} + +{% block content %} +
+
+

{{ section.title }}

+ {{ section.content | safe }} +
+
+ {{ macro::list_people() }} +
+
+{% endblock content %} diff --git a/templates/people-profile.html b/templates/people-profile.html new file mode 100644 index 0000000..d7ffd00 --- /dev/null +++ b/templates/people-profile.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block extra %} + {{ macro::breadcrumbs(page=page) }} +{% endblock %} + +{% block content %} +
+
+

{{ page.title }}

+ {{ page.content | safe }} +
+
+{% endblock content %}