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
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="max-w-screen-lg mx-auto mt-12">
|
<div class="max-w-screen-lg mx-auto mt-12">
|
||||||
<div class="input-group">
|
<div class="input-group p-4 m-2 border-blue-600 border-2 rounded-xl shadow-md">
|
||||||
<div class="grid place-content-center h-120">
|
<div class="grid place-content-center h-120">
|
||||||
|
|
||||||
<h1 class="text-center m-4 text-3xl lg:text-6xl">Willkommen, <b>{{ request.user.username }}</b>!</h1>
|
<h1 class="text-center m-4 text-3xl lg:text-6xl">Willkommen, <b>{{ request.user.username }}</b>!</h1>
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% block title %}Anmeldung{% endblock %}
|
{% block title %}Anmeldung{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="grid place-content-center h-120">
|
<div class="grid place-content-center h-120 mt-12 mb-12 ">
|
||||||
<div class="p-4 m-2 border-blue-600 border-2 rounded-xl shadow-md">
|
<div class="w-80 p-4 m-2 border-blue-600 border-2 rounded-xl shadow-md lg:w-90">
|
||||||
<h2 class="text-2xl text-center p-4 font-black">Anmeldung</h2>
|
<h2 class="text-2xl text-center p-4 font-black">Anmeldung</h2>
|
||||||
<form class="space-y-4" method="post">
|
<form class="space-y-4" method="post">
|
||||||
{% if form.errors %}
|
{% if form.errors %}
|
||||||
<div class="text-red-600 font-black overflow-x-auto break-words text-center">
|
<div class=" items-center text-red-600 font-black overflow-x-auto break-words text-center">
|
||||||
<ul>
|
<ul>
|
||||||
{% for field, errors in form.errors.items %}
|
{% for field, errors in form.errors.items %}
|
||||||
{% for error in errors %}
|
{% for error in errors %}
|
||||||
@@ -18,11 +18,11 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="">
|
<div class="items-center w-full">
|
||||||
<input class="p-3 rounded-full bg-gray-200 focus:scale-105 transition duration-200 font-black" type="text" name="username" id="username" required placeholder="BENUTZERNAME">
|
<input class=" w-full p-3 rounded-full bg-gray-200 focus:scale-105 transition duration-200 font-black" type="text" name="username" id="username" required placeholder="BENUTZERNAME">
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div class="items-center w-full">
|
||||||
<input class="p-3 rounded-full bg-gray-200 focus:scale-105 transition duration-200 font-black" type="password" name="password" id="password" required placeholder="PASSWORT">
|
<input class=" w-full p-3 rounded-full bg-gray-200 focus:scale-105 transition duration-200 font-black" type="password" name="password" id="password" required placeholder="PASSWORT">
|
||||||
</div>
|
</div>
|
||||||
<button class="w-full p-3 rounded-full bg-blue-600 text-white font-black hover:scale-105 transition duration-200" type="submit" class="login-button">Anmelden</button>
|
<button class="w-full p-3 rounded-full bg-blue-600 text-white font-black hover:scale-105 transition duration-200" type="submit" class="login-button">Anmelden</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{% extends 'accounts/base.html' %}
|
{% extends 'accounts/base.html' %}
|
||||||
{% block title %}Registrierung{% endblock %}
|
{% block title %}Registrierung{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="grid place-content-center h-120">
|
<div class="grid place-content-center h-120 mt-12 mb-12">
|
||||||
<div class=" p-4 m-2 border-blue-600 border-2 rounded-xl shadow-md">
|
|
||||||
|
<div class="w-80 p-4 m-2 border-blue-600 border-2 rounded-xl shadow-md lg:w-90">
|
||||||
<h2 class="text-2xl text-center p-4 font-black">Registrieren</h2>
|
<h2 class="text-2xl text-center p-4 font-black">Registrieren</h2>
|
||||||
|
|
||||||
<form class=" space-y-4" method="post">
|
<form class=" space-y-4" method="post">
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ 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;
|
||||||
}
|
}
|
||||||
|
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;}
|
.register input{@apply p-3 rounded-full bg-gray-200 focus:scale-105 transition duration-200 font-black;}
|
||||||
|
|
||||||
.input-group {
|
.input-group {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -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