diff --git a/public/images/rotate-circle.webp b/public/images/rotate-circle.webp new file mode 100644 index 0000000..0bd1b8c Binary files /dev/null and b/public/images/rotate-circle.webp differ diff --git a/src/components/progress/YProgress.vue b/src/components/progress/YProgress.vue index c72ccd2..008d742 100644 --- a/src/components/progress/YProgress.vue +++ b/src/components/progress/YProgress.vue @@ -86,6 +86,7 @@ const percentage = computed(() => { align-items: center; justify-content: center; box-shadow: 0 0 10px 1px var(--progress-start-color); + z-index: auto; // 条纹效果 &::before { @@ -98,7 +99,7 @@ const percentage = computed(() => { background-image: v-bind('props.striped ? "linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)" : "none"'); background-size: 40px 40px; opacity: 0.6; - z-index: 1; + z-index: auto; animation: v-bind('props.animated && props.striped ? "progress-animation 2s linear infinite" : "none"'); } } diff --git a/src/components/watch/DigitalWatch.vue b/src/components/watch/DigitalWatch.vue index 052135a..31415d5 100644 --- a/src/components/watch/DigitalWatch.vue +++ b/src/components/watch/DigitalWatch.vue @@ -213,7 +213,7 @@ onUnmounted(() => { position: absolute; background-color: var(--color-led-off); border-radius: var(--segment-spacing); - + z-index: auto; &-on { background-color: var(--color-led); // box-shadow: 0 0 var(--glow-radius) var(--color-glow); diff --git a/src/styles/text-color.scss b/src/styles/text-color.scss index 745ec2e..d371f92 100644 --- a/src/styles/text-color.scss +++ b/src/styles/text-color.scss @@ -1,3 +1,15 @@ .text-color{ - background: linear-gradient(90deg, #8FC8FF 0%, #FFFFFF 100%); + position: relative; + color: #8FC8FF; + &::after { + content: attr(data-text); + position: absolute; + top: 0; + left: 0; + z-index: auto; + color: #fff; + -webkit-mask: linear-gradient(to bottom, transparent, #000); + white-space: nowrap; + padding-right: 4px; + } } \ No newline at end of file diff --git a/src/views/components/AskSection.vue b/src/views/components/AskSection.vue index 1708e88..2bf7ace 100644 --- a/src/views/components/AskSection.vue +++ b/src/views/components/AskSection.vue @@ -1,62 +1,62 @@ - - - - - \ No newline at end of file + const headerLeftSvg = ref(""); + const headerRightSvg = ref(""); + + const getHeaderLeftSvg = async () => { + const { default: svg } = await import("/src/assets/svg-img/header-bg-left.svg?raw"); + headerLeftSvg.value = svg; + }; + + const getHeaderRightSvg = async () => { + const { default: svg } = await import("/src/assets/svg-img/header-bg-right.svg?raw"); + headerRightSvg.value = svg; + }; + + const arrowLeftSvg = ref(""); + const getArrowLeftSvg = async () => { + const { default: svg } = await import("/src/assets/svg-img/arrow-left.svg?raw"); + arrowLeftSvg.value = svg; + }; + + const askSectionData = inject("askSectionData", ref({ stages: [] })); + + onBeforeMount(() => { + getHeaderLeftSvg(); + getHeaderRightSvg(); + getArrowLeftSvg(); + }); + + + diff --git a/src/views/components/BackgroundColor.vue b/src/views/components/BackgroundColor.vue deleted file mode 100644 index 1d9077e..0000000 --- a/src/views/components/BackgroundColor.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - - - diff --git a/src/views/components/ChargingRanking.vue b/src/views/components/ChargingRanking.vue index f267ad4..a2ea3be 100644 --- a/src/views/components/ChargingRanking.vue +++ b/src/views/components/ChargingRanking.vue @@ -1,17 +1,15 @@