feat: move top screen components to own folder, and implement calendar
This commit is contained in:
13
app/components/TopScreen/Background.vue
Normal file
13
app/components/TopScreen/Background.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
const backgroundImage = useTemplateRef("backgroundImage");
|
||||
|
||||
useRender((ctx) => {
|
||||
if (!backgroundImage.value) return;
|
||||
|
||||
ctx.drawImage(backgroundImage.value, 0, 0);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<img ref="backgroundImage" src="/assets/background.png" hidden />
|
||||
</template>
|
||||
Reference in New Issue
Block a user