Rename HEADER's and start slim header

This commit is contained in:
L3D 2021-02-16 21:32:56 +01:00
parent 84bf22fbf8
commit 4129881ab3
No known key found for this signature in database
GPG Key ID: CD08445BFF4313D1
8 changed files with 118 additions and 6 deletions

View File

@ -1,6 +1,8 @@
[model] [model]
name = Header name = Header mit LOGO
label = Header label = Header mit LOGO
protected = yes
hidden = yes
[fields.claim_heading] [fields.claim_heading]
label = Claim Heading label = Claim Heading

View File

@ -0,0 +1,21 @@
[model]
name = Header mit LOGO
label = Header mit LOGO
protected = yes
hidden = yes
[fields.claim_heading]
label = Claim Heading
type = markdown
[fields.claim_content]
label = Claim Content
type = markdown
[fields.subclaim_heading]
label = Subclaim Heading
type = markdown
[fields.subclaim_content]
label = Subclaim Content
type = markdown

View File

@ -1,7 +1,7 @@
[model] [model]
name = Homepage name = Homepage
label = Homepage label = Homepage
inherits = header inherits = header_with_logo
[fields.title] [fields.title]
label = Title label = Title

View File

@ -1,7 +1,7 @@
[model] [model]
name = Page name = Page
label = {{ this.title }} label = {{ this.title }}
inherits = header inherits = header_slim
[fields.title] [fields.title]
label = Title label = Title

View File

@ -0,0 +1,89 @@
{% extends "layout.html" %}
{% block 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">
<a class="header__button_link" href={{ '/mitglieder'|url }}>MEMBER WERDEN</a>
</button>
</section>
</div>
{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends "header.html" %} {% extends "header_with_logo.html" %}
{% block body %} {% block body %}
<div class="content__box"> <div class="content__box">
<div class="content__inner_box"> <div class="content__inner_box">

View File

@ -1,4 +1,4 @@
{% extends "header.html" %} {% extends "header_slim.html" %}
{% block title %}{{ this.title }}{% endblock %} {% block title %}{{ this.title }}{% endblock %}
{% block body %} {% block body %}
<section class="content -odd -columns"> <section class="content -odd -columns">