32 lines
901 B
Vue
32 lines
901 B
Vue
<script setup lang="ts">
|
|
import type { TrackingObject } from '#layers/types/api/common'
|
|
|
|
interface Props {
|
|
tracking: TrackingObject
|
|
}
|
|
|
|
const props = defineProps<Props>()
|
|
|
|
const { locale } = useI18n()
|
|
const { sendLog } = useAnalytics()
|
|
|
|
const handlePlayClick = () => {
|
|
sendLog(locale.value, props.tracking)
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<button class="btn-play" @click="handlePlayClick">
|
|
<AtomsIconsArrowRightFill />
|
|
<span class="sr-only">Play</span>
|
|
</button>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.btn-play {
|
|
@apply relative flex items-center justify-center w-[60px] h-[60px] bg-[image:var(--video-play)] bg-cover bg-center bg-no-repeat md:w-[80px] md:h-[80px]
|
|
after:content-[''] after:absolute after:top-0 after:left-0 after:w-full after:h-full after:bg-white after:rounded-[50%] after:opacity-0 after:transition-opacity after:duration-300 after:ease-in-out
|
|
hover:after:opacity-10;
|
|
}
|
|
</style>
|