网站和推流制作完成

This commit is contained in:
2025-08-08 16:07:49 +08:00
parent 3f67c118de
commit 7894b155dd
87 changed files with 26936 additions and 73 deletions

View File

@@ -0,0 +1,55 @@
<template>
<div class="progress-bar-container">
<div class="progress-bar-label">
<span>{{ label }}</span>
<span class="progress-bar-value">{{ value }}%</span>
</div>
<div class="progress-bar">
<div
class="progress-bar-fill"
:style="{ width: `${value}%`, opacity: isVisible ? 1 : 0 }"
></div>
</div>
</div>
</template>
<script setup lang="ts">
import { ref, onMounted } from "vue";
interface ProgressBarProps {
label: string;
value: number;
}
const props = defineProps<ProgressBarProps>();
const isVisible = ref(false);
onMounted(() => {
setTimeout(() => {
isVisible.value = true;
}, 500);
});
</script>
<style scoped>
.progress-bar-container {
@apply mb-4;
}
.progress-bar-label {
@apply flex justify-between items-center mb-1;
}
.progress-bar-value {
@apply font-medium text-blue-500;
}
.progress-bar {
@apply h-1.5 bg-gray-100 dark:bg-gray-700 rounded-full overflow-hidden relative;
}
.progress-bar-fill {
@apply h-full bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500 transition-all duration-1000 ease-out;
}
</style>