You've already forked Atomcms-edit
c53a5a8a2c
- 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
141 lines
6.1 KiB
PHP
Executable File
141 lines
6.1 KiB
PHP
Executable File
<x-app-layout>
|
||
@push('title', 'DJ Rooster')
|
||
|
||
<div class="col-span-12 lg:col-span-9 lg:w-[96%]">
|
||
<div class="flex flex-col gap-y-4">
|
||
<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">DJ Rooster</p>
|
||
<p class="text-xs" style="color: rgba(255,255,255,0.8)">Wanneer is de volgende show?</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="p-4 text-sm space-y-6" style="color: var(--color-text)">
|
||
@php
|
||
$days = [
|
||
'monday' => 'Maandag',
|
||
'tuesday' => 'Dinsdag',
|
||
'wednesday' => 'Woensdag',
|
||
'thursday' => 'Donderdag',
|
||
'friday' => 'Vrijdag',
|
||
'saturday' => 'Zaterdag',
|
||
'sunday' => 'Zondag',
|
||
];
|
||
$currentDay = strtolower(now()->format('l'));
|
||
@endphp
|
||
|
||
@foreach($days as $dayKey => $dayName)
|
||
@if(isset($schedule[$dayKey]) && $schedule[$dayKey]->count() > 0)
|
||
<div style="border-bottom: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);" class="pb-4 last:border-0">
|
||
<h3 class="text-lg font-bold mb-3" style="color: var(--color-primary); {{ $dayKey === $currentDay ? 'border: 2px solid ' . 'var(--color-primary); border-radius: 0.5rem; padding: 0.5rem;' : '' }}">
|
||
{{ $dayName }}
|
||
@if($dayKey === $currentDay)
|
||
<span class="text-xs bg-red-500 text-white px-2 py-1 rounded ml-2">Vandaag</span>
|
||
@endif
|
||
</h3>
|
||
|
||
<div class="space-y-2">
|
||
@foreach($schedule[$dayKey] as $slot)
|
||
<div class="flex items-center gap-4 p-3 rounded-lg" style="background-color: color-mix(in srgb, var(--color-background) 50%, transparent); {{ $dayKey === $currentDay && now()->format('H:i') >= $slot->start_time->format('H:i') && now()->format('H:i') <= $slot->end_time->format('H:i') ? 'border: 2px solid ' . '#22c55e' : '' }}">
|
||
<div class="text-center min-w-[80px]">
|
||
<p class="font-bold" style="color: var(--color-text)">{{ $slot->start_time->format('H:i') }}</p>
|
||
<p class="text-xs" style="color: var(--color-text-muted)">{{ $slot->end_time->format('H:i') }}</p>
|
||
</div>
|
||
|
||
<div class="flex-1">
|
||
<div class="flex items-center gap-2">
|
||
<span class="font-bold" style="color: var(--color-text)">{{ $slot->user->username }}</span>
|
||
@if($slot->show_name)
|
||
<span class="text-sm" style="color: var(--color-text-muted)">- {{ $slot->show_name }}</span>
|
||
@endif
|
||
</div>
|
||
@if($slot->description)
|
||
<p class="text-xs mt-1" style="color: var(--color-text-muted)">{{ $slot->description }}</p>
|
||
@endif
|
||
</div>
|
||
|
||
@if($dayKey === $currentDay && now()->format('H:i') >= $slot->start_time->format('H:i') && now()->format('H:i') <= $slot->end_time->format('H:i'))
|
||
<span class="px-2 py-1 bg-green-500 text-white text-xs rounded animate-pulse">NU LIVE</span>
|
||
@endif
|
||
</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
@endif
|
||
@endforeach
|
||
|
||
@if($schedule->isEmpty())
|
||
<div class="text-center py-8">
|
||
<p style="color: var(--color-text-muted)">Er zijn momenteel geen shows gepland.</p>
|
||
<p class="text-sm mt-2" style="color: var(--color-text-muted)">Kom later terug voor updates!</p>
|
||
</div>
|
||
@endif
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-span-12 lg:col-span-3 lg:w-[110%] space-y-4 lg:-ml-[32px]">
|
||
<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">Rooster Info</p>
|
||
<p class="text-xs" style="color: rgba(255,255,255,0.8)">Houd ons in de gaten!</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="p-4 text-sm space-y-4" style="color: var(--color-text)">
|
||
<p>Al onze DJ's staan klaar om je te entertainen met de beste muziek!</p>
|
||
|
||
<div class="space-y-2 text-xs">
|
||
<div class="flex items-center gap-2">
|
||
<span class="w-3 h-3 bg-green-500 rounded animate-pulse"></span>
|
||
<span>NU LIVE</span>
|
||
</div>
|
||
<div class="flex items-center gap-2">
|
||
<span class="w-3 h-3 rounded" style="background-color: var(--color-primary)"></span>
|
||
<span>Vandaag</span>
|
||
</div>
|
||
</div>
|
||
|
||
<p class="text-xs mt-4" style="color: var(--color-text-muted)">Tijden kunnen wijzigen zonder voorafgaande kennisgeving.</p>
|
||
|
||
<a href="{{ route('radio.index') }}" class="block mt-4" style="color: var(--color-primary); text-decoration: underline;">
|
||
← Terug naar Radio
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<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">Nu op Radio</p>
|
||
<p class="text-xs" style="color: rgba(255,255,255,0.8)">Luister mee!</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="p-4 text-sm" style="color: var(--color-text)">
|
||
<a href="{{ route('radio.index') }}" class="block text-center py-3 rounded-lg transition font-semibold" style="background-color: var(--color-primary); color: var(--button-text-color); text-decoration: none;">
|
||
▶ Luister Live
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</x-app-layout>
|