From ba1b4bf354a98fbf209c0c8f12b27d68c1820b14 Mon Sep 17 00:00:00 2001 From: zyronon Date: Fri, 11 Aug 2023 18:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=BB=93=E6=9E=9C=E5=BC=B9?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/assets/css/anim.scss | 10 +++ src/assets/css/colors.scss | 3 +- src/assets/css/style.scss | 29 +++++-- src/components/Modal.vue | 18 ++++- src/components/Statistics.vue | 148 ++++++++++++++++++++++++++++++++-- src/components/Tooltip.vue | 66 +++++++++++++++ 7 files changed, 261 insertions(+), 15 deletions(-) create mode 100644 src/components/Tooltip.vue diff --git a/src/App.vue b/src/App.vue index d3f5e3a1..13ad74a0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -192,7 +192,7 @@ const show = $ref(false) - + diff --git a/src/assets/css/anim.scss b/src/assets/css/anim.scss index c7e7c7a2..691397ba 100644 --- a/src/assets/css/anim.scss +++ b/src/assets/css/anim.scss @@ -14,4 +14,14 @@ 以便能够正确地计算移动的动画。 */ .list-leave-active { position: absolute; +} + +.fade-enter-active, +.fade-leave-active { + transition: all 0.3s ease; +} + +.fade-enter-from, +.fade-leave-to { + opacity: 0; } \ No newline at end of file diff --git a/src/assets/css/colors.scss b/src/assets/css/colors.scss index f64ebcc2..5d1ae352 100644 --- a/src/assets/css/colors.scss +++ b/src/assets/css/colors.scss @@ -8,4 +8,5 @@ $main: rgb(12, 140, 233); $second: rgb(75, 110, 175); $item-hover: rgb(75, 75, 75); $space: 20rem; -$footer-height: 40rem; \ No newline at end of file +$footer-height: 40rem; +$card-radius: 8rem; \ No newline at end of file diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index ea6dd421..2fe8d6be 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -1,7 +1,6 @@ @import "@icon-park/vue-next/styles/index.css"; @import "colors"; @import "anim"; -@import "hover.css"; html, body { padding: 0; @@ -40,14 +39,34 @@ footer { gap: $space; } -.my-button { - font-size: 13rem; +.i-icon { cursor: pointer; - border-radius: 4rem; +} + +.my-button { + //font-size: 13rem; + cursor: pointer; + border-radius: 6rem; padding: 0 15rem; height: 28rem; display: flex; align-items: center; justify-content: center; - background: $main; + line-height: 18rem; + transition: all .3s; + background: rgb(75, 85, 99); + + &:hover { + opacity: .7; + } + + &.large { + height: 50rem; + font-size: 18rem; + padding: 0 18rem; + } + + &.primary { + background: $main; + } } \ No newline at end of file diff --git a/src/components/Modal.vue b/src/components/Modal.vue index fe64d2c8..9c16fa43 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -1,14 +1,24 @@ \ No newline at end of file diff --git a/src/components/Tooltip.vue b/src/components/Tooltip.vue new file mode 100644 index 00000000..e1449244 --- /dev/null +++ b/src/components/Tooltip.vue @@ -0,0 +1,66 @@ + +