Mi proyecto del curso: Introducción al Desarrollo Web Responsive con HTML y CSS
by biottthomas321 @biottthomas321
- 62
- 0
- 0



Holaaa, termine mi proyecto. No se como realizar capturas de pantalla con mayor calidad.
a
codigo html:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="final.css">
<link href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" rel="stylesheet">
<meta charset="utf-8">
<title>PROYECTO FINAL</title>
</head>
<body>
<header>
<div class="navegador">
<nav>
<input type="checkbox" id="check">
<label for="check" class="checkbtn">
<img src="bx-menu.svg">
</label>
<a href="#" class="enlace">
<img src="Logo.png" alt="" class="logo">
</a>
<ul>
<li><a class="active" a href="#">Inicio</a></li>
<li><a href="#" class="contenido">Ofertas</a></li>
<li><a href="#" class="reservas">Reservas</a></li>
<li><a href="#" class="productos">Productos</a</li>
<li><a href="#" class="contactos">Contactos</a></li>
</ul>
</nav>
</div>
<div class="portada">
<div class="Titulo">
<h1>RECIEN HECHO,<br> TODOS LOS DIAS</h1>
</div>
<hr>
<div class="texto">
<p>Chocolate cake chocolate cake pie candy canes chocolate cake<br>
bonbon. Ilove marzipan liquorice I love chupa chups. Pie danis<br>
macaroon ice cream ice cream. Bombon sweet bonbon Jelly beans<br>
Jelly-o i love lollipop</p>
</div>
</div>
</header>
<section id="ven-celebra">
<div class="veni">
<div class="ven">
<h2>VEN AL BRUNCH DE<br>LOS DOMINGOS</h2>
<P>
Sesame snaps icing chocolate bar. I love donut powder<br>
sesame snaps. Jelly-o topping caramels. Sugar plum i<br>
love gummi bears.
</P>
</div>
<div class="celebra">
<h2>CELEBRA TUS FIESTAS<br>CON NOSOTROS</h2>
<p>
Bonbon sweet bonbon Jelly beans Jelly-o i love lollipop.<br>
Cookie sesame snaps bear claw. Cake dragee danish.<br>
Powder i love loquorice macaroon.
</p>
</div>
</div>
</section>
<section id="desayunar">
<div class="desayuno">
<div class="Titular">
<h2>VEN A DESAYUNAR</h2>
<hr>
<p>
bonbon topping Ilove sweet roll i love candy icing chcolate jelly. Pie<br>
souffle sweet. Apple pie bonbon caramels powder.
</p>
</div>
</div>
</section>
<section id="iconos">
<div class= "contenedor-izquierda">
<div class="icono1-pan">
<div class="icono1">
<img src="Icono1.png">
</div>
<div class="pan">
<h3>PAN RÉCIEN ECHO</h3>
<p>
cupcake danish i love bonbon icing donut<br>
Sweet caramels gingerbread bear claw jujubes<br>
chocolate cake pudding sesame snaps bonbon.<br>
Chocolate cake wafer pudding muffin wafer sweet<br>
roll i love chupa chups. Apple pie jujubes ice<br>
cream sugar plum topping.
</p>
</div>
</div><!--div icono1-pan-->
<div class="icono2-prueba">
<div class="icono2">
<img src="Icono3.png">
</div>
<div class="prueba">
<h3>PRUEBA NUESTROS DULCES</h3>
<p>
Caramels liquorice sesame snaps sugar plum i love<br>
bonbon. I love i love halvah. I love marzipan cake i<br>
love donut tiramisu pudding cotton candy liquorice<br>
Jelly beans chocolate brownie gummi bears dragée<br>
jelly-o
</p>
</div>
</div>
</div><!--contenedor izquierda-->
<div class="contenedor-derecha">
<div class="icono3-tarta">
<div class="icono3">
<img src="Icono2.png">
</div>
<div class="tarta">
<h3>TARTAS PARA CADA DÍA</h3>
<p>
Cookie cake jelly beans chocolate cake carrot cake<br>
croissant icing. Caramels liquorice sesame snaps<br>
sugar plum i love bonbon. i love i love halvah.
</p>
</div>
</div><!--div icono3-tarta-->
<div class="icono4-ingredientes">
<div class="icono4">
<img src="Icono4.png">
</div>
<div class="ingredientes">
<h3>INGREDIENTES ECÓLOGICOS</h3>
<p>
Carrot cake fruitcake cheesecake muffin lolipop<br>
croissant desser halvah. Cake pie bear claw marsh<br>
mallow marzipan cake. Carrot cake i love cotton<br>
candy ice cream chupa chups donut. Lemon drops<br>
sweet marshmallow gummies i love dragée danish<br>
cake. Tart caramels sweet roll jelly-o liquorice tart.
</p>
</div>
</div><!--div icono4-ingredientes-->
</div><!--contenedor derecha-->
</section>
<section id="final">
<div class="contacta-sabes">
<div class="contacta">
<h2>CONTACTA CON <br> NOSOTROS </h2>
<p>
Si quieres hacer una reserva, tienes alguna sugerencia o <br>
simplemente quieres saludar, escribenos a:<br>
<a href="mailto: cafeoslo@cafeoslo.es" >cafeoslo@cafeoslo.es</a>
</p>
</div>
<div class="sabes">
<h2>¿SABES DÓNDE<br> ESTAMOS?</h2>
<p>C/Mayor,15<br>
00000 Barcelona
<em>(Google Maps)</em>
</p>
</div>
</div>
</section>
<div class="septiembre">
<div class="texto">
Septiembre 2015- Todos los derechos reservados
</div>
</div>
</div>
</body>
</html>
Codigo CSS:
*{
box-sizing: border-box;
list-style: none;
box-sizing: content-box;
}
body{
color: white;
max-width: 1184px;
margin: 0;
}
.enlace img{
padding: 0;
margin-left: 60px;
}
nav{
height: 200px;
}
nav ul{
float: right;
display: flex;
}
nav ul li{
display: inline-block;
}
nav ul li a{
color:#f5f0ed;
padding: 7px 13px;
border-radius: 3px;
font-size: 18px;
text-decoration: none;
text-transform: uppercase;
}
li.active, li a:hover{
background-color: black;
transition: .5s;
}
.checkbtn{
font-size: 30px;
margin: 10px;
cursor: pointer;
color: #f5f0ed;
display: flex;
left: -10000px;
}
#check{
display:none;
}
.checkbtn img{
display:none;
}
@media screen and (max-width:950px){
.enlace{
padding-left: 0;
}
nav ul li a{
font-size: 15px;
}
}
@media screen and (max-width:1140px){
.checkbtn{
display: block;
height: 0;
}
ul{
position: fixed;
width: 70%;
height: 100vh;
top: 80px;
left: -1500px;
text-align: center;
transition: all .5s;
}
nav{
float: right;
}
nav ul li{
display:block;
margin: 50px 0;
line-height: 30px;
}
nav ul li a{
font-size: 10px;
background-color: black;
}
nav ul{
margin-left: 0;
display: flex;
flex-direction: column;
font-size: 15px;
padding: 0;
}
li a:hover, li a.active{
background: black;
color:white
}
#check:checked ~ ul{
left: 0;
}
label .checkbtn{
width: 25px;
}
.checkbtn img{
display: flex;
margin-left: 700px;
width: 25px;
background-color: red;
}
.enlace img{
margin-left: 200px;
}
}
header{
background-image: url(Fondo1.jpg);
background-position: center center;
background-repeat: no-repeat;
height: 600px;
margin-left: 5%;
}
.portada{
text-align: center;
}
hr{
padding:0 80px;
}
.titulo-texto{
height: 300px;
display: flex;
flex-direction: column;
text-align: center;
margin-top: 70PX;
}
div.titulo h1{
color: #f5f0ed;
}
hr{
color:#f5f0ed;
width: 80px;
}
.portada .texto{
color:#f5f0ed;
}
@media screen and (max-width:1140px){
header{
width: 562.5px;
}
}
/*comienza la segunda parte*/
#ven-celebra .veni{
display:flex;
margin-left: 5%;
}
#ven-celebra .ven{
background-color: #d03b40;
height: 350px;
width: 562.5px;
}
#ven-celebra .celebra{
background-color: #ded6c0;
width: 562.5px;
height: 350px;
}
.celebra h2{
text-align: center;
margin-top: 80px;
margin-bottom: 20px;
color: #f5f0ed;
}
.celebra p{
text-align: center;
margin-bottom: 20px;
color: #f5f0ed;
}
.ven h2{
text-align: center;
margin-top: 80px;
margin-bottom: 20px;
color: #f5f0ed;
}
.ven p{
text-align: center;
margin-bottom: 20px;
color: #f5f0ed;
}
@media screen and (max-width:1140px){
#ven-celebra .veni{
flex-direction: column;
}
}
/*tercera parte*/
#desayunar{
background-image: url(Fondo2.jpg);
background-repeat: no-repeat;
background-size: cover;
height: 600px;
width: 1125px;
margin-left: 5%;
position: center center;
align-items: center;
float:left;
}
#desayunar h2{
text-align:center;
margin:0;
padding-top: 100px;
background-size: 30px;
}
#desayunar p{
text-align: center;
}
@media screen and (max-width:644px){
.veni{
flex-direction: column;
}
}
@media screen and (max-width:1140px){
#desayunar{
width: 562.5px;
background-size: cover;
text-align: center;
}
}
/*iconos*/
#iconos{
background-color: white;
color: black;
margin-left: 5%;
border: 3px solid white;
width: 90%;
float:left;
}
.contenedor-izquierda .pan h3{
margin-bottom: -10px;
}
.contenedor-izquierda .prueba h3{
margin-bottom: -10px;
}
#iconos .icono1-pan{
display: flex;
float: left;
}
#iconos .icono1-pan .pan h3{
font-family: 'opens ssans', sans-serif;
font-weight: bold;
}
#iconos .icono1-pan .pan p{
font-family: 'open sans', sans-serif;
font-size: 15px;
}
.icono1 img{
width: 150px;
height: 150px;
margin: 40px 20px;
}
#iconos .icono2-prueba{
display: flex;
float: left;
}
#iconos .icono2-prueba .prueba h3{
font-family: 'opens ssans', sans-serif;
font-weight: bold;
}
#iconos .icono2-prueba .prueba p{
font-family: 'open sans', sans-serif;
font-size: 15px;
}
.icono2 img{
width: 150px;
height: 150px;
margin: 40px 20px;
}
#iconos .icono3-tarta{
display: flex;
float: left;
}
#iconos .icono3-tarta .tarta h3{
font-family: 'opens ssans', sans-serif;
font-weight: bold;
}
#iconos .icono3-tarta .tarta p{
font-family: 'open sans', sans-serif;
font-size: 15px;
}
.icono3 img{
width: 150px;
height: 150px;
margin: 40px 20px;
}
#iconos .icono4-ingredientes{
display: flex;
float: left;
}
#iconos .icono4-ingredientes .ingredientes h3{
font-family: 'opens ssans', sans-serif;
font-weight: bold;
}
#iconos .icono4-ingredientes .ingredientes p{
font-family: 'open sans', sans-serif;
font-size: 15px;
}
.icono4 img{
width: 150px;
height: 150px;
margin: 40px 20px;
}
.contenedor-derecha .tarta h3{
margin-bottom: -10px;
}
.contenedor-derecha .ingredientes h3{
margin-bottom: -10px;
}
@media screen and (max-width:1140px){
.contenedor-derecha{
width: 562.5px;
}
.contenedor-izquierda{
width: 562.5px;
}
}
/*seccion final*/
#final{
display:flex;
width:100%;
margin-left: 5%;;
}
#final .sabes{
background-color: #d03b40;
background-position: center center;
width: 562.5px;
height: 350px;
float: left;
align-items: center;
}
#final .contacta{
background-color: #ded6c0;
background-position: center center;
width: 562.5px;
height: 350px;
float: left;
align-items: center;
}
#final .sabes h2{
color: #f5f0ed;
font-family: 'Open Sans', sans-serif;
text-align: center;
margin-top: 80px;
margin-bottom: 20px;
}
#final .sabes p{
color: #f5f0ed;
font-family: 'Open Sans', sans-serif;
text-align: center;
font-size: 15px;
margin: 0 100px;
}
#final .contacta h2{
color: #d03b40;
font-family: 'Open Sans', sans-serif;
text-align: center;
margin-top: 80px;
margin-bottom: 20px;
}
#final .contacta p{
color: #d03b40;
font-family: 'Open Sans', sans-serif;
text-align: center;
font-size: 15px;
margin: 0 100px;
}
@media screen and (max-width:644px){
.sabes,
.contacta{
flex-direction: column;
}
}
.septiembre{
background-color: black;
color: #f5f0ed;
margin-left: 5%;
width: auto;
width: 1125px;
float: left;
}
@media screen and (max-width:1140px){
.septiembre{
width: 562.5px;
}
}
@media screen and (max-width:858px){
h1{
font-size: 20px;
}
p{
font-size: 13px;
}
h2{
font-size: 15px;
}
}
0 comments
Log in or join for Free to comment