'use client' import { useState } from 'react' import { motion } from 'framer-motion' import Image from 'next/image' import { Card, CardContent } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' import { Clock, Users, ChefHat, Eye } from 'lucide-react' import { riceRecipes, Recipe } from '@/lib/recipe-data' import RecipeDialog from '@/components/RecipeDialog' import PageHero from '@/components/sections/PageHero' import Link from 'next/link' export default function RecipesPage() { const [selectedRecipe, setSelectedRecipe] = useState(null) const [isDialogOpen, setIsDialogOpen] = useState(false) const handleViewRecipe = (recipe: Recipe) => { setSelectedRecipe(recipe) setIsDialogOpen(true) } const handleCloseDialog = () => { setIsDialogOpen(false) setSelectedRecipe(null) } const getDifficultyColor = (difficulty: string) => { switch (difficulty) { case 'Easy': return 'bg-green-100 text-green-800 border-green-200' case 'Medium': return 'bg-yellow-100 text-yellow-800 border-yellow-200' case 'Hard': return 'bg-red-100 text-red-800 border-red-200' default: return 'bg-gray-100 text-gray-800 border-gray-200' } } const getCategoryColor = (category: string) => { switch (category) { case 'Main Course': return 'bg-blue-100 text-blue-800 border-blue-200' case 'Breakfast': return 'bg-orange-100 text-orange-800 border-orange-200' case 'Dessert': return 'bg-pink-100 text-pink-800 border-pink-200' default: return 'bg-gray-100 text-gray-800 border-gray-200' } } return (
{/* Header Section */} {/* Recipes Grid */}
{riceRecipes.map((recipe, index) => (
{recipe.name}
{/* Category Badge */}
{recipe.category}
{/* Difficulty Badge */}
{recipe.difficulty}

{recipe.name}

{recipe.description}

{/* Recipe Meta Info */}
{recipe.cookTime}
{recipe.servings}
{recipe.nutritionInfo && (
{recipe.nutritionInfo.calories} cal
)}
{/* View Recipe Button */}
))}
{/* Call to Action */}

Ready to Cook These Amazing Recipes?

Get premium quality Basmati rice delivered fresh to your kitchen. Perfect for all your cooking adventures!

{/* Recipe Dialog */}
) }