diff --git a/src/style/card-animation.scss b/src/style/card-animation.scss new file mode 100644 index 0000000..3b48d8b --- /dev/null +++ b/src/style/card-animation.scss @@ -0,0 +1,20 @@ +@keyframes fade-up { + 0% { + transform: translateY(60px); + opacity: 0; + } + 100% { + transform: translateY(0); + opacity: 1; + } +} + +@for $i from 0 through 20 { + .animated-fade-up-#{$i} { + opacity: 0; // 初始透明度 + animation-name: fade-up; // 应用动画 + animation-duration: 0.5s; // 动画持续时间 + animation-fill-mode: forwards; // 保持结束后的动画状态 + animation-delay: calc($i/10) + s; // 设置延迟-每次延迟0.1s + } +} diff --git a/src/style/global-style.scss b/src/style/global-style.scss index 8f5af1e..206be52 100644 --- a/src/style/global-style.scss +++ b/src/style/global-style.scss @@ -1,4 +1,9 @@ /* global style scss */ +.dc-page { + padding: $padding; + background: $color-bg-1; +} + // 左间距-行内文字 .margin-left-text { margin-left: $margin-text; @@ -8,23 +13,26 @@ margin-right: $margin-text; } -.flex-row-between-center { - display: flex; - justify-content: space-between; - align-items: center; -} - +// 中等卡片大小 .card-middling { width: 200px; } +// 一行完全居中 .row-center { display: flex; justify-content: center; align-items: center; } +// 垂直居中,从左到右 .row-start-center { display: flex; justify-content: start; align-items: center; } +// 垂直居中,左右占满 +.flex-row-between-center { + display: flex; + justify-content: space-between; + align-items: center; +} diff --git a/src/style/index.scss b/src/style/index.scss index 53e7011..d2b8c6c 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -2,6 +2,7 @@ @import "./global-transition.scss"; @import "./global-style.scss"; @import "./loading-page.scss"; +@import "./card-animation.scss"; * { margin: 0; padding: 0; diff --git a/src/views/home/components/data-box.vue b/src/views/home/components/data-box.vue new file mode 100644 index 0000000..699b4ce --- /dev/null +++ b/src/views/home/components/data-box.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/views/home/components/finance.vue b/src/views/home/components/finance.vue new file mode 100644 index 0000000..553f761 --- /dev/null +++ b/src/views/home/components/finance.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/src/views/home/components/shortcut.vue b/src/views/home/components/shortcut.vue new file mode 100644 index 0000000..8ec102e --- /dev/null +++ b/src/views/home/components/shortcut.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/src/views/home/components/target-box.vue b/src/views/home/components/target-box.vue new file mode 100644 index 0000000..ca7a5d2 --- /dev/null +++ b/src/views/home/components/target-box.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/src/views/home/home.vue b/src/views/home/home.vue index 2336827..bef0644 100644 --- a/src/views/home/home.vue +++ b/src/views/home/home.vue @@ -1,329 +1,21 @@ - +