Update (view): redesign
This commit is contained in:
@@ -2,18 +2,32 @@
|
||||
@section('content')
|
||||
<main class="container">
|
||||
@if (!is_null($featured_post))
|
||||
<div class="p-4 p-md-5 mb-4 rounded text-body-emphasis bg-body-secondary">
|
||||
<div class="p-4 p-md-5 mb-4 rounded-3 text-body-emphasis bg-white shadow-sm">
|
||||
<div class="col-lg-12 px-0">
|
||||
<h1 class="display-4 fst-italic">{{ $featured_post->title }}</h1>
|
||||
<p class="lead my-3">{{ $featured_post->excerpt }}</p>
|
||||
<p class="lead mb-0"><a href="{{ route('front.post', ['slug' => $featured_post->slug, 'category_slug' => $featured_post->category->slug]) }}"
|
||||
<h1 class="display-6 fw-semibold mb-1">{{ $featured_post->title }}</h1>
|
||||
|
||||
<div class="mb-1 text-body-secondary">
|
||||
|
||||
@if (!is_empty($featured_post->published_at))
|
||||
{{ $featured_post->published_at->format('M j') }}
|
||||
@endif
|
||||
|
||||
<i class="bi bi-dot"></i>
|
||||
|
||||
{{ markdown_min_read($featured_post->body) }}
|
||||
|
||||
</div>
|
||||
|
||||
<p class="lead my-3 mb-3">{{ $featured_post->excerpt }}</p>
|
||||
<p class="lead mb-0"><a
|
||||
href="{{ route('front.post', ['slug' => $featured_post->slug, 'category_slug' => $featured_post->category->slug]) }}"
|
||||
class=" fw-bold">Continue reading...</a></p>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="row g-5">
|
||||
<div class="row g-4">
|
||||
<div class="col-md-8">
|
||||
|
||||
@if ($latest_posts->count() > 0)
|
||||
@@ -22,7 +36,7 @@ class=" fw-bold">Continue reading...</a></p>
|
||||
@endforeach
|
||||
|
||||
<div class="w-100 d-flex justify-content-center">
|
||||
<a class="btn btn-outline-primary rounded-pill px-3 text-decoration-none"
|
||||
<a class="btn btn-primary shadow rounded-pill px-3 text-decoration-none"
|
||||
href="{{ route('front.all') }}">View Latest News</a>
|
||||
</div>
|
||||
@else
|
||||
|
||||
Reference in New Issue
Block a user