Advertisement
tnd99

correction-draft

May 6th, 2024
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 4.98 KB | Source Code | 0 0
  1. import React, { Fragment } from "react";
  2.  
  3.  
  4. const instructions = [
  5.    {
  6.       step: "",
  7.       description: ""
  8.    }
  9. ]
  10.  
  11. function Recipe () {
  12.          return (
  13.                 <Fragment>
  14.                   <div className="bloc">
  15.                      <h1 className="title-bloc1"> Simple Omelette Recipe</h1>
  16.                      <div></div>
  17.                      <p> An easy and quick dish, perfect for any meal. This classic omelette combines beaten eggs cooked
  18.                             to perfection, optionally filled with your choice of cheese, vegetables, or meats.</p>
  19.                   </div>
  20.                   {/* TODO: why the empty div here? */}
  21.                   <div></div>
  22.                   <div className="bloc-color">
  23.                      <h2 className="title-bloc2">Preparation time</h2>
  24.                     {/* TODO: why the empty div here? */}
  25.                      <div></div>
  26.                      <ul>
  27.                         <li className="list1"><strong >Total:</strong> Approximately 10 minutes</li>
  28.                         <li className="list1"><strong >Preparation:</strong> 5 minutes</li>
  29.                         <li className="list1"><strong >Cooking:</strong> 5 minutes</li>
  30.                      </ul>
  31.                   </div>
  32.                     {/* TODO: why the empty div here? */}
  33.                   <div></div>
  34.                   <div className="bloc">
  35.                      <p className="title-bloc3-4-5">Ingredients</p>
  36.                     {/* TODO: why the empty div here? */}
  37.                      <div></div>
  38.                      <ul>
  39.                         <li className="list1">2-3 large eggs</li>
  40.                         <li className="list1">Salt, to taste</li>
  41.                         <li className="list1">Pepper, to taste</li>
  42.                         <li className="list1"> 1 tablespoon of butter or oil</li>
  43.                         <li className="list1"> Optional fillings: cheese, diced vegetables, cooked meats, herbs</li>
  44.                      </ul>
  45.                   </div>
  46.                   <div className="line"></div>
  47.                   <div className="bloc">
  48.                      <p className="title-bloc3-4-5">Instructions</p>
  49.                     {/* TODO: why the empty div here? */}
  50.                      <div></div>
  51.                      <ol>
  52.                         {/* TODO: transform that so that you use the instructions array above:
  53.                            instructions.map((instruction, index) => (
  54.                               <li key={index}>
  55.                                 <strong>{...}</strong>
  56.                                 <span>{}</span>
  57.                               </li>
  58.                            ))
  59.                         */}
  60.                         <li>
  61.                           <strong>Beat the eggs:</strong>  In a bowl, beat the eggs with a pinch of salt and pepper until they are well mixed. You can add a tablespoon of water or milk for a fluffier texture.
  62.                         </li>
  63.                         <li><strong>Heat the pan:</strong> Place a non-stick frying pan over medium heat and add butter or oil.</li>
  64.                         <li>
  65.                            <strong>Cook the omelette:</strong> Once the butter is melted and bubbling, pour in the eggs. Tilt the pan to ensure the eggs evenly coat the surface.
  66.                         </li>
  67.                         <li>
  68.                            <strong>Add fillings (optional):</strong> When the eggs begin to set at the edges but are still slightly runny in the middle, sprinkle your chosen fillings over one half of the omelette.</li>
  69.                         <li>
  70.                           <strong>Fold and serve:</strong>  As the omelette continues to cook, carefully lift one edge and fold it over the fillings. Let it cook for another minute, then slide it onto a plate.
  71.                         </li>
  72.                         <li><strong>Enjoy:</strong> Serve hot, with additional salt and pepper if needed.</li>
  73.                      </ol>
  74.                   </div>
  75.                   <div></div>
  76.                   <div className="bloc">
  77.                      {/* Use an array for you nutritions to avoid having to repeat your self, see instructions above. */}
  78.                      <p className="title-bloc3-4-5" >Nutrition</p>
  79.                      <div></div>
  80.                      <p>The table below shows nutritional values per serving without the additional fillings.</p>
  81.                      <div></div>
  82.                      <p  className="divider">Calories <span>277kcal</span></p>
  83.                      <div className="line"></div>
  84.                      <p className="divider">Carbs <span>0g</span></p>
  85.                      <div className="line"></div>
  86.                      <p className="divider"> Protein <span>20g</span></p>
  87.                      <div className="line"></div>
  88.                      <p className="divider">  Fat <span>20g</span></p>
  89.                   </div>
  90.                 </Fragment>
  91.          )
  92.            
  93.     }
  94.  
  95.  
  96. export default Recipe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement