mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-29 09:49:38 +02:00
Changes?
This commit is contained in:
parent
c58c679d5f
commit
8ca74ab963
2 changed files with 14 additions and 14 deletions
|
@ -40,18 +40,20 @@
|
|||
<div
|
||||
class="card min-w-max lg:w-96 md:w-80 sm:w-60 xs:w-40 bg-primary-content shadow-xl overflow-hidden text-base-content"
|
||||
>
|
||||
{#if adventure.imageUrl && adventure.imageUrl.length > 0}
|
||||
<figure>
|
||||
<!-- svelte-ignore a11y-img-redundant-alt -->
|
||||
<img
|
||||
src={adventure.imageUrl}
|
||||
alt="No image available"
|
||||
class="w-full h-48 object-cover"
|
||||
/>
|
||||
</figure>
|
||||
{/if}
|
||||
<figure>
|
||||
<!-- svelte-ignore a11y-img-redundant-alt -->
|
||||
<img
|
||||
src={adventure.imageUrl ||
|
||||
"https://placehold.co/300?text=No%20Image%20Found&font=roboto"}
|
||||
alt="No image available"
|
||||
class="w-full h-48 object-cover"
|
||||
/>
|
||||
</figure>
|
||||
|
||||
<div class="card-body">
|
||||
<h2 class="card-title overflow-ellipsis">{adventure.name}</h2>
|
||||
<h2 class="card-title break-words max-w-11 text-wrap">
|
||||
{adventure.name}
|
||||
</h2>
|
||||
{#if adventure.location && adventure.location !== ""}
|
||||
<div class="inline-flex items-center">
|
||||
<iconify-icon icon="mdi:map-marker" class="text-xl"></iconify-icon>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue