diff --git a/config/templates/base.html b/config/templates/base.html deleted file mode 100644 index 09c3505..0000000 --- a/config/templates/base.html +++ /dev/null @@ -1,16 +0,0 @@ - - -
- - -Username: {{user.username}}
-Name: {{user.first_name}} {{user.last_name}}
-Email: {{user.email}}
- {% else %} - Guest nr 123 - {% endif %} -{% endblock %} - diff --git a/config/urls.py b/config/urls.py index ee67220..49df139 100644 --- a/config/urls.py +++ b/config/urls.py @@ -16,10 +16,13 @@ Including another URLconf from django.contrib import admin from django.urls import include from django.urls import path -from .views import index +from .views import index, login, logout, register urlpatterns = [ path('', index), + path('login/', login), + path('logout/', logout), + path('register/', register), path('users/', include("users.urls")), path('questions/', include("questions.urls")), path('answers/', include("answers.urls")), diff --git a/config/views.py b/config/views.py index 02bfdd5..a8668ef 100644 --- a/config/views.py +++ b/config/views.py @@ -2,9 +2,26 @@ from django.shortcuts import render, redirect from django.template import loader - def index(request): # context = { # 'latest_question_list': latest_question_list, # } - return render(request, 'index.html') \ No newline at end of file + return render(request, 'index.html') + +def login(request): + # context = { + # 'latest_question_list': latest_question_list, + # } + return render(request, 'login.html') + +def logout(request): + # context = { + # 'latest_question_list': latest_question_list, + # } + return render(request, 'logout.html') + +def register(request): + # context = { + # 'latest_question_list': latest_question_list, + # } + return render(request, 'register.html') \ No newline at end of file diff --git a/palette.txt b/palette.txt new file mode 100644 index 0000000..b17e486 --- /dev/null +++ b/palette.txt @@ -0,0 +1,6 @@ +Color palette: +#00916E - Illuminating Emerald +#FEEFE5 - Linen +#FFCF00 - Cyber Yellow +#EE6123 - Orange Panteon +#FA003F - Red Munsell \ No newline at end of file diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..351f299 --- /dev/null +++ b/static/style.css @@ -0,0 +1,62 @@ +.sidenav { + height: 100%; + width: 160px; + position: fixed; + z-index: 1; + top: 0; + left: 0; + background-color: #FA003F; + overflow-x: :hidden; + padding-top: 20px; +} + +.sidenav a { + padding: 6px 8px 6px 16px; + text-decoration: none; + font-size: 20px; + color: #FEEFE5; + display: block; + line-height: 1.6; +} + +.sidenav a:hover { + color: #00916E; +} + +.main { + margin-left: 160px; + padding: 0px 10px; +} + +.authBox { + height: 100px; + width: 100px; + background-color: #FEEFE5; + color: #111; + padding: 250px 300px 0px 300px; + position: relative; +} + +.authContent { + background-color:#FA003F + padding: 250px 300px 0px 300px; + height: 100%; + width: 100%; + position: absolute; +} + +.titleBar { + height: 50px; + width: 100%; + position: fixed; + z-index: 1; + top: 0; + left: 0; + background-color: #2B3D41; + padding-top: 20px; + text-align: center; + text-decoration: none; + font-size: 30px; + color: #FEEFE5; + display: block; +} \ No newline at end of file diff --git a/templates/authBase.html b/templates/authBase.html new file mode 100644 index 0000000..93dda44 --- /dev/null +++ b/templates/authBase.html @@ -0,0 +1,24 @@ + +{% load static %} + + + + +Username: {{user.username}}
-Name: {{user.first_name}} {{user.last_name}}
-Email: {{user.email}}
- {% else %} - Guest nr 123 - {% endif %} + + {% for test in tests.all %} +