mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-02-02 07:31:31 +01:00
Add background only on main page
This commit is contained in:
@@ -16,13 +16,16 @@ function jumpPoints() {
|
|||||||
|
|
||||||
onMounted(() => jumpPoints())
|
onMounted(() => jumpPoints())
|
||||||
onUnmounted(() => clearTimeout(timeout))
|
onUnmounted(() => clearTimeout(timeout))
|
||||||
|
|
||||||
|
const route = useRoute()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<div
|
<div
|
||||||
|
v-show="route.path === '/'"
|
||||||
aria-hidden="true"
|
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
|
<div
|
||||||
:style="{ 'clip-path': `polygon(${poly})` }"
|
:style="{ 'clip-path': `polygon(${poly})` }"
|
||||||
|
|||||||
Reference in New Issue
Block a user