generated from filamentphp/plugin-skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
58 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,24 @@ | ||
<div class="relative flex min-h-screen shrink-0 justify-center md:px-12 lg:px-0"> | ||
<div | ||
class="relative z-10 flex flex-1 flex-col bg-white px-4 py-10 shadow-2xl sm:justify-center md:flex-none md:px-28"> | ||
<main class="mx-auto w-full max-w-md sm:px-4 md:w-96 md:max-w-sm md:px-0"> | ||
<div class="flex justify-center"> | ||
<a href="#" class="-m-1.5 p-1.5"> | ||
<span class="sr-only">{{ config('app.name') }}</span> | ||
<span class="text-3xl font-bold xs:text-2xl">{{ config('app.name') }}</span> | ||
</a> | ||
</div> | ||
<h2 class="mt-20 text-lg font-semibold text-gray-900 text-center"> | ||
{{ __('Authenticate with your Authentication code') }} | ||
</h2> | ||
{{ $this->resend() }} | ||
<x-filament-panels::page.simple> | ||
@if (filament()->hasRegistration()) | ||
<x-slot name="subheading"> | ||
{{ __('filament-panels::pages/auth/login.actions.register.before') }} | ||
|
||
<form method="POST" action="{{ route('two-factor.login') }}" class="space-y-8"> | ||
{{ $this->registerAction }} | ||
</x-slot> | ||
@endif | ||
<h2 class="mt-20 text-lg font-semibold text-gray-900 text-center"> | ||
{{ __('Authenticate with your Authentication code') }} | ||
</h2> | ||
|
||
<form method="POST" action="{{ route('two-factor.login') }}" class="space-y-8"> | ||
|
||
@csrf | ||
{{ $this->form }} | ||
@csrf | ||
{{ $this->form }} | ||
|
||
<div class="flex items-center justify-between"> | ||
<x-filament::button color="secondary" class="w-full" type="button" tag="a" outlined | ||
href="{{ route('login') }}"> | ||
{{ __('Cancel') }} | ||
</x-filament::button> | ||
<x-filament::button type="submit" class="w-full" color="info"> | ||
{{ __('Login') }} | ||
</x-filament::button> | ||
</div> | ||
</form> | ||
|
||
</main> | ||
</div> | ||
<div class="hidden sm:contents lg:relative lg:block lg:flex-1"> | ||
<img class="absolute inset-0 h-full w-full object-cover" src="/img/background-auth.jpg" alt="" | ||
unoptimized /> | ||
</div> | ||
</div> | ||
<div class="flex items-center justify-between mt-6"> | ||
<x-filament::button type="submit" class="w-full" color="info"> | ||
{{ __('Login') }} | ||
</x-filament::button> | ||
</div> | ||
</form> | ||
</x-filament-panels::page.simple> |
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