Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 891c81a4a7 | |||
| c8e19b06e0 | |||
| 4ed1a6af9b | |||
| 506e1ebe21 | |||
| 6ee962da0e | |||
| 7ce2b2f569 |
1415
src/app/layout.tsx
1415
src/app/layout.tsx
File diff suppressed because it is too large
Load Diff
@@ -11,6 +11,7 @@ import BlogCardThree from "@/components/sections/blog/BlogCardThree";
|
|||||||
import ContactText from "@/components/sections/contact/ContactText";
|
import ContactText from "@/components/sections/contact/ContactText";
|
||||||
import FooterCard from "@/components/sections/footer/FooterCard";
|
import FooterCard from "@/components/sections/footer/FooterCard";
|
||||||
import { Sparkles, Star, Zap, Shield, Layout, MapPin, Instagram, Facebook } from "lucide-react";
|
import { Sparkles, Star, Zap, Shield, Layout, MapPin, Instagram, Facebook } from "lucide-react";
|
||||||
|
import dynamic from "next/dynamic";
|
||||||
|
|
||||||
const navItems = [
|
const navItems = [
|
||||||
{ name: "Services", id: "services" },
|
{ name: "Services", id: "services" },
|
||||||
@@ -135,6 +136,23 @@ const footerSocialLinks = [
|
|||||||
href: "https://facebook.com", ariaLabel: "Follow us on Facebook"},
|
href: "https://facebook.com", ariaLabel: "Follow us on Facebook"},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Dynamically import heavy components with lazy loading for better performance
|
||||||
|
const DynamicHeroSection = dynamic(() => import('@/components/sections/hero/HeroSplitDoubleCarousel'), {
|
||||||
|
loading: () => <div className="w-full h-screen bg-background animate-pulse" />,
|
||||||
|
});
|
||||||
|
|
||||||
|
const DynamicAboutSection = dynamic(() => import('@/components/sections/about/SplitAbout'), {
|
||||||
|
loading: () => <div className="w-full h-96 bg-background animate-pulse" />,
|
||||||
|
});
|
||||||
|
|
||||||
|
const DynamicTestimonialSection = dynamic(() => import('@/components/sections/testimonial/TestimonialCardOne'), {
|
||||||
|
loading: () => <div className="w-full h-96 bg-background animate-pulse" />,
|
||||||
|
});
|
||||||
|
|
||||||
|
const DynamicGallerySection = dynamic(() => import('@/components/sections/blog/BlogCardThree'), {
|
||||||
|
loading: () => <div className="w-full h-96 bg-background animate-pulse" />,
|
||||||
|
});
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
@@ -215,7 +233,7 @@ export default function LandingPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="testimonials" data-section="testimonials">
|
<div id="testimonials" data-section="testimonials">
|
||||||
<TestimonialCardOne
|
<DynamicTestimonialSection
|
||||||
title="What Our Clients Say"
|
title="What Our Clients Say"
|
||||||
description="Real feedback from satisfied customers and suite professionals at Allure Salon Suites"
|
description="Real feedback from satisfied customers and suite professionals at Allure Salon Suites"
|
||||||
textboxLayout="default"
|
textboxLayout="default"
|
||||||
@@ -227,7 +245,7 @@ export default function LandingPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="gallery" data-section="gallery">
|
<div id="gallery" data-section="gallery">
|
||||||
<BlogCardThree
|
<DynamicGallerySection
|
||||||
title="Gallery Showcase"
|
title="Gallery Showcase"
|
||||||
description="Experience the elegance and professionalism of Allure Salon Suites through our portfolio"
|
description="Experience the elegance and professionalism of Allure Salon Suites through our portfolio"
|
||||||
textboxLayout="default"
|
textboxLayout="default"
|
||||||
|
|||||||
Reference in New Issue
Block a user