2024-10-25 21:27:03 +02:00
|
|
|
{% extends "base.html" %}
|
2024-10-25 17:13:01 +02:00
|
|
|
|
|
|
|
{% block content %}
|
2024-10-25 21:27:03 +02:00
|
|
|
<main class="m-4 flex flex-col gap-4 w-full">
|
|
|
|
{% include "../top_bar.html" %}
|
|
|
|
<div class="w-full lg:w-800 lg:rounded-lg lg:border lg:border-0 lg:shadow lg:border-gray-300 m-auto p-12 flex flex-col gap-8">
|
|
|
|
<h1 class="text-desktop-heading-xl text-center grow w-full">Sign in</h1>
|
|
|
|
|
|
|
|
<form class="flex flex-col gap-8 items-center justify-center" action="/sign-in" method="post">
|
|
|
|
{% if not_found %}
|
|
|
|
<div role="alert" class="alert alert-error">
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
class="h-6 w-6 shrink-0 stroke-current"
|
|
|
|
fill="none"
|
|
|
|
viewBox="0 0 24 24">
|
|
|
|
<path
|
|
|
|
stroke-linecap="round"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
stroke-width="2"
|
|
|
|
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
|
|
</svg>
|
|
|
|
<span>Invalid credentials</span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<label for="email" class="input input-bordered flex items-center gap-2">
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
viewBox="0 0 16 16"
|
|
|
|
fill="currentColor"
|
|
|
|
class="h-4 w-4 opacity-70">
|
|
|
|
<path
|
|
|
|
d="M2.5 3A1.5 1.5 0 0 0 1 4.5v.793c.026.009.051.02.076.032L7.674 8.51c.206.1.446.1.652 0l6.598-3.185A.755.755 0 0 1 15 5.293V4.5A1.5 1.5 0 0 0 13.5 3h-11Z" />
|
|
|
|
<path
|
|
|
|
d="M15 6.954 8.978 9.86a2.25 2.25 0 0 1-1.956 0L1 6.954V11.5A1.5 1.5 0 0 0 2.5 13h11a1.5 1.5 0 0 0 1.5-1.5V6.954Z" />
|
|
|
|
</svg>
|
2024-10-27 20:23:37 +01:00
|
|
|
<input type="email" class="grow" placeholder="Email" id="email" name="email" value="{{email}}" />
|
2024-10-25 21:27:03 +02:00
|
|
|
</label>
|
|
|
|
|
|
|
|
<label for="password" class="input input-bordered flex items-center gap-2">
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
viewBox="0 0 16 16"
|
|
|
|
fill="currentColor"
|
|
|
|
class="h-4 w-4 opacity-70">
|
|
|
|
<path
|
|
|
|
fill-rule="evenodd"
|
|
|
|
d="M14 6a4 4 0 0 1-4.899 3.899l-1.955 1.955a.5.5 0 0 1-.353.146H5v1.5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2.293a.5.5 0 0 1 .146-.353l3.955-3.955A4 4 0 1 1 14 6Zm-4-2a.75.75 0 0 0 0 1.5.5.5 0 0 1 .5.5.75.75 0 0 0 1.5 0 2 2 0 0 0-2-2Z"
|
|
|
|
clip-rule="evenodd" />
|
|
|
|
</svg>
|
2024-10-27 20:23:37 +01:00
|
|
|
<input type="password" class="grow" value="" name="password" id="password" />
|
2024-10-25 21:27:03 +02:00
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="w-full grow">
|
|
|
|
<input type="submit" value="Sign in" class="btn w-full grow" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</main>
|
2024-10-25 17:13:01 +02:00
|
|
|
{% endblock %}
|