-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
856 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
"use client"; | ||
import { useLoader } from "@/context/LoaderContext"; | ||
import { useEffect } from "react"; | ||
import { Contact } from "@/components/Contact"; | ||
import Hero from "@/components/Hero"; | ||
import { BestSkills } from "@/components/BestSkills"; | ||
import { Spacing } from "@/components/Spacing"; | ||
import { Status } from "@/components/Status"; | ||
|
||
export default function HomeClient() { | ||
const { showLoader, hideLoader } = useLoader(); | ||
|
||
useEffect(() => { | ||
showLoader(); | ||
hideLoader(); | ||
}, [showLoader, hideLoader]); | ||
|
||
return ( | ||
<main className=""> | ||
<div className=""> | ||
<Hero /> | ||
</div> | ||
<div className="bg-gradient-to-t from-primary/0 via-primary/5 to-primary/20 pt-28 pb-28 max-sm:pt-16 max-sm:pb-16 border-b "> | ||
<Spacing size="md" /> | ||
<Status /> | ||
<Spacing size="md" /> | ||
</div> | ||
{/* bg-grid-pattern bg-grid-size */} | ||
<div className="bg-secondary pt-28 pb-28 max-sm:pt-16 max-sm:pb-16 border-b"> | ||
<Spacing size="md" /> | ||
<BestSkills /> | ||
<Spacing size="md" /> | ||
</div> | ||
<div className="pt-28 pb-28 max-sm:pt-16 max-sm:pb-16"> | ||
<Spacing size="md" /> | ||
<Contact /> | ||
<Spacing size="md" /> | ||
</div> | ||
<Spacing size="md" /> | ||
</main> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,38 +1,12 @@ | ||
import { Contact } from "@/components/Contact"; | ||
import Hero from "@/components/Hero"; | ||
import { BestSkills } from "@/components/BestSkills"; | ||
import { Spacing } from "@/components/Spacing"; | ||
import { Status } from "@/components/Status"; | ||
import { unstable_setRequestLocale } from "next-intl/server"; | ||
import HomeClient from "./HomeClient"; | ||
|
||
export default function Home({ | ||
params: { locale }, | ||
}: { | ||
params: { locale: string }; | ||
}) { | ||
unstable_setRequestLocale(locale); | ||
return ( | ||
<main className=""> | ||
<div className="pt-28 pb-28 border-b max-md:pt-4 max-md:pb-16 relative group overflow-hidden"> | ||
<Hero /> | ||
</div> | ||
<div className="bg-gradient-to-t from-primary/0 via-primary/5 to-primary/20 pt-28 pb-28 max-sm:pt-16 max-sm:pb-16 border-b "> | ||
<Spacing size="md" /> | ||
<Status /> | ||
<Spacing size="md" /> | ||
</div> | ||
{/* bg-grid-pattern bg-grid-size */} | ||
<div className="bg-secondary pt-28 pb-28 max-sm:pt-16 max-sm:pb-16 border-b"> | ||
<Spacing size="md" /> | ||
<BestSkills /> | ||
<Spacing size="md" /> | ||
</div> | ||
<div className="pt-28 pb-28 max-sm:pt-16 max-sm:pb-16"> | ||
<Spacing size="md" /> | ||
<Contact /> | ||
<Spacing size="md" /> | ||
</div> | ||
<Spacing size="md" /> | ||
</main> | ||
); | ||
|
||
return <HomeClient />; | ||
} |
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,32 @@ | ||
// components/ThreeDModel.tsx | ||
import { Canvas } from "@react-three/fiber"; | ||
import { OrbitControls } from "@react-three/drei"; | ||
import { Suspense } from "react"; | ||
import { useGLTF } from "@react-three/drei/native"; | ||
|
||
interface ModelProps { | ||
modelPath: string; | ||
} | ||
|
||
function Model({ modelPath }: ModelProps) { | ||
const { scene } = useGLTF(modelPath); | ||
return <primitive object={scene} scale={0.5} />; | ||
} | ||
|
||
export default function ThreeDModel() { | ||
return ( | ||
<Canvas | ||
camera={{ position: [0, 0, 5] }} | ||
className="w-full h-full" | ||
dpr={[1, 1]} | ||
gl={{ alpha: false }} | ||
> | ||
<ambientLight intensity={1} /> | ||
<directionalLight position={[0, 5, 5]} /> | ||
<Suspense fallback={null}> | ||
<Model modelPath="joe-bg.glb" /> | ||
</Suspense> | ||
<OrbitControls enableZoom={false} /> | ||
</Canvas> | ||
); | ||
} |
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
Oops, something went wrong.