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

51 lines
1.8 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
2022-10-24 23:11:48 +00:00
2023-05-30 14:10:00 +00:00
{% block styles %}
<link rel="stylesheet"
href="{{ get_url(path='leaflet/leaflet.css') | safe }}" />
{% endblock %}
2022-10-24 23:11:48 +00:00
2022-10-24 14:35:18 +00:00
{% block content %}
2022-10-24 23:11:48 +00:00
<div class="row pb-3">
<div class="col d-flex align-content-center flex-wrap">
{% set image = resize_image(path=config.extra.portrait_path, height=500, op="fit_height") %}
2022-11-06 19:54:49 +00:00
<img src="{{ image.url }}" class="rounded d-block mx-auto shadow" />
2022-10-24 23:11:48 +00:00
</div>
2022-11-06 19:54:49 +00:00
<div class="col d-flex align-content-center flex-wrap ps-5 pe-5 pt-3"
style="min-width: 350px">
2022-10-24 23:11:48 +00:00
<p style="font-size: 17px;">{{ config.extra.self_introduction }}</p>
</div>
</div>
<div class="d-grid col-5 mx-auto gap-2 pt-2 pb-4">
2023-05-30 14:10:00 +00:00
<a href="{{ get_url(path='@/angebot/index.md') | safe }}"
2022-12-17 17:27:49 +00:00
class="btn btn-success grow-on-hover shadow">Unser Angebot</a>
2023-05-30 14:10:00 +00:00
<a href="{{ get_url(path='@/termin/index.md') | safe }}"
2022-12-17 17:27:49 +00:00
class="btn btn-success grow-on-hover shadow">Terminvereinbarung</a>
2022-10-24 23:11:48 +00:00
</div>
2022-10-29 09:59:32 +00:00
<div class="mb-2 shadow" id="map" style="height: 40vh;"></div>
2022-10-24 23:11:48 +00:00
{% endblock %}
{% block scripts %}
2023-05-30 14:10:00 +00:00
<script src="{{ get_url(path='leaflet/leaflet.js') | safe }}"></script>
2022-10-24 23:11:48 +00:00
<script>
2023-05-30 14:10:00 +00:00
L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) | safe }}";
2022-11-21 12:03:46 +00:00
2022-10-24 23:11:48 +00:00
var center = L.latLng(50.05635, 7.12507);
var map = L.map('map', {
center: center,
2022-10-29 19:10:34 +00:00
zoom: 17,
scrollWheelZoom: false,
2022-10-24 23:11:48 +00:00
});
2022-11-21 12:03:46 +00:00
2022-10-24 23:11:48 +00:00
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
minZoom: 5,
maxZoom: 19,
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
2022-11-21 12:03:46 +00:00
2022-10-24 23:11:48 +00:00
L.marker(center).addTo(map).bindPopup("{{ config.extra.address }}").openPopup();
</script>
{% endblock %}