23 lines
457 B
Vue
23 lines
457 B
Vue
<script setup lang="ts">
|
|
const store = useContactStore();
|
|
|
|
const buttonsImage = useTemplateRef("buttonsImage");
|
|
|
|
useRender((ctx) => {
|
|
if (!buttonsImage.value) return;
|
|
|
|
ctx.globalAlpha = store.isIntro
|
|
? store.intro.stage3Opacity
|
|
: store.outro.stage1Opacity;
|
|
ctx.drawImage(buttonsImage.value, 31, 32);
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<img
|
|
ref="buttonsImage"
|
|
src="/assets/images/contact/bottom-screen/buttons.png"
|
|
hidden
|
|
/>
|
|
</template>
|