mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-02 11:45:17 +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>
|
||||
|
|
|
@ -213,9 +213,7 @@
|
|||
<EditModal bind:adventureToEdit on:submit={save} on:close={handleClose} />
|
||||
{/if}
|
||||
|
||||
<div
|
||||
class="grid xl:grid-cols-3 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1 gap-4 mt-4 content-center auto-cols-auto ml-6 mr-6"
|
||||
>
|
||||
<div class="flex flex-wrap gap-4 mr-4 ml-4 justify-center content-center">
|
||||
{#each adventures as adventure (adventure.id)}
|
||||
<AdventureCard
|
||||
{adventure}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue