diff --git a/core/core/settings.py b/core/core/settings.py index 2abadc4..ae0192c 100644 --- a/core/core/settings.py +++ b/core/core/settings.py @@ -35,6 +35,7 @@ INSTALLED_APPS = [ 'homepage.apps.HomepageConfig', 'components.apps.ComponentsConfig', 'accounts.apps.AccountsConfig', + 'play.apps.PlayConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 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/__init__.py b/core/play/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/core/play/admin.py b/core/play/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/core/play/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/core/play/apps.py b/core/play/apps.py new file mode 100644 index 0000000..9e9b72f --- /dev/null +++ b/core/play/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class PlayConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'play' diff --git a/core/play/migrations/__init__.py b/core/play/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/core/play/models.py b/core/play/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/core/play/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/core/play/tests.py b/core/play/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/core/play/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. 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 new file mode 100644 index 0000000..b0daa44 --- /dev/null +++ b/core/play/views.py @@ -0,0 +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 %} +