Merge branch 'dev' of https://github.com/Vizole/vizoleweb into dev
This commit is contained in:
commit
29e23b7808
7 changed files with 250 additions and 86 deletions
|
|
@ -1,47 +1,45 @@
|
|||
import React, { useRef, useEffect, useState } from "react";
|
||||
"use client"
|
||||
import React, { useRef, useEffect, useState } from "react"
|
||||
|
||||
const MouseTrackingGlowEffect: React.FC = () => {
|
||||
const [position, setPosition] = useState({ x: 0, y: 0 });
|
||||
const [isHovered, setIsHovered] = useState(false);
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
const [position, setPosition] = useState({ x: 0, y: 0 })
|
||||
const [isHovered, setIsHovered] = useState(false)
|
||||
const containerRef = useRef<HTMLDivElement>(null)
|
||||
|
||||
useEffect(() => {
|
||||
const handleMouseMove = (event: MouseEvent) => {
|
||||
setPosition({ x: event.clientX, y: event.clientY });
|
||||
};
|
||||
setPosition({ x: event.clientX, y: event.clientY })
|
||||
}
|
||||
|
||||
const handleMouseEnter = () => {
|
||||
setIsHovered(true);
|
||||
};
|
||||
setIsHovered(true)
|
||||
}
|
||||
|
||||
const handleMouseLeave = () => {
|
||||
setIsHovered(false);
|
||||
};
|
||||
setIsHovered(false)
|
||||
}
|
||||
|
||||
const container = containerRef.current;
|
||||
const container = containerRef.current
|
||||
|
||||
if (container) {
|
||||
container.addEventListener("mousemove", handleMouseMove);
|
||||
container.addEventListener("mouseenter", handleMouseEnter);
|
||||
container.addEventListener("mouseleave", handleMouseLeave);
|
||||
container.addEventListener("mousemove", handleMouseMove)
|
||||
container.addEventListener("mouseenter", handleMouseEnter)
|
||||
container.addEventListener("mouseleave", handleMouseLeave)
|
||||
}
|
||||
|
||||
return () => {
|
||||
if (container) {
|
||||
container.removeEventListener("mousemove", handleMouseMove);
|
||||
container.removeEventListener("mouseenter", handleMouseEnter);
|
||||
container.removeEventListener("mouseleave", handleMouseLeave);
|
||||
container.removeEventListener("mousemove", handleMouseMove)
|
||||
container.removeEventListener("mouseenter", handleMouseEnter)
|
||||
container.removeEventListener("mouseleave", handleMouseLeave)
|
||||
}
|
||||
};
|
||||
}, []);
|
||||
}
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div
|
||||
ref={containerRef}
|
||||
className="relative w-screen h-screen overflow-hidden"
|
||||
>
|
||||
<div ref={containerRef} className="relative h-screen w-screen overflow-hidden">
|
||||
<div
|
||||
className={`absolute top-0 left-0 w-64 h-64 bg-blue-500 rounded-full filter ${
|
||||
className={`absolute left-0 top-0 h-64 w-64 rounded-full bg-blue-500 filter ${
|
||||
isHovered ? "blur-xl" : "blur-none"
|
||||
}`}
|
||||
style={{
|
||||
|
|
@ -49,7 +47,7 @@ const MouseTrackingGlowEffect: React.FC = () => {
|
|||
}}
|
||||
></div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
export default MouseTrackingGlowEffect;
|
||||
export default MouseTrackingGlowEffect
|
||||
|
|
|
|||
90
app/page.tsx
90
app/page.tsx
|
|
@ -14,6 +14,7 @@ import { Glow, GlowCapture } from "@codaworks/react-glow"
|
|||
import StarBackground from "components/StarBackground/StarBackground"
|
||||
import { Textarea } from "@nextui-org/react"
|
||||
import ImageFilter from "components/ImageFilter/ImageFilter"
|
||||
import { BackgroundBeams } from "components/Ui/BackgroundBeams"
|
||||
|
||||
export default function Web() {
|
||||
const [init, setInit] = useState(false)
|
||||
|
|
@ -25,51 +26,54 @@ export default function Web() {
|
|||
return (
|
||||
<div>
|
||||
<section className="bg-[#0f172a] md:pl-0 md:pr-0 lg:pl-[15%] lg:pr-[15%]">
|
||||
<div
|
||||
className=" h-[80%] rounded-[3rem] pt-[10%] max-md:rounded-none"
|
||||
style={{
|
||||
backgroundImage: `url('/images/glow-bottom.svg')`,
|
||||
backgroundSize: "fill",
|
||||
backgroundPosition: "center",
|
||||
backgroundRepeat: "no-repeat",
|
||||
}}
|
||||
>
|
||||
<div className="mx-auto grid max-w-screen-xl px-4 py-8 text-center lg:py-16">
|
||||
<div className="mx-auto place-self-center">
|
||||
<h1 className="mb-4 max-w-2xl text-4xl font-extrabold leading-none tracking-tight text-white md:text-5xl xl:text-6xl">
|
||||
Experience the next dimension
|
||||
</h1>
|
||||
<p className="mb-6 max-w-2xl font-light text-gray-200 md:text-lg lg:mb-8 lg:text-xl">
|
||||
Let us transform your vision into reality with cutting-edge VR/AR experiences and custom software
|
||||
solutions powered by AI.
|
||||
</p>
|
||||
<Button
|
||||
href="https://github.com/Blazity/next-enterprise"
|
||||
className="mr-3 "
|
||||
intent="hero1"
|
||||
size="hero1"
|
||||
onMouseEnter={() => setHovered(true)}
|
||||
onMouseLeave={() => setHovered(false)}
|
||||
>
|
||||
<span>Get started</span>
|
||||
<div className="ml-2">
|
||||
<span>
|
||||
<FaArrowRight style={imgStyle} className="text-orange-500" />
|
||||
</span>
|
||||
</div>
|
||||
</Button>
|
||||
<Button
|
||||
href="https://vercel.com/new/git/external?repository-url=https://github.com/Blazity/next-enterprise"
|
||||
intent="secondary"
|
||||
size="hero1"
|
||||
>
|
||||
Deploy Now
|
||||
</Button>
|
||||
<div>
|
||||
<div
|
||||
className=" h-[80%] rounded-[3rem] pt-[10%] max-md:rounded-none"
|
||||
style={{
|
||||
backgroundImage: `url('/images/glow-bottom.svg')`,
|
||||
backgroundSize: "fill",
|
||||
backgroundPosition: "center",
|
||||
backgroundRepeat: "no-repeat",
|
||||
}}
|
||||
>
|
||||
<div className="mx-auto grid max-w-screen-xl px-4 py-8 text-center lg:py-16">
|
||||
<div className="mx-auto place-self-center">
|
||||
<h1 className="mb-4 max-w-2xl text-4xl font-extrabold leading-none tracking-tight text-white md:text-5xl xl:text-6xl">
|
||||
Experience the next dimension
|
||||
</h1>
|
||||
<p className="mb-6 max-w-2xl font-light text-gray-200 md:text-lg lg:mb-8 lg:text-xl">
|
||||
Let us transform your vision into reality with cutting-edge VR/AR experiences and custom software
|
||||
solutions powered by AI.
|
||||
</p>
|
||||
<Button
|
||||
href="https://github.com/Blazity/next-enterprise"
|
||||
className="mr-3 "
|
||||
intent="hero1"
|
||||
size="hero1"
|
||||
onMouseEnter={() => setHovered(true)}
|
||||
onMouseLeave={() => setHovered(false)}
|
||||
>
|
||||
<span>Get started</span>
|
||||
<div className="ml-2">
|
||||
<span>
|
||||
<FaArrowRight style={imgStyle} className="text-orange-500" />
|
||||
</span>
|
||||
</div>
|
||||
</Button>
|
||||
<Button
|
||||
href="https://vercel.com/new/git/external?repository-url=https://github.com/Blazity/next-enterprise"
|
||||
intent="secondary"
|
||||
size="hero1"
|
||||
>
|
||||
Deploy Now
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="p-10">
|
||||
<InfiniteSlider />
|
||||
<div className="p-10">
|
||||
<InfiniteSlider />
|
||||
</div>
|
||||
{/* <BackgroundBeams /> */}
|
||||
</div>
|
||||
</section>
|
||||
<section className="bg-[#0f172a] md:pl-0 md:pr-0 lg:pl-[15%] lg:pr-[15%]">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue