79493194

Date: 2025-03-07 18:33:36
Score: 0.5
Natty:
Report link

Sorry about that, the below works of course; too little coffee and was expecting to see the ref in chrome dev mode, jesus.

This works:

const logoEl = useTemplateRef('thelogo')

onMounted(() => {
    console.log(logoEl.value?.$el)

})

</script>

<template>
    <div class="home-wrapper">
        <section class="logo" ref="logo">
            <!--<TheLogo class="logo__svg" :fontControlled="false" />-->
            <NuxtImg src="/thelogo.png" ref="thelogo" loading="lazy" format="webp" quality="100"
                sizes="50vw sm:60vw md:500px" densities="x1 x2" />
        </section>

        <section class="title">THOMAS<br>THORSTENSSON</section>
    </div>
</template>

Thanks, Thomas

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Thomas James Thorstensson