Mi proyecto del curso: Introducción al Desarrollo Web Responsive con HTML y CSS
by Eliot Martínez @martinezeliotsamuel2005
- 46
- 0
- 0
mi codigo fue: <!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cafetería & Ocio</title>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;800&display=swap" rel="stylesheet">
<style>
/* Reset styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Global styles */
body {
font-family: 'Open Sans', sans-serif;
background-color: #f5f0ed;
color: #3c3c3b;
}
/* Header styles */
header {
background-color: #d03b40;
color: #f5f0ed;
text-align: center;
padding: 20px;
}
h1 {
font-size: 44px;
font-weight: 800;
margin-bottom: 10px;
}
h2 {
font-size: 28px;
font-weight: 800;
margin-bottom: 20px;
}
/* Main content styles */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.featured-item {
display: flex;
align-items: center;
margin-bottom: 40px;
}
.featured-item img {
max-width: 100%;
height: auto;
margin-right: 20px;
}
.featured-item p {
font-size: 16px;
}
/* Button styles */
.btn {
display: inline-block;
padding: 10px 20px;
background-color: #ded6c0;
color: #3c3c3b;
font-size: 14px;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #241d1b;
color: #f5f0ed;
}
/* Footer styles */
footer {
background-color: #241d1b;
color: #f5f0ed;
text-align: center;
padding: 20px;
}
</style>
</head>
<body>
<header>
<h1>Cafetería & Ocio</h1>
<h2>Disfruta de nuestros deliciosos productos</h2>
<a href="#" class="btn">Ver menú</a>
</header>
<div class="container">
<div class="featured-item">
<img src="Logo.png" alt="Logo de la cafetería">
<p>Elige entre nuestra selección de cafés y pasteles recién horneados. ¡Te encantarán!</p>
</div>
<img src="Fondo1.jpg" alt="fondo">
<img src="Fondo2.jpg" alt="Fondo2">
<img src="Logo.png" alt="Logo">
<img src="Icono1.png" alt="ICONO">
<img src="Icono2.png" alt="ICONO">
<img src="Icono3.png" alt="ICONO">
<img src="Icono4.png" alt="ICONO">
<!-- Agrega más secciones con imágenes y texto -->
</div>
<footer>
<p>© 2023 Café & Ocio | Todos los derechos reservados</p>
</footer>
</body>
</html>

0 comments
Log in or join for Free to comment