feat: Inertia profile settings page, Studio edit redesign, EGS, Nova UI components\n\n- Redesign /dashboard/profile as Inertia React page (Settings/ProfileEdit)\n with SettingsLayout sidebar, Nova UI components (TextInput, Textarea,\n Toggle, Select, RadioGroup, Modal, Button), avatar drag-and-drop,\n password change, and account deletion sections\n- Redesign Studio artwork edit page with two-column layout, Nova components,\n integrated TagPicker, and version history modal\n- Add shared MarkdownEditor component\n- Add Early-Stage Growth System (EGS): SpotlightEngine, FeedBlender,\n GridFiller, AdaptiveTimeWindow, ActivityLayer, admin panel\n- Fix upload category/tag persistence (V1+V2 paths)\n- Fix tag source enum, category tree display, binding resolution\n- Add settings.jsx Vite entry, settings.blade.php wrapper\n- Update ProfileController with JSON response support for API calls\n- Various route fixes (profile.edit, toolbar settings link)"

This commit is contained in:
2026-03-03 20:57:43 +01:00
parent dc51d65440
commit b9c2d8597d
114 changed files with 8760 additions and 693 deletions

View File

@@ -0,0 +1,28 @@
{{--
401 Unauthorized
Use for: routes that require authentication when user is not logged in.
--}}
@extends('errors._layout', [
'error_code' => 401,
'error_title' => 'Sign In Required',
'error_message' => 'Please sign in to access this page.',
])
@section('badge', 'Unauthorized')
@section('primary-cta')
<a href="/login"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-sign-in-alt" aria-hidden="true"></i>
Sign In
</a>
@endsection
@section('secondary-ctas')
<a href="/register" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Create Account
</a>
<a href="/" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Home
</a>
@endsection

View File

@@ -0,0 +1,43 @@
{{--
403 Forbidden
Use for: private artwork, banned content, region restrictions.
Shows login button if user is a guest; profile/discover if logged in.
--}}
@extends('errors._layout', [
'error_code' => 403,
'error_title' => 'Access Denied',
'error_message' => $message ?? 'You do not have permission to view this content.',
])
@section('badge', 'Forbidden')
@section('primary-cta')
@guest
<a href="/login"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-sign-in-alt" aria-hidden="true"></i>
Sign In
</a>
@else
<a href="/discover/trending"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-compass" aria-hidden="true"></i>
Back to Discover
</a>
@endguest
@endsection
@section('secondary-ctas')
@guest
<a href="/register" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Create Account
</a>
@else
<a href="/@{{ Auth::user()->username }}" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
My Profile
</a>
@endguest
<a href="/" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Home
</a>
@endsection

View File

