messages implemented

This commit is contained in:
2026-02-26 21:12:32 +01:00
parent d0aefc5ddc
commit 15b7b77d20
168 changed files with 14728 additions and 6786 deletions

View File

@@ -0,0 +1,40 @@
@extends('layouts.nova')
@section('content')
<div class="container mx-auto py-8">
<h1 class="text-2xl font-semibold mb-1">My Awards</h1>
<p class="text-sm text-soft mb-6">Artworks of yours that have received awards from the community.</p>
@if($artworks->isEmpty())
<div class="flex flex-col items-center justify-center py-20 text-center">
<i class="fa-solid fa-trophy text-4xl text-sb-muted mb-4"></i>
<p class="text-soft">None of your artworks have received awards yet.</p>
<a href="/browse" class="mt-4 text-sm text-accent hover:underline">Browse artworks for inspiration</a>
</div>
@else
<section data-nova-gallery data-gallery-type="dashboard-awards">
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6" data-gallery-grid>
@foreach($artworks as $art)
<div class="relative gallery-item">
<x-artwork-card :art="$art" />
@php $stat = $art->awardStat @endphp
@if($stat && ($stat->gold_count + $stat->silver_count + $stat->bronze_count) > 0)
<div class="absolute left-2 top-2 z-40 flex gap-1 text-xs font-bold">
@if($stat->gold_count) <span class="rounded px-1.5 py-0.5 bg-yellow-500/80 text-black">🥇 {{ $stat->gold_count }}</span> @endif
@if($stat->silver_count) <span class="rounded px-1.5 py-0.5 bg-neutral-400/80 text-black">🥈 {{ $stat->silver_count }}</span> @endif
@if($stat->bronze_count) <span class="rounded px-1.5 py-0.5 bg-amber-700/80 text-white">🥉 {{ $stat->bronze_count }}</span> @endif
</div>
@endif
</div>
@endforeach
</div>
<div class="mt-6" data-gallery-pagination>{{ $artworks->links() }}</div>
<div class="hidden" data-gallery-skeleton-template aria-hidden="true">
<x-skeleton.artwork-card />
</div>
<div class="hidden mt-8" data-gallery-skeleton></div>
</section>
@endif
</div>
@endsection

View File

@@ -1,17 +1,27 @@
@extends('layouts.nova')
@section('content')
<div class="container mx-auto py-8">
<h1 class="text-2xl font-semibold mb-4">Followers</h1>
<div class="container mx-auto py-8 max-w-3xl">
<h1 class="text-2xl font-semibold mb-6">My Followers</h1>
@if(empty($followers))
@if($followers->isEmpty())
<p class="text-sm text-gray-500">You have no followers yet.</p>
@else
<ul class="space-y-2">
<div class="space-y-3">
@foreach($followers as $f)
<li>{{ $f }}</li>
<a href="{{ $f->profile_url }}" class="flex items-center gap-4 p-3 rounded-lg hover:bg-white/5 transition">
<img src="{{ $f->avatar_url }}" alt="{{ $f->uname }}" class="w-10 h-10 rounded-full object-cover">
<div class="flex-1 min-w-0">
<div class="font-medium truncate">{{ $f->uname }}</div>
<div class="text-xs text-gray-500">{{ $f->uploads }} uploads &middot; followed {{ \Carbon\Carbon::parse($f->followed_at)->diffForHumans() }}</div>
</div>
</a>
@endforeach
</ul>
</div>
<div class="mt-6">
{{ $followers->links() }}
</div>
@endif
</div>
@endsection

View File

@@ -1,17 +1,27 @@
@extends('layouts.nova')
@section('content')
<div class="container mx-auto py-8">
<h1 class="text-2xl font-semibold mb-4">Following</h1>
<div class="container mx-auto py-8 max-w-3xl">
<h1 class="text-2xl font-semibold mb-6">People I Follow</h1>
@if(empty($following))
<p class="text-sm text-gray-500">You are not following anyone yet.</p>
@if($following->isEmpty())
<p class="text-sm text-gray-500">You are not following anyone yet. <a href="{{ route('discover.trending') }}" class="underline">Discover creators</a></p>
@else
<ul class="space-y-2">
<div class="space-y-3">
@foreach($following as $f)
<li>{{ $f }}</li>
<a href="{{ $f->profile_url }}" class="flex items-center gap-4 p-3 rounded-lg hover:bg-white/5 transition">
<img src="{{ $f->avatar_url }}" alt="{{ $f->uname }}" class="w-10 h-10 rounded-full object-cover">
<div class="flex-1 min-w-0">
<div class="font-medium truncate">{{ $f->uname }}</div>
<div class="text-xs text-gray-500">{{ $f->uploads }} uploads &middot; {{ $f->followers_count }} followers &middot; followed {{ \Carbon\Carbon::parse($f->followed_at)->diffForHumans() }}</div>
</div>
</a>
@endforeach
</ul>
</div>
<div class="mt-6">
{{ $following->links() }}
</div>
@endif
</div>
@endsection