feat: add signup form

This commit is contained in:
2026-03-10 14:15:31 +01:00
parent 1df9fe960a
commit 13df010470
15 changed files with 278 additions and 69 deletions

11
kursy/templates/429.html Normal file
View File

@@ -0,0 +1,11 @@
{% extends "allauth/layouts/entrance.html" %}
{% load allauth %}
{% block head_title %}
Too Many Requests
{% endblock head_title %}
{% block content %}
{% element h1 %}
Too Many Requests
{% endelement %}
<p>You are sending too many requests.</p>
{% endblock content %}

View File

@@ -1,4 +1,4 @@
{% load static wagtailcore_tags wagtailuserbar %}
{% load static i18n wagtailcore_tags wagtailuserbar tailwind_tags %}
<!DOCTYPE html>
<html lang="en">
@@ -25,6 +25,7 @@
{# Global stylesheets #}
<link rel="stylesheet" type="text/css" href="{% static 'css/kursy.css' %}">
{% tailwind_css %}
{% block extra_css %}
{# Override this in templates to add extra stylesheets #}
@@ -32,6 +33,7 @@
</head>
<body class="{% block body_class %}{% endblock %}">
{% include "header.html" %}
{% wagtailuserbar %}
{% block content %}{% endblock %}

View File

@@ -0,0 +1,15 @@
{% load i18n %}
<header class="bg-blue-900 text-white shadow-md">
<div class="container mx-auto flex items-center justify-between py-4 px-6">
<a class="text-xl font-bold" href="/">Kursy</a>
<nav class="space-x-4">
<a href="#" class="hover:underline">{% trans "Home" %}</a>
{% if user.is_authenticated %}
<a href="{% url 'account_logout' %}" class="hover:underline">{% trans "Logout" %}</a>
{% else %}
<a href="{% url 'account_login' %}" class="hover:underline">{% trans "Login" %}</a>
<a href="{% url 'account_signup' %}" class="hover:underline">{% trans "Sign Up" %}</a>
{% endif %}
</nav>
</div>
</header>

View File

@@ -0,0 +1,8 @@
{% extends "allauth/layouts/manage.html" %}
{% load i18n %}
{% block content %}
<div class="container mx-auto px-4 py-8">
<h1 class="text-3xl font-bold mb-6">{% trans "Witaj, " %}{{ user.first_name }}!</h1>
</div>
{% endblock %}