From 818aa628aacc106bf7482c1963f760b7110690ba Mon Sep 17 00:00:00 2001 From: Yu-Jia Huang Date: Tue, 14 Nov 2023 23:37:00 +0800 Subject: [PATCH] feat: add activity modal --- assets/image/cursor.svg | 9 +++ assets/scss/style.scss | 5 +- components/UI/BaseButton.vue | 12 ++-- components/UI/BaseSwiper.vue | 89 ++++++++++++++++++------ components/UI/Dialog/ActivityContent.vue | 39 ++++++----- components/UI/Dialog/BaseDialog.vue | 24 +++++-- components/UI/Dialog/PolicyContent.vue | 19 +++-- components/UI/Dialog/ServiceContent.vue | 2 +- layouts/BaseFooter.vue | 3 + layouts/default.vue | 5 +- pages/index.vue | 2 - stores/home.ts | 2 +- utils/constant.ts | 27 +++---- 13 files changed, 162 insertions(+), 76 deletions(-) create mode 100644 assets/image/cursor.svg diff --git a/assets/image/cursor.svg b/assets/image/cursor.svg new file mode 100644 index 0000000..1d9f3a1 --- /dev/null +++ b/assets/image/cursor.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/assets/scss/style.scss b/assets/scss/style.scss index bb55591..5160ab1 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -3,7 +3,6 @@ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Noto+Sans+TC:wght@100;200;300;400;500;600;700;800;900&display=swap'); - @font-face { font-family: 'mantou-sans'; src: url('/assets/fonts/MantouSans-Regular.ttf') format('truetype'); @@ -174,7 +173,7 @@ position:absolute, } .cursor-pointer{ - cursor: pointer; + cursor: url('~/assets/image/cursor.svg'),auto; &:hover{ background: linear-gradient(90deg, #E6793B 1.54%, #FF4185 97.86%); background: -webkit-linear-gradient(90deg, #E6793B 1.54%, #FF4185 97.86%); @@ -184,4 +183,4 @@ position:absolute, } } -} \ No newline at end of file +} diff --git a/components/UI/BaseButton.vue b/components/UI/BaseButton.vue index d08080c..4b718d9 100644 --- a/components/UI/BaseButton.vue +++ b/components/UI/BaseButton.vue @@ -1,7 +1,7 @@