@@ -0,0 +1,90 @@
{{--
404 Generic Not Found
Returned when a route has no match.
Includes: trending artworks (6), top tags (10), discover CTA.
--}}
@extends('errors._layout', [
'error_code' => 404,
'error_title' => '404 — Lost in the Nova',
'error_message' => 'This page drifted into deep space. Let\'s get you back on track.',
])
@section('badge', 'Page Not Found')
@section('primary-cta')
<a href="/discover/trending"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-compass" aria-hidden="true"></i>
Explore Discover
</a>
@endsection
@section('secondary-ctas')
<a href="/explore/wallpapers" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Browse Wallpapers
</a>
<a href="/search" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
<i class="fas fa-search mr-1.5" aria-hidden="true"></i> Search
</a>
<a href="/" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Home
</a>
@endsection
@section('recovery')
{{-- Trending artworks --}}
@if(isset($trendingArtworks) && $trendingArtworks->count())
<div class="mb-12">
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">Trending Right Now</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3">
@foreach($trendingArtworks->take(6) as $artwork)
@include('errors._artwork-card', ['artwork' => $artwork])
@endforeach
</div>
</div>
@endif
{{-- Top tags --}}
@if(isset($trendingTags) && $trendingTags->count())
<div class="mb-12">
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">Popular Tags</h2>
<div class="flex flex-wrap gap-2">
@foreach($trendingTags->take(10) as $tag)
<a href="/tag/{{ $tag->slug }}"
class="rounded-full bg-white/5 hover:bg-sky-500/20 border border-white/8 hover:border-sky-500/30 text-white/70 hover:text-sky-300 px-3 py-1 text-xs font-medium transition-colors">
#{{ $tag->name }}
</a>
@endforeach
</div>
</div>
@endif
{{-- Explore categories --}}
<div>
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">Explore Categories</h2>
<div class="grid grid-cols-2 sm:grid-cols-4 gap-3">
<a href="/explore/wallpapers"
class="rounded-xl bg-white/3 hover:bg-sky-500/10 border border-white/5 hover:border-sky-500/20 px-4 py-3 flex items-center gap-3 transition-all group">
<i class="fas fa-image text-sky-400/60 group-hover:text-sky-400 text-lg" aria-hidden="true"></i>
<span class="text-sm font-medium text-white/80 group-hover:text-white">Wallpapers</span>
</a>
<a href="/explore/skins"
class="rounded-xl bg-white/3 hover:bg-sky-500/10 border border-white/5 hover:border-sky-500/20 px-4 py-3 flex items-center gap-3 transition-all group">
<i class="fas fa-paint-brush text-sky-400/60 group-hover:text-sky-400 text-lg" aria-hidden="true"></i>
<span class="text-sm font-medium text-white/80 group-hover:text-white">Skins</span>
</a>
<a href="/explore/photography"
class="rounded-xl bg-white/3 hover:bg-sky-500/10 border border-white/5 hover:border-sky-500/20 px-4 py-3 flex items-center gap-3 transition-all group">
<i class="fas fa-camera text-sky-400/60 group-hover:text-sky-400 text-lg" aria-hidden="true"></i>
<span class="text-sm font-medium text-white/80 group-hover:text-white">Photography</span>
</a>
<a href="/explore/other"
class="rounded-xl bg-white/3 hover:bg-sky-500/10 border border-white/5 hover:border-sky-500/20 px-4 py-3 flex items-center gap-3 transition-all group">
<i class="fas fa-layer-group text-sky-400/60 group-hover:text-sky-400 text-lg" aria-hidden="true"></i>
<span class="text-sm font-medium text-white/80 group-hover:text-white">Other</span>
</a>
</div>
</div>
@endsection

View File

@@ -0,0 +1,29 @@
{{--
410 Gone
Use for permanently deleted artworks, DMCA removed content, deleted blog posts.
Minimal content no heavy suggestions needed by spec.
--}}
@extends('errors._layout', [
'error_code' => 410,
'error_title' => 'Content Permanently Removed',
'error_message' => 'This content has been permanently removed and is no longer available.',
])
@section('badge', 'Gone')
@section('primary-cta')
<a href="/discover/trending"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-compass" aria-hidden="true"></i>
Explore Discover
</a>
@endsection
@section('secondary-ctas')
<a href="/" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Return Home
</a>
<a href="/search" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
<i class="fas fa-search mr-1.5" aria-hidden="true"></i> Search
</a>
@endsection

View File

@@ -0,0 +1,24 @@
{{--
419 Page Expired (CSRF token mismatch)
--}}
@extends('errors._layout', [
'error_code' => 419,
'error_title' => 'Page Expired',
'error_message' => 'Your session has expired. Please refresh the page and try again.',
])
@section('badge', 'Session Expired')
@section('primary-cta')
<button onclick="window.location.reload()"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors cursor-pointer">
<i class="fas fa-redo" aria-hidden="true"></i>
Refresh Page
</button>
@endsection
@section('secondary-ctas')
<a href="/" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Return Home
</a>
@endsection

View File

