File tree Expand file tree Collapse file tree 1 file changed +10
-32
lines changed
Expand file tree Collapse file tree 1 file changed +10
-32
lines changed Original file line number Diff line number Diff line change @@ -6,41 +6,19 @@ import Letter from "@/components/Letter";
66import Navbar from "@/components/Navbar" ;
77import ScrollToTop from "@/components/ScrollToTop" ;
88import TestimonialCarousel from "@/components/testimonial" ;
9- import { useEffect , useState } from "react" ;
10- import HashLoader from "react-spinners/HashLoader" ;
119const Home = ( ) => {
12- const [ loading , setLoading ] = useState ( false ) ;
13- useEffect ( ( ) => {
14- setLoading ( true ) ;
15- setTimeout ( ( ) => {
16- setLoading ( false ) ;
17- } , 2000 ) ;
18- } , [ ] ) ;
1910 return (
2011 < >
21- { loading ? (
22- < div className = "flex h-screen items-center justify-center " >
23- < HashLoader
24- loading = { loading }
25- aria-label = "Loading Spinner"
26- data-testid = "loader"
27- color = { "#8d06d6" }
28- size = { 68 }
29- />
30- </ div >
31- ) : (
32- < >
33- < Navbar />
34- < HeroSection />
35- < ScrollToTop />
36- < AboutCommunity />
37- < Cards />
38- < TestimonialCarousel />
39- < FaqAccordion />
40- < Letter />
41- < Footer />
42- </ >
43- ) }
12+ < Navbar />
13+ < HeroSection />
14+ < ScrollToTop />
15+ < AboutCommunity />
16+ < Cards />
17+ < TestimonialCarousel />
18+ < FaqAccordion />
19+ < Letter />
20+ < Footer />
21+
4422 </ >
4523 ) ;
4624} ;
You can’t perform that action at this time.
0 commit comments