From 899400173de0746fd8bffe2be113249d981f6b20 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Wed, 15 Jul 2026 17:34:33 +0530 Subject: [PATCH] feat: integrate Framer Motion scroll entrance animations for Heritage Story, Menu Items, Chef Showcase details, and Events Accordion sections --- src/components/ChefShowcase.tsx | 50 +++++++++++++++++++----- src/components/EventsAccordion.tsx | 21 ++++++++-- src/components/MenuPreview.tsx | 11 ++++-- src/components/RestaurantStory.tsx | 61 ++++++++++++++++++++++++------ 4 files changed, 113 insertions(+), 30 deletions(-) diff --git a/src/components/ChefShowcase.tsx b/src/components/ChefShowcase.tsx index fbc5cf0..30b824c 100644 --- a/src/components/ChefShowcase.tsx +++ b/src/components/ChefShowcase.tsx @@ -145,7 +145,13 @@ export default function ChefShowcase() {
{/* Left Column: Chef Details */} -
+
@@ -187,10 +193,16 @@ export default function ChefShowcase() {
-
+ {/* Right Column: Chef Cooking Portrait with Overlay Badge */} -
+ {/* 30+ Years Experience Badge Overlay */}
@@ -224,12 +236,18 @@ export default function ChefShowcase() { />
-
+
{/* Middle Highlights Card Section */} -
+ {/* Feature 1: Authentic Recipes */}
@@ -274,13 +292,19 @@ export default function ChefShowcase() {

Every dish is prepared with care, devotion & warmth.

-
+ {/* Bottom Section: Quote on the Left & Spices Parchment Card on the Right */}
{/* Bottom Left: Gopuram Sketch Background & Large Narrative Quote */} -
+ {/* Quote details */}
@@ -297,10 +321,16 @@ export default function ChefShowcase() {
-
+ {/* Bottom Right: Spices Parchment Card */} -
+
{/* Inner border line overlay */} @@ -340,7 +370,7 @@ export default function ChefShowcase() {
-
+
diff --git a/src/components/EventsAccordion.tsx b/src/components/EventsAccordion.tsx index 6edfd3e..4292bd9 100644 --- a/src/components/EventsAccordion.tsx +++ b/src/components/EventsAccordion.tsx @@ -1,6 +1,7 @@ "use client"; import { useState } from "react"; +import { motion } from "framer-motion"; import Image from "next/image"; // Custom Ornate Gold Category SVG Icons @@ -150,7 +151,13 @@ export default function EventsAccordion() {
{/* Title Block Header */} -
+ {/* Gold Star/Diamond Emblem header */}
@@ -184,10 +191,16 @@ export default function EventsAccordion() {

From intimate royal gatherings to grand celebrations, experience curated culinary journeys that leave lasting impressions.

-
+
{/* Horizontal Accordion Track */} -
+ {events.map((event, idx) => { const isActive = idx === activeIdx; const CategoryIcon = event.icon; @@ -322,7 +335,7 @@ export default function EventsAccordion() {
); })} -
+
diff --git a/src/components/MenuPreview.tsx b/src/components/MenuPreview.tsx index 280f6f1..1ebd2fa 100644 --- a/src/components/MenuPreview.tsx +++ b/src/components/MenuPreview.tsx @@ -97,10 +97,13 @@ const CategoryPill = ({ tag, type }: { tag: string; type: "green" | "gold" | "or ); }; -const MenuItemCard = ({ name, desc, tag, type, img }: MenuItemProps) => ( +const MenuItemCard = ({ name, desc, tag, type, img, index }: MenuItemProps & { index: number }) => ( {/* Inner decorative inset line */} @@ -319,14 +322,14 @@ export default function MenuPreview() { {/* Left Column Item Cards */}
{leftColumnItems.map((item, index) => ( - + ))}
{/* Right Column Item Cards */}
{rightColumnItems.map((item, index) => ( - + ))}
diff --git a/src/components/RestaurantStory.tsx b/src/components/RestaurantStory.tsx index baba01c..7722732 100644 --- a/src/components/RestaurantStory.tsx +++ b/src/components/RestaurantStory.tsx @@ -1,6 +1,7 @@ "use client"; import Image from "next/image"; +import { motion } from "framer-motion"; const StoryPreTitleOrnament = () => ( @@ -38,7 +39,13 @@ export default function RestaurantStory() {
{/* Left Side: Story & Features Details (Fully Center-Aligned) */} -
+ {/* Pre-title with Gold Crest */}
@@ -69,7 +76,13 @@ export default function RestaurantStory() {
{/* Feature 1: Veg */} -
+
@@ -84,10 +97,16 @@ export default function RestaurantStory() {

Pure vegetarian food made with the finest ingredients.

-
+
{/* Feature 2: Recipes */} -
+
@@ -102,10 +121,16 @@ export default function RestaurantStory() {

Traditional recipes crafted with authentic South Indian flavors.

-
+
{/* Feature 3: Hospitality */} -
+
@@ -120,10 +145,16 @@ export default function RestaurantStory() {

A homely environment with friendly service and a smile.

-
+
{/* Feature 4: Love */} -
+
@@ -136,14 +167,20 @@ export default function RestaurantStory() {

Every dish is prepared with love, care and traditional values.

-
+
-
+ {/* Right Side: Mockup Gopuram Archway thali frame */} -
+ {/* Crop-extracted story thali arch image */}
-
+