diff --git a/core/core/urls.py b/core/core/urls.py index 6835e00..0eda9f8 100644 --- a/core/core/urls.py +++ b/core/core/urls.py @@ -21,6 +21,6 @@ urlpatterns = [ path('admin/', admin.site.urls), path('account/', include('accounts.urls')), path('', include('homepage.urls')), - path('play/', include('components.urls')), + path('play/', include('play.urls')), path('library/', include('library.urls')), ] diff --git a/core/play/urls.py b/core/play/urls.py new file mode 100644 index 0000000..f69a807 --- /dev/null +++ b/core/play/urls.py @@ -0,0 +1,9 @@ +from django.urls import path +from . import views + +app_name = 'play' + +urlpatterns = [ + path('lobby', views.lobby, name='lobby'), + path('join', views.join_game, name='join_game'), +] \ No newline at end of file diff --git a/core/play/views.py b/core/play/views.py index 91ea44a..b0daa44 100644 --- a/core/play/views.py +++ b/core/play/views.py @@ -1,3 +1,8 @@ from django.shortcuts import render # Create your views here. +def lobby(request): + return render(request, 'play/lobby.html') + +def join_game(request): + return render(request, 'play/join_game.html') \ No newline at end of file diff --git a/core/static/css/t-input.css b/core/static/css/t-input.css index 6be4a59..13759aa 100644 --- a/core/static/css/t-input.css +++ b/core/static/css/t-input.css @@ -1,5 +1,9 @@ @import 'tailwindcss'; +qp-container { + @apply max-w-xl w-full mx-auto; +} + nav div ul.qp-nav-list li { @apply text-white hover:scale-110 hover:border-b-2 hover:border-white transition duration-200; } diff --git a/core/templates/play/game/score_overview.html b/core/templates/play/game/score_overview.html new file mode 100644 index 0000000..e69de29 diff --git a/core/templates/play/game/wait_for_other_players.html b/core/templates/play/game/wait_for_other_players.html new file mode 100644 index 0000000..e69de29 diff --git a/core/templates/play/join_game.html b/core/templates/play/join_game.html new file mode 100644 index 0000000..526050e --- /dev/null +++ b/core/templates/play/join_game.html @@ -0,0 +1,35 @@ +{% extends 'base.html' %} + +{% block content %} +
+
+

Spiel beitreten

+
+ {% csrf_token %} +
+ + +
+
+ +
+
+{% endblock %} \ No newline at end of file diff --git a/core/templates/play/lobby.html b/core/templates/play/lobby.html new file mode 100644 index 0000000..39e8212 --- /dev/null +++ b/core/templates/play/lobby.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} + +{% block content %} +
+

Bundeslaender Deutschland Quiz

+
+ +
+ +
+{% endblock %} \ No newline at end of file