From 62176c1b4f5f9a19e5d7f278ac66cb8146bdfc71 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 2 Apr 2026 08:07:32 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 266 ++++++++++++++++++++--------------------------- 1 file changed, 112 insertions(+), 154 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index f3db294..def4a21 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,18 +2,29 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; -import ContactText from '@/components/sections/contact/ContactText'; -import FaqDouble from '@/components/sections/faq/FaqDouble'; -import FeatureCardSeven from '@/components/sections/feature/FeatureCardSeven'; -import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis'; -import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit'; -import MetricCardOne from '@/components/sections/metrics/MetricCardOne'; +import { lazy, Suspense, useEffect } from "react"; import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline'; -import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard'; -import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen'; +import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit'; import { Award, GraduationCap, TrendingUp, Users } from "lucide-react"; +const ContactText = lazy(() => import('@/components/sections/contact/ContactText')); +const FaqDouble = lazy(() => import('@/components/sections/faq/FaqDouble')); +const FeatureCardSeven = lazy(() => import('@/components/sections/feature/FeatureCardSeven')); +const FooterLogoEmphasis = lazy(() => import('@/components/sections/footer/FooterLogoEmphasis')); +const MetricCardOne = lazy(() => import('@/components/sections/metrics/MetricCardOne')); +const TestimonialAboutCard = lazy(() => import('@/components/sections/about/TestimonialAboutCard')); +const TestimonialCardFifteen = lazy(() => import('@/components/sections/testimonial/TestimonialCardFifteen')); + export default function LandingPage() { + useEffect(() => { + const observer = new PerformanceObserver((list) => { + list.getEntries().forEach((entry) => { + console.log("Performance Metric:", entry.name, entry.startTime); + }); + }); + observer.observe({ entryTypes: ["paint", "largest-contentful-paint", "layout-shift"] }); + }, []); + return (
-
- -
+ }> +
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
- + +
); -} +} \ No newline at end of file -- 2.49.1