Apply y-scrolling to login page too

discovered when implementing signup
This commit is contained in:
Klaas van Schelven
2024-05-29 16:07:32 +02:00
parent 56dbf7ba4d
commit 9335461405

View File

@@ -1,12 +1,11 @@
{% extends "barest_base.html" %}
{% load static %}
{# from https://docs.djangoproject.com/en/5.0/topics/auth/default/#django.contrib.auth.views.LoginView #}
{% block title %}Log in · {{ site_title }}{% endblock %}
{% block content %}
<div class="bg-cyan-100 h-screen overflow-hidden flex items-center justify-center"> {# the cyan background #}
<div class="bg-cyan-100 h-screen overflow-y-scroll flex items-center justify-center"> {# the cyan background #}
<div class="bg-white lg:w-5/12 md:6/12 w-10/12"> {# the centered box #}
<div class="bg-slate-200 absolute left-1/2 transform -translate-x-1/2 -translate-y-1/2 rounded-full p-4 md:p-8"> {# the logo #}
<a href="/"><img src="{% static 'images/bugsink-logo.png' %}" class="h-8 w-8 md:h-16 md:w-16" alt="Bugsink"></a>