24-4: home page sections — implemented, QA Review
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
@props(['post'])
|
||||
|
||||
<a class="post" href="{{ route('posts.show', $post) }}" wire:navigate data-reveal>
|
||||
<div class="bd">
|
||||
<span class="meta" dir="auto">{{ $post->published_at?->translatedFormat('j F Y') }}</span>
|
||||
<h3>{{ $post->getTitle() }}</h3>
|
||||
<p>{{ \Illuminate\Support\Str::limit(strip_tags($post->getBody()), 140) }}</p>
|
||||
<span class="more">{{ __('home.read_more') }}</span>
|
||||
</div>
|
||||
</a>
|
||||
@@ -0,0 +1,13 @@
|
||||
@props(['label', 'title', 'lede' => null])
|
||||
|
||||
<div class="sec-head">
|
||||
<div>
|
||||
<span class="art-no" data-reveal>{{ $label }}</span>
|
||||
<h2 data-reveal data-d="1">{{ $title }}</h2>
|
||||
</div>
|
||||
@if ($lede)
|
||||
<p data-reveal data-d="2">{{ $lede }}</p>
|
||||
@else
|
||||
{{ $slot }}
|
||||
@endif
|
||||
</div>
|
||||
Reference in New Issue
Block a user