File size: 32,541 Bytes
35a6fca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 | <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trésors Culinaires - 10 Recettes Irrésistibles</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;500&display=swap');
body {
font-family: 'Montserrat', sans-serif;
background-color: #faf6f0;
}
.title-font {
font-family: 'Playfair Display', serif;
}
.recipe-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.floating-action-btn {
position: fixed;
bottom: 2rem;
right: 2rem;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
.flourish {
position: relative;
}
.flourish::after {
content: "";
position: absolute;
bottom: -10px;
left: 0;
width: 50px;
height: 2px;
background-color: #d4a373;
}
</style>
</head>
<body>
<!-- Hero Section -->
<section class="relative h-screen flex items-center justify-center bg-gray-900 text-white overflow-hidden">
<div class="absolute inset-0">
<img src="https://images.unsplash.com/photo-1551504734-5ee1c4a1479b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
alt="Moroccan cuisine"
class="w-full h-full object-cover opacity-60">
</div>
<div class="relative z-10 text-center px-4">
<h1 class="title-font text-4xl md:text-6xl font-bold mb-6">Trésors Culinaires</h1>
<p class="text-xl md:text-2xl mb-8">10 Recettes Irrésistibles à la Portée de Tous</p>
<div class="flex justify-center space-x-4">
<a href="#recipes" class="bg-amber-600 hover:bg-amber-700 text-white px-8 py-3 rounded-full font-medium transition duration-300">
Découvrir
</a>
</div>
</div>
<div class="absolute bottom-10 left-1/2 transform -translate-x-1/2">
<a href="#intro" class="animate-bounce">
<i class="fas fa-chevron-down text-white text-2xl"></i>
</a>
</div>
</section>
<!-- Introduction -->
<section id="intro" class="py-20 bg-white">
<div class="container mx-auto px-4">
<div class="max-w-3xl mx-auto text-center">
<h2 class="title-font text-3xl md:text-4xl font-bold mb-6 flourish">Bienvenue dans votre carnet de recettes</h2>
<p class="text-gray-600 mb-8 text-lg leading-relaxed">
Plongez dans l'univers des saveurs marocaines et orientales avec cette sélection de 10 recettes irrésistibles.
Que vous soyez débutant ou cuisinier confirmé, ces préparations ont été pensées pour être accessibles à tous
et réalisables en toutes occasions.
</p>
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 mt-12">
<div class="bg-amber-50 p-4 rounded-lg">
<i class="fas fa-bread-slice text-3xl text-amber-600 mb-3"></i>
<h4 class="font-bold">Pains Maison</h4>
</div>
<div class="bg-amber-50 p-4 rounded-lg">
<i class="fas fa-utensils text-3xl text-amber-600 mb-3"></i>
<h4 class="font-bold">Tajines</h4>
</div>
<div class="bg-amber-50 p-4 rounded-lg">
<i class="fas fa-mug-hot text-3xl text-amber-600 mb-3"></i>
<h4 class="font-bold">Soupes</h4>
</div>
<div class="bg-amber-50 p-4 rounded-lg">
<i class="fas fa-cookie-bite text-3xl text-amber-600 mb-3"></i>
<h4 class="font-bold">Pâtisseries</h4>
</div>
</div>
</div>
</div>
</section>
<!-- Recipe Section -->
<section id="recipes" class="py-20 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="title-font text-3xl md:text-4xl font-bold mb-16 text-center">Nos Recettes</h2>
<!-- Category Tabs -->
<div class="flex flex-wrap justify-center mb-12 gap-2">
<button class="category-tab active px-6 py-2 rounded-full bg-amber-600 text-white font-medium" data-category="all">
Toutes
</button>
<button class="category-tab px-6 py-2 rounded-full bg-amber-100 text-amber-800 font-medium hover:bg-amber-200 transition" data-category="pain">
Pains
</button>
<button class="category-tab px-6 py-2 rounded-full bg-amber-100 text-amber-800 font-medium hover:bg-amber-200 transition" data-category="tajine">
Tajines
</button>
<button class="category-tab px-6 py-2 rounded-full bg-amber-100 text-amber-800 font-medium hover:bg-amber-200 transition" data-category="soupe">
Soupes
</button>
<button class="category-tab px-6 py-2 rounded-full bg-amber-100 text-amber-800 font-medium hover:bg-amber-200 transition" data-category="entree">
Entrées
</button>
<button class="category-tab px-6 py-2 rounded-full bg-amber-100 text-amber-800 font-medium hover:bg-amber-200 transition" data-category="dessert">
Desserts
</button>
</div>
<!-- Recipes Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Recipe 1 - Pain Maison -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="pain">
<img src="https://images.unsplash.com/photo-1546549032-9571cd6b27df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
alt="Pain maison"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">Pain Traditionnel Marocain</h3>
<span class="bg-amber-100 text-amber-800 text-xs px-2 py-1 rounded">Pains</span>
</div>
<p class="text-gray-600 mb-4">Un pain moelleux à l'intérieur et croustillant à l'extérieur, parfait pour accompagner vos tajines et mezzes.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 3h (dont repos)</span>
<span><i class="fas fa-utensils mr-1"></i> Facile</span>
<span><i class="fas fa-user-friends mr-1"></i> 6-8 personnes</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
<!-- Recipe 2 - Tajine -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="tajine">
<img src="https://images.unsplash.com/photo-1633944097474-795c0bf54d67?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
alt="Tajine d'agneau"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">Tajine d'Agneau aux Pruneaux</h3>
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded">Tajines</span>
</div>
<p class="text-gray-600 mb-4">Un classique de la cuisine marocaine qui allie la douceur des pruneaux à la saveur de l'agneau.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 2h30</span>
<span><i class="fas fa-utensils mr-1"></i> Moyen</span>
<span><i class="fas fa-user-friends mr-1"></i> 4-6 personnes</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
<!-- Recipe 3 - Chorba -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="soupe">
<img src="https://images.unsplash.com/photo-1551218808-94e220e084d2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
alt="Chorba"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">Chorba Marocaine Authentique</h3>
<span class="bg-orange-100 text-orange-800 text-xs px-2 py-1 rounded">Soupes</span>
</div>
<p class="text-gray-600 mb-4">La soupe traditionnelle du Ramadan, riche en saveurs et en bienfaits.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 1h15</span>
<span><i class="fas fa-utensils mr-1"></i> Facile</span>
<span><i class="fas fa-user-friends mr-1"></i> 6 personnes</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
<!-- Recipe 4 - Harira -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="soupe">
<img src="https://images.unsplash.com/photo-1607198850242-9fe764b4eca9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
alt="Harira"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">Harira aux Lentilles</h3>
<span class="bg-orange-100 text-orange-800 text-xs px-2 py-1 rounded">Soupes</span>
</div>
<p class="text-gray-600 mb-4">Une soupe onctueuse et nourrissante, star des tables de rupture du jeûne.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 1h30</span>
<span><i class="fas fa-utensils mr-1"></i> Moyen</span>
<span><i class="fas fa-user-friends mr-1"></i> 6-8 personnes</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
<!-- Recipe 5 - Briouates -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="entree">
<img src="https://images.unsplash.com/photo-1631454535137-f8210a9b2ba9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
alt="Briouates"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">Briouates au Poulet</h3>
<span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Entrées</span>
</div>
<p class="text-gray-600 mb-4">Des feuilles de brick croustillantes garnies d'une délicieuse farce au poulet et aux amandes.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 45 min</span>
<span><i class="fas fa-utensils mr-1"></i> Facile</span>
<span><i class="fas fa-user-friends mr-1"></i> 4 personnes</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
<!-- Recipe 6 - Chebakia -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="dessert">
<img src="https://images.unsplash.com/photo-1631159158867-de0cf3f7464b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
alt="Chebakia"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">Chebakia Traditionnelle</h3>
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">Desserts</span>
</div>
<p class="text-gray-600 mb-4">Pâtisserie orientale en forme de fleur, parfumée à l'eau de fleur d'oranger et enrobée de miel.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 1h + repos</span>
<span><i class="fas fa-utensils mr-1"></i> Expert</span>
<span><i class="fas fa-user-friends mr-1"></i> 20 pièces</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
<!-- Recipe 7 - Msemen -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="pain">
<img src="https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1981&q=80"
alt="Msemen"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">Msemen (Crêpes Feuilletées)</h3>
<span class="bg-amber-100 text-amber-800 text-xs px-2 py-1 rounded">Pains</span>
</div>
<p class="text-gray-600 mb-4">Ces crêpes feuilletées traditionnelles sont parfaites pour le petit-déjeuner ou le goûter.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 1h30</span>
<span><i class="fas fa-utensils mr-1"></i> Moyen</span>
<span><i class="fas fa-user-friends mr-1"></i> 8 pièces</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
<!-- Recipe 8 - Tajine Veggie -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="tajine">
<img src="https://images.unsplash.com/photo-1601858178642-edd2c022ab03?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
alt="Tajine végétarien"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">Tajine Végétarien aux Sept Légumes</h3>
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded">Tajines</span>
</div>
<p class="text-gray-600 mb-4">Une explosion de saveurs et de couleurs avec cette version végétarienne du tajine traditionnel.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 1h15</span>
<span><i class="fas fa-utensils mr-1"></i> Facile</span>
<span><i class="fas fa-user-friends mr-1"></i> 4 personnes</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
<!-- Recipe 9 - Batbout -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="pain">
<img src="https://images.unsplash.com/photo-1536599424071-0b215a388ba7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
alt="Batbout"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">Batbout (Pain Marocain Poche)</h3>
<span class="bg-amber-100 text-amber-800 text-xs px-2 py-1 rounded">Pains</span>
</div>
<p class="text-gray-600 mb-4">Ces petits pains moelleux sont parfaits pour farcir avec vos ingrédients préférés.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 2h (dont repos)</span>
<span><i class="fas fa-utensils mr-1"></i> Facile</span>
<span><i class="fas fa-user-friends mr-1"></i> 10 pièces</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
<!-- Recipe 10 - M'semen Farci -->
<div class="recipe-card bg-white rounded-xl overflow-hidden shadow-md transition duration-300 recipe" data-category="entree">
<img src="https://images.unsplash.com/photo-1610390233169-df19e9201d1c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
alt="M'semen farci"
class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="title-font text-xl font-bold">M'semen Farci à la Viande</h3>
<span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Entrées</span>
</div>
<p class="text-gray-600 mb-4">Une variante savoureuse du msemen traditionnel, fourrée d'une délicieuse farce à la viande hachée.</p>
<div class="flex justify-between text-sm text-gray-500">
<span><i class="far fa-clock mr-1"></i> 1h45</span>
<span><i class="fas fa-utensils mr-1"></i> Moyen</span>
<span><i class="fas fa-user-friends mr-1"></i> 6 pièces</span>
</div>
</div>
<div class="px-6 py-3 border-t border-gray-100 bg-gray-50 flex justify-end">
<button class="text-amber-600 hover:text-amber-700 font-medium transition">Voir la recette</button>
</div>
</div>
</div>
</div>
</section>
<!-- Download Section -->
<section class="py-20 bg-amber-800 text-white">
<div class="container mx-auto px-4 text-center">
<h2 class="title-font text-3xl md:text-4xl font-bold mb-6">Téléchargez le PDF complet</h2>
<p class="max-w-2xl mx-auto mb-8 text-lg">
Obtenez la version imprimable de ce carnet de recettes avec des photos en haute qualité,
des instructions détaillées et des conseils de chef.
</p>
<button class="bg-white text-amber-800 hover:bg-gray-100 px-8 py-4 rounded-full font-bold transition duration-300 shadow-lg">
<i class="fas fa-download mr-2"></i> Télécharger maintenant
</button>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-6 md:mb-0">
<h3 class="title-font text-2xl font-bold mb-4">Trésors Culinaires</h3>
<p class="text-gray-400">Partagez la passion de la cuisine marocaine et orientale.</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white transition">
<i class="fab fa-facebook-f text-xl"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i class="fab fa-instagram text-xl"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i class="fab fa-pinterest-p text-xl"></i>
</a>
</div>
</div>
<div class="border-t border-gray-800 mt-10 pt-6 text-center text-gray-400">
<p>© 2023 Trésors Culinaires. Tous droits réservés.</p>
</div>
</div>
</footer>
<!-- Floating Action Button -->
<button class="floating-action-btn bg-amber-600 text-white rounded-full w-16 h-16 flex items-center justify-center shadow-lg hover:bg-amber-700 transition">
<i class="fas fa-share-alt text-xl"></i>
</button>
<!-- Modal (hidden by default) -->
<div id="recipeModal" class="fixed inset-0 bg-black bg-opacity-75 z-50 flex items-center justify-center p-4 hidden">
<div class="bg-white rounded-xl max-w-4xl w-full max-h-screen overflow-y-auto">
<!-- Modal content will be injected here by JavaScript -->
<div class="p-6">
<button id="closeModal" class="absolute top-4 right-4 text-gray-500 hover:text-gray-700">
<i class="fas fa-times text-2xl"></i>
</button>
<div class="modal-content"></div>
</div>
</div>
</div>
<script>
// Filter recipes by category
document.querySelectorAll('.category-tab').forEach(tab => {
tab.addEventListener('click', function() {
// Update active tab
document.querySelectorAll('.category-tab').forEach(t => t.classList.remove('active', 'bg-amber-600', 'text-white'));
document.querySelectorAll('.category-tab').forEach(t => t.classList.add('bg-amber-100', 'text-amber-800'));
this.classList.add('active', 'bg-amber-600', 'text-white');
this.classList.remove('bg-amber-100', 'text-amber-800');
// Filter recipes
const category = this.getAttribute('data-category');
document.querySelectorAll('.recipe').forEach(recipe => {
if (category === 'all' || recipe.getAttribute('data-category') === category) {
recipe.style.display = 'block';
} else {
recipe.style.display = 'none';
}
});
});
});
// Sample modal functionality
document.querySelectorAll('.recipe-card button').forEach(button => {
button.addEventListener('click', function() {
const card = this.closest('.recipe-card');
const title = card.querySelector('h3').textContent;
const category = card.querySelector('span').textContent;
// In a real implementation, you would fetch full recipe details here
const modalContent = `
<div class="mb-6">
<span class="inline-block ${card.querySelector('span').className} mb-3">${category}</span>
<h3 class="title-font text-2xl font-bold mb-4">${title}</h3>
<img src="${card.querySelector('img').src}" alt="${title}" class="w-full h-64 object-cover rounded-lg mb-6">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-gray-50 p-4 rounded-lg">
<h4 class="font-bold mb-2">Temps de préparation</h4>
<p>${card.querySelectorAll('span')[1].textContent.replace('far fa-clock mr-1', '')}</p>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<h4 class="font-bold mb-2">Difficulté</h4>
<p>${card.querySelectorAll('span')[2].textContent.replace('fas fa-utensils mr-1', '')}</p>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<h4 class="font-bold mb-2">Portions</h4>
<p>${card.querySelectorAll('span')[3].textContent.replace('fas fa-user-friends mr-1', '')}</p>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div>
<h4 class="font-bold text-lg mb-3">Ingrédients</h4>
<ul class="list-disc pl-5 space-y-2">
<li>Ingrédient 1</li>
<li>Ingrédient 2</li>
<li>Ingrédient 3</li>
<li>Ingrédient 4</li>
<li>Ingrédient 5</li>
</ul>
</div>
<div>
<h4 class="font-bold text-lg mb-3">Préparation</h4>
<ol class="list-decimal pl-5 space-y-3">
<li>Étape 1 de la recette avec des détails importants</li>
<li>Étape 2 avec des précisions utiles</li>
<li>Étape 3 et conseils du chef</li>
<li>Étape finale pour un résultat parfait</li>
</ol>
</div>
</div>
<div class="mt-8 pt-6 border-t border-gray-100">
<h4 class="font-bold text-lg mb-3">Conseils du chef</h4>
<p class="text-gray-600">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>
</div>
</div>
`;
document.querySelector('.modal-content').innerHTML = modalContent;
document.getElementById('recipeModal').classList.remove('hidden');
});
});
// Close modal
document.getElementById('closeModal').addEventListener('click', function() {
document.getElementById('recipeModal').classList.add('hidden');
});
// Close modal when clicking outside
document.getElementById('recipeModal').addEventListener('click', function(e) {
if (e.target === this) {
this.classList.add('hidden');
}
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=abeller/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |