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
This commit is contained in:
root
2026-06-27 17:01:02 +02:00
parent 61bb70ac1d
commit c53a5a8a2c
68 changed files with 4708 additions and 4608 deletions
@@ -7,7 +7,7 @@
@continue(!$position->team)
@php
$status = auth()->check()
? ($userAppStatuses[$position->team->id] ?? null) // 'pending'|'approved'|'rejected'|null
? ($userAppStatuses[$position->team->id] ?? null)
: null;
$statusLabel = $status ? ucfirst($status) : null;
@@ -19,87 +19,109 @@
};
@endphp
<x-content.staff-content-section :badge="$position->team->badge" :color="$position->team->staff_color">
<x-slot:title>
<span class="inline-flex items-center gap-2">
{{ $position->team->rank_name }}
<div class="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="flex gap-x-2.5 p-3.5" style="border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);">
<div class="w-12 h-12 min-w-[3rem] rounded-full flex items-center justify-center" style="background-color: {{ $position->team->staff_color }}">
<img src="{{ asset(sprintf('%s/%s.gif', setting('badges_path'), $position->team->badge)) }}" alt="">
</div>
<div class="flex flex-col justify-center text-sm">
<p class="font-semibold" style="color: var(--color-text)">
<span class="inline-flex items-center gap-2">
{{ $position->team->rank_name }}
@if ($statusLabel)
<span class="inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium {{ $statusColorClasses }}">
{{ $statusLabel }}
</span>
@endif
</span>
</x-slot:title>
@if ($statusLabel)
<span class="inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium {{ $statusColorClasses }}">
{{ $statusLabel }}
</span>
@endif
</span>
</p>
<p style="color: var(--color-text-muted)">{{ $position->team?->job_description }}</p>
</div>
</div>
<x-slot:under-title>
{{ $position->team?->job_description }}
</x-slot:under-title>
<div class="p-3" style="color: var(--color-text)">
<div class="text-center">
<div class="mb-4 text-sm">
{!! $position->description !!}
</div>
<div class="mb-4 text-sm font-semibold">
{{ __('Application Deadline :date', ['date' => $position->apply_to ? $position->apply_to->format('F j, Y, g:i A') : __('No deadline set')]) }}
</div>
</div>
<div class="text-center dark:text-gray-400">
<div class="mb-4 text-sm">
{!! $position->description !!}
<div class="flex justify-between">
@auth
@if ($status)
<button type="button" disabled class="rounded-lg px-4 py-2 text-sm font-semibold transition-all duration-200 hover:opacity-90 w-full justify-center" style="background-color: var(--color-background); color: var(--color-text); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
@switch($status)
@case('pending')
{{ __('Your application is pending') }}
@break
@case('approved')
{{ __('You have been approved') }}
@break
@case('rejected')
{{ __('Your application was rejected') }}
@break
@default
{{ __('Application submitted') }}
@endswitch
</button>
@else
<a href="{{ route('team-applications.show', $position) }}" class="w-full">
<button type="submit" class="rounded-lg px-4 py-2 text-sm font-semibold transition-all duration-200 hover:opacity-90 w-full justify-center" style="background-color: var(--color-primary); color: var(--button-text-color);">
{{ __('Apply for :position', ['position' => $position->team->rank_name]) }}
</button>
</a>
@endif
@else
<a href="{{ route('login') }}" class="w-full">
<button type="button" class="rounded-lg px-4 py-2 text-sm font-semibold transition-all duration-200 hover:opacity-90 w-full justify-center" style="background-color: var(--color-background); color: var(--color-text); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
{{ __('Login to apply') }}
</button>
</a>
@endauth
</div>
</div>
</div>
<div class="mb-4 text-sm font-semibold">
{{ __('Application Deadline :date', ['date' => $position->apply_to ? $position->apply_to->format('F j, Y, g:i A') : __('No deadline set')]) }}
</div>
</div>
<div class="flex justify-between">
@auth
@if ($status)
{{-- Already applied: show a disabled button indicating status --}}
<x-form.secondary-button class="w-full justify-center" disabled>
@switch($status)
@case('pending')
{{ __('Your application is pending') }}
@break
@case('approved')
{{ __('You have been approved') }}
@break
@case('rejected')
{{ __('Your application was rejected') }}
@break
@default
{{ __('Application submitted') }}
@endswitch
</x-form.secondary-button>
@else
{{-- No application yet: show Apply --}}
<a href="{{ route('team-applications.show', $position) }}" class="w-full">
<x-form.primary-button class="w-full justify-center">
{{ __('Apply for :position', ['position' => $position->team->rank_name]) }}
</x-form.primary-button>
</a>
@endif
@else
<a href="{{ route('login') }}" class="w-full">
<x-form.secondary-button class="w-full justify-center">
{{ __('Login to apply') }}
</x-form.secondary-button>
</a>
@endauth
</div>
</x-content.staff-content-section>
@empty
<x-content.content-card icon="lighthouse-icon" classes="border dark:border-gray-900 col-span-full">
<x-slot:title>{{ __('No team positions open') }}</x-slot:title>
<x-slot:under-title>{{ __('There are currently no open team positions') }}</x-slot:under-title>
<div class="px-2 text-sm space-y-4 dark:text-gray-200">
<p>{{ __('Please come back later to check for new openings. Thank you!') }}</p>
<div class="rounded-lg overflow-hidden col-span-full" style="background-color: var(--color-surface); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
<div class="relative w-full" style="background: linear-gradient(140deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 80%, black) 100%);">
<div class="flex items-center h-full px-4 py-3 gap-3">
<div class="w-8 h-8 rounded-full flex items-center justify-center text-lg shadow-lg" style="background-color: color-mix(in srgb, var(--color-primary) 30%, transparent);">
🏮
</div>
<div>
<p class="text-white font-bold text-sm">{{ __('No team positions open') }}</p>
<p class="text-xs" style="color: rgba(255,255,255,0.8)">{{ __('There are currently no open team positions') }}</p>
</div>
</div>
</div>
<div class="p-4 text-sm space-y-4" style="color: var(--color-text)">
<p>{{ __('Please come back later to check for new openings. Thank you!') }}</p>
</div>
</div>
</x-content.content-card>
@endforelse
</div>
</div>
<div class="col-span-12 lg:col-span-3 lg:w-[110%] space-y-4 lg:-ml-[32px]">
<x-content.content-card icon="chat-icon" classes="border dark:border-gray-900">
<x-slot:title>{{ __('Apply for :hotel Team', ['hotel' => setting('hotel_name')]) }}</x-slot:title>
<x-slot:under-title>{{ __('Select a team to get started') }}</x-slot:under-title>
<div class="px-2 text-sm space-y-4 dark:text-gray-200">
<p>{{ __('We open team applications periodically. If you see a team you fit, do not hesitate to apply!') }}</p>
<div class="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="relative w-full" style="background: linear-gradient(140deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 80%, black) 100%);">
<div class="flex items-center h-full px-4 py-3 gap-3">
<div class="w-8 h-8 rounded-full flex items-center justify-center text-lg shadow-lg" style="background-color: color-mix(in srgb, var(--color-primary) 30%, transparent);">
💬
</div>
<div>
<p class="text-white font-bold text-sm">{{ __('Apply for :hotel Team', ['hotel' => setting('hotel_name')]) }}</p>
<p class="text-xs" style="color: rgba(255,255,255,0.8)">{{ __('Select a team to get started') }}</p>
</div>
</div>
</div>
<div class="p-4 text-sm space-y-4" style="color: var(--color-text)">
<p>{{ __('We open team applications periodically. If you see a team you fit, do not hesitate to apply!') }}</p>
</div>
</div>
</x-content.content-card>
</div>
</x-app-layout>