diff --git a/src/lib/components/Stamp.svelte b/src/lib/components/Stamp.svelte index 4ba8188..d1d537a 100644 --- a/src/lib/components/Stamp.svelte +++ b/src/lib/components/Stamp.svelte @@ -7,12 +7,13 @@ export let name: string; export let collected = false; export let navURL = `/partner/${hash}`; + export let nsfw = false; const PLACEHOLDER_STAMP_IMG = placeholderImg; export let img = PLACEHOLDER_STAMP_IMG; - export const fadeDuration = 100; + export const fadeDuration = 50; @@ -26,7 +27,16 @@ : 'bg-secondary bg-opacity-30'} " >
-
+
+ {#if nsfw} +
+ 18+ +
+ {/if} {name}
diff --git a/src/lib/components/StampSheet.svelte b/src/lib/components/StampSheet.svelte index 1251465..779baba 100644 --- a/src/lib/components/StampSheet.svelte +++ b/src/lib/components/StampSheet.svelte @@ -87,7 +87,7 @@
-

Stamps

+

Stamps

+

+ Collected {getCollectedCount()} / {minStampCountRequired} +

{#if isQuestCompleted} -

+

Show sheet to staff at the booth!

{:else} @@ -126,10 +129,13 @@ collected={isStampCollected(stamp)} index={i} hash={stamp.hash || ''} + nsfw={stamp.nsfw} img={stamp.image_url || undefined} /> {/each}
+ + {/if}
diff --git a/src/routes/partner/[hash]/+page.svelte b/src/routes/partner/[hash]/+page.svelte index 68c0c29..1ffc46c 100644 --- a/src/routes/partner/[hash]/+page.svelte +++ b/src/routes/partner/[hash]/+page.svelte @@ -6,7 +6,7 @@ export let data: PageData; - const { name, description, image_url, external_url, booth_id } = data.stamp; + const { name, description, image_url, external_url, booth_id, nsfw } = data.stamp;
-

{name}

-

{booth_id ?? 'ask for booth number'}

+

+ {name} + {#if nsfw} + 18+ + {/if} +

+

+ {booth_id ?? 'ask for booth number'} +

{#if description}