1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-28 09:19:37 +02:00

Update AdventureCard component and add country flag support

This commit is contained in:
Sean Morley 2024-04-13 20:09:00 +00:00
parent fd1b85609e
commit 02455d290b
5 changed files with 77 additions and 10 deletions

View file

@ -6,10 +6,10 @@
export let type: String;
export let name: String;
export let location: String;
export let created: string;
export let id: Number;
export let name: String | undefined = undefined;
export let location: String | undefined = undefined;
export let created: String | undefined = undefined;
export let id: Number | undefined = undefined;
function remove() {
dispatch("remove", id);
@ -103,3 +103,16 @@
</div>
</div>
{/if}
{#if type === "worldtravelregion"}
<div
class="card min-w-max lg:w-96 md:w-80 sm:w-60 xs:w-40 bg-neutral shadow-xl overflow-hidden"
>
<div class="card-body">
<h2 class="card-title overflow-ellipsis">{name}</h2>
<div class="card-actions justify-end">
<button class="btn btn-primary">Mark Visited</button>
</div>
</div>
</div>
{/if}