From 43de8349aeb313a6b30cbce05477f2ea63cbfd46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Maturana?= Date: Thu, 2 Apr 2026 20:08:27 -0300 Subject: [PATCH] =?UTF-8?q?refactor:=20hacer=20el=20c=C3=B3digo=20mas=20DR?= =?UTF-8?q?Y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Home.jsx | 58 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/src/Home.jsx b/src/Home.jsx index be1e09f..3dd0aa4 100644 --- a/src/Home.jsx +++ b/src/Home.jsx @@ -4,30 +4,38 @@ import española from "./assets/española.jpg"; import pepperoni from "./assets/pepperoni.jpg"; import CardPizza from "./components/CardPizza"; -const Home = () => ( -
-
-
- - - -
-
-); +const pizzas = [ + { + name: "Napolitana", + price: 5950, + ingredients: ["mozzarella", "tomates", "jamón", "orégano"], + img: napolitana, + }, + { + name: "Española", + price: 6950, + ingredients: ["mozzarella", "gorgonzola", "parmesano", "provolone"], + img: española, + }, + { + name: "Pepperoni", + price: 6950, + ingredients: ["mozzarella", "pepperoni", "orégano"], + img: pepperoni, + }, +]; + +const Home = () => { + return ( +
+
+
+ {pizzas.map((pizza) => ( + + ))} +
+
+ ); +}; export default Home;