add admin panel #20

Merged
csimonis merged 12 commits from feature/admin-panel into main 2025-02-09 14:59:31 +00:00
Showing only changes of commit 76ee85ab1f - Show all commits

View File

@ -1,18 +1,62 @@
{% extends 'base.html.twig' %}
{% block body %}
<div>
<h2>Login</h2>
<form >
<div class="min-h-screen flex items-center justify-center bg-[#0a0a0a] px-4 sm:px-6 lg:px-8">
<div class="w-full max-w-[90%] sm:max-w-md">
<div class="text-center mb-8">
<h2 class="text-xl sm:text-2xl font-medium text-gray-200">Administration</h2>
</div>
<form method="post" class="space-y-4 sm:space-y-6">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
<div>
<label>Username</label>
<input type="text" placeholder="Enter your username">
<label for="username" class="block text-sm font-medium text-gray-300">Benutzername</label>
<div class="mt-1 relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<twig:ux:icon name="mdi:account" class="h-4 w-4 sm:h-5 sm:w-5 text-gray-500" />
</div>
<input type="text"
id="username"
name="_username"
required
class="block w-full pl-9 sm:pl-10 py-2 sm:py-2.5 text-sm sm:text-base bg-[#2a2a2a] border border-[#333333] text-gray-200 rounded-md focus:ring-2 focus:ring-orange-500/20 focus:border-orange-500 transition-colors"
placeholder="admin@example.com" />
</div>
</div>
<div >
<label>Password</label>
<input type="password" placeholder="Enter your password">
<div>
<label for="password" class="block text-sm font-medium text-gray-300">Passwort</label>
<div class="mt-1 relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<twig:ux:icon name="mdi:lock" class="h-4 w-4 sm:h-5 sm:w-5 text-gray-500" />
</div>
<input type="password"
id="password"
name="_password"
required
class="block w-full pl-9 sm:pl-10 py-2 sm:py-2.5 text-sm sm:text-base bg-[#2a2a2a] border border-[#333333] text-gray-200 rounded-md focus:ring-2 focus:ring-orange-500/20 focus:border-orange-500 transition-colors"
placeholder="••••••••" />
</div>
</div>
<div class="flex items-center">
<input type="checkbox"
id="remember_me"
name="_remember_me"
class="h-3.5 w-3.5 sm:h-4 sm:w-4 bg-[#2a2a2a] border-[#333333] rounded text-orange-500 focus:ring-orange-500/20" />
<label for="remember_me" class="ml-2 block text-xs sm:text-sm text-gray-300">
Angemeldet bleiben
</label>
</div>
<div>
<button type="submit"
class="w-full flex justify-center py-2 sm:py-2.5 px-4 text-sm sm:text-base bg-orange-500 hover:bg-orange-600 text-white font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#0a0a0a] focus:ring-orange-500 transition-colors">
Anmelden
</button>
</div>
<button>Login</button>
</form>
</div>
</div>
{% endblock %}