feat(settings): screen setup
This commit is contained in:
13
app/components/Settings/BottomScreen/Background.vue
Normal file
13
app/components/Settings/BottomScreen/Background.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import BACKGROUND_IMAGE from "/assets/images/home/bottom-screen/background.webp";
|
||||
|
||||
const [backgroundImage] = useImages(BACKGROUND_IMAGE);
|
||||
|
||||
useRender((ctx) => {
|
||||
ctx.drawImage(backgroundImage!, 0, 0);
|
||||
});
|
||||
|
||||
defineOptions({
|
||||
render: () => null,
|
||||
});
|
||||
</script>
|
||||
13
app/components/Settings/BottomScreen/BottomScreen.vue
Normal file
13
app/components/Settings/BottomScreen/BottomScreen.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import Background from "./Background.vue";
|
||||
|
||||
const store = useSettingsStore();
|
||||
|
||||
onMounted(() => {
|
||||
store.$reset();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Background />
|
||||
</template>
|
||||
Reference in New Issue
Block a user