@@ -0,0 +1,40 @@
{{--
500 Server Error
Shows a user-friendly message and a reference/correlation ID.
Never shows a stack trace in production.
--}}
@extends('errors._layout', [
'error_code' => 500,
'error_title' => 'Something Went Wrong in the Nova',
'error_message' => 'An unexpected error occurred. Our team has been notified and is on it.',
])
@section('badge', 'Server Error')
@section('primary-cta')
<button onclick="window.location.reload()"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors cursor-pointer">
<i class="fas fa-redo" aria-hidden="true"></i>
Try Again
</button>
@endsection
@section('secondary-ctas')
<a href="/" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Return Home
</a>
<a href="/contact" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Report Issue
</a>
@endsection
@section('recovery')
@if(isset($correlationId))
<div class="flex justify-center">
<div class="inline-flex items-center gap-2 rounded-xl bg-white/4 border border-white/8 px-5 py-3 text-xs text-white/40">
<i class="fas fa-fingerprint text-white/25" aria-hidden="true"></i>
Reference ID: <span class="font-mono font-semibold text-white/60 select-all">{{ $correlationId }}</span>
</div>
</div>
@endif
@endsection

View File

@@ -0,0 +1,18 @@
{{--
503 Service Unavailable / Maintenance Mode
--}}
@extends('errors._layout', [
'error_code' => 503,
'error_title' => 'We\'ll Be Right Back',
'error_message' => 'Skinbase is under scheduled maintenance. Check back soon.',
])
@section('badge', 'Maintenance')
@section('primary-cta')
<button onclick="window.location.reload()"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors cursor-pointer">
<i class="fas fa-redo" aria-hidden="true"></i>
Check Again
</button>
@endsection

View File

@@ -0,0 +1,22 @@
{{--
Shared: artwork suggestion card for error pages.
Expects $artwork array: [id, title, author, url, thumb]
--}}
<a href="{{ $artwork['url'] }}" class="group relative rounded-xl overflow-hidden bg-nova-800 border border-white/5 hover:border-sky-500/30 transition-all duration-200 block">
@if($artwork['thumb'])
<div class="aspect-video w-full overflow-hidden bg-nova-700">
<img src="{{ $artwork['thumb'] }}"
alt="{{ $artwork['title'] }}"
loading="lazy"
class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300 opacity-80 group-hover:opacity-100" />
</div>
@else
<div class="aspect-video w-full bg-gradient-to-br from-nova-700 to-nova-800 flex items-center justify-center">
<i class="fas fa-image text-white/20 text-3xl" aria-hidden="true"></i>
</div>
@endif
<div class="p-3">
<p class="text-sm font-semibold text-white truncate">{{ $artwork['title'] }}</p>
<p class="text-xs text-white/50 truncate mt-0.5">by {{ $artwork['author'] }}</p>
</div>
</a>

View File

@@ -0,0 +1,71 @@
{{--
Error Layout extends nova.blade.php
Shared structure for all error pages (404, 410, 403, 401, 500, contextual variants).
Enforces:
noindex
No canonical link
Dark Nova design
Full navigation visible
Recovery CTAs
Variables:
$error_code int HTTP status code
$error_title string Short headline
$error_message string Friendly sentence
--}}
@extends('layouts.nova')
@php
$code = $error_code ?? 404;
$title = $error_title ?? 'Page Not Found';
$message = $error_message ?? 'This page drifted into deep space.';
@endphp
@push('head')
{{-- SEO: never index error pages --}}
<meta name="robots" content="noindex, nofollow" />
@endpush
@section('content')
<div class="min-h-[70vh] flex flex-col items-center justify-center px-4 py-16">
{{-- Hero block --}}
<div class="text-center max-w-xl mx-auto">
{{-- Code glow --}}
<div class="text-8xl font-extrabold text-sky-500/20 select-none leading-none mb-2">{{ $code }}</div>
{{-- Gradient badge --}}
<div class="inline-flex items-center gap-2 rounded-full bg-sky-500/10 border border-sky-500/20 px-4 py-1 text-xs font-semibold text-sky-400 uppercase tracking-widest mb-6">
@yield('badge', 'Error')
</div>
<h1 class="text-3xl sm:text-4xl font-extrabold text-white leading-tight mb-4">
{{ $title }}
</h1>
<p class="text-white/60 text-base sm:text-lg leading-relaxed mb-8">
{{ $message }}
</p>
{{-- Primary CTA --}}
@yield('primary-cta')
{{-- Secondary CTAs --}}
@hasSection('secondary-ctas')
<div class="flex flex-wrap justify-center gap-3 mt-4">
@yield('secondary-ctas')
</div>
@endif
</div>
{{-- Contextual recovery section --}}
@hasSection('recovery')
<div class="w-full max-w-5xl mx-auto mt-16">
@yield('recovery')
</div>
@endif
</div>
@endsection

