-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7653378
commit 0fe8aca
Showing
5 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
resources/views/front/pages/insights/partials/insightListItem.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div> | ||
<a href="{{ $insight->url }}"> | ||
{{ $insight->title }} | ||
|
||
<div> | ||
<time | ||
datetime="{{ $post->date->format('Y-m-d') }}">{{ $post->date->format('d F Y') }}</time> {{ $insight->website }} | ||
|
||
</div> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<x-page title="Blog" background="/backgrounds/blogs.jpg"> | ||
{{ $post->date?->format('d F Y') ?? 'Preview' }} | ||
|
||
<h1>{{ $post->title }}</h1> | ||
|
||
@if($post->header_image) | ||
<img class="w-full rounded-md my-4" alt="" src="{{ $post->header_image }}"/> | ||
@endif | ||
|
||
<div> | ||
@foreach ($post->authors as $author) | ||
<div class="flex items-center gap-x-2"> | ||
<img src="{{ $author->gravatar_url }}" alt="" class="h-6 w-6 rounded-full bg-indigo-50"> | ||
<div class="text-[0.6rem] leading-6"> | ||
<p class="font-semibold text-indigo-900"> | ||
<span> | ||
<span class="absolute inset-0"></span> | ||
{{ $author->name }} | ||
</span> | ||
</p> | ||
</div> | ||
</div> | ||
@endforeach | ||
</div> | ||
|
||
<div> | ||
{!! $post->content !!} | ||
</div> | ||
|
||
<a href="{{ route('insights') }}">Back to insights</a> | ||
|
||
@if(count($otherPosts)) | ||
<h2>Continue reading</h2> | ||
@foreach($otherPosts as $otherPost) | ||
<a href="{{ route('insights.show', $otherPost->slug) }}"> | ||
{{ $otherPost->title }} | ||
{{ htmlspecialchars_decode(strip_tags($post->summary)) }} | ||
</a> | ||
@endforeach | ||
@endif | ||
|
||
<livewire:newsletter-component/> | ||
</x-page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters