47 lines
2.5 KiB
Plaintext
47 lines
2.5 KiB
Plaintext
{% extends "base" %}
|
|
|
|
{% block content %}
|
|
<div class="w-full max-w-md space-y-8">
|
|
<div>
|
|
<img class="mx-auto h-16 w-auto" src="https://rudernlinz.at/wp-content/uploads/2021/02/cropped-logo.png" alt="Your Company">
|
|
<h1 class="mt-6 text-center text-3xl uppercase tracking-wide font-bold text-primary-900">Ruderassistent</h1>
|
|
</div>
|
|
|
|
{% if flash %}
|
|
{% if flash.0 == "success" %}
|
|
<div class="bg-[#4ade80] text-white px-3 py-1 rounded-md text-center">
|
|
{{ flash.1 }}
|
|
</div>
|
|
{% endif %}
|
|
{% if flash.0 == "error" %}
|
|
<div class="bg-[#f43f5e] text-white px-3 py-1 rounded-md text-center">
|
|
{{ flash.1 }}
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
<form class="mt-8 space-y-6" method="post" action="/auth">
|
|
<input type="hidden" name="remember" value="true">
|
|
<div class="-space-y-px rounded-md shadow-sm">
|
|
<div>
|
|
<label for="name" class="sr-only">Name</label>
|
|
<input id="name" name="name" type="input" required class="relative block w-full rounded-t-md border-0 py-1.5 px-2 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6" placeholder="Name">
|
|
</div>
|
|
<div>
|
|
<label for="password" class="sr-only">Password</label>
|
|
<input id="password" name="password" type="password" autocomplete="current-password" required class="relative block w-full rounded-b-md border-0 py-1.5 px-2 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6" placeholder="Passwort">
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<button type="submit" class="group relative flex w-full justify-center rounded-md bg-primary-600 px-3 py-2 text-sm font-semibold text-white hover:bg-primary-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600">
|
|
<span class="absolute inset-y-0 left-0 flex items-center pl-3">
|
|
<svg class="h-5 w-5 text-primary-300 group-hover:text-primary-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
|
<path fill-rule="evenodd" d="M10 1a4.5 4.5 0 00-4.5 4.5V9H5a2 2 0 00-2 2v6a2 2 0 002 2h10a2 2 0 002-2v-6a2 2 0 00-2-2h-.5V5.5A4.5 4.5 0 0010 1zm3 8V5.5a3 3 0 10-6 0V9h6z" clip-rule="evenodd" />
|
|
</svg>
|
|
</span>
|
|
Einloggen
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock content %} |