feat(home): pictochat -> contact

This commit is contained in:
2025-11-17 00:52:18 +01:00
parent 4c021178ac
commit cde4b991d7
4 changed files with 3 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
<script setup lang="ts">
const props = defineProps<{
x: number;
y: number;
opacity: number;
}>();
const buttonImage = useTemplateRef("buttonImage");
useRender((ctx) => {
if (!buttonImage.value) return;
ctx.globalAlpha = props.opacity;
ctx.drawImage(buttonImage.value, props.x, props.y);
});
</script>
<template>
<img
ref="buttonImage"
src="/assets/images/home/bottom-screen/buttons/contact.png"
hidden
/>
</template>