Codigo HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Contactos-Baeberia Alura</title>
<link rel="stylesheet" href="style/reset .css">
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<header>
<div class="box">
<h1 class="h1"><img src="images/logo.png"></h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="productos.html">Productos</a></li>
<li><a href="contacts.html">Contacto</a></li>
</ul>
</nav>
</div>
</header>
<main>
<form class="form">
<label for="name-s" >
nombre y apellido:
</label>
<input type="text" id="name-s">
<label for="email" >
email:
</label>
<input type="text" id="email">
<label for="phone" >
telèfono:
</label>
<input type="text" id="phone">
<input type="submit" id="button" value="Enviar formulario">
</form>
</main>
<footer>
<img src="images/logo-blanco.png">
<p class="copyright">© Copyright Barberìa Alura-2022</p>
</footer>
</body>
</html>
Código CSS
header{
background-color: #BBBBBB;
padding: 20px 0px;
}
.box{
width: 940px;
position: relative;
margin: 0 auto;
}
nav{
position: absolute;
top: 40%;
right: 30%;
}
nav li {
display: inline;
margin: 0 0 0 40px;
}
nav a{
text-transform: capitalize;
color: #000000;
font-weight: 900;
font-size: 25px;
text-decoration: none;
}
nav a:hover{
color:#FFFFFF;
text-decoration: underline;
}
nav a:active{
color: #c78c19;
text-decoration: underline;
}
.products{
padding: 50px;
width: 940px;
position: relative;
margin: 0 auto;
}
.products li{
display: inline-block;
text-align: center;
width: 30%;
vertical-align: top;
margin:0 1.5% ;
padding: 30px 20px ;
box-sizing: border-box;
border: 2px solid #000000;
border-radius: 20px;
}
.products li:hover{
border-color: rgb(151, 150, 150);
}
.products li:active{
border-color: #c78c19;
}
.products h2{
font-size: 25px;
font-weight: 900;
}
.products li:hover h2{
font-size: 30px;
}
.description{
font-size: 18px;
}
.price{
font-size: 20px;
font-weight: bold;
margin-top: 10px;
}
footer{
padding: 40px ;
text-align: center;
background-image :url(bg.jpg);
}
.copyright{
color: #FFFFFF;
font-size: 12px;
margin: 20px;
}
main{
width: 950px;
margin: 0px auto;
}
form{
margin: 40px 0;
font-size: 20px;
}
form label{
display: block;
margin: 0 0 15px 0;
}
form input{
display: block;
margin: 0 0 20px 0;
padding: 10px 25px;
width: 50%;
}