webseite/templates/layout.html

143 lines
6.4 KiB
HTML
Raw Normal View History

2020-12-22 13:18:51 +01:00
<!doctype html>
<html lang="de">
<head>
<!--
Namensschema der CSS-Klassen nach BEM (Block Element Modifier,
http://getbem.com/naming/). Mit der Erweiterung, dass Modifier einzeln
mit Bindestrich angegeben werden. Also:
<li class="navlist__navitem -active">
statt
<li class="navlist__navitem navlist__navitem--active">
Das ist weniger redundant und übersichtlicher. Der passende CSS-Selektor
dazu ist:
.navlist__navitem.-active
-->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Werkkooperative der Technikfreundinnen eG</title>
<meta name="description" content="">
<link rel="stylesheet" href="{{ '/css/reset.css'|url }}">
<link rel="stylesheet" href="{{ '/css/fonts.css'|url }}">
<link rel="stylesheet" href="{{ '/css/style.css'|url }}">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-96x96.png">
<link rel="manifest" href="manifest.json">
</head>
2020-12-22 13:18:51 +01:00
<body>
<header>
<div class="header__top_box">
<div class="header__logo_box">
<a class="header__homelink" href="{{ '/'|url }}" title="Startseite">
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|url }}" style="height: 7rem;">
</a>
</div>
<nav class="header__secondary_nav">
<ul class="secondary_nav__navlist">
<li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="#">EN</a>
</li>
<li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="https://meta.vebit.xyz">Login</a>
</li>
</ul>
</nav>
</div>
<div class="header__bg_box">
<nav class="header__primary_nav">
<div class="primary_nav__toggle">
<svg viewBox="0 0 100 80" width="32" height="32">
<rect width="100" height="15"></rect>
<rect y="30" width="100" height="15"></rect>
<rect y="60" width="100" height="15"></rect>
</svg>
<p>menu</p>
</div>
<ul class="primary_nav__navlist">
{% for title, mapping in bag("navigation").items() %}
<li class="primary_nav__navitem
{%- if this._path == mapping.href or mapping.href != '/' and this.is_child_of(mapping.href) %}
-active
{%- endif -%}
{%- if loop.index == 1 %}
-first
{%- endif -%}
">
<a class="primary_nav__navlink {% if this._path == mapping.href %}-active{% endif %}" href="{{ mapping.href|url }}">
{{ title }}
</a>
{% if mapping.list_childs %}
<ul class="primary_nav__sub_navlist">
{% set sub_menu = mapping['items'].items() %}
{% for sub_title, href in sub_menu %}
<li class="primary_nav__sub_navitem {%- if this._path == href %} -active{%- endif %}">
<a class="primary_nav__navlink {% if this._path == href %}-active{% endif %}" href="{{ href|url }}">
{{ sub_title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
<!-- background for header box - start -->
<div class="bg_box__top_bar_left"></div>
<div class="bg_box__top_bar_middle"></div>
<div class="bg_box__top_bar_right"></div>
<div class="bg_box__unicorns"></div>
<div class="bg_box__big_bg"></div>
<div class="bg_box__bottom_bar_left"></div>
<div class="bg_box__bottom_bar_middle"></div>
<div class="bg_box__bottom_bar_right"></div>
<div class="bg_box__very_bottom_bar"></div>
<!-- background for header box - end -->
<section class="header__claim">
<!-- TODO: Claims in Lektor editierbar. -->
{{ this.claim_heading }}
{{ this.claim_content }}
</section>
<section class="header__sub_claim">
<div class="sub_claim__box">
{{ this.subclaim_heading }}
{{ this.subclaim_content }}
</div>
<!-- TODO: Zielseite für "MEMBER WERDEN"-Button -->
<button class="header__button sub_claim__button">MEMBER WERDEN</button>
</section>
</div>
</header>
<main>
{% block body %}{% endblock %}
</main>
<footer>
<div class="footer__wrapper">
<ul class="footer__nav">
<li class="footer__navitem">
© Copyright 2021 VEBIT e.V.
</li>
<li class="footer__navitem">
<a class="footer__navlink" href="{{ 'licence'|url }}/archiv">MIT Lizenz</a>
</li>
<li class="footer__navitem">
<a class="footer__navlink" href="{{ 'imprint'|url }}/archiv">Impressum</a>
</li>
<li class="footer__navitem">
<a class="footer__navlink" href="{{ 'privacy_policy'|url }}/archiv">Datenschutzerklärung</a>
</li>
</ul>
</div>
</footer>
<script type="text/javascript" src="{{ '/js/nav_toggle.js'|url }}"></script>
2020-12-22 13:18:51 +01:00
</body>