added subpages and loading component
This commit is contained in:
12
src/app/about/page.tsx
Normal file
12
src/app/about/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import Stars from "@/components/stars";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
const page = () => {
|
||||||
|
return (
|
||||||
|
<main className="w-100 m-0 h-screen">
|
||||||
|
<Stars />
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default page;
|
||||||
12
src/app/contact/page.tsx
Normal file
12
src/app/contact/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import Stars from "@/components/stars";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
const page = () => {
|
||||||
|
return (
|
||||||
|
<main className="w-100 m-0 h-screen">
|
||||||
|
<Stars />
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default page;
|
||||||
6
src/app/loading.tsx
Normal file
6
src/app/loading.tsx
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import Stars from "@/components/stars";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
export default function loading() {
|
||||||
|
return <main className="w-screen m-0 h-screen bg-black"></main>;
|
||||||
|
}
|
||||||
12
src/app/models/page.tsx
Normal file
12
src/app/models/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import Stars from "@/components/stars";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
const page = () => {
|
||||||
|
return (
|
||||||
|
<main className="w-100 m-0 h-screen">
|
||||||
|
<Stars />
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default page;
|
||||||
@@ -1,10 +1,7 @@
|
|||||||
import Stars from "@/components/stars";
|
import Stars from "@/components/stars";
|
||||||
import Skeleton from "@/components/mesh/skeleton";
|
import Skeleton from "@/components/mesh/skeleton";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import FramerPageTransition from "@/components/providers/framerPageTransition";
|
|
||||||
import { Suspense } from "react";
|
import { Suspense } from "react";
|
||||||
import Loading from "./loading";
|
|
||||||
import ModelLoading from "@/components/modelLoading";
|
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
@@ -21,9 +18,7 @@ export default function Home() {
|
|||||||
CONTACT
|
CONTACT
|
||||||
</Link>
|
</Link>
|
||||||
<div className=" fixed h-screen w-1/2 right-0 top-0">
|
<div className=" fixed h-screen w-1/2 right-0 top-0">
|
||||||
<Suspense fallback={<ModelLoading />}>
|
|
||||||
<Skeleton />
|
<Skeleton />
|
||||||
</Suspense>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user