feat(home): navigation and outro animation to settings

This commit is contained in:
2025-11-24 11:17:13 +01:00
parent 11efbe7a38
commit 32fc9a3547
9 changed files with 47 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
<script setup lang="ts">
import BUTTON_IMAGE from "/assets/images/home/bottom-screen/buttons/settings.webp";
const props = defineProps<{
x: number;
y: number;
opacity: number;
}>();
const [buttonImage] = useImages(BUTTON_IMAGE);
useRender((ctx) => {
ctx.globalAlpha = props.opacity;
ctx.drawImage(buttonImage!, props.x, props.y);
});
defineOptions({
render: () => null,
});
</script>