New Functionalities & Addons
This commit is contained in:
1 parent
74fe9c7b90
commit
2f1dac4c09
55 files changed
+4415
-316
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class Gd2Config(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'gd2'
|
||||
Whitespace-only changes.
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
@@ -0,0 +1,139 @@
|
||||
:root {
|
||||
--page-max-width: 1440px;
|
||||
--content-width: 1318px;
|
||||
--header-height: 221px;
|
||||
--bg-color: #f8eeea;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-color);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Segoe UI', Roboto, Arial, sans-serif;
|
||||
}
|
||||
|
||||
.site-container {
|
||||
max-width: var(--page-max-width);
|
||||
margin: 0 auto;
|
||||
background-color: var(--bg-color);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.content-wrapper {
|
||||
width: var(--content-width);
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* --- Header Sektion --- */
|
||||
.gd-header {
|
||||
width: var(--content-width);
|
||||
height: var(--header-height);
|
||||
background: url('../img/header.png') no-repeat center top;
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
.gd-logo-link {
|
||||
position: absolute;
|
||||
/* Positionierung im roten Bereich */
|
||||
left: 25px;
|
||||
top: 20px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.gd-logo-img {
|
||||
/* Größe reduziert für eine bessere Optik */
|
||||
height: auto;
|
||||
width: 213px;
|
||||
left: 20px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
/* Neuer CSS-Marquee Ersatz */
|
||||
.gd-marquee-container {
|
||||
position: absolute;
|
||||
left: 285px;
|
||||
top: 5px;
|
||||
width: 1030px;
|
||||
height: 30px;
|
||||
overflow: hidden; /* Versteckt den Text außerhalb des Bereichs */
|
||||
white-space: nowrap;
|
||||
|
||||
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 2% 100%);
|
||||
}
|
||||
|
||||
.gd-marquee-text {
|
||||
display: inline-block;
|
||||
padding-left: 100%; /* Startet rechts außerhalb */
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
font-size: 1.00rem;
|
||||
animation: marquee-scroll 30s linear infinite;
|
||||
}
|
||||
|
||||
/* Stoppt die Animation exakt dort, wo sie ist */
|
||||
.gd-marquee-container:hover .gd-marquee-text {
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
@keyframes marquee-scroll {
|
||||
0% { transform: translateX(0); }
|
||||
100% { transform: translateX(-100%); }
|
||||
}
|
||||
|
||||
.gd-nav {
|
||||
position: absolute;
|
||||
right: 50px;
|
||||
top: 35px;
|
||||
display: flex;
|
||||
gap: 25px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.gd-nav-link {
|
||||
color: #4b2a1a;
|
||||
text-decoration: none;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
/* --- Main Content --- */
|
||||
.main-content {
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
.hero-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.hero-image-side {
|
||||
flex: 0 0 800px;
|
||||
}
|
||||
|
||||
.hero-text-side {
|
||||
flex: 1;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: 2.8rem;
|
||||
font-weight: 800;
|
||||
color: #222;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
/* --- Footer --- */
|
||||
.footer-wave {
|
||||
width: var(--content-width);
|
||||
margin: 20px auto 60px auto;
|
||||
}
|
||||
|
||||
.footer-wave img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 154 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
@@ -0,0 +1 @@
|
||||
test base
|
||||
@@ -0,0 +1,78 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Genial Daneben - Archiv</title>
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'gd2/css/style.css' %}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="site-container">
|
||||
|
||||
<div class="content-wrapper">
|
||||
|
||||
<header class="gd-header">
|
||||
<a href="{% url 'gd2:index' %}" class="gd-logo-link">
|
||||
<img src="{% static 'gd2/img/logo.png' %}" alt="Genial Daneben Logo" class="gd-logo-img">
|
||||
</a>
|
||||
|
||||
<div class="gd-marquee-container">
|
||||
<span class="gd-marquee-text">
|
||||
+++ Willkommen im Archiv +++ Entdecke die Welt von Genial Daneben +++ Jetzt stöbern +++
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<nav class="gd-nav">
|
||||
<a href="#" class="gd-nav-link">Folgen</a>
|
||||
<a href="#" class="gd-nav-link">Personen</a>
|
||||
|
||||
<button class="btn btn-link p-0 text-dark" id="searchBtn" title="Suche öffnen">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
|
||||
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
|
||||
</svg>
|
||||
</button>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="main-content">
|
||||
<div class="hero-row">
|
||||
<div class="hero-image-side">
|
||||
<div id="gdHeroCarousel" class="carousel slide shadow-lg rounded-4 overflow-hidden" data-bs-ride="carousel">
|
||||
<div class="carousel-inner">
|
||||
<div class="carousel-item active">
|
||||
<img src="{% static 'gd2/img/publikum.jpg' %}" class="d-block w-100" alt="Publikum im Studio">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hero-text-side">
|
||||
<h1 class="hero-title">Die Comedy-Quizshow</h1>
|
||||
<p class="lead mb-4">Schaltet ein und seht, ob das Panel die unglaublichsten Fragen beantworten kann. Willkommen im offiziellen Archiv von Genial Daneben.</p>
|
||||
<a href="#" class="btn btn-danger btn-lg rounded-pill px-5 py-3 shadow">Aktuelle Folge ansehen</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
<footer class="footer-wave-container">
|
||||
<img src="{% static 'gd2/img/welle.png' %}" alt="Abschluss Welle" class="footer-wave-img">
|
||||
</footer>
|
||||
|
||||
</div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<script>
|
||||
document.getElementById('searchBtn').addEventListener('click', function() {
|
||||
const query = prompt("Wonach möchtest du im Archiv suchen?");
|
||||
if (query) {
|
||||
console.log("Suche nach: " + query);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
# Das hier hat gefehlt:
|
||||
app_name = 'gd2'
|
||||
|
||||
urlpatterns = [
|
||||
# ex: /polls/
|
||||
path("", views.index, name="index"),
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
|
||||
|
||||
# Create your views here.
|
||||
def index(request):
|
||||
return render(request, "gd2/index.html")
|
||||
Reference in new issue
Block a user