From 72ab2d9397f55bee86f45c95b87ad069a862fc36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kate=C5=99ina=20=C4=8C=C3=AD=C5=BEkov=C3=A1?= Date: Wed, 13 Nov 2019 23:38:50 +0100 Subject: [PATCH] =?UTF-8?q?pr=C3=A1ce=20na=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/static/css/mamweb.css | 28 ++ mamweb/static/images/pavouk.svg | 481 ++++++++++++++++++++++++++++++++ mamweb/templates/base.html | 26 +- mamweb/templates/menu.html | 21 ++ mamweb/templates/submenu.html | 8 + 5 files changed, 544 insertions(+), 20 deletions(-) create mode 100644 mamweb/static/images/pavouk.svg create mode 100644 mamweb/templates/menu.html create mode 100644 mamweb/templates/submenu.html diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index e0f410f1..02b4a5b9 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -211,10 +211,12 @@ div.menu { height: 60px; top: 12px; } +/* div.menu ul { padding: 0px; margin: 0px; } +*/ div.menu li { display: inline-block; border-radius: 0px; @@ -261,6 +263,32 @@ img.decor { /*todo bug při zmenšování okna */ filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.4)); } +/* testování nového menu */ + +ul.row-menu { + background-color: green; +} + +div.menu-item { + display: inline-block; + background-color: yellow; +} + +li.active { + background-color: black; +} + +ul.row-submenu { + background-color: green; + display: inline-block; +} + +div.submenu.active { + display: block; +} + + +/* konec testování nového menu */ #submenu { position: relative; diff --git a/mamweb/static/images/pavouk.svg b/mamweb/static/images/pavouk.svg new file mode 100644 index 00000000..87058260 --- /dev/null +++ b/mamweb/static/images/pavouk.svg @@ -0,0 +1,481 @@ + + + +image/svg+xmlTÉMATA + + +PŘÍSPĚVKY + + +EXPERIMENTY + + +DORT + + +MATEMATIKA + + +INFORMATIKA + + +FYZIKA + + +ČASOPIS + + +ČLÁNKY + + +CENY + + +SOUSTŘEDĚNÍ + + +LEGENDA + + +JÍDLO + + +VÝLET + + +HRY + + +ODBORNÝPROGRAM + + +PŘEDNÁŠKY + + +KONFERY + + +NOČNÍ + + +STRATEGICKÉ + + +BĚHACÍ + + +ADRENALINOVÉ + + + \ No newline at end of file diff --git a/mamweb/templates/base.html b/mamweb/templates/base.html index 5e312a71..c79b0e79 100644 --- a/mamweb/templates/base.html +++ b/mamweb/templates/base.html @@ -67,6 +67,7 @@
{# ========= MOBILE MENU ========== #} + +
+ + {% sitetree_menu from "main_menu" include "trunk" template "menu.html" %}
{% block content %} diff --git a/mamweb/templates/menu.html b/mamweb/templates/menu.html new file mode 100644 index 00000000..84afdf7e --- /dev/null +++ b/mamweb/templates/menu.html @@ -0,0 +1,21 @@ +{% load sitetree %} +
    + {% for item in sitetree_items %} + + {% endfor %} +
+ diff --git a/mamweb/templates/submenu.html b/mamweb/templates/submenu.html new file mode 100644 index 00000000..7346d34b --- /dev/null +++ b/mamweb/templates/submenu.html @@ -0,0 +1,8 @@ +{% load sitetree %} +