From 762f04c7a8801bf26dab9c6f78a30558e66d7aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 14 Dec 2023 22:41:20 +0200 Subject: [PATCH] view --- app/e11mail/settings.py | 2 ++ app/signup/static/signup/style.css | 13 +++++++++++++ app/signup/templates/signup/index.html | 26 ++++++++++++++++++++++++++ app/signup/views.py | 4 ++-- 4 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 app/signup/static/signup/style.css create mode 100644 app/signup/templates/signup/index.html diff --git a/app/e11mail/settings.py b/app/e11mail/settings.py index 3405fbc..a80be90 100644 --- a/app/e11mail/settings.py +++ b/app/e11mail/settings.py @@ -90,4 +90,6 @@ USE_TZ = True STATIC_URL = 'static/' +STATICFILES_FINDERS = ["django.contrib.staticfiles.finders.AppDirectoriesFinder"] + DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/app/signup/static/signup/style.css b/app/signup/static/signup/style.css new file mode 100644 index 0000000..dc32f94 --- /dev/null +++ b/app/signup/static/signup/style.css @@ -0,0 +1,13 @@ +/************************/ +/** Very Common Things **/ +/************************/ +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +html, button, input, select, textarea, .pure-g [class *= "pure-u"] { + font-family: "-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji"; + line-height: 1.5; +} diff --git a/app/signup/templates/signup/index.html b/app/signup/templates/signup/index.html new file mode 100644 index 0000000..151cc2d --- /dev/null +++ b/app/signup/templates/signup/index.html @@ -0,0 +1,26 @@ + + + + + {% block "title" %}e11mail.com{% endblock %} + + {% load static %} + + + + + +
+ + +
+ {% block "body" %}{% endblock %} +
+
+ + + + diff --git a/app/signup/views.py b/app/signup/views.py index ac2b4a8..51fb3f8 100644 --- a/app/signup/views.py +++ b/app/signup/views.py @@ -1,4 +1,4 @@ -from django.http import HttpResponse +from django.shortcuts import render def index(request): - return HttpResponse("Hello. You're at the signup index.") + return render(request, "signup/index.html", {})