e11sync

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 762f04c7a8801bf26dab9c6f78a30558e66d7aaa (tree)
parent ddcb33e20d650e1bc75c7d7ae07ba2d4f72142e3
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Thu, 14 Dec 2023 22:41:20 +0200

view

Diffstat:
Mapp/e11mail/settings.py | 2++
Aapp/signup/static/signup/style.css | 13+++++++++++++
Aapp/signup/templates/signup/index.html | 26++++++++++++++++++++++++++
Mapp/signup/views.py | 4++--
4 files changed, 43 insertions(+), 2 deletions(-)

diff --git 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 @@ -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 @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title>{% block "title" %}e11mail.com{% endblock %}</title> + <meta name="viewport" content="width=device-width,initial-scale=1"> + {% load static %} + <link rel="stylesheet" href="{% static "signup/style.css" %}"> + <link rel="icon" href="data:;base64,iVBORw0KGgo="> +</head> +<body> + +<div> + <section id="header"> + <h1 class="brand-title"><a href="{% url "index" %}">e11mail.com</a></h1> + <h2 class="brand-subtitle">Email for Everyone</h2> + </section><!-- #header --> + + <main> + {% block "body" %}{% endblock %} + </main> +</div> + +</body> +</html> + diff --git 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", {})