|
1 | 1 | import React, { useContext } from "react";
|
2 | 2 | import { Context } from "../store/appContext";
|
3 |
| -import rigoImageUrl from "../../img/rigo-baby.jpg"; |
| 3 | +import { Card } from "../component/card"; |
4 | 4 | import "../../styles/home.css";
|
5 | 5 |
|
6 | 6 | export const Home = () => {
|
7 | 7 | const { store, actions } = useContext(Context);
|
8 | 8 |
|
9 | 9 | return (
|
10 |
| - <div className="text-center mt-5"> |
11 |
| - <h1>Hello Rigo!!</h1> |
12 |
| - <p> |
13 |
| - <img src={rigoImageUrl} /> |
14 |
| - </p> |
15 |
| - <div className="alert alert-info"> |
16 |
| - {store.message || "Loading message from the backend (make sure your python backend is running)..."} |
| 10 | + |
| 11 | + <div className="container m-0"> |
| 12 | + <div className="text-center"> {/* Centra la imagen */} |
| 13 | + <img |
| 14 | + className="img-fluid" |
| 15 | + src="https://animalesde.net/wp-content/uploads/2016/12/los-animales-dom%C3%A9sticos.jpg" |
| 16 | + alt="Banner" |
| 17 | + /> |
| 18 | + </div> |
| 19 | + <div className="sección perros m-5"> |
| 20 | + <h3>Productos top para perros</h3> |
| 21 | + <div className="row"> |
| 22 | + <Card className="col-md-3" /> |
| 23 | + <Card className="col-md-3" /> |
| 24 | + <Card className="col-md-3" /> |
| 25 | + <Card className="col-md-3" /> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + |
| 29 | + <div className="sección gatos m-5"> |
| 30 | + <h3>Productos top para gatos</h3> |
| 31 | + <div className="row"> |
| 32 | + <Card className="col-md-3" /> |
| 33 | + <Card className="col-md-3" /> |
| 34 | + <Card className="col-md-3" /> |
| 35 | + <Card className="col-md-3" /> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + |
| 39 | + <div className="sección exóticos m-5"> |
| 40 | + <h3>Productos top para animales exóticos</h3> |
| 41 | + <div className="row"> |
| 42 | + <Card className="col-md-3" /> |
| 43 | + <Card className="col-md-3" /> |
| 44 | + <Card className="col-md-3" /> |
| 45 | + <Card className="col-md-3" /> |
| 46 | + </div> |
17 | 47 | </div>
|
18 |
| - <p> |
19 |
| - This boilerplate comes with lots of documentation:{" "} |
20 |
| - <a href="https://start.4geeksacademy.com/starters/react-flask"> |
21 |
| - Read documentation |
22 |
| - </a> |
23 |
| - </p> |
24 | 48 | </div>
|
25 | 49 | );
|
26 | 50 | };
|
0 commit comments