furry/products/templates/base.html

294 lines
12 KiB
HTML

{% load static %}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Unser Shop{% endblock %}</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<style>
body {
min-height: 100vh;
background: linear-gradient(135deg, #40E0D0 0%, #9370DB 100%);
color: #fff;
}
.container {
background-color: rgba(20, 147, 140, 0.95);
border-radius: 15px;
padding: 20px;
margin-top: 20px;
margin-bottom: 20px;
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.navbar-turquoise {
background: rgba(147, 112, 219, 0.95) !important;
backdrop-filter: blur(10px);
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-turquoise .navbar-brand,
.navbar-turquoise .nav-link {
color: #fff !important;
}
.navbar-turquoise .nav-link:hover {
color: rgba(255, 255, 255, 0.8) !important;
background: rgba(168, 140, 226, 0.3);
border-radius: 8px;
}
.navbar-turquoise .navbar-toggler {
border-color: rgba(255,255,255,0.5);
}
.navbar-turquoise .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.dropdown-menu {
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
background: rgba(147, 112, 219, 0.95);
backdrop-filter: blur(10px);
}
.dropdown-menu .dropdown-item {
color: #fff;
}
.dropdown-menu .dropdown-item:hover {
background-color: rgba(168, 140, 226, 0.3);
color: #fff;
}
.dropdown-menu .dropdown-divider {
border-top-color: rgba(255, 255, 255, 0.2);
}
.cart-icon-container {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 0.5rem;
vertical-align: -0.125em;
width: 1.6rem;
height: 1.6rem;
}
.cart-icon-container .bi-handbag-fill {
font-size: 1.6rem;
position: absolute;
}
.cart-icon-container .bi-paw-fill {
position: absolute;
font-size: 0.9rem;
transform: translateY(0.1rem);
}
.navbar-turquoise .cart-icon-container .bi-handbag-fill,
.navbar-turquoise .cart-icon-container .bi-paw-fill {
color: white;
}
.navbar-turquoise .cart-icon-container .bi-paw-fill {
filter: drop-shadow(0px 0px 1px rgba(0,0,0,0.2));
}
.navbar-turquoise .nav-link:hover .cart-icon-container .bi-handbag-fill,
.navbar-turquoise .nav-link:hover .cart-icon-container .bi-paw-fill {
color: #e0f7f5;
}
/* Anpassungen für den Footer */
footer {
background: rgba(147, 112, 219, 0.95) !important;
backdrop-filter: blur(10px);
margin-top: 2rem !important;
border-radius: 15px 15px 0 0;
box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
footer.bg-dark {
background: rgba(102, 51, 153, 0.95) !important;
}
footer .text-light {
color: #fff !important;
}
footer a.text-light:hover {
color: rgba(255, 255, 255, 0.8) !important;
text-decoration: none;
}
footer .list-unstyled a {
transition: all 0.3s ease;
padding: 3px 8px;
border-radius: 4px;
}
footer .list-unstyled a:hover {
background: rgba(168, 140, 226, 0.3);
}
.alert {
background: rgba(20, 147, 140, 0.95);
backdrop-filter: blur(5px);
color: #fff;
border: none;
}
.alert-info {
background: rgba(20, 147, 140, 0.95);
}
.alert a {
color: #fff;
text-decoration: underline;
}
.alert a:hover {
color: #e0f7f5;
}
.card {
background: rgba(20, 147, 140, 0.95);
border: none;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.table {
color: #fff;
}
.table thead th {
border-bottom-color: rgba(255, 255, 255, 0.2);
}
.table td, .table th {
border-top-color: rgba(255, 255, 255, 0.2);
}
.form-control {
background-color: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.2);
color: #fff;
}
.form-control:focus {
background-color: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.3);
color: #fff;
box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}
.btn-outline-secondary {
color: #fff;
border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-secondary:hover {
background-color: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.7);
color: #fff;
}
/* Verbesserte vertikale Ausrichtung für den Navigationslink */
.nav-link {
display: inline-flex;
align-items: center;
}
/* Icon-spezifische Styles */
.bi {
display: inline-block;
font-size: 1.2rem;
margin-right: 0.3rem;
vertical-align: middle;
}
/* Fallback für den Fall, dass das Icon nicht geladen wird */
.bi-paw-fill::before {
content: "🐾";
}
</style>
{% block extra_css %}{% endblock %}
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-turquoise mb-4">
<div class="container">
<a class="navbar-brand" href="{% url 'products:product_list' %}">Unser Shop</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a class="nav-link {% if request.resolver_match.url_name == 'product_list' %}active{% endif %}"
href="{% url 'products:product_list' %}">Produkte</a>
</li>
<li class="nav-item">
<a class="nav-link {% if request.resolver_match.url_name == 'gallery' %}active{% endif %}"
href="{% url 'products:gallery' %}">Fursuit Galerie</a>
</li>
<li class="nav-item">
<a class="nav-link {% if request.resolver_match.url_name == 'custom_order' %}active{% endif %}"
href="{% url 'products:custom_order' %}">Custom Order</a>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="{% url 'products:cart_detail' %}">
<span class="cart-icon-container">
<i class="bi bi-handbag-fill"></i>
<i class="bi bi-paw-fill"></i>
</span>
Warenkorb
</a>
</li>
{% if user.is_authenticated %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
{{ user.username }}
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="{% url 'products:profile' %}">Profil</a></li>
<li><a class="dropdown-item" href="{% url 'products:order_history' %}">Bestellungen</a></li>
<li><a class="dropdown-item" href="{% url 'products:wishlist' %}">Wunschliste</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="{% url 'logout' %}">Abmelden</a></li>
</ul>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link" href="{% url 'login' %}">Anmelden</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'products:register' %}">Registrieren</a>
</li>
{% endif %}
</ul>
</div>
</div>
</nav>
<!-- Main Content -->
<div class="container">
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }} alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
{% endif %}
{% block content %}{% endblock %}
</div>
<!-- Footer -->
<footer class="bg-dark text-light py-4">
<div class="container">
<div class="row">
<div class="col-md-4">
<h5>Über uns</h5>
<p>Ihr vertrauenswürdiger Online-Shop für hochwertige Produkte.</p>
</div>
<div class="col-md-4">
<h5>Kontakt</h5>
<p>E-Mail: info@shop.de<br>
Tel: +49 123 456789</p>
</div>
<div class="col-md-4">
<h5>Links</h5>
<ul class="list-unstyled">
<li><a href="{% url 'products:faq' %}" class="text-light">FAQ</a></li>
<li><a href="{% url 'products:contact' %}" class="text-light">Kontakt</a></li>
</ul>
</div>
</div>
<div class="row mt-3">
<div class="col text-center">
<small>&copy; {% now "Y" %} Unser Shop. Alle Rechte vorbehalten.</small>
</div>
</div>
</div>
</footer>
<!-- Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
{% block extra_js %}{% endblock %}
</body>
</html>