View File

@@ -0,0 +1,99 @@
{{--
Artwork Not Found (contextual) HTTP 404 or 403
Shown when:
- Artwork ID not found at all HTTP 404
- Artwork exists but is private/unapproved HTTP 403 ($isForbidden=true)
Separate view for permanently deleted errors/410.blade.php
Variables:
$isForbidden bool true when private/403
$trendingArtworks Collection (max 6)
$creatorArtworks Collection (max 6, optional)
$creatorUsername string|null
--}}
@php
$isForbidden = $isForbidden ?? false;
$errorCode = $isForbidden ? 403 : 404;
$errorTitle = $isForbidden ? 'Access Denied' : 'Artwork Not Found';
$errorMessage = $isForbidden
? 'This artwork is private and not publicly available.'
: 'This artwork is no longer available, or the link may be broken.';
$badgeLabel = $isForbidden ? 'Private Artwork' : 'Artwork Not Found';
@endphp
@extends('errors._layout', [
'error_code' => $errorCode,
'error_title' => $errorTitle,
'error_message' => $errorMessage,
])
@section('badge', $badgeLabel)
@section('primary-cta')
@if($isForbidden)
@guest
<a href="/login"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-sign-in-alt" aria-hidden="true"></i>
Sign In to View
</a>
@else
<a href="/discover/trending"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-compass" aria-hidden="true"></i>
Explore Discover
</a>
@endguest
@else
<a href="/discover/trending"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-compass" aria-hidden="true"></i>
Explore Discover
</a>
@endif
@endsection
@section('secondary-ctas')
<a href="/explore/wallpapers" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Browser Wallpapers
</a>
<a href="/search" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
<i class="fas fa-search mr-1.5" aria-hidden="true"></i> Search
</a>
@endsection
@section('recovery')
{{-- Creator's other artworks (if we have a hint about the creator) --}}
@if(isset($creatorArtworks) && $creatorArtworks->count())
<div class="mb-12">
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">
More from this Creator
</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3">
@foreach($creatorArtworks->take(6) as $artwork)
@include('errors._artwork-card', ['artwork' => $artwork])
@endforeach
</div>
@if(isset($creatorUsername))
<div class="mt-3">
<a href="/@{{ $creatorUsername }}" class="text-xs text-sky-400 hover:text-sky-300 transition-colors">
View full gallery
</a>
</div>
@endif
</div>
@endif
{{-- Trending artworks --}}
@if(isset($trendingArtworks) && $trendingArtworks->count())
<div>
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">Trending Wallpapers</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3">
@foreach($trendingArtworks->take(6) as $artwork)
@include('errors._artwork-card', ['artwork' => $artwork])
@endforeach
</div>
</div>
@endif
@endsection

View File

@@ -0,0 +1,52 @@
{{--
Blog Post Not Found Contextual 404
Shown at /blog/:slug when post doesn't exist or is unpublished.
Variables:
$latestPosts Collection (max 6)
--}}
@extends('errors._layout', [
'error_code' => 404,
'error_title' => 'Article Not Found',
'error_message' => 'This article is no longer available or the link has changed.',
])
@section('badge', 'Article Not Found')
@section('primary-cta')
<a href="/blog"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-newspaper" aria-hidden="true"></i>
Visit Blog
</a>
@endsection
@section('secondary-ctas')
<a href="/" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Home
</a>
@endsection
@section('recovery')
@if(isset($latestPosts) && $latestPosts->count())
<div>
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">Latest Articles</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
@foreach($latestPosts->take(6) as $post)
<a href="{{ $post['url'] }}"
class="flex flex-col gap-2 rounded-xl p-4 bg-white/3 hover:bg-white/7 border border-white/5 hover:border-sky-500/20 transition-all">
<p class="text-sm font-semibold text-white leading-snug">{{ $post['title'] }}</p>
@if(!empty($post['excerpt']))
<p class="text-xs text-white/50 leading-relaxed flex-1">{{ $post['excerpt'] }}</p>
@endif
@if(!empty($post['published_at']))
<p class="text-xs text-white/30 mt-auto">{{ $post['published_at'] }}</p>
@endif
</a>
@endforeach
</div>
</div>
@endif
@endsection

View File

@@ -0,0 +1,94 @@
{{--
Creator Not Found Contextual 404
Shown at /@:username when user doesn't exist.
Variables:
$requestedUsername string|null
$trendingCreators Collection (max 6)
$recentCreators Collection (max 6)
--}}
@extends('errors._layout', [
'error_code' => 404,
'error_title' => 'Creator Not Found',
'error_message' => isset($requestedUsername)
? 'The creator "@' . $requestedUsername . '" does not exist on Skinbase.'
: 'This creator profile does not exist.',
])
@section('badge', 'Creator Not Found')
@section('primary-cta')
{{-- Inline creator search --}}
<form action="/search" method="GET" class="flex items-center gap-2 w-full max-w-sm mx-auto mb-2">
<input
type="text"
name="q"
placeholder="Search for a creator…"
value="{{ isset($requestedUsername) ? '@'.$requestedUsername : '' }}"
class="flex-1 rounded-xl bg-white/8 border border-white/12 focus:border-sky-500/50 focus:ring-0 text-sm text-white placeholder-white/30 px-4 py-2.5 outline-none transition-colors"
/>
<button type="submit"
class="rounded-xl bg-sky-500 hover:bg-sky-400 text-white px-4 py-2.5 text-sm font-semibold transition-colors shrink-0">
<i class="fas fa-search" aria-hidden="true"></i>
</button>
</form>
@endsection
@section('secondary-ctas')
<a href="/creators/top" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
<i class="fas fa-trophy mr-1.5" aria-hidden="true"></i> Top Creators
</a>
<a href="/register" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
<i class="fas fa-star mr-1.5" aria-hidden="true"></i> Join Skinbase
</a>
@endsection
@section('recovery')
{{-- Trending creators --}}
@if(isset($trendingCreators) && $trendingCreators->count())
<div class="mb-12">
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">Top Creators</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-4">
@foreach($trendingCreators->take(6) as $creator)
<a href="{{ $creator['url'] }}"
class="flex flex-col items-center gap-2 rounded-xl p-4 bg-white/3 hover:bg-white/7 border border-white/5 hover:border-sky-500/20 transition-all text-center group">
<img src="{{ $creator['avatar_url'] }}"
alt="{{ $creator['name'] }}"
loading="lazy"
class="w-14 h-14 rounded-full object-cover ring-2 ring-white/10 group-hover:ring-sky-500/30 transition-all"
onerror="this.src='https://files.skinbase.org/default/avatar_default.webp'" />
<div>
<p class="text-sm font-semibold text-white truncate max-w-[100px]">{{ $creator['name'] }}</p>
<p class="text-xs text-white/40">{{ $creator['artworks_count'] }} uploads</p>
</div>
</a>
@endforeach
</div>
</div>
@endif
{{-- Recently joined creators --}}
@if(isset($recentCreators) && $recentCreators->count())
<div>
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">Recently Joined</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-4">
@foreach($recentCreators->take(6) as $creator)
<a href="{{ $creator['url'] }}"
class="flex flex-col items-center gap-2 rounded-xl p-4 bg-white/3 hover:bg-white/7 border border-white/5 hover:border-sky-500/20 transition-all text-center group">
<img src="{{ $creator['avatar_url'] }}"
alt="{{ $creator['name'] }}"
loading="lazy"
class="w-14 h-14 rounded-full object-cover ring-2 ring-white/10 group-hover:ring-sky-500/30 transition-all"
onerror="this.src='https://files.skinbase.org/default/avatar_default.webp'" />
<div>
<p class="text-sm font-semibold text-white truncate max-w-[100px]">{{ $creator['name'] }}</p>
<p class="text-xs text-white/40">{{ $creator['artworks_count'] }} uploads</p>
</div>
</a>
@endforeach
</div>
</div>
@endif
@endsection

View File

@@ -0,0 +1,31 @@
{{--
Static Page Not Found Contextual 404
Shown at /pages/:slug or /about|/help|/contact when page not in DB.
--}}
@extends('errors._layout', [
'error_code' => 404,
'error_title' => 'Page Not Found',
'error_message' => 'This page was removed or renamed. Try one of the links below.',
])
@section('badge', 'Page Not Found')
@section('primary-cta')
<a href="/help"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-question-circle" aria-hidden="true"></i>
Help Center
</a>
@endsection
@section('secondary-ctas')
<a href="/about" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
About
</a>
<a href="/contact" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Contact
</a>
<a href="/" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Home
</a>
@endsection

View File

@@ -0,0 +1,70 @@
{{--
Tag Not Found Contextual 404
Shown at /tag/:slug when slug not in DB.
Variables:
$requestedSlug string
$similarTags Collection (max 10)
$trendingTags Collection (max 10)
--}}
@extends('errors._layout', [
'error_code' => 404,
'error_title' => 'Tag Not Found',
'error_message' => 'The tag "' . ($requestedSlug ?? '') . '" doesn\'t exist yet.',
])
@section('badge', 'Tag Not Found')
@section('primary-cta')
<a href="/tags"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-tags" aria-hidden="true"></i>
Browse All Tags
</a>
@endsection
@section('secondary-ctas')
<a href="/discover/trending" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Trending
</a>
<a href="/search" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
<i class="fas fa-search mr-1.5" aria-hidden="true"></i> Search
</a>
@endsection
@section('recovery')
{{-- Similar tags --}}
@if(isset($similarTags) && $similarTags->count())
<div class="mb-10">
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">Similar Tags</h2>
<div class="flex flex-wrap gap-2">
@foreach($similarTags->take(10) as $tag)
<a href="/tag/{{ $tag->slug }}"
class="rounded-full bg-sky-500/10 hover:bg-sky-500/20 border border-sky-500/20 hover:border-sky-500/40 text-sky-300 hover:text-sky-200 px-3 py-1 text-xs font-medium transition-colors">
#{{ $tag->name }}
@if($tag->artworks_count ?? null)
<span class="text-sky-400/60 ml-1">{{ number_format($tag->artworks_count) }}</span>
@endif
</a>
@endforeach
</div>
</div>
@endif
{{-- Trending tags --}}
@if(isset($trendingTags) && $trendingTags->count())
<div>
<h2 class="text-sm font-semibold text-white/40 uppercase tracking-widest mb-4">Popular Tags</h2>
<div class="flex flex-wrap gap-2">
@foreach($trendingTags->take(10) as $tag)
<a href="/tag/{{ $tag->slug }}"
class="rounded-full bg-white/5 hover:bg-sky-500/20 border border-white/8 hover:border-sky-500/30 text-white/70 hover:text-sky-300 px-3 py-1 text-xs font-medium transition-colors">
#{{ $tag->name }}
</a>
@endforeach
</div>
</div>
@endif
@endsection