feat: added tailwind

This commit is contained in:
2024-11-20 18:09:44 +01:00
parent 14d11cf0b9
commit 3783ec0942
21 changed files with 1698 additions and 10 deletions
View File
View File
View File
View File
+3 -3
View File
@@ -1,12 +1,12 @@
{% extends 'base/base.html' %}
{% extends 'theme/base.html' %}
{% block content %}
{% block main %}
<section class="bg-gray-50 dark:bg-gray-900">
<div class="flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0">
<a href="#" class="flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white">
<img class="w-8 h-8 mr-2" src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/logo.svg" alt="logo">
Flowbite
Shoppy
</a>
<div class="w-full bg-white rounded-lg shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700">
<div class="p-6 space-y-4 md:space-y-6 sm:p-8">
+6 -2
View File
@@ -1,7 +1,11 @@
from django.urls import path
from users.views import login, register, reset_password
app_name = "users"
urlpatterns = []
urlpatterns = [
path("login/", login, name="login"),
path("register/", register, name="register"),
path("reset-password/", reset_password, name="reset-password"),
]
+18
View File
@@ -0,0 +1,18 @@
from django.views.generic import TemplateView
class LoginView(TemplateView):
template_name = 'users/login.html'
class RegisterView(TemplateView):
template_name = 'users/register.html'
class ResetPasswordView(TemplateView):
template_name = 'users/reset-password.html'
login = LoginView.as_view()
register = RegisterView.as_view()
reset_password = ResetPasswordView.as_view()