Skip to content

Commit

Permalink
refactor🎨: refactor background
Browse files Browse the repository at this point in the history
  • Loading branch information
honelone committed Sep 19, 2024
1 parent 4e7ef8d commit 12551a8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 544 deletions.
12 changes: 11 additions & 1 deletion src/components/Background/FilterBackground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@
</div>
</template>

<script setup></script>
<script lang="ts" setup>
import { onMounted, inject } from 'vue'
const state: any = inject('state')
onMounted(() => {
const delay = Math.floor(Math.random() * (600 - 300 + 1)) + 300
setTimeout(() => {
state.setImgLoaded(true)
}, delay)
})
</script>

<style scoped lang="less">
.filter-background-wrapper {
Expand Down
188 changes: 0 additions & 188 deletions src/components/Background/GridBackground.vue

This file was deleted.

108 changes: 0 additions & 108 deletions src/components/Background/LightBackground.vue

This file was deleted.

66 changes: 0 additions & 66 deletions src/components/Background/PopBackground.vue

This file was deleted.

Loading

0 comments on commit 12551a8

Please sign in to comment.