Initial commit - Help Service for Coolify
This commit is contained in:
370
templates/base.html
Normal file
370
templates/base.html
Normal file
@@ -0,0 +1,370 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de" data-bs-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}Hilfe{% endblock %} - Kurs-Booking</title>
|
||||
|
||||
<!-- Bootstrap 5 CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!-- Bootstrap Icons -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--kb-primary: #6366f1;
|
||||
--kb-primary-hover: #4f46e5;
|
||||
--kb-success: #22c55e;
|
||||
--kb-warning: #f59e0b;
|
||||
--kb-danger: #ef4444;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 280px;
|
||||
height: 100vh;
|
||||
background: rgba(30, 30, 46, 0.95);
|
||||
border-right: 1px solid rgba(255,255,255,0.1);
|
||||
overflow-y: auto;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.sidebar-brand {
|
||||
padding: 1.5rem;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.1);
|
||||
background: linear-gradient(135deg, var(--kb-primary), #8b5cf6);
|
||||
}
|
||||
|
||||
.sidebar-brand h4 {
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
.nav-section {
|
||||
padding: 0.5rem 1.5rem;
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: rgba(255,255,255,0.5);
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
padding: 0.6rem 1.5rem;
|
||||
color: rgba(255,255,255,0.8);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
transition: all 0.2s;
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
background: rgba(255,255,255,0.05);
|
||||
color: #fff;
|
||||
border-left-color: var(--kb-primary);
|
||||
}
|
||||
|
||||
.nav-link.active {
|
||||
background: rgba(99, 102, 241, 0.2);
|
||||
color: #fff;
|
||||
border-left-color: var(--kb-primary);
|
||||
}
|
||||
|
||||
.nav-link i {
|
||||
font-size: 1.1rem;
|
||||
width: 1.5rem;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin-left: 280px;
|
||||
padding: 2rem;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
padding: 1rem 1.5rem;
|
||||
}
|
||||
|
||||
.search-box .form-control {
|
||||
background: rgba(255,255,255,0.05);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.search-box .form-control:focus {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border-color: var(--kb-primary);
|
||||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
|
||||
}
|
||||
|
||||
.card {
|
||||
background: rgba(30, 30, 46, 0.8);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
background: rgba(255,255,255,0.05);
|
||||
border-bottom: 1px solid rgba(255,255,255,0.1);
|
||||
}
|
||||
|
||||
.topic-card {
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.topic-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 25px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
.badge-section {
|
||||
background: var(--kb-primary);
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.content-body h3 {
|
||||
color: var(--kb-primary);
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.content-body h4 {
|
||||
color: #a5b4fc;
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
|
||||
.content-body table {
|
||||
width: 100%;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.content-body table th,
|
||||
.content-body table td {
|
||||
padding: 0.75rem;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
}
|
||||
|
||||
.content-body table th {
|
||||
background: rgba(99, 102, 241, 0.2);
|
||||
}
|
||||
|
||||
.content-body code {
|
||||
background: rgba(99, 102, 241, 0.2);
|
||||
padding: 0.2rem 0.4rem;
|
||||
border-radius: 4px;
|
||||
color: #a5b4fc;
|
||||
}
|
||||
|
||||
.content-body pre {
|
||||
background: rgba(0,0,0,0.3);
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.content-body ul, .content-body ol {
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
.content-body li {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.tip-box {
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
border-left: 4px solid var(--kb-success);
|
||||
padding: 1rem;
|
||||
border-radius: 0 8px 8px 0;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.warning-box {
|
||||
background: rgba(245, 158, 11, 0.1);
|
||||
border-left: 4px solid var(--kb-warning);
|
||||
padding: 1rem;
|
||||
border-radius: 0 8px 8px 0;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.sidebar {
|
||||
transform: translateX(-100%);
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.sidebar.show {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.mobile-toggle {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-toggle {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
/* Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(255,255,255,0.2);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255,255,255,0.3);
|
||||
}
|
||||
|
||||
/* Sticky TOC Sidebar */
|
||||
.toc-sidebar {
|
||||
position: sticky;
|
||||
top: 2rem;
|
||||
max-height: calc(100vh - 4rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.toc-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.toc-link {
|
||||
display: block;
|
||||
padding: 0.4rem 0.75rem;
|
||||
color: rgba(255,255,255,0.7);
|
||||
text-decoration: none;
|
||||
font-size: 0.875rem;
|
||||
border-left: 2px solid transparent;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.toc-link:hover {
|
||||
color: #fff;
|
||||
background: rgba(255,255,255,0.05);
|
||||
}
|
||||
|
||||
.toc-link.active {
|
||||
color: var(--kb-primary);
|
||||
border-left-color: var(--kb-primary);
|
||||
background: rgba(99, 102, 241, 0.1);
|
||||
}
|
||||
|
||||
.toc-link-sub {
|
||||
padding-left: 1.5rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.toc-card {
|
||||
border: 1px solid rgba(99, 102, 241, 0.3);
|
||||
}
|
||||
|
||||
/* Smooth scroll */
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* Scroll offset for sticky header */
|
||||
[id] {
|
||||
scroll-margin-top: 1rem;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.toc-sidebar {
|
||||
position: static;
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Mobile Toggle -->
|
||||
<button class="btn btn-primary mobile-toggle" onclick="document.querySelector('.sidebar').classList.toggle('show')">
|
||||
<i class="bi bi-list"></i>
|
||||
</button>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<nav class="sidebar">
|
||||
<a href="/" class="sidebar-brand text-decoration-none text-white d-block">
|
||||
<h4><i class="bi bi-book me-2"></i>Kurs-Booking</h4>
|
||||
<small class="text-white-50">Hilfe & Dokumentation</small>
|
||||
</a>
|
||||
|
||||
<div class="search-box">
|
||||
<form action="/search" method="get">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text bg-transparent border-end-0">
|
||||
<i class="bi bi-search text-muted"></i>
|
||||
</span>
|
||||
<input type="text" name="q" class="form-control border-start-0"
|
||||
placeholder="Suchen..." value="{{ request.args.get('q', '') }}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="sidebar-nav">
|
||||
<a href="/" class="nav-link {% if request.path == '/' %}active{% endif %}">
|
||||
<i class="bi bi-house"></i>
|
||||
<span>Startseite</span>
|
||||
</a>
|
||||
|
||||
{% for section in content.sections %}
|
||||
<div class="nav-section">{{ section.title }}</div>
|
||||
{% for topic in section.topics %}
|
||||
<a href="/topic/{{ topic.id }}" class="nav-link {% if request.path == '/topic/' + topic.id %}active{% endif %}">
|
||||
<i class="bi bi-{{ topic.icon|default('file-text') }}"></i>
|
||||
<span>{{ topic.title }}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main class="main-content">
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
|
||||
<!-- Bootstrap JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<!-- Auto-scroll sidebar to active menu item -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const activeLink = document.querySelector('.sidebar .nav-link.active');
|
||||
if (activeLink) {
|
||||
activeLink.scrollIntoView({ block: 'center', behavior: 'instant' });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user