patch: login/register styles

This commit is contained in:
2025-05-01 23:09:18 -05:00
parent 73b3e5179a
commit 993b34d668
2 changed files with 6 additions and 6 deletions

View File

@@ -3,8 +3,8 @@
{% block title %}Log in — Torsearch{% endblock %}
{% block body %}
<div class="flex flex-col bg-orange-500 p-4 rounded-lg gap-2 min-w-96">
<h2 class="text-xl text-gray-50">Login</h2>
<div class="flex flex-col bg-orange-500 bg-opacity-60 border-orange-500 border-2 p-4 rounded-lg gap-2 min-w-96 text-gray-50">
<h2 class="text-xl font-bold">Login</h2>
<form method="post" class="flex flex-col gap-2">
{% if error %}
<div class="bg-red-400 border-red-600 rounded p-2 text-red-600">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
@@ -16,7 +16,7 @@
</div>
{% endif %}
<label for="username" class="mb-2 flex flex-col text-gray-950">
<label for="username" class="mb-2 flex flex-col">
Email
<input type="email"
value="{{ last_username }}"
@@ -27,7 +27,7 @@
required autofocus>
</label>
<label for="password" class="mb-2 flex flex-col text-gray-950">
<label for="password" class="mb-2 flex flex-col">
Password
<input type="password"
name="_password"

View File

@@ -3,7 +3,7 @@
{% block title %}Register{% endblock %}
{% block body %}
<div class="flex flex-col bg-orange-500 p-4 rounded-lg gap-2 min-w-96">
<div class="flex flex-col bg-orange-500 bg-opacity-60 p-4 rounded-lg gap-2 min-w-96 border-orange-500 border-2 text-gray-50">
<h2 class="text-xl text-gray-50">Register</h2>
{{ form_errors(registrationForm) }}
@@ -37,7 +37,7 @@
class="bg-gray-50 text-gray-950 p-1 rounded-md" />
</label>
<button type="submit" class="bg-green-600 px-1.5 py-1 rounded-md text-gray-50">Register</button>
<button type="submit" class="bg-green-600 px-1.5 py-1 w-full rounded-md text-gray-50">Register</button>
{{ form_end(registrationForm) }}
</div>
{% endblock %}