24-8: articles and legal pages — implemented, QA Review
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,24 +18,17 @@ new #[Layout('components.layouts.public')] class extends Component
|
||||
}
|
||||
}; ?>
|
||||
|
||||
<div class="wrap py-8">
|
||||
<article class="max-w-3xl mx-auto">
|
||||
<header class="mb-8">
|
||||
<flux:heading size="xl" class="text-body">{{ $post->getTitle() }}</flux:heading>
|
||||
<section class="sec" style="padding-top:56px">
|
||||
<article class="wrap" style="max-width:768px">
|
||||
<span class="meta">{{ $post->published_at?->translatedFormat('l, d F Y') ?? $post->created_at->translatedFormat('l, d F Y') }}</span>
|
||||
<h1 style="font-size:clamp(2rem,3.4vw,3rem);margin:10px 0 28px">{{ $post->getTitle() }}</h1>
|
||||
|
||||
<time class="text-body/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-brand max-w-none site-prose">
|
||||
{!! $post->getBody() !!}
|
||||
</div>
|
||||
|
||||
<div class="prose prose-lg prose-brand max-w-none">
|
||||
{!! $post->getBody() !!}
|
||||
</div>
|
||||
|
||||
<footer class="mt-12 pt-6 border-t border-cta/20">
|
||||
<a href="{{ route('posts.index') }}" class="text-cta hover:text-cta-hover hover:underline" wire:navigate>
|
||||
← {{ __('posts.back_to_posts') }}
|
||||
</a>
|
||||
</footer>
|
||||
</article>
|
||||
</div>
|
||||
<footer style="border-top:1px solid var(--line);margin-top:48px;padding-top:24px">
|
||||
<a class="btn btn-ghost" href="{{ route('posts.index') }}" wire:navigate>{{ __('posts.back_to_posts') }}</a>
|
||||
</footer>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user