Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b384dc0674 | |||
| 79346a0814 | |||
| ff7655670e | |||
| 47c0c97892 | |||
| fe4a9894e3 | |||
| 382247ac2a | |||
| 29a087c793 |
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||||
import ReactLenis from "lenis/react";
|
import ReactLenis from "lenis/react";
|
||||||
|
import { useEffect, useState } from "react";
|
||||||
import ContactCenter from '@/components/sections/contact/ContactCenter';
|
import ContactCenter from '@/components/sections/contact/ContactCenter';
|
||||||
import FeatureCardTwentyFour from '@/components/sections/feature/FeatureCardTwentyFour';
|
import FeatureCardTwentyFour from '@/components/sections/feature/FeatureCardTwentyFour';
|
||||||
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
|
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
|
||||||
@@ -11,6 +12,23 @@ import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
|
|||||||
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
|
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
const [showTitle, setShowTitle] = useState(true);
|
||||||
|
const [showBlur, setShowBlur] = useState(true);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const handleScroll = () => {
|
||||||
|
if (window.scrollY > 100) {
|
||||||
|
setShowTitle(false);
|
||||||
|
setShowBlur(false);
|
||||||
|
} else {
|
||||||
|
setShowTitle(true);
|
||||||
|
setShowBlur(true);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
window.addEventListener("scroll", handleScroll);
|
||||||
|
return () => window.removeEventListener("scroll", handleScroll);
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="text-stagger"
|
defaultButtonVariant="text-stagger"
|
||||||
@@ -25,7 +43,7 @@ export default function LandingPage() {
|
|||||||
headingFontWeight="normal"
|
headingFontWeight="normal"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
<div id="nav" data-section="nav">
|
<div id="nav" data-section="nav" className={showBlur ? "backdrop-blur-sm transition-all duration-300" : "transition-all duration-300"}>
|
||||||
<NavbarStyleCentered
|
<NavbarStyleCentered
|
||||||
navItems={[
|
navItems={[
|
||||||
{ name: "Home", id: "hero" },
|
{ name: "Home", id: "hero" },
|
||||||
@@ -33,7 +51,7 @@ export default function LandingPage() {
|
|||||||
{ name: "Gallery", id: "gallery" },
|
{ name: "Gallery", id: "gallery" },
|
||||||
{ name: "Contact", id: "contact" }
|
{ name: "Contact", id: "contact" }
|
||||||
]}
|
]}
|
||||||
brandName="Elite Barber Shop"
|
brandName={showTitle ? "Elite Barber Shop" : ""}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -87,6 +105,7 @@ export default function LandingPage() {
|
|||||||
]}
|
]}
|
||||||
title="Portfolio"
|
title="Portfolio"
|
||||||
description="Browse our latest work from the shop floor."
|
description="Browse our latest work from the shop floor."
|
||||||
|
cardRatingClassName="text-orange-500"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -108,6 +127,7 @@ export default function LandingPage() {
|
|||||||
]}
|
]}
|
||||||
title="Happy Clients"
|
title="Happy Clients"
|
||||||
description="What our local community has to say about us."
|
description="What our local community has to say about us."
|
||||||
|
ratingClassName="text-orange-500"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user