1
0
Fork 0
yinghong-massage.de/templates/base.html
2023-05-30 17:13:28 +02:00

80 lines
3.5 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>
{%- block title -%}
{%- if page.title -%}
{{- page.title -}}
{%- elif section.title -%}
{{- section.title -}}
{%- else -%}
{{- config.title -}}
{%- endif -%}
{%- endblock -%}
</title>
<meta name="description"
content="{%- block description -%}{%- if page.description -%}{{- page.description -}}{%- elif section.description -%}{{- section.description -}}{%- else -%}{{- config.description -}}{%- endif -%}{%- endblock -%}">
<link rel="icon"
type="image/x-icon"
href="{{ get_url(path='images/logo.svg') | safe }}" />
<link href="{{ get_url(path='main.css') | safe }}?v={{ now(timestamp=true) }}"
rel="stylesheet" />
{% block styles %}{% endblock %}
</head>
<body class="flex flex-col mx-auto min-h-screen text-lg">
<header class="flex flex-col">
{% set image = resize_image(path="images/background/nav_background.jpg", height=750, op="fit_height") %}
<div class="flex content-end flex-wrap"
style="background-image: url('{{ image.url }}');
background-position: center;
height: 40vh;
background-size: cover">
<div class="w-full mb-3" style="background-color: rgba(0, 0, 0, 0.6)">
<div class="text-white py-2 px-4 mx-auto max-w-screen-2xl">
<h1>{{ config.title }}</h1>
<h5>{{ config.extra.address }}</h5>
</div>
</div>
</div>
<div class="w-full pt-3"
style="background-image: linear-gradient({{ config.extra.primary_color }}, 15%, white)">
<div class="flex gap-x-2 items-center px-3 mb-3 sm:gap-x-4 max-w-screen-2xl mx-auto">
<a class="p-0.5 transition duration-500 hover:scale-110"
href="{{ get_url(path='/') | safe }}">
<img class="object-contain w-16 h-16 rounded"
src="{{ get_url(path='images/logo.svg') | safe }}" />
</a>
<nav class="flex gap-x-3 items-center sm:gap-x-4">
{% for menu_item in config.extra.menu_items %}
<a class="no-underline transition duration-150 hover:bg-green-700 hover:text-white outline rounded outline-1 outline-green-700 text-green-700 px-2 py-1"
href="{{ menu_item.url | safe }}">{{ menu_item.name }}</a>
{% endfor %}
</nav>
</div>
</div>
</header>
<main class="leading-relaxed max-w-screen-2xl mx-auto">
{% block content %}{% endblock %}
</main>
<footer class="pt-6 pb-3 mt-auto sm:mx-2">
<nav class="flex flex-col gap-y-3 justify-around py-3 text-center bg-gray-200 sm:flex-row sm:rounded-full">
{% for footer_item in config.extra.footer_items %}
<a class="text-sm no-underline" href="{{ footer_item.url | safe }}">{{ footer_item.name }}</a>
{% endfor %}
</nav>
</footer>
{% block scripts %}{% endblock %}
</body>
</html>