fix: cleanup artwork and episode template

This commit is contained in:
Paul Couture 2023-12-14 22:22:57 -06:00
parent a37789ff8a
commit ebd803282c
2 changed files with 33 additions and 27 deletions

View File

@ -58,19 +58,22 @@
<h4 class="mb-1">Description</h4> <h4 class="mb-1">Description</h4>
<p class="subtitle">{{ $artwork->description }}</p> <p class="subtitle">{{ $artwork->description }}</p>
@endif @endif
<div class="d-flex-between mb-5">
<ul class="nav custom-tabs">
<li>
<a href="{{ config('app.static_asset_url') }}/artworks/{{ $artwork->filename }}">Download 3k px Image</a>
</li>
<li>
<a href="{{ config('app.static_asset_url') }}/thumbnails/{{ $artwork->filename }}"">Download 512 px Image</a>
</li>
</ul>
</div>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<a class="btn btn-medium btn-gradient w-100 justify-content-center mt-5"
href="{{ config('app.static_asset_url') }}/artworks/{{ $artwork->filename }}">
<span>Download 3k px Image</span></a>
</div>
<div class="col">
<a class="btn btn-medium btn-gradient w-100 justify-content-center mt-5"
href="{{ config('app.static_asset_url') }}/thumbnails/{{ $artwork->filename }}">
<span>Download 512 px Image</span></a>
</div>
</div>
<div class="row">
<div class="col">
@if ($artwork->episode->artwork)
<a href="/podcast/{{ $artwork->episode->podcast->slug }}/episode/{{ $artwork->episode->slug }}" <a href="/podcast/{{ $artwork->episode->podcast->slug }}/episode/{{ $artwork->episode->slug }}"
class="btn btn-medium btn-gradient w-100 justify-content-center mt-5"><span><i class="btn btn-medium btn-gradient w-100 justify-content-center mt-5"><span><i
class="ri-headphone-fill"></i> class="ri-headphone-fill"></i>
@ -78,6 +81,7 @@ class="ri-headphone-fill"></i>
</span></a> </span></a>
</div> </div>
<div class="col"> <div class="col">
@endif
<a href="/podcasts/{{ $artwork->podcast->slug }}" <a href="/podcasts/{{ $artwork->podcast->slug }}"
class="btn btn-medium btn-gradient w-100 justify-content-center mt-5"><span><i class="btn btn-medium btn-gradient w-100 justify-content-center mt-5"><span><i
class="ri-broadcast-line"></i> class="ri-broadcast-line"></i>

View File

@ -42,17 +42,19 @@
<p class="subtitle"> <p class="subtitle">
{{ number_format($episode->artworks->count()) }} Artworks Submitted. {{ number_format($episode->artworks->count()) }} Artworks Submitted.
</p> </p>
<div class="d-flex-between mb-5">
<ul class="nav custom-tabs">
<li>
<a href="{{ config('app.static_asset_url') }}/artworks/{{ $episode->artwork->filename }}">Download 3k px Image</a>
</li>
<li>
<a href="{{ config('app.static_asset_url') }}/thumbnails/{{ $episode->artwork->filename }}"">Download 512 px Image</a>
</li>
</ul>
</div>
<div class="container"> <div class="container">
<div class="row">
<div class="col">
<a class="btn btn-medium btn-gradient w-100 justify-content-center mt-5"
href="{{ config('app.static_asset_url') }}/artworks/{{ $episode->artwork->filename }}">
<span>Download 3,000 px Image</span></a>
</div>
<div class="col">
<a class="btn btn-medium btn-gradient w-100 justify-content-center mt-5"
href="{{ config('app.static_asset_url') }}/thumbnails/{{ $episode->artwork->filename }}">
<span>Download 512px Image</span></a>
</div>
</div>
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<a href="{{ $episode->mp3 }}" <a href="{{ $episode->mp3 }}"