From 4bfc5f5858ad0b3683acb4dddab34e960973679f Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Thu, 18 Dec 2025 16:19:46 +0100 Subject: [PATCH] feat(projects): confirmation popup before opening link --- .../Projects/BottomScreen/BottomScreen.vue | 2 + .../Projects/BottomScreen/Buttons.vue | 44 +++-- .../BottomScreen/LinkConfirmationPopup.vue | 157 ++++++++++++++++++ app/stores/projects.ts | 1 + i18n/locales/en.json | 7 + .../popup-choice-background.webp | Bin 0 -> 90 bytes .../bottom-screen/popup-selector.webp | Bin 0 -> 60 bytes .../bottom-screen/popup-text-background.webp | Bin 0 -> 100 bytes 8 files changed, 198 insertions(+), 13 deletions(-) create mode 100644 app/components/Projects/BottomScreen/LinkConfirmationPopup.vue create mode 100644 public/images/projects/bottom-screen/popup-choice-background.webp create mode 100644 public/images/projects/bottom-screen/popup-selector.webp create mode 100644 public/images/projects/bottom-screen/popup-text-background.webp diff --git a/app/components/Projects/BottomScreen/BottomScreen.vue b/app/components/Projects/BottomScreen/BottomScreen.vue index d28f5cd..c45a0b7 100644 --- a/app/components/Projects/BottomScreen/BottomScreen.vue +++ b/app/components/Projects/BottomScreen/BottomScreen.vue @@ -1,6 +1,7 @@ diff --git a/app/stores/projects.ts b/app/stores/projects.ts index fb2693e..811c0f2 100644 --- a/app/stores/projects.ts +++ b/app/stores/projects.ts @@ -24,6 +24,7 @@ export const useProjectsStore = defineStore("projects", { isIntro: true, isOutro: false, + showConfirmationPopup: false, }), actions: { diff --git a/i18n/locales/en.json b/i18n/locales/en.json index f753ec6..49bc57e 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -32,5 +32,12 @@ "title": "Touch Screen", "description": "TODO" } + }, + "projects": { + "linkConformationPopup": { + "yes": "yes", + "no": "no", + "text": "Open {url}?" + } } } diff --git a/public/images/projects/bottom-screen/popup-choice-background.webp b/public/images/projects/bottom-screen/popup-choice-background.webp new file mode 100644 index 0000000000000000000000000000000000000000..f2b7dad8698791354dc2931201580c7006b844a2 GIT binary patch literal 90 zcmV-g0Hyy@Nk&Fe00012MM6+kP&iCQ0000lJHQGMRVa!isnLfFY+~)cfPn!3{3;XP literal 0 HcmV?d00001 diff --git a/public/images/projects/bottom-screen/popup-text-background.webp b/public/images/projects/bottom-screen/popup-text-background.webp new file mode 100644 index 0000000000000000000000000000000000000000..7dfba0d72121b508f4f137570766fdef0eaedb6f GIT binary patch literal 100 zcmV-q0Gt0(Nk&Fo00012MM6+kP&iCa0000l`@jkiH7JTCsX-Ff&Jvc8!!vzz*dfxk z863QY`8RkdBq01>DvIL#Pk<8ac!B@B9Z<(-mVvNFPlBBrJ(A`2@4xTAGe^Gz{RR%u G@d5x~