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

80 lines
3.5 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>
2023-11-22 01:28:18 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-10-24 14:35:18 +00:00
<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"
2023-11-22 01:28:18 +00:00
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) }}"
2023-11-22 01:28:18 +00:00
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 21:51:41 +00:00
<body class="flex flex-col mx-auto min-h-screen text-lg">
2023-05-31 00:27:56 +00:00
<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>
2023-11-22 02:00:49 +00:00
<p class="text-lg">{{ config.description }}</p>
2023-05-30 15:13:28 +00:00
</div>
</div>
</div>
2023-05-31 00:27:56 +00:00
<div class="pt-3 w-full"
2023-06-01 11:07:15 +00:00
style="background-image: linear-gradient(#B2DEA7, 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">
2024-01-02 14:36:58 +00:00
<a class="p-0.5 transition duration-500 hover:scale-110"
2023-11-22 02:00:13 +00:00
href="{{ get_url(path='/') | safe }}"
aria-hidden="true">
2023-05-30 15:13:28 +00:00
<img class="object-contain w-16 h-16 rounded"
2023-11-22 01:39:08 +00:00
src="{{ get_url(path='images/logo.svg') | safe }}"
alt="">
2023-05-30 15:13:28 +00:00
</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 22:49:28 +00:00
<main class="px-4 mx-auto w-full max-w-screen-xl leading-relaxed">
{% block content %}{% endblock %}
2023-05-30 14:10:24 +00:00
</main>
2023-05-31 23:45:45 +00:00
<footer class="pt-6 mt-auto sm:mx-2 sm:mb-3">
2023-05-31 22:49:28 +00:00
<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">
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>