complete story 12.3

This commit is contained in:
Naser Mansour
2026-01-04 00:38:55 +02:00
parent c855b7b159
commit 74eacd53ae
16 changed files with 167 additions and 119 deletions
@@ -20,19 +20,19 @@ new #[Layout('components.layouts.public')] class extends Component
<article class="max-w-3xl mx-auto">
<header class="mb-8">
<flux:heading size="xl" class="text-charcoal">{{ $post->getTitle() }}</flux:heading>
<flux:heading size="xl" class="text-text">{{ $post->getTitle() }}</flux:heading>
<time class="text-charcoal/70 mt-2 block">
<time class="text-text/70 mt-2 block">
{{ $post->published_at?->translatedFormat('l, d F Y') ?? $post->created_at->translatedFormat('l, d F Y') }}
</time>
</header>
<div class="prose prose-lg prose-navy max-w-none">
<div class="prose prose-lg prose-brand max-w-none">
{!! $post->getBody() !!}
</div>
<footer class="mt-12 pt-6 border-t border-charcoal/20">
<a href="{{ route('posts.index') }}" class="text-warm-gray hover:underline" wire:navigate>
<footer class="mt-12 pt-6 border-t border-accent/20">
<a href="{{ route('posts.index') }}" class="text-primary hover:underline" wire:navigate>
&larr; {{ __('posts.back_to_posts') }}
</a>
</footer>