<?phpnew class extends \Livewire\Component { public bool $showAuth = true; public string $country = 'US'; #[\Livewire\Attributes\Computed] public function countries() { return [ 'US' => 'United States', 'CA' => 'Canada', 'GB' => 'United Kingdom', 'AU' => 'Australia', 'DE' => 'Germany', 'FR' => 'France', 'NL' => 'Netherlands', 'ES' => 'Spain', 'BR' => 'Brazil', 'JP' => 'Japan', ]; }}?><div class="flex min-h-dvh items-center justify-center bg-zinc-50 bg-[radial-gradient(var(--color-zinc-300)_1px,transparent_1px)] bg-size-[16px_16px] dark:bg-zinc-900 dark:bg-[radial-gradient(var(--color-zinc-700)_1px,transparent_1px)]"> <flux:modal.trigger name="auth"> <flux:button variant="primary">Log in</flux:button> </flux:modal.trigger> <flux:modal name="auth" wire:model="showAuth" :closable="false" class="w-full max-w-sm"> <flux:tab.group> <flux:tabs> <flux:tab name="log-in" :accent="false" class="flex-1 justify-center">Log in</flux:tab> <flux:tab name="sign-up" :accent="false" class="flex-1 justify-center">Sign up</flux:tab> </flux:tabs> <div class="mt-6 space-y-2"> <flux:button class="w-full"> <x-slot name="icon"> <img src="https://fluxui.dev/img/demos/auth-modal/google.svg" alt="" class="size-4"> </x-slot> Continue with Google </flux:button> <flux:button class="w-full"> <x-slot name="icon"> <img src="https://fluxui.dev/img/demos/auth-modal/facebook.svg" alt="" class="size-4"> </x-slot> Continue with Facebook </flux:button> <flux:button class="w-full"> <x-slot name="icon"> <img src="https://fluxui.dev/img/demos/auth-modal/apple.svg" alt="" class="size-4 dark:invert"> </x-slot> Continue with Apple </flux:button> </div> <flux:separator text="or" class="mt-6" /> <flux:tab.panel name="log-in" class="space-y-6 pt-6"> <flux:input type="email" label="Email" placeholder="[email protected]" /> <flux:field> <div class="mb-3 flex justify-between"> <flux:label>Password</flux:label> <flux:link href="#" variant="subtle" class="text-sm">Forgot password?</flux:link> </div> <flux:input type="password" placeholder="••••••••••" viewable /> </flux:field> <flux:button variant="primary" class="w-full">Log in</flux:button> </flux:tab.panel> <flux:tab.panel name="sign-up" class="space-y-6 pt-6"> <flux:input type="email" label="Email" placeholder="[email protected]" /> <flux:input type="password" label="Password" placeholder="••••••••••" viewable /> <flux:input label="Full name" placeholder="John Doe" /> <flux:select wire:model="country" variant="listbox" label="Country"> @foreach ($this->countries as $code => $name) <flux:select.option :value="$code" :label="$name"> <div class="flex items-center gap-2"> <flux:flag :country="$code" /> {{ $name }} </div> </flux:select.option> @endforeach </flux:select> <flux:field variant="inline" class="items-start"> <flux:checkbox /> <flux:label>I have read and agree to the <flux:link href="#">Terms of service</flux:link> & <flux:link href="#">Privacy policy</flux:link>.</flux:label> </flux:field> <flux:button variant="primary" class="w-full">Sign up</flux:button> </flux:tab.panel> </flux:tab.group> </flux:modal></div>