"use client"; import { useEffect, useRef } from "react"; import { motion } from "framer-motion"; import Image from "next/image"; const ChefLotusOrnament = () => ( ); const StoryLotusDivider = () => (
); export default function ChefShowcase() { const canvasRef = useRef(null); const containerRef = useRef(null); // Sparks and Embers Canvas Animation (Overlaying chef image) useEffect(() => { const canvas = canvasRef.current; if (!canvas) return; const ctx = canvas.getContext("2d"); if (!ctx) return; let animId: number; let width = (canvas.width = canvas.parentElement?.clientWidth || 450); let height = (canvas.height = canvas.parentElement?.clientHeight || 560); const handleResize = () => { if (!canvas.parentElement) return; width = canvas.width = canvas.parentElement.clientWidth; height = canvas.height = canvas.parentElement.clientHeight; }; window.addEventListener("resize", handleResize); class Ember { x: number; y: number; vx: number; vy: number; size: number; life: number; maxLife: number; color: string; constructor() { // Start near the bottom-center of the cooking thali image this.x = width * 0.5 + (Math.random() - 0.5) * 160; this.y = height * 0.78 + (Math.random() - 0.5) * 40; this.vx = (Math.random() - 0.5) * 1.6; this.vy = -Math.random() * 2.8 - 1.2; this.size = Math.random() * 2.2 + 1.2; this.maxLife = Math.random() * 90 + 50; this.life = 0; this.color = Math.random() > 0.4 ? "244, 180, 26" : "230, 92, 23"; // Gold or Fire sparks } update() { this.x += this.vx; this.y += this.vy; this.life++; this.vx += (Math.random() - 0.5) * 0.12; } draw(c: CanvasRenderingContext2D) { const opacity = 1 - this.life / this.maxLife; c.save(); c.beginPath(); c.fillStyle = `rgba(${this.color}, ${opacity})`; c.shadowBlur = 6; c.shadowColor = `rgb(${this.color})`; c.arc(this.x, this.y, this.size, 0, Math.PI * 2); c.fill(); c.restore(); } } const embers: Ember[] = []; const maxEmbers = 45; const render = () => { ctx.clearRect(0, 0, width, height); if (embers.length < maxEmbers && Math.random() > 0.35) { embers.push(new Ember()); } for (let i = embers.length - 1; i >= 0; i--) { const e = embers[i]; e.update(); e.draw(ctx); if (e.life >= e.maxLife || e.y < 0) { embers.splice(i, 1); } } animId = requestAnimationFrame(render); }; render(); return () => { window.removeEventListener("resize", handleResize); cancelAnimationFrame(animId); }; }, []); return (
{/* Backdrop Chef Showcase Background Image */}
Chef Showcase Background
{/* Main 2-Column Info & Portrait Header */}
{/* Left Column: Chef Details */}
— OUR MASTER CHEF —

CHEF
Mendia
Juxef

Heritage. Passion. Perfection.

With three decades of culinary devotion, Chef Mendia Juxef has traversed the villages of Tamil Nadu, uncovering regional temple recipes and masterfully blending heritage masalas. He believes that true gastronomy is a spiritual act, uniting soil, tradition, and warm wood fire.

{/* Cursive Signature */}
Mendia Juxef
{/* Right Column: Chef Cooking Portrait with Overlay Badge */} {/* 30+ Years Experience Badge Overlay */}
{/* Gold Flower Icon */} 30+ Years Of Culinary Excellence
{/* Seamless Image Wrapper */}
{/* Portrait Image */} Chef Mendia Juxef Cooking with Fire {/* Sparks/Embers Canvas Overlay */}
{/* Middle Highlights Card Section */} {/* Feature 1: Authentic Recipes */}
Authentic Recipes
Authentic Recipes

Traditional recipes passed down through generations.

{/* Feature 2: Pure Vegetarian */}
Pure Vegetarian
Pure Vegetarian

100% pure veg, made with the finest natural ingredients.

{/* Feature 3: Wood Fire Cooking */}
Wood Fire Cooking
Wood Fire Cooking

Infused with the aroma of wood fire and heritage.

{/* Feature 4: Cooked With Love */}
Cooked With Love
Cooked With Love

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 */}

Food is not just to satisfy hunger, it is to honor our roots, our culture and the land that nourishes us.

{/* Gold Ornament Divider */}
{/* Bottom Right: Spices Parchment Card */}
{/* Inner border line overlay */}
{/* Notched corners masks matching vignette border bg-[#0a1c12] */}
{/* Text content details */}
— THE ESSENCE OF —

Heritage Spices

Handpicked spices from the best regions of India, blended with time-honored techniques to create unforgettable flavors.

{/* Explorer Button */}
{/* Rooted Traditional Footer Banner */}
❧ ROOTED IN TRADITION • DRIVEN BY PASSION • SERVED WITH LOVE ☙
); }