Skip to content
Snippets Groups Projects
Commit a79414ae authored by Emmanuel Salomon's avatar Emmanuel Salomon :fist:
Browse files

Move particles

parent 03ce21d5
No related branches found
No related tags found
No related merge requests found
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
<div class="lg:items-start max-w-2xl 2xl:max-w-3xl w-full z-10"> <div class="lg:items-start max-w-2xl 2xl:max-w-3xl w-full z-10">
<nuxt-content :document="hero" /> <nuxt-content :document="hero" />
</div> </div>
<HomeHeroSky class="fill-current text-white absolute" />
<LazyHomeHeroParticles v-if="isDesktop" />
</div> </div>
</template> </template>
...@@ -17,14 +14,6 @@ export default { ...@@ -17,14 +14,6 @@ export default {
required: true, required: true,
}, },
}, },
data() {
return {
isDesktop: false,
}
},
mounted() {
if (window.innerWidth > 640) this.isDesktop = true
},
} }
</script> </script>
......
<template> <template>
<div> <Particles
<div id="tsparticles"
id="tsparticles-limit" :options="$options.config"
class="absolute bg-blue-50 dark:bg-black left-0 top-0" class="h-screen absolute right-0 top-0 opacity-70 dark:opacity-50"
/> />
<Particles
id="tsparticles"
:options="$options.config"
class="h-screen absolute right-0 top-0 opacity-70 dark:opacity-50"
/>
</div>
</template> </template>
<script> <script>
...@@ -234,14 +228,4 @@ export default { ...@@ -234,14 +228,4 @@ export default {
#tsparticles { #tsparticles {
width: 100vw; width: 100vw;
} }
#tsparticles-limit {
box-shadow: rgb(239 246 255) 0px 0px 80px 100px;
width: 60vw;
height: 60vh;
border-radius: 0 0 40vh;
z-index: 1;
}
.dark #tsparticles-limit {
box-shadow: black 0px 0px 80px 100px;
}
</style> </style>
<template> <template>
<div <div
class="flex flex-wrap justify-center bg-gradient-to-r from-purple-600 to-purple-400 p-6 text-white" class="flex flex-wrap justify-center bg-gradient-to-r from-purple-600 to-purple-400 p-6 text-white z-10"
> >
<div class="container"> <div class="container">
<div class="flex flex-wrap mb-4 w-full"> <div class="flex flex-wrap mb-4 w-full">
......
<template> <template>
<div class="prose mx-auto"> <div class="h-screen -mb-44 flex bg-gradient-to-b from-blue-100 to-blue-50">
<div <div class="container text404">
class="flex justify-center items-center" <div class="absolute z-10">
style="height: calc(80vh - 5rem)" <div
> class="flex items-center text-red-400 dark:text-red-600 scale-150 transform"
<div> >
<div class="flex items-center text-red-400 scale-150 transform">
<span class="text-9xl">4</span> <span class="text-9xl">4</span>
<fa <fa
:icon="['fab', 'creative-commons-nc-eu']" :icon="['fab', 'creative-commons-nc-eu']"
...@@ -18,17 +17,41 @@ ...@@ -18,17 +17,41 @@
<div class="v-full flex"> <div class="v-full flex">
<t-button <t-button
variant="custom" variant="custom"
class="m-auto mt-20 bg-gray-500 hover:bg-gray-600" class="m-auto mt-20 bg-gray-500 hover:bg-gray-600 shadow-xl"
icon="chevron-left" icon="chevron-left"
@click="$router.go(-1)" @click="$router.go(-1)"
> >
<fa icon="chevron-left" class="mr-3" />{{ $t('goBack') }} <fa icon="chevron-left" class="mr-3" />{{ $t('goBack') }}
</t-button> </t-button>
<t-button class="m-auto mt-20" @click="$router.push('/')"> <t-button class="m-auto mt-20 shadow-xl" @click="$router.push('/')">
<fa icon="home" class="mr-3" />{{ $t('home.title') }} <fa icon="home" class="mr-3" />{{ $t('home.title') }}
</t-button> </t-button>
</div> </div>
</div> </div>
</div> </div>
<HomeHeroSky class="fill-current text-white absolute" />
<LazyHomeHeroParticles v-if="isDesktop" />
</div> </div>
</template> </template>
<script>
export default {
data() {
return {
isDesktop: false,
}
},
mounted() {
if (window.innerWidth > 640) this.isDesktop = true
},
}
</script>
<style lang="postcss" scoped>
.text404 {
margin-top: calc(min(2vh, 10rem) + 10rem);
padding-left: calc(min(2vw, 10rem) + 10rem);
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment