1
0
Fork 0
yinghong-massage.de/templates/base.html
2023-06-01 00:49:28 +02:00

77 lines
3.4 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 mb-2">
{% set image = resize_image(path="images/background/nav_background.jpg", height=750, op="fit_height") %}
<div class="flex flex-wrap content-end bg-center bg-cover h-[35vh]"
style="background-image: url('{{ image.url }}')">
<div class="mb-3 w-full bg-black/60">
<div class="py-2 px-4 mx-auto max-w-screen-xl text-white">
<h1>{{ config.title }}</h1>
<h5>{{ config.extra.address }}</h5>
</div>
</div>
</div>
<div class="pt-3 w-full"
style="background-image: linear-gradient({{ config.extra.primary_color }}, 15%, white)">
<div class="flex gap-x-2 items-center px-3 mx-auto mb-3 max-w-screen-xl sm:gap-x-4">
<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="py-1 px-2 text-green-700 no-underline rounded transition duration-150 hover:text-white hover:bg-green-700 outline outline-1 outline-green-700"
href="{{ menu_item.url | safe }}">{{ menu_item.name }}</a>
{% endfor %}
</nav>
</div>
</div>
</header>
<main class="px-4 mx-auto w-full max-w-screen-xl leading-relaxed">
{% block content %}{% endblock %}
</main>
<footer class="mt-6 mt-auto sm:mx-2 sm:mb-3">
<nav class="flex flex-col gap-y-3 justify-around py-5 text-center bg-gray-200 sm:flex-row sm:py-2 sm:rounded-full">
{% for footer_item in config.extra.footer_items %}
<a class="text-base no-underline" href="{{ footer_item.url | safe }}">{{ footer_item.name }}</a>
{% endfor %}
</nav>
</footer>
{% block scripts %}{% endblock %}
</body>
</html>