Files
Atomcms-edit/resources/themes/atom/views/auth/two-factor-challenge.blade.php
T
root c53a5a8a2c Complete Hubbly theme conversion: all pages rewritten with CSS variable theming
- Converted all views from Dusk components (x-content.content-card, x-form.*) to inline Hubbly style
- All pages use consistent card pattern: rounded-lg, gradient headers, color-mix borders
- Added Hubbly-style homepage with 2-column layout, login card, swiper news carousel
- Rewrote navigation with Alpine.js dropdowns, CSS variable colors, Hubbly assets
- Updated profile page with Hubbly cards, fixed data bugs (friend/guild relationships)
- Rewrote register page to match Hubbly layout: banner header, avatar preview with Frank GIF, 2-column form, avatar carousel selector, border-4 inputs
- Rewrote login, settings, help center, radio, applications, utility pages
- All colors use CSS variables controlled by Filament theme editor
- Added Hubbly assets: banner, Frank GIF, navigation icons, online badge
- Removed all dependencies on x-content.* and x-form.* components
2026-06-27 17:01:02 +02:00

68 lines
3.0 KiB
PHP
Executable File

<x-app-layout>
@push('title', __('Two-Factor Authentication'))
<div class="col-span-12 flex justify-center">
<div class="mx-auto max-w-md w-full rounded-lg overflow-hidden"
style="background-color: var(--color-surface); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
<div class="px-6 py-8 text-center"
style="background: linear-gradient(140deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 80%, black) 100%);">
<h2 class="text-xl font-bold text-white">{{ __('Two-Factor Authentication') }}</h2>
<p class="text-sm mt-1" style="color: color-mix(in srgb, white 70%, transparent);">
{{ __('Please enter your two-factor authentication code or one of your recovery codes.') }}
</p>
</div>
<div class="p-6">
<x-messages.flash-messages />
@if (session('error'))
<div class="mb-4 p-3 rounded-lg text-sm font-medium"
style="background-color: color-mix(in srgb, var(--button-danger-color, #ef4444) 15%, transparent); color: var(--button-danger-color, #ef4444);">
{{ session('error') }}
</div>
@endif
<form method="POST" action="{{ route('two-factor.login') }}">
@csrf
<div>
<label for="code" style="color: var(--color-text);">
{{ __('Code') }}
<span class="block text-xs font-normal" style="color: var(--color-text-muted);">{{ __('Enter the two-factor authentication code from your authenticator app.') }}</span>
</label>
<input name="code" type="text" placeholder="{{ __('Code') }}"
class="w-full rounded-lg px-3 py-2 text-sm border-2 focus:ring-0"
style="background-color: var(--color-background); color: var(--color-text); border-color: color-mix(in srgb, var(--color-text-muted) 15%, transparent);" />
</div>
<div class="mt-4">
<label for="recovery_code" style="color: var(--color-text);">
{{ __('Recovery Code') }}
<span class="block text-xs font-normal" style="color: var(--color-text-muted);">{{ __('Enter one of your recovery codes if you cannot access your authenticator app.') }}</span>
</label>
<input name="recovery_code" type="text" placeholder="{{ __('Recovery Code') }}"
class="w-full rounded-lg px-3 py-2 text-sm border-2 focus:ring-0"
style="background-color: var(--color-background); color: var(--color-text); border-color: color-mix(in srgb, var(--color-text-muted) 15%, transparent);" />
</div>
@if (setting('google_recaptcha_enabled'))
<div class="mt-4 g-recaptcha" data-sitekey="{{ config('habbo.site.recaptcha_site_key') }}"></div>
@endif
@if (setting('cloudflare_turnstile_enabled'))
<div class="mt-4">
<x-turnstile />
</div>
@endif
<div class="mt-6">
<button type="submit" class="rounded-lg px-4 py-2 text-sm font-semibold transition-all duration-200 hover:opacity-90" style="background-color: var(--color-primary); color: var(--button-text-color);">
{{ __('Verify') }}
</button>
</div>
</form>
</div>
</div>
</div>
</x-app-layout>