@devries-cameron20 / OCIU-npo Mirror · read-only
Fork 0

Mirrored from https://github.com/Camo67/OCIU-npo.git

Synced Nov 21, 03:37 UTC

1 import { lazy, Suspense } from "react";
2 import { Navigation } from "@/components/Navigation";
3 import { Hero } from "@/components/Hero";
4
5 // Below-the-fold sections load after the hero so the main thread stays free
6 // for first paint and the LCP image.
7 const MissionVision = lazy(() => import("@/components/MissionVision").then((m) => ({ default: m.MissionVision })));
8 const Leadership = lazy(() => import("@/components/Leadership").then((m) => ({ default: m.Leadership })));
9 const Podcast = lazy(() => import("@/components/Podcast").then((m) => ({ default: m.Podcast })));
10 const MusicProduction = lazy(() => import("@/components/MusicProduction").then((m) => ({ default: m.MusicProduction })));
11 const DigitalAgency = lazy(() => import("@/components/DigitalAgency").then((m) => ({ default: m.DigitalAgency })));
12 const CallToAction = lazy(() => import("@/components/CallToAction").then((m) => ({ default: m.CallToAction })));
13
14 const Index = () => {
15 return (
16 <div className="min-h-screen bg-background">
17 <Navigation />
18 <main>
19 <div id="home">
20 <Hero />
21 </div>
22 <Suspense fallback={null}>
23 <div id="mission">
24 <MissionVision />
25 </div>
26 <div id="leadership">
27 <Leadership />
28 </div>
29 <div id="music-production">
30 <MusicProduction />
31 </div>
32 <div id="podcast">
33 <Podcast />
34 </div>
35 <div id="services">
36 <DigitalAgency />
37 </div>
38 <div id="join">
39 <CallToAction />
40 </div>
41 </Suspense>
42 </main>
43 </div>
44 );
45 };
46
47 export default Index;