-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.jsx
34 lines (31 loc) · 940 Bytes
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React, { lazy, Suspense } from 'react';
import Header from './components/Header';
import Hero from './components/Hero';
import { motion } from 'framer-motion';
import './App.css';
const Menu = lazy(() => import('./components/Menu'));
const Experience = lazy(() => import('./components/Experience'));
const Testimonials = lazy(() => import('./components/Testimonials'));
const Footer = lazy(() => import('./components/Footer'));
const About = lazy(() => import('./components/About'));
function App() {
return (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.5 }}
className="font-sans bg-gray-900 text-white"
>
<Header />
<Hero />
<Suspense fallback={<div>Loading...</div>}>
<Menu />
<Experience />
<About />
<Testimonials />
<Footer />
</Suspense>
</motion.div>
);
}
export default App;