webseite/templates/layout.html
Stephan 0a94a0fba4 Rudimentäre Lektor-Version des WTF-Layouts.
Nur eine Section, nur eine Menüebene.
2020-12-22 14:47:58 +01:00

94 lines
3.7 KiB
HTML

<!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>
<body>
<nav>
<div class="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="nav__navlist">
<li class="nav__navitem {% if this._path == '/' %}-active{% endif %}">
<a class="nav__navlink {% if this._path == '/' %}-active{% endif %}" href="{{ '/'|url }}">home</a>
</li>
{% for href, title in [
['/about', 'about'],
['/specs', 'specs'],
['/legal', 'legal']
]
%}
<li class="nav__navitem {% if this.is_child_of(href) %}-active{% endif %}">
<a class="nav__navlink {% if this.is_child_of(href) %}-active{% endif %}" href="{{ href|url }}">{{ title }}</a></li>
{% endfor %}
</ul>
</nav>
<header>
<div class="header__wrapper">
<h1 class="header__headding" id="top">
<a class="header__homelink" href="{{ '/'|url }}"" title="Startseite">
<img class="header__logo" src="{{ '/images/logo.svg'|url }}" alt="Werkkooperative der Technikfreundinnen eG" width="80%px">
</a>
</h1>
</div>
</header>
<main>
{% block body %}{% endblock %}
</main>
<footer>
<div class="footer__wrapper">
<ul class="footer__nav">
<li class="footer__navitem">
© Copyright 2020 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>
</body>