This repository has been archived on 2026-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
RepApp/rc_hip/repapp/templates/repapp/base.html
2023-04-28 11:54:13 +02:00

94 lines
3.6 KiB
HTML

<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description"
content="{% block description %} {% endblock description %}" />
<meta name="keywords"
content="{% block keywords %} {% endblock keywords %}" />
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="{% static 'repapp/css/bootstrap.min.css' %}" />
<title>RepApp -
{% block title %}
{% endblock title %}
</title>
<link rel="stylesheet" href="{% static 'repapp/css/bootstrap.min.css' %}" />
{% block head %}
{% endblock head %}
</head>
<body>
<div class="container">
<header class="d-flex flex-wrap justify-content-center py-3 mb-4 border-bottom">
<a href="{% url 'index' %}"
class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
<img src="{% static 'repapp/images/logo.jpg' %}"
height="50px"
width="168px"
alt="Repair-Café Logo">
</a>
<ul class="nav nav-pills">
<li class="nav-item">
<a href="https://www.repaircafe-hilpoltstein.de/" class="nav-link">Repair-Café</a>
</li>
<li class="nav-item">
<a href="{% url 'index' %}" class="nav-link">Anmeldung</a>
</li>
{% if user.is_authenticated %}
<li class="nav-item">
<a href="{% url 'logout' %}" class="nav-link">Abmelden</a>
</li>
{% else %}
<li class="nav-item">
<a href="{% url 'login' %}" class="nav-link">Gast Anmeldung</a>
</li>
<li class="nav-item">
<a href="{% url 'member_login' %}" class="nav-link">Mitglieder Anmeldung</a>
</li>
{% endif %}
</ul>
</header>
</div>
<div class="position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center"
style="background-image: url({% static 'repapp/images/header_background.jpg' %});
background-repeat: no-repeat;
background-size: auto 100%;
background-position: center">
<div class="col-md-5 p-lg-5 mx-auto my-5">
<h1 class="display-4 font-weight-normal"
style="font-size: 60px;
font-weight: 700;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
color: white">
{% block page_title %}
{% endblock page_title %}
</h1>
</div>
</div>
<div class="container">
<div class="row justify-content-center">
<div class="col-12">
{% if messages %}
{% for message in messages %}<div class="alert alert-primary" role="alert">{{ message }}</div>{% endfor %}
{% endif %}
{% block content %}
{% endblock content %}
</div>
</div>
</div>
<div class="container">
<footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
<p class="col-md-4 mb-0 text-muted">© 2023 Repair-Café Hilpoltstein</p>
<ul class="nav col-md-4 justify-content-end">
<li class="nav-item">
<a href="https://www.repaircafe-hilpoltstein.de/impressum"
class="nav-link px-2 text-muted">Impressum & Datenschutz</a>
</li>
</ul>
</footer>
</div>
<script src="{% static 'repapp/js/jquery-3.6.4.min.js' %}"></script>
<script src="{% static 'repapp/js/bootstrap.min.js' %}"></script>
</body>
</html>