O componente:
import './Rodape.css'
import facebookLogo from './fb.png'
import instaLogo from './ig.png'
import twLogo from './tw.png'
import logo from './logo.png'
export default function Rodape(props) {
return (
<footer className='footer'>
<div className='container'>
<ul>
<li><a href='https://facebook.com'><img src={facebookLogo} alt='facebook'/></a></li>
<li><a href='https://instagram.com'><img src={instaLogo} alt='instagram'/></a></li>
<li><a href='https://twitter.com'><img src={twLogo} alt='facebook'/></a></li>
</ul>
<img className='logo' src={logo} alt='Organo Logo' />
<p className='texto'>Desenvolvido por Renan Santos na Alura</p>
</div>
</footer>
)
}
A folha de estilos:
.footer {
background-color: var(--cor1);
color: white;
padding: 0;
margin: 0;
background-image: url('./rodape.png');
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
.footer .container {
margin: 0 auto;
width: min(90%, 1440px);
height: 220px;
display: flex;
justify-content: space-around;
align-items: center;
}
.footer ul {
list-style: none;
display: flex;
gap: 48px;
}
.footer ul img {
width: 25px;
}
.footer .logo {
height: 64px;
}
.footer .texto {
width: 280px;
line-height: 1.25;
}