Skip to content

Commit

Permalink
added loader
Browse files Browse the repository at this point in the history
  • Loading branch information
dalindev committed Jul 25, 2024
1 parent 2021bae commit c6a1f1a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
3 changes: 2 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import { Suspense } from 'react';
import ThreeSceneClientWrapper from '@/components/three-scene-client-wrapper';
import { ConfirmationProvider } from '@/providers/confirmation-provider';
import Loader from '@/components/loading';

export default function Page() {
return (
<Suspense fallback={<div>Loading...</div>}>
<Suspense fallback={<Loader />}>
<ConfirmationProvider>
<ThreeSceneClientWrapper />
</ConfirmationProvider>
Expand Down
24 changes: 18 additions & 6 deletions components/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
'use client';
import React from 'react';
import Image from 'next/image';

export default async function Loading() {
const GifLoader = () => {
return (
<main className="p-4 md:p-10 mx-auto max-w-7xl">
<span>Loading..........</span>
</main>
<div className="flex flex-col justify-center items-center h-screen">
<Image
src="/xno_currencies.gif"
alt="Loading..."
width={800}
height={262}
className="w-1/2 h-auto"
/>
<div className="text-[30px] w-full text-center m-10">
Loading... Ӿ ...
</div>
</div>
);
}
};

export default GifLoader;
Binary file added public/xno_currencies.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c6a1f1a

Please sign in to comment.