add gradient BG
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-02-08 17:17:40 +01:00
parent 50358c43b9
commit 9a48d20a16
7 changed files with 8102 additions and 1608 deletions

19
components/GradientBG.tsx Normal file
View File

@@ -0,0 +1,19 @@
import { useEffect } from 'react'
import { Gradient } from '../Gradient.js'
export const GradientBG = () =>{
// Create your instance
const gradient = new Gradient();
useEffect(() => {
// Call `initGradient` with the selector to your canvas
gradient.initGradient('#gradient-background')
}, []);
return (
<canvas className='-z-40 w-screen h-screen fixed top-0 left-0' id="gradient-background" data-transition-in />
);
};