-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Alivan21/fix/autofocus-form
fix(auth): autofocus on form
- Loading branch information
Showing
4 changed files
with
57 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
@extends('layout.auth') | ||
|
||
@section('authForm') | ||
<div class="flex gap-6"> | ||
<img src="{{ asset('img/logo-polinema.svg') }}" alt="logo-polarys"> | ||
<img src="{{ asset('img/logo-dark.svg') }}" alt="logo-polarys"> | ||
</div> | ||
<div class="flex flex-col gap-2 text-center"> | ||
<h1 class="text-3xl font-semibold text-gray-800">Login to your account</h1> | ||
<p class="text-lg text-gray-500">or login as admin</p> | ||
</div> | ||
<form method="POST" class="flex flex-col gap-7 md:w-1/2 w-full"> | ||
@csrf | ||
<x-forms.input type="email" name="email" label="Email Address" placeholder="[email protected]" icon="email" /> | ||
<x-forms.input type="password" name="password" label="Password" placeholder="********" icon="password" /> | ||
<div class="flex gap-6"> | ||
<img src="{{ asset('img/logo-polinema.svg') }}" alt="logo-polarys"> | ||
<img src="{{ asset('img/logo-dark.svg') }}" alt="logo-polarys"> | ||
</div> | ||
<div class="flex flex-col gap-2 text-center"> | ||
<h1 class="text-3xl font-semibold text-gray-800">Login to your account</h1> | ||
<p class="text-lg text-gray-500">or login as admin</p> | ||
</div> | ||
<form method="POST" class="flex flex-col gap-7 md:w-1/2 w-full"> | ||
@csrf | ||
<x-forms.input type="email" name="email" label="Email Address" placeholder="[email protected]" | ||
icon="email" autofocus="true" /> | ||
<x-forms.input type="password" name="password" label="Password" placeholder="********" icon="password" | ||
autofocus="false" /> | ||
|
||
<div class="flex justify-end"> | ||
<a href="/forgot-password" class="w-fit hover:text-gray-700">Forgot your password?</a> | ||
</div> | ||
<x-button text="Login" /> | ||
</form> | ||
<div class="flex flex-col gap-1 text-center"> | ||
<p>Dont have an account?</p> | ||
<a href="/register" class="underline underline-offset-4 hover:text-gray-700">Register Now</a> | ||
<div class="flex justify-end"> | ||
<a href="/forgot-password" class="w-fit hover:text-gray-700">Forgot your password?</a> | ||
</div> | ||
<x-button text="Login" /> | ||
</form> | ||
<div class="flex flex-col gap-1 text-center"> | ||
<p>Dont have an account?</p> | ||
<a href="/register" class="underline underline-offset-4 hover:text-gray-700">Register Now</a> | ||
</div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
@extends('layout.auth') | ||
|
||
@section('authForm') | ||
<div class="flex gap-6"> | ||
<img src="{{ asset('img/logo-polinema.svg') }}" alt="logo-polarys"> | ||
<img src="{{ asset('img/logo-dark.svg') }}" alt="logo-polarys"> | ||
</div> | ||
<div class="text-center"> | ||
<h1 class="text-3xl font-semibold text-gray-800">Register your account</h1> | ||
</div> | ||
<form method="POST" class="flex flex-col gap-7 md:w-1/2 w-full" enctype="multipart/form-data"> | ||
@csrf | ||
<x-forms.input type="text" name="name" label="Full Name" placeholder="John Doe" icon="user" /> | ||
<x-forms.input type="email" name="email" label="Email Address" placeholder="[email protected]" icon="email" /> | ||
<x-forms.input type="password" name="password" label="Password" placeholder="********" icon="password" /> | ||
<x-forms.input type="password" name="password_confirmation" label="Confirm Password" placeholder="********" icon="password" /> | ||
<x-forms.file-input name="identity" label="Identity File" /> | ||
<div class="flex gap-6"> | ||
<img src="{{ asset('img/logo-polinema.svg') }}" alt="logo-polarys"> | ||
<img src="{{ asset('img/logo-dark.svg') }}" alt="logo-polarys"> | ||
</div> | ||
<div class="text-center"> | ||
<h1 class="text-3xl font-semibold text-gray-800">Register your account</h1> | ||
</div> | ||
<form method="POST" class="flex flex-col gap-7 md:w-1/2 w-full" enctype="multipart/form-data"> | ||
@csrf | ||
<x-forms.input type="text" name="name" label="Full Name" placeholder="John Doe" icon="user" | ||
autofocus="true" /> | ||
<x-forms.input type="email" name="email" label="Email Address" placeholder="[email protected]" | ||
icon="email" autofocus="false" /> | ||
<x-forms.input type="password" name="password" label="Password" placeholder="********" icon="password" | ||
autofocus="false" /> | ||
<x-forms.input type="password" name="password_confirmation" label="Confirm Password" placeholder="********" | ||
icon="password" autofocus="false" /> | ||
<x-forms.file-input name="identity" label="Identity File" /> | ||
|
||
<x-button text="Register" /> | ||
</form> | ||
<div class="flex flex-col gap-1 text-center"> | ||
<p>Already have an account?</p> | ||
<a href="/login" class="underline underline-offset-4 hover:text-gray-700">Login Now</a> | ||
</div> | ||
<x-button text="Register" /> | ||
</form> | ||
<div class="flex flex-col gap-1 text-center"> | ||
<p>Already have an account?</p> | ||
<a href="/login" class="underline underline-offset-4 hover:text-gray-700">Login Now</a> | ||
</div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters