Merge branch 'master' of edugit.org:enrichment-2024/qivip
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@ __pycache__
|
|||||||
.venv
|
.venv
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
tailwindcss.exe
|
tailwindcss.exe
|
||||||
|
t-style.css
|
||||||
@@ -7,7 +7,10 @@ nav div ul.qp-nav-list li {
|
|||||||
a.qp-a-button {
|
a.qp-a-button {
|
||||||
@apply p-6 rounded-md font-extrabold hover:scale-105 transition duration-300 shadow-md;
|
@apply p-6 rounded-md font-extrabold hover:scale-105 transition duration-300 shadow-md;
|
||||||
}
|
}
|
||||||
.register input{@apply p-3 rounded-full bg-gray-200 focus:scale-105 transition duration-200 font-black w-full;}
|
a.qp-a-button-small {
|
||||||
|
@apply p-1 rounded-md hover:scale-105 transition duration-300 shadow-md;
|
||||||
|
}
|
||||||
|
.register input{@apply p-3 rounded-full bg-gray-200 focus:scale-105 transition duration-200 font-black;}
|
||||||
|
|
||||||
.input-group {
|
.input-group {
|
||||||
@apply flex flex-col gap-4 max-w-md mx-auto p-6 bg-white rounded-xl shadow-lg;
|
@apply flex flex-col gap-4 max-w-md mx-auto p-6 bg-white rounded-xl shadow-lg;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
34
core/homepage/templates/homepage/impress.html
Normal file
34
core/homepage/templates/homepage/impress.html
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{% load static %}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Impressum</title>
|
||||||
|
<link rel="icon" type="image/png" href="{% static 'icons/favicon.png' %}">
|
||||||
|
<link rel="stylesheet" href="{% static 'homepage/t-style.css' %}">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{% include 'homepage/partials/_nav.html' %}
|
||||||
|
<div class="max-w-screen-lg mx-auto">
|
||||||
|
{% block content%}{% endblock %}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<h1>Impressum</h1>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<dvi>
|
||||||
|
<p>
|
||||||
|
Katharineum zu Lübeck
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Königsstraße 27-31
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
23552 Lübeck
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
{% include 'homepage/partials/_footer.html' %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="grid place-content-center gap-2 w-full mt-4">
|
<div class="grid place-content-center gap-2 w-full mt-4">
|
||||||
<div class="flex space-x-2 pb-4">
|
<div class="flex space-x-2 pb-4">
|
||||||
<p class="text-sm font-extralight"><a href="#">Impressum</a></p>
|
<p class="text-sm font-extralight"><a href="/impress">Impressum</a></p>
|
||||||
<p class="text-sm font-extralight"><a href="#">Datenschutz</a></p>
|
<p class="text-sm font-extralight"><a href="/privacy">Datenschutz</a></p>
|
||||||
<p class="text-sm font-extralight"><a href="#">Repository</a></p>
|
<p class="text-sm font-extralight"><a href="https://edugit.org/enrichment-2024/qivip">Repository</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
23
core/homepage/templates/homepage/privacy.html
Normal file
23
core/homepage/templates/homepage/privacy.html
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{% load static %}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Impressum</title>
|
||||||
|
<link rel="icon" type="image/png" href="{% static 'icons/favicon.png' %}">
|
||||||
|
<link rel="stylesheet" href="{% static 'homepage/t-style.css' %}">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{% include 'homepage/partials/_nav.html' %}
|
||||||
|
<div class="max-w-screen-lg mx-auto">
|
||||||
|
{% block content%}{% endblock %}
|
||||||
|
<div>
|
||||||
|
<p>
|
||||||
|
Hallo, ich bin die Datenschutzerklärung!
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% include 'homepage/partials/_footer.html' %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -5,4 +5,6 @@ app_name = 'homepage' # Verhindert Konflikt mit anderen Apps
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', views.home, name="home"),
|
path('', views.home, name="home"),
|
||||||
|
path('impress', views.impress, name="impress"),
|
||||||
|
path('privacy', views.privacy, name="privacy"),
|
||||||
]
|
]
|
||||||
@@ -2,3 +2,8 @@ from django.shortcuts import render, redirect
|
|||||||
|
|
||||||
def home(request):
|
def home(request):
|
||||||
return render(request, 'homepage/home.html')
|
return render(request, 'homepage/home.html')
|
||||||
|
|
||||||
|
def impress(request):
|
||||||
|
return render(request, 'homepage/impress.html')
|
||||||
|
def privacy(request):
|
||||||
|
return render(request, 'homepage/privacy.html')
|
||||||
@@ -9,10 +9,10 @@
|
|||||||
{% for quiz in quizzes %}
|
{% for quiz in quizzes %}
|
||||||
<div class="bg-white rounded-lg p-4 shadow-md">
|
<div class="bg-white rounded-lg p-4 shadow-md">
|
||||||
<h2 class="text-lg font-bold"><a href="{% url 'library:detail_quiz' quiz.id %}">{{ quiz.name }}</a></h2>
|
<h2 class="text-lg font-bold"><a href="{% url 'library:detail_quiz' quiz.id %}">{{ quiz.name }}</a></h2>
|
||||||
<p class="text-sm text-gray-600">{{ quiz.description }}</p>
|
<p class="text-sm text-gray-600 my-8">{{ quiz.description }}</p>
|
||||||
<a href="#">Spiel starten</a>
|
<a href="#"class="qp-a-button-small bg-green-500">Spiel starten</a>
|
||||||
<a href="{% url 'library:edit_quiz' quiz.id %}">Bearbeiten</a>
|
<button><a href="{% url 'library:edit_quiz' quiz.id %}"class="qp-a-button-small bg-indigo-500">Bearbeiten</a></button>
|
||||||
<a href="{% url 'library:delete_quiz' quiz.id %}">Löschen</a>
|
<a href="{% url 'library:delete_quiz' quiz.id %}" class="qp-a-button-small bg-purple-500">Löschen</a>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user