Compare commits
2 Commits
a0095a993a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ba1d36b71a | |||
| c27a054497 |
@@ -1,51 +1,26 @@
|
|||||||
:root {
|
/* Bootstrap Dark Mode aktivieren */
|
||||||
--bg: #0f1724; /* dunkler Hintergrund, wiki-ähnlich */
|
:root, [data-bs-theme=dark] {
|
||||||
--card: #0b1530;
|
--bs-body-bg: #0f1724; /* Hintergrund */
|
||||||
--accent: #ffcc33; /* Akzentfarbe */
|
--bs-body-color: #e6eef8; /* Textfarbe */
|
||||||
--muted: #9aa4b2;
|
--bs-border-color: rgba(255,255,255,0.1);
|
||||||
--text: #e6eef8;
|
--bs-link-color: #ffcc33;
|
||||||
--glass: rgba(255, 255, 255, 0.03);
|
--bs-link-hover-color: #ffdb66;
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
/* Deine Custom-Werte */
|
||||||
box-sizing: border-box
|
--accent: #ffcc33;
|
||||||
}
|
|
||||||
|
|
||||||
html, body {
|
|
||||||
height: 100%
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
|
|
||||||
background: linear-gradient(180deg, #071022 0%, #0b1230 60%);
|
|
||||||
color: var(--text);
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
line-height: 1.45;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Container */
|
/* Container */
|
||||||
.wrap {
|
.wrap {
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
margin: 28px auto;
|
margin: 28px auto;
|
||||||
padding: 20px
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Topbar */
|
/* Topbar */
|
||||||
header.topbar {
|
header.topbar {
|
||||||
display: flex;
|
@extend .d-flex, .align-items-center, .justify-content-between, .rounded-3, .p-3;
|
||||||
align-items: center;
|
background: var(--bs-dark-bg-subtle, rgba(255,255,255,0.05));
|
||||||
justify-content: space-between;
|
|
||||||
padding: 12px 18px;
|
|
||||||
background: var(--glass);
|
|
||||||
border-radius: 12px
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand {
|
|
||||||
display: flex;
|
|
||||||
gap: 12px;
|
|
||||||
align-items: center
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
@@ -57,27 +32,7 @@ header.topbar {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: #081022
|
color: #081022;
|
||||||
}
|
|
||||||
|
|
||||||
.brand h1 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 1.05rem
|
|
||||||
}
|
|
||||||
|
|
||||||
.search {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px
|
|
||||||
}
|
|
||||||
|
|
||||||
.search input {
|
|
||||||
padding: 8px 12px;
|
|
||||||
border-radius: 999px;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
||||||
background: transparent;
|
|
||||||
color: var(--text);
|
|
||||||
outline: none
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Layout */
|
/* Layout */
|
||||||
@@ -85,76 +40,26 @@ header.topbar {
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 320px;
|
grid-template-columns: 1fr 320px;
|
||||||
gap: 18px;
|
gap: 18px;
|
||||||
margin-top: 18px
|
margin-top: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main.card {
|
main.card, aside.sidebar {
|
||||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
|
background: var(--bs-dark-bg-subtle, rgba(255,255,255,0.05));
|
||||||
padding: 18px;
|
padding: 18px;
|
||||||
border-radius: 12px
|
|
||||||
}
|
|
||||||
|
|
||||||
aside.sidebar {
|
|
||||||
background: var(--card);
|
|
||||||
padding: 16px;
|
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
height: fit-content
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Article */
|
|
||||||
h2.title {
|
|
||||||
margin-top: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
.meta {
|
|
||||||
color: var(--muted);
|
|
||||||
font-size: 0.9rem;
|
|
||||||
margin-bottom: 10px
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hero */
|
||||||
.hero {
|
.hero {
|
||||||
height: 180px;
|
height: 180px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
overflow: hidden
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cards */
|
/* Helpers */
|
||||||
.card-row {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 12px
|
|
||||||
}
|
|
||||||
|
|
||||||
.mini-card {
|
|
||||||
flex: 1 1 160px;
|
|
||||||
background: rgba(255, 255, 255, 0.02);
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 10px
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Footer */
|
|
||||||
footer {
|
|
||||||
margin-top: 24px;
|
|
||||||
text-align: center;
|
|
||||||
color: var(--muted);
|
|
||||||
font-size: 0.9rem
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Responsive */
|
|
||||||
@media (max-width: 880px) {
|
|
||||||
.grid {
|
|
||||||
grid-template-columns:1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search {
|
|
||||||
display: none
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Small helpers */
|
|
||||||
a.button {
|
a.button {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
@@ -162,11 +67,22 @@ a.button {
|
|||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
color: #081022;
|
color: #081022;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: 600
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a {
|
nav a {
|
||||||
color: var(--muted);
|
color: var(--bs-secondary-color);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin-right: 12px
|
margin-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Responsive */
|
||||||
|
@media (max-width: 880px) {
|
||||||
|
.grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="de">
|
<html lang="de" data-bs-theme=dark>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
@@ -7,13 +7,11 @@
|
|||||||
<meta name="description"
|
<meta name="description"
|
||||||
content="{% block description %}Fandom-Seite für {{ site_name or 'ein Spiel' }}{% endblock %}">
|
content="{% block description %}Fandom-Seite für {{ site_name or 'ein Spiel' }}{% endblock %}">
|
||||||
|
|
||||||
<!-- Google Font (optional) -->
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
<link rel="stylesheet" href="/static/css/style.css">
|
<link rel="stylesheet" href="/static/css/style.css">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap" rel="stylesheet">
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||||
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
|
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
|
||||||
<!-- Basis-CSS (kleines, leichtes Fandom-Look) -->
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -22,7 +20,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<header class="topbar">
|
<header class="topbar d-flex justify-content-between p-3">
|
||||||
<div class="brand">
|
<div class="brand">
|
||||||
<div class="logo">GF</div>
|
<div class="logo">GF</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -32,10 +30,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="search" role="search">
|
<div class="search m-2 d-flex align-items-end" role="search">
|
||||||
|
<div>
|
||||||
|
{% block login_logout %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<form action="{{ url_for('search') }}" method="get">
|
<form action="{{ url_for('search') }}" method="get">
|
||||||
<input name="q" placeholder="Suche Artikel, Charaktere, Items..." aria-label="Suche"
|
<input name="q" placeholder="Suche Artikel, Charaktere, Items..." aria-label="Suche"
|
||||||
value="{{ request.args.get('q','') }}">
|
value="{{ request.args.get('q','') }}" class="form-control">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@@ -45,7 +49,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<main class="card">
|
<main class="card border-0">
|
||||||
{% block hero %}
|
{% block hero %}
|
||||||
<div class="hero"
|
<div class="hero"
|
||||||
style="background-image: url('{{ url_for('static', filename='images/hero.jpg') }}');"></div>
|
style="background-image: url('{{ url_for('static', filename='images/hero.jpg') }}');"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user