diff --git a/content/externi_weby/_index.md b/content/externi_weby/_index.md new file mode 100644 index 0000000..d55e71e --- /dev/null +++ b/content/externi_weby/_index.md @@ -0,0 +1,4 @@ ++++ +sort_by = "weight" ++++ + diff --git a/content/externi_weby/eduroam.md b/content/externi_weby/eduroam.md new file mode 100644 index 0000000..c93b236 --- /dev/null +++ b/content/externi_weby/eduroam.md @@ -0,0 +1,12 @@ ++++ +title = "Eduroam" +weight = 3 + +[extra] +logo = "eduroam.svg" +color = "#5E81AC" +link = "https://sit.pedf.cuni.cz/wi-fi/eduroam/" ++++ + +Akademická síť a WiFi zdarma pro všechny členy akademické obce. + diff --git a/content/externi_weby/eduroam.svg b/content/externi_weby/eduroam.svg new file mode 100644 index 0000000..cfc766e --- /dev/null +++ b/content/externi_weby/eduroam.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/externi_weby/gegfest.md b/content/externi_weby/gegfest.md new file mode 100644 index 0000000..0c47619 --- /dev/null +++ b/content/externi_weby/gegfest.md @@ -0,0 +1,11 @@ ++++ +title = "GEGfest" +weight = 10 + +[extra] +color = "#8FBCBB" +link = "http://www.gegfest.cz/" ++++ + +GEGfest je událost, na které se slaví úspěchy velkého bratra, Googla. + diff --git a/content/externi_weby/kolbaba.md b/content/externi_weby/kolbaba.md new file mode 100644 index 0000000..6e28037 --- /dev/null +++ b/content/externi_weby/kolbaba.md @@ -0,0 +1,11 @@ ++++ +title = "Kolbaba" +weight = 2 + +[extra] +color = "#88C0D0" +link = "https://kolbaba.pedf.cuni.cz" ++++ + +Fakultní poštovní server pro studenty i zaměstnance naší fakulty. + diff --git a/content/externi_weby/microlab.md b/content/externi_weby/microlab.md new file mode 100644 index 0000000..c78b605 --- /dev/null +++ b/content/externi_weby/microlab.md @@ -0,0 +1,12 @@ ++++ +title = "microlab" +weight = 12 + +[extra] +logo = "microlab.svg" +color = "#BF616A" +link = "https://microlab.space" ++++ + +Spolek našich studentů, kteří se pravidelně schází a pracují na technických projektech. + diff --git a/content/externi_weby/microlab.svg b/content/externi_weby/microlab.svg new file mode 100644 index 0000000..e7b1e80 --- /dev/null +++ b/content/externi_weby/microlab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/externi_weby/moodle.md b/content/externi_weby/moodle.md new file mode 100644 index 0000000..f074671 --- /dev/null +++ b/content/externi_weby/moodle.md @@ -0,0 +1,12 @@ ++++ +title = "Moodle" +weight = 1 + +[extra] +logo = "moodle.svg" +color = "#D08770" +link = "https://moodle.it.pedf.cuni.cz/" ++++ + +Moodle je nejpopulárnější LMS, ve kterém na naší katedře probíhá výuka. + diff --git a/content/externi_weby/moodle.svg b/content/externi_weby/moodle.svg new file mode 100644 index 0000000..6afcb4f --- /dev/null +++ b/content/externi_weby/moodle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/externi_weby/onthehub.md b/content/externi_weby/onthehub.md new file mode 100644 index 0000000..78f97ee --- /dev/null +++ b/content/externi_weby/onthehub.md @@ -0,0 +1,12 @@ ++++ +title = "OnTheHub" +weight = 11 + +[extra] +logo = "onthehub.svg" +color = "#5E81AC" +link = "https://onthehub.com" ++++ + +OnTheHub nabízí studentům KITTV zdarma licence na proprietární software. + diff --git a/content/externi_weby/onthehub.svg b/content/externi_weby/onthehub.svg new file mode 100644 index 0000000..471604d --- /dev/null +++ b/content/externi_weby/onthehub.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/externi_weby/sis.md b/content/externi_weby/sis.md new file mode 100644 index 0000000..a6d4fe2 --- /dev/null +++ b/content/externi_weby/sis.md @@ -0,0 +1,11 @@ ++++ +title = "SIS" +weight = 0 + +[extra] +color = "#EBCB8B" +link = "https://is.cuni.cz/studium/index.php" ++++ + +Spolek našich studentů, kteří se pravidelně schází a pracují na technických projektech. + diff --git a/content/externi_weby/sorit.md b/content/externi_weby/sorit.md new file mode 100644 index 0000000..b5a2a91 --- /dev/null +++ b/content/externi_weby/sorit.md @@ -0,0 +1,10 @@ ++++ +title = "Oborová rada" +weight = 13 + +[extra] +link = "https://sor.it.pedf.cuni.cz" ++++ + +Oborová rada je skupina studentů, kteří pomáhají ostatním studentům katedry. + diff --git a/sass/main.scss b/sass/main.scss index a9453b5..4cf2cb1 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -79,7 +79,7 @@ header { main { max-width: 900px; width: 100%; - margin: 0 auto 5rem auto; + margin: 0 auto; padding: 1rem; h1, h2, h3, h4, h5, h6 { @@ -94,14 +94,25 @@ main { margin: 1em 0; } + section { + margin-bottom: 5rem; + } + .blocks { display: grid; - grid-template-columns: 1fr 1fr 1fr 1fr; + grid-template-columns: 1fr 1fr; grid-column-gap: 1rem; + grid-row-gap: 2rem; + + a { align-self: stretch; } article { + display: flex; + flex-direction: column; + height: 100%; padding: 1em; border-top: 5px solid #5E81AC; + font-size: .85em; &:hover { box-shadow: 0px 1px 9px #00000033; @@ -116,6 +127,7 @@ main { .date { display: block; width: 100%; + margin-top: auto; text-align: right; font-size: 0.8em; color: #81A1C1; @@ -123,8 +135,23 @@ main { } } - .aktuality { - grid-template-columns: 1fr 1fr; + .websites { + grid-template-columns: 1fr 1fr 1fr 1fr; + text-align: center; + + .title { + display: flex; + justify-content: center; + align-items: center; + width: 100%; + height: 3rem; + margin: .4em 0; + + img { + max-width: 80%; + max-height: 100%; + } + } } .centering { diff --git a/templates/index.html b/templates/index.html index 27656bf..30572d6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,9 +13,15 @@ {% block content %}

Aktuality

-
+
{% set section = get_section(path="aktuality/_index.md") %} {{ macro::list_posts(section=section) }}
+
+
+ {% set section = get_section(path="externi_weby/_index.md") %} + {{ macro::list_posts(section=section) }} +
+
{% endblock content %} diff --git a/templates/macros.html b/templates/macros.html index eb8db8e..41bc380 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -10,11 +10,33 @@ {% macro list_posts(section) %} {% for post in section.pages %} - -
-
{{ post.title }}
-

{{ post.summary | safe }}

-
{{ post.date | date(format="%d.%m.%Y")}}
+
+
+
+ {% if post.extra.logo %} + {{ post.title }} + {% else %} + {{ post.title }} + {% endif %} +
+ {% if post.summary %} + {{ post.summary | safe }} + {% else %} + {{ post.content | safe }} + {% endif %} + {% if post.date %} +
{{ post.date | date(format="%d.%m.%Y")}}
+ {% endif %}
{% endfor %}