Files
Key-service-Server/Website/templates/base.html
T
Aiirondev_dev 40db9e9576 Enhance admin dashboard with block day functionality, improve appointment details, and update footer animations
- Added a section in the admin dashboard for blocking calendar days with a form to submit block dates and reasons.
- Implemented a list of blocked days with the ability to unblock them.
- Enhanced appointment details to include meeting type and location information.
- Updated styles for blocked days in the appointment calendar.
- Improved footer design with animations and responsive adjustments.
- Removed unused license transfer forms from admin and user license templates.
- Changed database name references from 'Inventarsystem' to 'Invario_Website' in user management functions.
2026-03-24 16:18:39 +01:00

588 lines
19 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>{% block title %}IT Lösungen{% endblock %}</title>
{% block head %}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap" rel="stylesheet">
<style>
:root {
--bg-main: #f5f8fa;
--bg-soft: #e8eef2;
--surface: #ffffff;
--text-main: #112332;
--text-soft: #466176;
--line: #d8e1e8;
--brand: #0a4c74;
--brand-strong: #073754;
--accent: #f28c28;
--radius-md: 14px;
--shadow-sm: 0 10px 30px rgba(17, 35, 50, 0.08);
--shell-gutter: clamp(12px, 2.2vw, 34px);
--shell-max-width: 100vw;
}
* { box-sizing: border-box; }
html,
body {
margin: 0;
padding: 0;
min-height: 100%;
font-family: "Source Sans 3", system-ui, sans-serif;
color: var(--text-main);
background: radial-gradient(circle at 85% -10%, #c5d8e5 0%, transparent 35%),
radial-gradient(circle at -10% 50%, #dce8ef 0%, transparent 42%),
var(--bg-main);
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
h1 {
margin: 0;
font-family: "Space Grotesk", system-ui, sans-serif;
line-height: 1.08;
font-size: clamp(1.75rem, 4.5vw, 4.2rem);
}
h2 {
margin: 0;
font-family: "Space Grotesk", system-ui, sans-serif;
line-height: 1.08;
font-size: clamp(1.4rem, 3.2vw, 3rem);
}
h3 {
margin: 0;
font-family: "Space Grotesk", system-ui, sans-serif;
line-height: 1.08;
font-size: clamp(1.1rem, 2.5vw, 2rem);
}
h4 {
margin: 0;
font-family: "Space Grotesk", system-ui, sans-serif;
line-height: 1.08;
font-size: clamp(1rem, 1.8vw, 1.5rem);
}
p {
margin: 0;
line-height: 1.55;
color: var(--text-soft);
font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}
a {
color: inherit;
text-decoration: none;
}
img {
max-width: 100%;
display: block;
}
.site-shell {
width: min(var(--shell-max-width), calc(100% - (var(--shell-gutter) * 2)));
margin: 0 auto;
}
.site-nav {
position: sticky;
top: 0;
z-index: 30;
backdrop-filter: blur(10px);
background: rgba(245, 248, 250, 0.86);
border-bottom: 1px solid var(--line);
}
.site-nav-inner {
min-height: 78px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.brand {
font-family: "Space Grotesk", system-ui, sans-serif;
font-size: 1.1rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--brand-strong);
}
.nav-links {
display: flex;
align-items: center;
gap: 1rem;
font-weight: 600;
color: var(--text-soft);
}
.nav-links a:hover {
color: var(--brand);
}
.nav-actions {
display: flex;
align-items: center;
gap: 0.6rem;
}
.nav-btn {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
border: 1px solid #bcd0de;
padding: 0.48rem 0.95rem;
font-weight: 700;
color: #0e425f;
background: #ffffff;
transition: transform 0.15s ease;
}
.nav-btn:hover {
transform: translateY(-1px);
}
.nav-btn.primary {
color: #ffffff;
border-color: #0a4c74;
background: linear-gradient(120deg, #0b5b89 0%, #0b4262 100%);
}
.nav-dropdown {
position: relative;
}
.nav-dropdown > summary {
list-style: none;
cursor: pointer;
}
.nav-dropdown > summary::-webkit-details-marker {
display: none;
}
.nav-dropdown > summary::after {
content: "▾";
margin-left: 0.45rem;
font-size: 0.72rem;
color: #57798f;
}
.nav-dropdown[open] > summary::after {
content: "▴";
}
.dropdown-menu {
position: absolute;
right: 0;
top: calc(100% + 0.45rem);
min-width: 220px;
padding: 0.5rem;
border-radius: 12px;
border: 1px solid #ccdae5;
background: #ffffff;
box-shadow: 0 12px 24px rgba(16, 44, 62, 0.15);
display: grid;
gap: 0.35rem;
z-index: 40;
}
.dropdown-menu a {
padding: 0.5rem 0.65rem;
border-radius: 8px;
font-weight: 600;
color: #1a4865;
}
.dropdown-menu a:hover {
background: #f3f8fc;
}
.main-wrap {
flex: 1 0 auto;
padding: 2rem 0 3.4rem;
}
.flashes {
margin-bottom: 1rem;
display: grid;
gap: 0.75rem;
}
.flash {
padding: 0.8rem 1rem;
border-radius: 10px;
border: 1px solid var(--line);
background: var(--surface);
box-shadow: var(--shadow-sm);
font-weight: 600;
}
.flash.success { border-left: 5px solid #0e9f6e; }
.flash.error { border-left: 5px solid #d3413e; }
.flash.info { border-left: 5px solid var(--brand); }
@media (max-width: 820px) {
.site-nav-inner {
min-height: 64px;
}
.nav-links {
display: none;
}
.nav-actions {
gap: 0.4rem;
}
.nav-btn {
padding: 0.42rem 0.72rem;
font-size: 0.85rem;
}
.dropdown-menu {
right: auto;
left: 0;
min-width: 200px;
}
}
</style>
{% endblock %}
</head>
<body>
<nav class="site-nav">
<div class="site-shell site-nav-inner">
<a class="brand" href="{{ url_for('default') }}">Invario</a>
<div class="nav-links" aria-label="Main Navigation">
<a href="{{ url_for('dienstleistungen') }}">Dienstleistungen</a>
<a href="{{ url_for('projekte') }}">Projekte</a>
<a href="{{ url_for('team') }}">Team</a>
<a href="{{ url_for('kontakt') }}">Kontakt</a>
<a href="{{ url_for('inventarsystem') }}">Unser Produkt</a>
</div>
<div class="nav-actions">
{% if 'username' in session %}
<a class="nav-btn" href="{{ url_for('appointments') }}">Termin anfragen</a>
<details class="nav-dropdown">
<summary class="nav-btn">Nutzerbereich</summary>
<div class="dropdown-menu">
<a href="{{ url_for('my_licenses') }}">Meine Lizenzen</a>
<a href="{{ url_for('my_invoices') }}">Meine Rechnungen</a>
<a href="{{ url_for('user_chat') }}">Chat mit Admin</a>
<a href="{{ url_for('user_tickets') }}">Support Tickets</a>
</div>
</details>
{% if session.get('is_admin') %}
<details class="nav-dropdown">
<summary class="nav-btn">Admin</summary>
<div class="dropdown-menu">
<a href="{{ url_for('admin_dashboard') }}">Dashboard</a>
<a href="{{ url_for('admin_users') }}">Userverwaltung</a>
<a href="{{ url_for('admin_licenses') }}">Lizenzverwaltung</a>
<a href="{{ url_for('admin_invoices') }}">Rechnungsverwaltung</a>
<a href="{{ url_for('admin_chats') }}">Admin-Chat</a>
<a href="{{ url_for('admin_tickets') }}">Support-Center</a>
<a href="{{ url_for('admin_blog') }}">Blog verwalten</a>
</div>
</details>
{% endif %}
<a class="nav-btn" href="{{ url_for('logout') }}">Logout</a>
{% else %}
<a class="nav-btn" href="{{ url_for('blog') }}">Blog</a>
<a class="nav-btn" href="{{ url_for('login') }}">Login</a>
<a class="nav-btn primary" href="{{ url_for('register') }}">Registrieren</a>
{% endif %}
</div>
</div>
</nav>
<main class="site-shell main-wrap">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="flashes">
{% for category, message in messages %}
<div class="flash {{ category }}">{{ message }}</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</main>
<footer class="site-footer">
<div class="site-shell footer-inner">
<div class="footer-content">
<div class="footer-section">
<h4>Über uns</h4>
<p>Wir bieten professionelle IT-Lösungen für Ihre Inventur.</p>
</div>
<div class="footer-section">
<h4>Schnelllinks</h4>
<ul class="footer-links">
<li><a href="{{ url_for('default') }}">Startseite</a></li>
<li><a href="{{ url_for('blog') }}">Blog</a></li>
{% if 'username' in session %}
<li><a href="{{ url_for('appointments') }}">Termine</a></li>
{% endif %}
</ul>
</div>
<div class="footer-section">
<h4>Rechtliches</h4>
<ul class="footer-links">
<li><a href="{{ url_for('datenschutz') }}">Datenschutz</a></li>
<li><a href="{{ url_for('impressum') }}">Impressum</a></li>
<li><a href="{{ url_for('nutzungsbedingungen') }}">Nutzungsbedingungen</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>&copy; 2026 Invario. Alle Rechte vorbehalten.</p>
</div>
</div>
<style>
.site-footer {
background: linear-gradient(135deg, var(--brand-strong) 0%, #0a4c74 100%);
color: #ffffff;
margin-top: auto;
padding: 3rem 0 1.5rem;
border-top: 1px solid var(--line);
position: relative;
overflow: hidden;
animation: footerEnter 0.7s ease both;
will-change: transform, opacity;
transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, box-shadow 0.45s ease;
}
body.footer-scroll-mode .site-footer {
opacity: 0.9;
transform: translateY(26px);
box-shadow: 0 -8px 22px rgba(5, 27, 41, 0.14);
}
body.footer-scroll-mode.footer-reveal .site-footer {
opacity: 1;
transform: translateY(0);
box-shadow: 0 -14px 34px rgba(5, 27, 41, 0.2);
}
.site-footer::before {
content: "";
position: absolute;
inset: -40% -10% auto -10%;
height: 180px;
background: radial-gradient(circle at 20% 50%, rgba(242, 140, 40, 0.25) 0%, rgba(242, 140, 40, 0) 62%);
transform: translateX(-12%);
animation: footerGlow 7s ease-in-out infinite;
pointer-events: none;
}
.footer-inner {
position: relative;
z-index: 1;
display: grid;
gap: 2rem;
margin-bottom: 2rem;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.footer-section {
display: flex;
flex-direction: column;
gap: 0.75rem;
animation: footerSectionRise 0.65s ease both;
}
.footer-section:nth-child(2) {
animation-delay: 0.08s;
}
.footer-section:nth-child(3) {
animation-delay: 0.16s;
}
.footer-section h4 {
font-size: 1rem;
font-weight: 700;
color: #ffffff;
}
.footer-section p {
color: rgba(255, 255, 255, 0.8);
font-size: 0.95rem;
}
.footer-links {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.footer-links a {
color: rgba(255, 255, 255, 0.8);
font-size: 0.95rem;
transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
color: #ffffff;
transform: translateX(4px);
}
.footer-bottom {
text-align: center;
padding-top: 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
margin: 0;
}
@keyframes footerEnter {
from {
opacity: 0;
transform: translateY(22px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes footerSectionRise {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes footerGlow {
0%,
100% {
transform: translateX(-12%);
opacity: 0.65;
}
50% {
transform: translateX(12%);
opacity: 0.95;
}
}
@media (prefers-reduced-motion: reduce) {
.site-footer,
.site-footer::before,
.footer-section,
.footer-links a {
animation: none;
transition: none;
}
body.footer-scroll-mode .site-footer,
body.footer-scroll-mode.footer-reveal .site-footer {
opacity: 1;
transform: none;
box-shadow: none;
}
}
@media (max-width: 700px) {
.footer-inner {
gap: 1.5rem;
}
.footer-content {
grid-template-columns: 1fr;
gap: 1.5rem;
}
}
</style>
</footer>
<!-- Mobile compatibility scripts -->
<script src="{{ url_for('static', filename='js/mobile_compatibility.js') }}"></script>
<script src="{{ url_for('static', filename='js/ios_fixes.js') }}"></script>
<script>
(function () {
var footer = document.querySelector(".site-footer");
if (!footer) {
return;
}
var body = document.body;
var reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)");
var ticking = false;
function updateFooterMode() {
ticking = false;
var maxScroll = Math.max(0, document.documentElement.scrollHeight - window.innerHeight);
body.classList.remove("footer-scroll-mode", "footer-reveal");
if (reduceMotion.matches || maxScroll < 140) {
return;
}
body.classList.add("footer-scroll-mode");
var currentScroll = window.scrollY || window.pageYOffset || 0;
var distanceToBottom = maxScroll - currentScroll;
var progress = maxScroll > 0 ? currentScroll / maxScroll : 1;
var shouldReveal = progress >= 0.78 || distanceToBottom <= 320;
body.classList.toggle("footer-reveal", shouldReveal);
}
function requestUpdate() {
if (ticking) {
return;
}
ticking = true;
window.requestAnimationFrame(updateFooterMode);
}
window.addEventListener("scroll", requestUpdate, { passive: true });
window.addEventListener("resize", requestUpdate);
window.addEventListener("load", requestUpdate);
if (typeof reduceMotion.addEventListener === "function") {
reduceMotion.addEventListener("change", requestUpdate);
} else if (typeof reduceMotion.addListener === "function") {
reduceMotion.addListener(requestUpdate);
}
requestUpdate();
})();
</script>
</body>
</html>