Mi proyecto del curso: Introducción al Desarrollo Web Responsive con HTML y CSS
Mi proyecto del curso: Introducción al Desarrollo Web Responsive con HTML y CSS
ile scarletdaylara @scarletdaylara
- 148
- 1
- 0
@htmlboy Excelente curso, aprendí mucho (aunque el proyecto final me dió dolores de cabeza) todo esta en la práctica. Espero su feedback. Gracias





HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cafetería</title>
<link rel="stylesheet" href="estilo.css">
</head>
<body>
<header class="header">
<div class="menu container">
<div class="logo">
<img src="./Proyecto/Imágenes/Logo.png" alt="">
</div>
<input type="checkbox" id="menu">
<label for="menu">
<img src="./Proyecto/Imágenes/menu.png" class="menu-icono" alt="">
</label>
<nav class="navbar">
<ul>
<li><a href="#">El espacio</a></li>
<li><a href="#">Productos</a></li>
<li><a href="#">Ofertas</a></li>
<li><a href="#">Reservas</a></li>
<li><a href="#">Contacto</a></li>
</ul>
</nav>
</div>
<div class="header-content container">
<div class="header-txt">
<h1>RECIÉN HECHO, <br>TODOS LOS DÍAS</h1><br>
<hr><br>
<p>Chocolate cake chocolate cake pie candy canes chocolate cake bonbon. I love marzipan liquorice I love cake chupa chups.
Pie danish macaroon ice cream ice cream. Bonbon sweet bonbon jelly beans jelly-o I love lollipop</p>
</div>
</div>
</header>
<section class="welcome">
<div class="welcome-1">
<h2>VEN AL BRUNCH DE<br> LOS DOMINGOS</h2><br>
<p>Sesame snaps icing chocolate bar. I love donut powder<br> sesame snaps, jelly-o topping caramels. Sugar plum <br>I love gummi bears.</p>
</div>
<div class="welcome-2">
<h2>CELEBRA TUS FIESTAS<br> CON NOSOTROS</h2><br>
<p>Bonbon sweet bonbon jelly beans jelly-o I love lollipop.<br> Cookie sesame snaps bear claw. Cake dragée danish.<br> Powder I love liquorice macaroon.</p>
</div>
</section>
<seption class="services container">
<div class="services-txt">
<h1>VEN A DESAYUNAR</h1><br>
<hr><br>
<p>Bonbon topping I love sweet roll I love candy icing chocolate jelly. Pie
soufflé sweet. Apple pie bonbon caramels powder.
</p><br>
<a href="#" class="btn-1">DESCUBRE NUESTROS PRODUCTOS</a>
</div>
<div class="services-group">
<div class="services-1">
<img src="./Proyecto/Imágenes/Icono1.png" alt="pan">
<h3>PAN RECIÉN HECHO</h3><br>
<p>Cupcake danish I love halvah bonbon icing donut.
Sweet caramels gingerbread bear claw jujubes
chocolate cake pudding sesame snaps bonbon.
Chocolate cake wafer pudding muffin wafer sweet
roll I love chupa chups. apple pie jujubes ice
cream sugar plum topping.</p>
</div>
<div class="services-2">
<img src="./Proyecto/Imágenes/Icono2.png" alt="tarta">
<h3>TARTAS PARA CADA DÍA</h3><br>
<p>Cookie cake jelly beans chocolate cake carrot cake
croissant icing. Caramels liquore sesame snaps
sugar plum I love bonbon. I love I love halvah.</p>
</div>
<div class="services-3">
<img src="./Proyecto/Imágenes/Icono3.png" alt="dulces">
<h3>PRUEBA NUESTROS DULCES</h3><br>
<p>Caramels liquorice sesame snaps sugar plum I love
bonbon. I love I love halvah. I love marzipan cake I
love donut tiramisu pudding cotton candy liquorice.
Jelly beans chocolate brownie gummi bears dragée
jelly-o.</p>
</div>
<div class="services-4">
<img src="./Proyecto/Imágenes/Icono4.png" alt="ingredientes">
<h3>INGREDIENTES ECOLÓGICOS</h3><br>
<p>Carrot cake fruitcake cheesecake muffin lolipop
croissant dessert halvah. Cake pie bear claw marsh-
mallow marzipan cake. Carrot cake I love cotton
candy ice cream chupa chups donut. Lemon drops
sweet marshmallow gummies I love dragée danish
cake. Tart caramels sweet roll jelly-o liquorice tart.</p>
</div>
</div>
</section>
<section>
<div class="contacto - group">
<div class="contacto-1">
<h2>CONTACTA CON <br>NOSOTROS</h2><br>
<p>Si quieres hacer una reserva, tienes alguna
sugerencia o <br>simplemente quieres saludar, escríbenos a:</p><br>
<a href="mailto:cafeoslo@cafeoslo.es"><strong>cafeoslo@cafeoslo.es</strong></a>
</div>
<div class="contacto-2">
<h2>¿SABES DÓNDE<br> ESTAMOS?</h2>
<p>C/Mayor, 15<br>
00000 Barcelona<br>
(Google Maps)
</p>
</div>
</div>
</section>
<footer>
<div class="footer-txt">
<p>Septiembre 2015 - Todos los derechos reservados</p>
</div>
</footer>
</body>
</html>
CSS:
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@400;800&display=swap');
*{
box-sizing: border-box;
margin: 0;
padding: 0;
text-decoration: none;
list-style: none;
}
body{
font-family:'Poppins', sans-serif;
}
.container{
max-width: 1500px;
margin: 0 50px;
}
.header{
background-image: url(./Proyecto/Imágenes/Fondo1.jpg);
background-position: center top;
background-repeat: no-repeat;
background-size: cover;
display: flex;
align-items: center;
padding: 470px;
}
.menu{
position: absolute;
top: 0;
left: 0;
right: 0;
display: flex;
align-items:center;
justify-content:space-between;
z-index: 1000;
}
.logo{
display: flex;
}
.menu .navbar ul li{
position: relative;
float: left;
display: flex;
}
.menu .navbar ul li a{
font-size: 16px;
padding: 20px;
color: #f5f0ed;
display: block;
}
.menu .navbar ul li a:hover{
color: #CF2D3A;
}
#menu{
display: none;
}
.menu-icono {
width: 25px;
}
.menu label{
cursor: pointer;
display: none;
}
.header-txt{
text-align: center;
align-items: center;
justify-content: center;
margin-bottom: 30px;
color:#f5f0ed;
width: 100%;
}
.header h1{
font-size: 44px;
margin-left: 50px;
}
.header-txt p{
color:#f5f0ed;
font-size: 16px;
margin-left: 10px;
align-items: center;
text-align: center;
}
.header-txt hr {
width: 110px;
margin-left: 380px;
border: 1px solid #f5f0ed;
align-items: center;
}
.welcome {
display: flex;
width: 100%;
}
.welcome-1 {
display: block;
background-color: #CF2D3A;
color:#f5f0ed;
font-size: 16px;
align-items: center;
text-align: center;
padding: 150px;
width: 50%;
}
.welcome-2 {
display: block;
background-color: #ded6c0;
color: #d03b40;
font-size: 16px;
align-items: center;
text-align: center;
padding: 150px;
width: 50%;
}
.services {
margin: 0;
margin-top: 0;
}
.services-txt {
text-align: center;
align-items: center;
color:#f5f0ed;
background-image: url(./Proyecto/Imágenes/Fondo2.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
padding: 400px;
}
.services-txt h1 {
color: #f5f0ed;
text-align: center;
font-size: 44px;
}
.services-txt hr {
border: 1px solid #f5f0ed;
width: 110px;
margin-left: 500px;
align-items: center;
}
.services-txt p {
text-align: center;
color: #f5f0ed;
}
.btn-1 {
color: #f5f0ed;
border: #f5f0ed;
text-transform: uppercase;
display: inline-block;
border-style:ridge;
padding:11px 25px;
font-size: 14px;
margin-top: 20px;
}
.btn-1:hover {
color: #d03b40;
}
.services-group {
width: 100%;
}
.services-1 {
padding: 35px;
width: 50%;
float: left;
}
.services-1 img {
width: 160px;
float: left;
margin: 20px;
}
.services h3 {
margin-left: 20px;
}
.services-1 p {
font-size: 16px;
}
.services-2 {
padding: 35px;
width: 50%;
float: right;
}
.services-2 img {
width: 160px;
float: left;
margin: 20px;
}
.services-2 p {
font-size: 16px;
}
.services-3 {
padding: 35px;
width: 50%;
float: left;
}
.services-3 img {
width: 160px;
float: left;
margin: 20px;
}
.services-3 p {
font-size: 16px;
}
.services-4 {
padding: 35px;
width: 50%;
float: left;
}
.services-4 img {
width: 160px;
float: left;
margin: 20px;
}
.services-4 p {
font-size: 16px;
}
.contacto-group{
width: 100%;
}
.contacto-1{
width: 50%;
display: block;
float:left;
font-size: 16px;
padding: 125px;
background-color:#ded6c0;
text-align: center;
}
.contacto-1 h2{
color:#d03b40;
text-align: center;
}
.contacto-1 p{
text-align: center;
color: #d03b40;
}
.contacto-1 a{
color: #d03b40;
}
.contacto-2{
width: 50%;
display: block;
float:right;
padding: 150px;
background-color:#d03b40;
text-align: center;
font-size: 16px;
}
.contacto-2 h2{
color:#ded6c0;
text-align: center;
}
a {
color: #d03b40;
}
a:hover {
color: cornflowerblue;
transition: 1s color 1s;
}
.contacto-2 p{
text-align: center;
color: #ded6c0;
}
.footer-txt{
background-color: #241d1b;
display: block;
float: left;
width: 100%;
padding: 50px;
}
.footer-txt p{
color: #f5f0ed;
}
@media (max-width:991px) {
.menu{
padding: 20px;
}
.menu label{
display: initial;
}
.menu .navbar{
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: #d03b40;
display: none;
}
.menu .navbar ul li{
width: 100%;
}
#menu:checked ~ .navbar{
display: initial;
}
.header{
flex-direction: column;
min-height: 0vh;
padding: 80px 30px 50px 30px;
}
.header-content{
padding: 80px 30px 50px 30px;
}
.header-txt{
margin-bottom: 15px;
}
.header-txt h1{
font-size: 44px;
text-align: center;
line-height: 50px;
}
.header-txt p{
padding: 0;
margin: 15px 0;
font-size: 14px;
text-align: center;
}
.header-txt hr {
align-items: center;
margin-left: 350px;
}
.welcome{
flex-direction: column;
}
.welcome-1{
width: 100%;
display: block;
text-align: center;
float: left;
}
.welcome-2{
width: 100%;
display: block;
float: right;
text-align: center;
}
h2{
font-size: 30px;
line-height: 30px;
}
p{
margin: 15px 0;
}
.services-txt {
flex-direction: column;
min-height: 0vh;
padding: 80px 30px 50px 30px;
}
.services-txt p {
font-size: 16px;
text-align: center;
}
.services-txt h3 {
font-size: 44px;
text-align: center;
align-items: center;
}
.services hr {
align-items: center;
margin-left: 420px;
}
.services-group {
width:100%;
flex-direction:column;
}
.services-1 {
width: 100%;
}
.services-1 h3 {
text-align: center;
}
.services-1 img {
float: none;
margin-left: 350px;
}
.services-2 {
width: 100%;
}
.services-2 h3 {
text-align: center;
}
.services-2 img {
float: none;
margin-left: 350px;
}
.services-3 {
width: 100%;
}
.services-3 h3 {
text-align: center;
}
.services-3 img {
float: none;
margin-left: 350px;
}
.services-4{
width: 100%;
}
.services-4 h3 {
text-align: center;
}
.services-4 img {
float: none;
margin-left: 350px;
}
.contacto-1{
width: 100%;
display: block;
text-align: center;
float: left;
}
.contacto-2{
width: 100%;
display: block;
float: right;
text-align: center;
}
.footer-bg{
padding: 30px;
}
textarea{
width: 250px !important;
}
}
1 yorum
Yorum yapmak için Ücretsiz olarak giriş yapın veya katılın