-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added explore section and restructured code
- Loading branch information
Showing
13 changed files
with
152 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { MeshWobbleMaterial, PresentationControls } from "@react-three/drei"; | ||
import { useRef } from "react"; | ||
import { useFrame } from "@react-three/fiber"; | ||
|
||
export const Torus3D = ({ position = [0, 0, 0] }) => { | ||
const ref = useRef(); | ||
useFrame(() => { | ||
ref.current.rotation.x += 0.01; | ||
}); | ||
return ( | ||
<PresentationControls> | ||
<mesh position={position} ref={ref}> | ||
<torusKnotGeometry args={[1.6, 0.4, 1000, 50]} /> | ||
<MeshWobbleMaterial factor={6} speed={0.8} color="purple" /> | ||
</mesh> | ||
</PresentationControls> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { Flex, Heading } from "@radix-ui/themes"; | ||
import { Canvas } from "@react-three/fiber"; | ||
import { Torus3D } from "./3D/Torus3D"; | ||
|
||
const Explore = () => { | ||
return ( | ||
<Flex | ||
wrap="wrap" | ||
p={{ initial: "5", md: "7", lg: "9" }} | ||
align="center" | ||
justify="center" | ||
mb="9" | ||
style={{ | ||
maxWidth: "96%", | ||
backgroundColor: "rgb(0 0 0 / 40%)", | ||
borderRadius: "5%", | ||
borderBottomRightRadius: "15%", | ||
borderTopLeftRadius: "15%", | ||
borderTop: "hsla(267, 100%, 63%, 0.3) 3px ridge", | ||
borderBottom: "hsla(267, 100%, 63%, 0.3) 3px ridge", | ||
}} | ||
> | ||
<div style={{ height: "30vh", flex: 1 }}> | ||
<Canvas> | ||
<ambientLight intensity={0.4} /> | ||
<directionalLight position={[0, 0, 10]} intensity={6} /> | ||
<Torus3D /> | ||
</Canvas> | ||
</div> | ||
<div style={{ flex: 3, maxWidth: "600px" }}> | ||
<Heading | ||
color="#5D3FD3" | ||
size={{ initial: "5", md: "6", lg: "7" }} | ||
mb={{ initial: "3", md: "4", lg: "5" }} | ||
> | ||
Explore the world of AR and VR | ||
</Heading> | ||
<Heading size={{ initial: "3", md: "4", lg: "4" }}> | ||
Dive into a world beyond screens. 🌟 Gather your gaming squad, grab | ||
the devices, and get ready to engage in epic battles in the virtual | ||
battlegrounds like never before! 🎮🔥 Join us at the ‘Zero Latency’ | ||
gaming event where we’ll elevate your gaming skills to new heights. | ||
Don’t miss the excitement!🚀 | ||
</Heading> | ||
</div> | ||
</Flex> | ||
); | ||
}; | ||
export default Explore; |
Oops, something went wrong.