Add background only on main page

This commit is contained in:
2024-06-21 13:09:13 +02:00
parent 7d273f74c5
commit e72cf864c0

View File

@@ -16,13 +16,16 @@ function jumpPoints() {
onMounted(() => jumpPoints())
onUnmounted(() => clearTimeout(timeout))
const route = useRoute()
</script>
<template>
<ClientOnly>
<div
v-show="route.path === '/'"
aria-hidden="true"
class="bg sm:mx-8 absolute inset-0 z-20 transform-gpu blur-3xl overflow-hidden"
class="duration-300 bg sm:mx-8 absolute inset-0 z-20 transform-gpu blur-3xl overflow-hidden"
>
<div
:style="{ 'clip-path': `polygon(${poly})` }"