Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #39 from igrowker/componente-bienvenido
Browse files Browse the repository at this point in the history
Componente bienvenido
  • Loading branch information
euphoricdesign authored Sep 17, 2024
2 parents bf8790d + bd1c3f3 commit 38061c0
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import Beneficios from './components/Beneficios/Beneficios';
import Banner from './components/Banner/Banner';
import './App.css';
import Agriculture from './components/Agriculture/Agriculture';
import Bienvenido from './components/Bienvenido/Bienvenido';
import Arboles from './components/Arboles/Arboles';
import Footer from './components/Footer/Footer';

const App: React.FC = () => {
return (
<>
<Navbar />
<Bienvenido />
<Banner />
<Cards />
<Beneficios />
Expand Down
Binary file added src/assets/adopcion.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/compra.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/disfruta.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/farmer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/titulo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions src/components/Bienvenido/Bienvenido.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*IMPORTACIONES DE TIPOGRAFIA*/
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Covered+By+Your+Grace&display=swap');

.anchoPersonalizado{
width:150%;
}

.tipografiaCards{
font-family: "Covered By Your Grace", cursive;
font-size: 24px;
}


.tipografiaPersonalizada{
text-align: start;
font-family: "Lato", sans-serif;
font-weight: 700;
font-style: normal;
color: #cecaca;
}
63 changes: 63 additions & 0 deletions src/components/Bienvenido/Bienvenido.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import React from 'react';
import Button from '@mui/material/Button'; // Para usar el botón con MUI
import farmerImage from '../../assets/farmer.jpg'; // es la ruta de la img principal de fondo
import tituloPrincipal from '../../assets/titulo.png' //img del titulo Portada con diseño en formato png
import adoptionImage from '../../assets/adopcion.jpg'//img card 1
import compraImage from '../../assets/compra.jpg'//img card 2
import disfrutaImage from '../../assets/disfruta.jpg'//img card 3

import "./Bienvenido.css" //estilos personalizados para el componente

const Bienvenido: React.FC = () => {
return (
<section className="relative bg-cover bg-center h-screen flex items-center justify-center md:mb-20" style={{ backgroundImage: `url(${farmerImage})` }}>
<div className="absolute inset-0 bg-black opacity-40"></div> {/* Filtro oscuro sobre la imagen */}

<div className="relative z-10 text-center text-white px-4 ">


<p className="text-lg mb-5 flex">BIENVENIDO A ADOPTREE</p>
<img src={tituloPrincipal} alt="titutlo" /> {/* IMG de la portada ya que es una tipografia con dibujo */}

<div className=' w-1/2 flex flex-col'>
<p className="text-lg md:text-xl mb-6 anchoPersonalizado tipografiaPersonalizada">
Descubre cómo puedes adoptar un árbol cítrico, apoyar a productores locales y recibir fruta fresca en casa. <br />
¡Únete a Adoptree!
</p>
<Button variant="contained" color="success" size="large" className='md:w-1/2 '>
Descubre cómo
</Button>
</div>



</div>

{/*SECCION DE CARDS*/}
<div className="absolute bottom-[-80px] left-0 right-0 hidden md:flex justify-center z-20 ">
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 px-4 md:px-0">
{/* Primera tarjeta */}
<div className="bg-white shadow-lg rounded-lg p-6 text-center ">
<p className="text-orange-400 font-medium tipografiaCards">Adopta</p>
<h3 className="text-xl font-semibold mb-4">Naranjos en adopción</h3>
<img src={adoptionImage} alt="Naranjos en adopción" className="h-24 w-24 mx-auto rounded-full mb-4" />
</div>

<div className="bg-white shadow-lg rounded-lg p-6 text-center">
<p className="text-orange-400 font-medium tipografiaCards">Compra</p>
<h3 className="text-xl font-semibold mb-4">Naranjos en adopción</h3>
<img src={compraImage} alt="Naranjos en adopción" className="h-24 w-24 mx-auto rounded-full mb-4" />
</div>

<div className="bg-white shadow-lg rounded-lg p-6 text-center">
<p className="text-orange-400 font-medium tipografiaCards">Disfruta</p>
<h3 className="text-xl font-semibold mb-4">Naranjos en adopción</h3>
<img src={disfrutaImage} alt="Naranjos en adopción" className="h-24 w-24 mx-auto rounded-full mb-4" />
</div>
</div>
</div>
</section>
);
};

export default Bienvenido;
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ a {

body {
margin: 0;
display: flex;
//display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
Expand Down

1 comment on commit 38061c0

@emacuello
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for adoptree ready!

✅ Preview
https://adoptree-69fqxgy1g-emanuels-projects-e0d75c1b.vercel.app

Built with commit 38061c0.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.