gd2-Startseite im neuen Design, Intern-Dashboard mit Statistiken
- gd2: Startseite neu gestaltet (Hero, Video-Beiträge, Top-Fragen, Frage des Tages, Promo-Zahlen); Inhalte sind noch Platzhalter im Code - intern: Dashboard mit Kennzahlen und Chart.js-Diagrammen (Folgen/Fragen pro Jahr, Kategorien, Einsender nach Stadt/Bundesland/Land, Team-Auftritte, Top-Löser, Zuschauer- vs. Archivfragen); Analyse und Folgenliste erweitert - intern: Count(..., distinct=True) bei Auftritten sowie Panel-/Fragen-Durchschnitt, sonst wurden die Werte durch den Join multipliziert (z. B. 41.730 statt 195) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
276289e207
commit
d1964947ef
7 files changed
+1067
-317
No files matched your search
+424
-128
@@ -1,160 +1,456 @@
|
||||
/* ==========================================================================
|
||||
1. VARIABLEN & BASICS
|
||||
========================================================================== */
|
||||
:root {
|
||||
--genial-orange: #f15a24;
|
||||
--genial-gradient: linear-gradient(135deg, #f15a24 0%, #ff922b 100%);
|
||||
--body-bg: #fceee4;
|
||||
--text-color: #333;
|
||||
--header-max-width: 1318px;
|
||||
--gd-orange: #f15a24;
|
||||
--gd-orange-deep: #d54b20;
|
||||
--gd-beige: #f6efe9;
|
||||
--gd-warm: #f1c58f;
|
||||
--gd-text: #2a1c1a;
|
||||
--gd-white: #fffaf6;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
background-color: var(--body-bg);
|
||||
color: var(--text-color);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow-x: hidden; /* Verhindert seitliches Scrollen durch Clip-Paths */
|
||||
margin: 0;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
background: #f3ece6;
|
||||
color: var(--gd-text);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
2. HEADER & HERO-SECTION
|
||||
========================================================================== */
|
||||
header {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background-color: var(--body-bg);
|
||||
img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
width: 100%;
|
||||
max-width: var(--header-max-width);
|
||||
background: var(--genial-gradient);
|
||||
position: relative;
|
||||
color: white;
|
||||
overflow: hidden;
|
||||
z-index: 0;
|
||||
padding-bottom: 120px;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
||||
button, a {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.top-banner-bg {
|
||||
background: url('../img/header.png') no-repeat top center;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
height: 221px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
.site-header {
|
||||
width: 100%;
|
||||
background: #f3ece6;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
/* Untere organische Kurve */
|
||||
.hero-section::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: -1px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
background-color: var(--body-bg);
|
||||
clip-path: ellipse(60% 100% at 50% 100%);
|
||||
z-index: 2;
|
||||
.header-banner {
|
||||
width: 100%;
|
||||
min-height: 420px;
|
||||
background: url('/static/gd/img/header_full.png') center top / cover no-repeat;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
box-shadow: inset 0 -22px 0 rgba(255,255,255,0.18);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
3. NAVIGATION & TICKER
|
||||
========================================================================== */
|
||||
.navbar {
|
||||
position: absolute;
|
||||
top: 45px;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
.header-brand-wrap {
|
||||
width: min(100%, 1280px);
|
||||
margin: 0 auto;
|
||||
padding-top: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.header-marquee {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
/* <u>Optimierung:</u> Flexiblere Positionierung */
|
||||
left: 21%;
|
||||
right: 2px;
|
||||
color: white;
|
||||
font-size: 0.85rem;
|
||||
padding: 5px 0;
|
||||
z-index: 15;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 2% 100%);
|
||||
.brand-logo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-width: 260px;
|
||||
padding-left: 12px;
|
||||
color: #fff;
|
||||
text-shadow: 0 2px 12px rgba(0,0,0,0.18);
|
||||
line-height: 0.82;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
4. KOMPONENTEN (CARDS, BUTTONS)
|
||||
========================================================================== */
|
||||
|
||||
/* <u>Glassmorphismus Card</u> */
|
||||
.glass-card {
|
||||
background: rgba(255, 255, 255, 0.6) !important;
|
||||
backdrop-filter: blur(15px);
|
||||
-webkit-backdrop-filter: blur(15px);
|
||||
border-radius: 30px !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3) !important;
|
||||
transition: all 0.3s ease;
|
||||
.brand-genial {
|
||||
font-weight: 900;
|
||||
font-size: clamp(2.5rem, 3vw, 4.1rem);
|
||||
letter-spacing: -0.05em;
|
||||
}
|
||||
|
||||
.section-header-orange {
|
||||
background: var(--genial-gradient);
|
||||
color: white;
|
||||
padding: 12px 25px;
|
||||
border-radius: 15px 15px 0 0;
|
||||
/* <u>Korrektur:</u> Margin-Ausgleich für Card-Padding */
|
||||
margin: -25px -25px 20px -25px;
|
||||
.brand-daneben {
|
||||
font-weight: 900;
|
||||
font-size: clamp(2.3rem, 2.6vw, 3.7rem);
|
||||
letter-spacing: -0.05em;
|
||||
margin-top: -4px;
|
||||
}
|
||||
|
||||
/* <u>Buttons</u> */
|
||||
.btn-pill {
|
||||
border-radius: 50px !important;
|
||||
padding: 10px 30px !important;
|
||||
font-weight: 700 !important;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.9rem;
|
||||
.header-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 2.1rem;
|
||||
background: rgba(255,255,255,0.12);
|
||||
border-radius: 20px 20px 0 0;
|
||||
padding: 0.8rem 1rem 0.9rem;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
|
||||
.btn-genial {
|
||||
background: var(--genial-gradient);
|
||||
color: white !important;
|
||||
border: none !important;
|
||||
box-shadow: 0 4px 15px rgba(241, 90, 36, 0.2);
|
||||
transition: all 0.2s ease;
|
||||
.header-nav a {
|
||||
color: rgba(255,255,255,0.96);
|
||||
text-decoration: none;
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
position: relative;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.btn-genial:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 25px rgba(241, 90, 36, 0.4);
|
||||
filter: brightness(1.1);
|
||||
.header-nav a.active::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: -10px;
|
||||
height: 3px;
|
||||
background: var(--gd-orange);
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
5. RESPONSIVITÄT
|
||||
========================================================================== */
|
||||
@media (max-width: 1318px) {
|
||||
.top-banner-bg {
|
||||
height: 16.7vw; /* Hält das Seitenverhältnis */
|
||||
}
|
||||
|
||||
.header-marquee {
|
||||
left: 5%; /* Mehr Platz auf kleineren Screens */
|
||||
width: 90%;
|
||||
}
|
||||
.header-cta {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(135deg, #f06a2b 0%, #f6a443 100%);
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-weight: 800;
|
||||
padding: 1rem 1.6rem;
|
||||
border-radius: 999px;
|
||||
box-shadow: 0 12px 25px rgba(241, 90, 36, 0.24);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.landing-content {
|
||||
margin-top: -24px;
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.media-card {
|
||||
background: rgba(255,255,255,0.7);
|
||||
border-radius: 28px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255,255,255,0.28);
|
||||
box-shadow: 0 18px 28px rgba(29, 17, 12, 0.11);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.media-thumb-wrap {
|
||||
position: relative;
|
||||
height: 250px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.media-thumb-wrap img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.media-play {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.media-play span {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
border-radius: 50%;
|
||||
background: rgba(241, 90, 36, 0.9);
|
||||
display: block;
|
||||
position: relative;
|
||||
box-shadow: 0 16px 30px rgba(241, 90, 36, 0.38);
|
||||
}
|
||||
|
||||
.media-play span::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 29px;
|
||||
top: 22px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 12px solid transparent;
|
||||
border-bottom: 12px solid transparent;
|
||||
border-left: 20px solid white;
|
||||
}
|
||||
|
||||
.media-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 1rem 1.2rem 1.1rem;
|
||||
background: rgba(255,255,255,0.72);
|
||||
}
|
||||
|
||||
.media-meta small {
|
||||
display: block;
|
||||
color: #7a675f;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.media-meta h3 {
|
||||
margin: 0.35rem 0 0.2rem;
|
||||
font-size: 1.05rem;
|
||||
font-weight: 800;
|
||||
color: #201614;
|
||||
}
|
||||
|
||||
.media-meta p {
|
||||
margin: 0;
|
||||
color: #71615d;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.mini-play {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: #f4ece6;
|
||||
color: var(--gd-orange);
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.popular-panel {
|
||||
background: rgba(255,255,255,0.7);
|
||||
border: 1px solid rgba(255,255,255,0.4);
|
||||
border-radius: 28px;
|
||||
padding: 1.4rem 1.3rem 1rem;
|
||||
box-shadow: 0 18px 28px rgba(29, 17, 12, 0.11);
|
||||
}
|
||||
|
||||
.popular-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.popular-head h2 {
|
||||
margin: 0;
|
||||
font-size: clamp(2rem, 2.3vw, 2.6rem);
|
||||
font-weight: 900;
|
||||
color: #201614;
|
||||
}
|
||||
|
||||
.popular-head span {
|
||||
padding: 0.5rem 0.8rem;
|
||||
border-radius: 999px;
|
||||
background: rgba(241, 90, 36, 0.08);
|
||||
color: var(--gd-orange);
|
||||
font-weight: 800;
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.question-box {
|
||||
background: white;
|
||||
border-radius: 18px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 1rem;
|
||||
border: 1px solid rgba(244, 203, 181, 0.7);
|
||||
}
|
||||
|
||||
.question-tag {
|
||||
background: linear-gradient(135deg, #f0672c 0%, #f4a749 100%);
|
||||
color: white;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
padding: 0.7rem 1rem;
|
||||
}
|
||||
|
||||
.question-body {
|
||||
padding: 1rem 1rem 1.15rem;
|
||||
}
|
||||
|
||||
.question-body h4 {
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: 1rem;
|
||||
line-height: 1.4;
|
||||
font-weight: 800;
|
||||
color: #201614;
|
||||
}
|
||||
|
||||
.question-body p {
|
||||
margin: 0;
|
||||
color: #73615f;
|
||||
line-height: 1.6;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.popular-actions {
|
||||
text-align: center;
|
||||
margin-top: 1.4rem;
|
||||
}
|
||||
|
||||
.primary-btn {
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(135deg, #ef5d2b 0%, #f8b24d 100%);
|
||||
color: white;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
padding: 0.9rem 1.5rem;
|
||||
box-shadow: 0 14px 24px rgba(239, 93, 43, 0.22);
|
||||
}
|
||||
|
||||
.promo-wrap {
|
||||
margin-top: 2.6rem;
|
||||
}
|
||||
|
||||
.promo-box {
|
||||
background: linear-gradient(135deg, #f15a24 0%, #ff9b2d 100%);
|
||||
color: white;
|
||||
border-radius: 32px;
|
||||
padding: 2rem 1.4rem;
|
||||
box-shadow: 0 20px 30px rgba(241, 90, 36, 0.22);
|
||||
}
|
||||
|
||||
.promo-label {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 800;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.promo-question-col h3 {
|
||||
margin: 0 0 1.4rem;
|
||||
font-size: clamp(1.7rem, 2vw, 2.5rem);
|
||||
line-height: 1.2;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.answer-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(140px, 1fr));
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.answer-btn {
|
||||
border: none;
|
||||
border-radius: 18px;
|
||||
padding: 0.9rem 0.7rem;
|
||||
background: rgba(255,255,255,0.9);
|
||||
color: var(--gd-text);
|
||||
font-weight: 800;
|
||||
box-shadow: inset 0 -2px 0 rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.answer-btn.correct {
|
||||
background: #fff7e8;
|
||||
border: 2px solid rgba(255,255,255,0.8);
|
||||
}
|
||||
|
||||
.promo-image-col {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.promo-image-col img {
|
||||
width: min(100%, 400px);
|
||||
margin: 0 auto 1rem;
|
||||
border-radius: 24px;
|
||||
background: rgba(255,255,255,0.12);
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.promo-image-col p {
|
||||
margin: 0;
|
||||
font-weight: 800;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.stats-wrap {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.stat-box {
|
||||
background: rgba(255,255,255,0.72);
|
||||
border-radius: 24px;
|
||||
padding: 1.5rem 1rem;
|
||||
text-align: center;
|
||||
box-shadow: 0 12px 24px rgba(29,17,12,0.08);
|
||||
}
|
||||
|
||||
.stat-number {
|
||||
font-size: clamp(2rem, 2vw, 2.8rem);
|
||||
font-weight: 900;
|
||||
color: #211714;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(32,23,20,0.75);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.header-brand-wrap {
|
||||
gap: 0.7rem;
|
||||
}
|
||||
|
||||
.header-nav {
|
||||
gap: 1.1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.hero-section {
|
||||
padding-bottom: 60px;
|
||||
}
|
||||
.btn-pill {
|
||||
padding: 8px 20px !important;
|
||||
}
|
||||
.header-banner {
|
||||
min-height: 270px;
|
||||
}
|
||||
|
||||
.header-brand-wrap {
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
min-width: auto;
|
||||
text-align: center;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.header-nav {
|
||||
order: 3;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
gap: 1.2rem;
|
||||
}
|
||||
|
||||
.header-cta {
|
||||
padding: 0.8rem 1rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.landing-content {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.answer-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
+69
-152
@@ -1,186 +1,103 @@
|
||||
{% extends 'gd2/base.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
<header>
|
||||
<div class="hero-section">
|
||||
<div class="top-banner-bg"></div>
|
||||
|
||||
<div class="header-marquee">
|
||||
<marquee behavior="scroll" direction="left">
|
||||
+++ Willkommen bei Genial Daneben +++ Sende uns jetzt deine schrägste Frage ein! +++ Jeden Freitag / Samstag neue Folgen: 20:15 Uhr *** SAT1 +++
|
||||
</marquee>
|
||||
</div>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||
<div class="container">
|
||||
<a class="navbar-brand fw-bold" href="#" style="font-size: 1.3rem; line-height: 1.1; text-shadow: 2px 2px 4px rgba(0,0,0,0.4);">
|
||||
GENIAL <br> <span style="padding-left: 5px;">DANEBEN</span>
|
||||
</a>
|
||||
|
||||
<div class="ms-auto d-flex align-items-center">
|
||||
<ul class="navbar-nav d-none d-md-flex flex-row gap-3 me-4">
|
||||
<li class="nav-item"><a class="nav-link active fw-bold text-white" href="#" style="border-bottom: 2px solid white;">Start</a></li>
|
||||
<li class="nav-item"><a class="nav-link text-white" href="#">Videos</a></li>
|
||||
<li class="nav-item"><a class="nav-link text-white" href="#">Archiv</a></li>
|
||||
<li class="nav-item"><a class="nav-link text-white" href="#">FAQs</a></li>
|
||||
</ul>
|
||||
<a href="#" class="btn btn-pill btn-genial" style="background: #ff4500; border: 2px solid white; font-size: 0.9rem;">
|
||||
Deine Frage einsenden
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container" style="padding-top: 240px; position: relative; z-index: 5;">
|
||||
<div class="row">
|
||||
<div class="col-lg-10">
|
||||
<h1 class="display-4 fw-bold mb-3 text-white">
|
||||
Die Comedy-Quizshow <br> mit den schrägsten Fragen!
|
||||
</h1>
|
||||
<p class="lead mb-4 text-white opacity-90">
|
||||
Schaltet ein und seht, ob das Panel <br>
|
||||
die unglaublichsten Fragen beantworten kann.
|
||||
</p>
|
||||
<button class="btn btn-pill btn-genial shadow-lg px-5">
|
||||
Aktuelle Folge ansehen
|
||||
</button>
|
||||
</div>
|
||||
<header class="site-header">
|
||||
<div class="header-banner">
|
||||
<div class="header-brand-wrap">
|
||||
<div class="brand-logo">
|
||||
<span class="brand-genial">Genial</span>
|
||||
<span class="brand-daneben">daneben</span>
|
||||
</div>
|
||||
<nav class="header-nav" aria-label="Hauptnavigation">
|
||||
<a href="#" class="active">Start</a>
|
||||
<a href="#">Videos</a>
|
||||
<a href="#">Archiv</a>
|
||||
<a href="#">FAQs</a>
|
||||
</nav>
|
||||
<a href="#" class="header-cta">Deine Frage einsenden</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- <header class="hero-section">
|
||||
<div class="top-banner-bg"></div>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||
<div class="container">
|
||||
<a class="navbar-brand fw-bold" href="#" style="font-size: 1.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3);">
|
||||
GENIAL <br> <span style="margin-left: 10px;">DANEBEN</span>
|
||||
</a>
|
||||
|
||||
<div class="ms-auto d-flex align-items-center">
|
||||
<ul class="navbar-nav d-none d-md-flex flex-row gap-3 me-4">
|
||||
<li class="nav-item"><a class="nav-link active" href="#">Start</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Videos</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Archiv</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">FAQs</a></li>
|
||||
</ul>
|
||||
<a href="#" class="btn btn-pill btn-genial" style="background: #ff4500; border: 2px solid white;">
|
||||
Deine Frage einsenden
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container mt-4 pt-5 pb-5">
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<h1 class="display-3 fw-bold mb-3 text-white">Die Comedy-Quizshow <br> mit den schrägsten Fragen!</h1>
|
||||
<p class="lead mb-4 text-white">Schaltet ein und seht, ob das Panel die unglaublichsten Fragen beantworten kann.</p>
|
||||
<button class="btn btn-pill btn-genial shadow-lg px-5">Aktuelle Folge ansehen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header> -->
|
||||
|
||||
<main class="container" style="margin-top: -60px; position: relative; z-index: 10;">
|
||||
<main class="container landing-content">
|
||||
<div class="row g-4">
|
||||
|
||||
<div class="col-lg-5">
|
||||
<div class="card glass-card p-0 overflow-hidden mb-4 border-0 shadow-lg">
|
||||
<div class="position-relative">
|
||||
<img src="https://via.placeholder.com/600x350" class="card-img-top" alt="Show 1">
|
||||
<div class="position-absolute top-50 start-50 translate-middle">
|
||||
<div class="bg-danger rounded-circle p-3 play-btn">
|
||||
<div class="play-icon"></div>
|
||||
</div>
|
||||
{% for video in video_posts %}
|
||||
<article class="media-card">
|
||||
<div class="media-thumb-wrap">
|
||||
<img src="{{ video.bild_url }}" alt="{{ video.titel }}">
|
||||
<div class="media-play" aria-label="Video abspielen">
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-3 bg-white d-flex justify-content-between align-items-center">
|
||||
<div class="media-meta">
|
||||
<div>
|
||||
<small class="text-muted">19. Jan, 2023</small>
|
||||
<h5 class="card-title fw-bold mt-1 mb-0">Diether Krebs</h5>
|
||||
<p class="card-text small text-muted">Lustige Quizshows</p>
|
||||
</div>
|
||||
<div class="bg-light rounded-circle p-2">
|
||||
<div class="play-icon-small"></div>
|
||||
<small>{{ video.datum }}</small>
|
||||
<h3>{{ video.titel }}</h3>
|
||||
<p>{{ video.kategorie }}</p>
|
||||
</div>
|
||||
<button class="mini-play" aria-label="Abspielen">▶</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card glass-card p-0 overflow-hidden border-0 shadow-lg">
|
||||
<div class="position-relative">
|
||||
<img src="https://via.placeholder.com/600x350" class="card-img-top" alt="Show 2">
|
||||
<div class="position-absolute top-50 start-50 translate-middle">
|
||||
<div class="bg-danger rounded-circle p-3 play-btn">
|
||||
<div class="play-icon"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-3 bg-white d-flex justify-content-between align-items-center">
|
||||
<div>
|
||||
<small class="text-muted">12. Jan, 2023</small>
|
||||
<h5 class="card-title fw-bold mt-1 mb-0">Oliver Welke</h5>
|
||||
<p class="card-text small text-muted">Kuriose Raterunden</p>
|
||||
</div>
|
||||
<div class="bg-light rounded-circle p-2">
|
||||
<div class="play-icon-small"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-7">
|
||||
<div class="glass-card p-4 h-100 shadow-lg bg-white-opacity-70">
|
||||
<h2 class="fw-bold mb-4">Beliebt</h2>
|
||||
|
||||
<div class="mb-4 shadow-sm border rounded-4 overflow-hidden bg-white">
|
||||
<div class="section-header-orange">
|
||||
<span class="fw-bold">Resten Folgen</span>
|
||||
</div>
|
||||
<div class="p-3">
|
||||
<h6 class="fw-bold">Warum haben Kellner beim Weineinschenken die linke Hand auf dem Rücken?</h6>
|
||||
<p class="small text-muted mb-0">weil früher den Weinsklaven in Rom die linke Hand auf den Rücken gebunden wurde, damit sie kein Gift ins Glas schütten konnten.</p>
|
||||
</div>
|
||||
<section class="popular-panel">
|
||||
<div class="popular-head">
|
||||
<h2>Beliebt</h2>
|
||||
<span>Top Fragen</span>
|
||||
</div>
|
||||
|
||||
<div class="mb-4 shadow-sm border rounded-4 overflow-hidden bg-white">
|
||||
<div class="section-header-orange">
|
||||
<span class="fw-bold">Besten Fragen</span>
|
||||
{% for item in top_fragen %}
|
||||
<article class="question-box">
|
||||
<div class="question-tag">{{ item.bereich }}</div>
|
||||
<div class="question-body">
|
||||
<h4>{{ item.frage }}</h4>
|
||||
<p>{{ item.antwort_kurz }}</p>
|
||||
</div>
|
||||
<div class="p-3">
|
||||
<h6 class="fw-bold">Warum nennt man die Toiletten auch „00“?</h6>
|
||||
<p class="small text-muted mb-0">ein Hotelier hatte die Toiletten in seinem Hotel durchnummeriert und konnte schlecht Nummern wie z.B. 58 für Toiletten vergeben. Daher gab er ihnen die erste Nummer: „00“</p>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
||||
<div class="text-center mt-4">
|
||||
<button class="btn btn-pill btn-genial px-5">Mehr unglaubliche Fragen</button>
|
||||
<div class="popular-actions">
|
||||
<button class="primary-btn">Mehr unglaubliche Fragen</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<section class="container my-5 pt-5 pb-5">
|
||||
<div class="glass-card p-4 shadow-lg" style="background: linear-gradient(135deg, #f15a24 0%, #ff922b 100%); color: white;">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-6 text-center border-md-end border-white border-opacity-25 px-md-5">
|
||||
<h3 class="fw-bold mb-4">💡 Frage des Tages</h3>
|
||||
<p class="fs-5 mb-4">Wie nennt man die Schuhe, die man durch Schnüren oder Binden verschließt?</p>
|
||||
<div class="row g-2">
|
||||
<div class="col-6"><button class="btn btn-light w-100 btn-pill fw-bold text-dark">Filp-Flops</button></div>
|
||||
<div class="col-6"><button class="btn btn-light w-100 btn-pill fw-bold text-dark">Mokassins</button></div>
|
||||
<div class="col-6"><button class="btn btn-light w-100 btn-pill fw-bold text-dark">Sandalen</button></div>
|
||||
<div class="col-6"><button class="btn btn-light w-100 btn-pill fw-bold text-dark">Schnürschuhe</button></div>
|
||||
<section class="container promo-wrap">
|
||||
<div class="promo-box">
|
||||
<div class="row align-items-center g-4">
|
||||
<div class="col-md-6 promo-question-col">
|
||||
<div class="promo-label">💡 Frage des Tages</div>
|
||||
<h3>{{ daily_question.frage }}</h3>
|
||||
<div class="answer-grid">
|
||||
{% for answer in daily_question.antworten %}
|
||||
<button class="answer-btn {% if answer == daily_question.correct_answer %}correct{% endif %}">{{ answer }}</button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 mt-4 mt-md-0 text-center">
|
||||
<img src="https://via.placeholder.com/500x300" class="img-fluid rounded-4 shadow-lg border border-3 border-white" alt="Team">
|
||||
<p class="mt-3 mb-0 fw-bold opacity-75">Noch mehr verrückte Fragen?</p>
|
||||
<div class="col-md-6 promo-image-col">
|
||||
<img src="{% static 'gd2/img/logo.png' %}" alt="Genial Daneben Logo">
|
||||
<p>Noch mehr verrückte Fragen?</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container stats-wrap">
|
||||
<div class="row g-3">
|
||||
{% for stat in promo_stats %}
|
||||
<div class="col-md-4">
|
||||
<div class="stat-box">
|
||||
<div class="stat-number">{{ stat.value }}</div>
|
||||
<div class="stat-label">{{ stat.label }}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
+29
-11
@@ -1,37 +1,55 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
|
||||
def home_view(request):
|
||||
# Hier bereiten wir die Daten vor, die später aus der DB kommen könnten
|
||||
# So bleibt dein Template sauber und dynamisch.
|
||||
|
||||
context = {
|
||||
'video_posts': [
|
||||
{
|
||||
'datum': '19. Jan, 2023',
|
||||
'titel': 'Diether Krebs',
|
||||
'kategorie': 'Lustige Quizshows',
|
||||
'bild_url': 'https://via.placeholder.com/600x350'
|
||||
'bild_url': 'https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&w=900&q=80',
|
||||
},
|
||||
{
|
||||
'datum': '12. Jan, 2023',
|
||||
'titel': 'Oliver Welke',
|
||||
'kategorie': 'Kuriose Raterunden',
|
||||
'bild_url': 'https://via.placeholder.com/600x350'
|
||||
'bild_url': 'https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=900&q=80',
|
||||
},
|
||||
{
|
||||
'datum': '26. Dez, 2022',
|
||||
'titel': 'Die verrücktesten Fragen',
|
||||
'kategorie': 'Highlights',
|
||||
'bild_url': 'https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80',
|
||||
},
|
||||
],
|
||||
'top_fragen': [
|
||||
{
|
||||
'bereich': 'Beste Folgen',
|
||||
'frage': 'Warum haben Kellner beim Weineinschenken die linke Hand auf dem Rücken?',
|
||||
'antwort_kurz': 'Weil früher den Weinsklaven in Rom die linke Hand...'
|
||||
'antwort_kurz': 'Weil früher den Weinsklaven in Rom die linke Hand auf den Rücken gebunden wurde, damit sie kein Gift ins Glas schütten konnten.',
|
||||
},
|
||||
{
|
||||
'bereich': 'Besten Fragen',
|
||||
'frage': 'Warum nennt man die Toiletten auch "00"?',
|
||||
'antwort_kurz': 'Ein Hotelier hatte die Toiletten in seinem Hotel...'
|
||||
}
|
||||
]
|
||||
'antwort_kurz': 'Ein Hotelier hatte die Toiletten in seinem Hotel durchnummeriert und vergab die Nummern nur für einzelne Räume. Daher blieb die erste Zahl als "00" übrig.',
|
||||
},
|
||||
],
|
||||
'daily_question': {
|
||||
'frage': 'Wie nennt man die Schuhe, die man durch Schnüren oder Binden verschließt?',
|
||||
'antworten': [
|
||||
'Flip-Flops',
|
||||
'Mokassins',
|
||||
'Sandalen',
|
||||
'Schnürschuhe',
|
||||
],
|
||||
'correct_answer': 'Schnürschuhe',
|
||||
},
|
||||
'promo_stats': [
|
||||
{'label': 'Folgen', 'value': '120+'},
|
||||
{'label': 'Fragen', 'value': '8000+'},
|
||||
{'label': 'Panel', 'value': '24'},
|
||||
],
|
||||
}
|
||||
|
||||
# Wichtig: Pfad ist 'gd2/home.html', da home im Unterordner liegt
|
||||
|
||||
return render(request, 'gd2/home.html', context)
|
||||
Reference in new issue
Block a user