added login, logout and registration sites and functionality as well as an protected profile page
This commit is contained in:
parent
cbebac47fa
commit
5b3f5a1123
12 changed files with 163 additions and 28 deletions
|
|
@ -3,21 +3,21 @@
|
|||
|
||||
<div class="flex min-h-full items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
|
||||
<div class="w-full max-w-md space-y-8 nes-container">
|
||||
<form action="#" method="POST">
|
||||
<form action="/login" method="POST">
|
||||
<div>
|
||||
<h2 class="mt-6 text-center text-3xl font-bold tracking-tight text-gray-900">Melde dich mit deinem Konto an.</h2>
|
||||
<p class="mt-2 text-center text-sm text-gray-600">
|
||||
Oder
|
||||
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">registriere dich noch Heute</a>
|
||||
<a href="/register" class="<?= urlIs("/register") ?> font-medium text-indigo-600 hover:text-indigo-500">registriere dich noch Heute</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="nes-field">
|
||||
<!--<label for="name_field">Email-Adresses</label>-->
|
||||
<input type="text" class="nes-input" placeholder="Email-Adresses">
|
||||
<!--<label for="name_field">Username</label>-->
|
||||
<input name="username" type="text" class="nes-input" placeholder="Username">
|
||||
</div>
|
||||
<div class="nes-field">
|
||||
<!--<label for="name_field">Passwort</label>-->
|
||||
<input type="text" class="nes-input" placeholder="Passwort">
|
||||
<input name="password" type="password" class="nes-input" placeholder="Passwort">
|
||||
</div>
|
||||
<div class="flex items-center justify-between">
|
||||
<label class="flex items-center justify-between">
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" class="nes-btn is-primary">
|
||||
<button type="submit" name="submit" class="nes-btn is-primary">
|
||||
<span class="absolute inset-y-0 left-0 flex items-center pl-3">
|
||||
</span>
|
||||
Anmelden
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue