1
0
Fork 0
yinghong-massage.de/templates/base.html

78 lines
3.4 KiB
HTML
Raw Normal View History

2022-10-24 14:35:18 +00:00
<!DOCTYPE html>
2022-12-17 17:12:50 +00:00
<html lang="de">
2022-10-24 14:35:18 +00:00
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>
2023-05-30 14:10:24 +00:00
{%- block title -%}
{%- if page.title -%}
{{- page.title -}}
{%- elif section.title -%}
{{- section.title -}}
{%- else -%}
{{- config.title -}}
{%- endif -%}
{%- endblock -%}
2022-10-24 14:35:18 +00:00
</title>
2023-05-30 14:10:24 +00:00
<meta name="description"
content="{%- block description -%}{%- if page.description -%}{{- page.description -}}{%- elif section.description -%}{{- section.description -}}{%- else -%}{{- config.description -}}{%- endif -%}{%- endblock -%}">
2022-10-24 14:35:18 +00:00
2023-05-30 14:10:24 +00:00
<link rel="icon"
type="image/x-icon"
href="{{ get_url(path='images/logo.svg') | safe }}" />
2022-11-21 12:03:46 +00:00
2023-05-30 14:10:24 +00:00
<link href="{{ get_url(path='main.css') | safe }}?v={{ now(timestamp=true) }}"
rel="stylesheet" />
2022-10-24 23:11:48 +00:00
{% block styles %}{% endblock %}
2022-10-24 14:35:18 +00:00
</head>
2023-05-31 00:27:56 +00:00
<body class="flex flex-col mx-auto min-h-screen text-xl">
<header class="flex flex-col mb-2">
2023-05-30 15:13:28 +00:00
{% set image = resize_image(path="images/background/nav_background.jpg", height=750, op="fit_height") %}
2023-05-31 00:27:56 +00:00
<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">
2023-05-30 15:13:28 +00:00
<h1>{{ config.title }}</h1>
<h5>{{ config.extra.address }}</h5>
</div>
</div>
</div>
2023-05-31 00:27:56 +00:00
<div class="pt-3 w-full"
2023-05-30 15:13:28 +00:00
style="background-image: linear-gradient({{ config.extra.primary_color }}, 15%, white)">
2023-05-31 00:27:56 +00:00
<div class="flex gap-x-2 items-center px-3 mx-auto mb-3 max-w-screen-xl sm:gap-x-4">
2023-05-30 15:13:28 +00:00
<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 %}
2023-05-31 00:27:56 +00:00
<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"
2023-05-30 15:13:28 +00:00
href="{{ menu_item.url | safe }}">{{ menu_item.name }}</a>
{% endfor %}
</nav>
</div>
</div>
2023-05-30 14:10:24 +00:00
</header>
2023-05-31 10:03:41 +00:00
<main class="px-4 max-w-screen-xl w-full mx-auto leading-relaxed">
{% block content %}{% endblock %}
2023-05-30 14:10:24 +00:00
</main>
2023-05-30 15:13:28 +00:00
<footer class="pt-6 pb-3 mt-auto sm:mx-2">
2023-05-31 08:51:28 +00:00
<nav class="flex flex-col gap-y-3 justify-around py-2 text-center bg-gray-200 sm:flex-row sm:rounded-full">
2023-05-30 14:10:24 +00:00
{% for footer_item in config.extra.footer_items %}
2023-05-31 00:27:56 +00:00
<a class="text-base no-underline" href="{{ footer_item.url | safe }}">{{ footer_item.name }}</a>
2023-05-30 14:10:24 +00:00
{% endfor %}
</nav>
2022-10-24 14:35:18 +00:00
</footer>
{% block scripts %}{% endblock %}
2022-10-24 14:35:18 +00:00
</body>
</html>