From d2ec0e574db0c22a8d57ff359d31e3ff9a75af75 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Tue, 21 Jul 2026 20:08:52 +0530 Subject: [PATCH] add ChefShowcase and EntranceExperience components with canvas spark animations --- src/components/ChefShowcase.tsx | 12 +----------- src/components/EntranceExperience.tsx | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/src/components/ChefShowcase.tsx b/src/components/ChefShowcase.tsx index d30ba78..a3fe8d9 100644 --- a/src/components/ChefShowcase.tsx +++ b/src/components/ChefShowcase.tsx @@ -204,17 +204,7 @@ export default function ChefShowcase() { className="lg:col-span-5 flex justify-center relative" > - {/* 30+ Years Experience Badge Overlay */} -
-
- {/* Gold Flower Icon */} - - - - 30+ - Years - Of Culinary Excellence -
+ {/* Seamless Image Wrapper */}
diff --git a/src/components/EntranceExperience.tsx b/src/components/EntranceExperience.tsx index 3367488..f849678 100644 --- a/src/components/EntranceExperience.tsx +++ b/src/components/EntranceExperience.tsx @@ -87,7 +87,7 @@ function CinematicFlight({ progress }: { progress: number }) { const { width, height } = useThree((state) => state.viewport); // Compute facade dimensions based on dusk photo aspect ratio - const aspect = 1920 / 864; + const aspect = 1920 / 864; const planeH = height; const planeW = planeH * aspect; @@ -162,7 +162,7 @@ function CinematicFlight({ progress }: { progress: number }) { // 5. Reactive Opacity Updates inside useFrame to prevent unmounting stutters const extOpacity = progress < 0.25 ? 1 : Math.max(0, 1 - (progress - 0.25) / 0.15); - + let intOpacity = 0; if (progress >= 0.08 && progress <= 0.25) { intOpacity = (progress - 0.08) / 0.17; @@ -301,7 +301,7 @@ export default function EntranceExperience({ onProgress }: { onProgress?: (progr scrollTrigger: { trigger: container, start: "top top", - end: "+=450%", + end: "+=450%", scrub: 1.2, pin: true, onUpdate: (self) => { @@ -382,18 +382,18 @@ export default function EntranceExperience({ onProgress }: { onProgress?: (progr {/* Inner traditional gold frame */}
- - AUTHENTIC SOUTH INDIAN · PURE VEGETARIAN + + AUTHENTIC SOUTH INDIAN -

- A Royal Banquet in the Heart of Waterloo +

+ A Royal Banquet in the
Heart of Waterloo

-
+
-

- A tradition older than memory. The table is set for a royal banquet on fresh banana leaves—dosas roasted in pure ghee to a crisp, golden perfection, slow-simmered sambar, and chutneys hand-ground fresh every morning. Served exactly as it was meant to be. 100% pure vegetarian. +

+ A royal banquet served on fresh banana leaves—crisp ghee dosas, slow-simmered sambar, and chutneys hand-ground fresh every morning. 100% pure vegetarian.

)}