From 05a5b436d1d8fcd15250d13988b7802e2c537113 Mon Sep 17 00:00:00 2001 From: log101 Date: Tue, 23 Jul 2024 22:45:07 +0300 Subject: [PATCH] feat: reveal image when unlock button is clicked --- src/components/LockedContent/templates.ts | 15 +++++---------- src/pages/[id].astro | 8 +++++--- src/scripts/lockedContent.ts | 21 ++++++++++++++++----- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/src/components/LockedContent/templates.ts b/src/components/LockedContent/templates.ts index b9a2ec6..5cbee98 100644 --- a/src/components/LockedContent/templates.ts +++ b/src/components/LockedContent/templates.ts @@ -8,8 +8,7 @@ function permissionButtonTemplate(onClickHandler: () => void) {
@@ -19,8 +18,7 @@ function permissionButtonTemplate(onClickHandler: () => void) {

@@ -34,8 +32,7 @@ function permissionDeniedButtonTemplate() { return html`
@@ -55,8 +52,7 @@ function lockedButtonTemplate(proximityText: string | undefined) { return html`
@@ -78,8 +74,7 @@ function unlockedButtonTemplate(onClickHandler: () => void) { diff --git a/src/pages/[id].astro b/src/pages/[id].astro index 8060d08..35d76e3 100644 --- a/src/pages/[id].astro +++ b/src/pages/[id].astro @@ -82,12 +82,14 @@ const dateFromNow = dayjs.utc(data?.created_at).from(dayjs.utc()); -
+