Estructura inicial del ejercicio

This commit is contained in:
Juanse Marquez
2026-05-12 10:26:24 -03:00
parent 9af064239f
commit 167bbaaf54
5 changed files with 214 additions and 0 deletions

1
ejercicios-clase-8.js Normal file
View File

@@ -0,0 +1 @@
// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios.

178
estilo.css Normal file
View File

@@ -0,0 +1,178 @@
/*
(Archivo generado con IA)
=========================
ESTILO GENERAL
========================= */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 40px 20px;
font-family: Arial, Helvetica, sans-serif;
background: #f4f7fb;
color: #2d3436;
line-height: 1.6;
}
/* =========================
TÍTULO PRINCIPAL
========================= */
h1 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 40px;
color: #1e3a5f;
letter-spacing: 1px;
}
/* =========================
CONTENEDORES
========================= */
.grupo-comidas,
#parrafos {
max-width: 850px;
margin: 0 auto 35px auto;
background: white;
padding: 30px;
border-radius: 18px;
box-shadow: 0 8px 25px rgba(0,0,0,0.08);
transition: all 0.3s ease;
}
/* =========================
PÁRRAFO INICIAL
========================= */
.texto-inicial {
font-size: 1.1rem;
background: #eef4ff;
padding: 18px;
border-left: 6px solid #4a90e2;
border-radius: 10px;
transition: all 0.3s ease;
}
/* Clase para probar desde JS */
.texto-inicial.activo {
background: #d1ffd9;
color: #14532d;
transform: scale(1.02);
border-left-color: #22c55e;
}
/* =========================
LISTA
========================= */
.lista-comidas {
margin-top: 25px;
padding: 0;
list-style: none;
}
.lista-comidas li {
background: #f8fafc;
margin-bottom: 12px;
padding: 14px 18px;
border-radius: 10px;
border: 2px solid transparent;
transition: all 0.25s ease;
font-size: 1.05rem;
}
/* Hover elegante */
.lista-comidas li:hover {
transform: translateX(6px);
background: #edf4ff;
border-color: #4a90e2;
}
/* Clase para agregar/quitar desde JS */
.lista-comidas.resaltada li {
background: #fff4d6;
border-color: #f4b400;
color: #7a5200;
font-weight: bold;
}
/* =========================
IMAGEN
========================= */
#foto {
width: 100%;
max-width: 500px;
display: block;
margin: 30px auto 0 auto;
border-radius: 16px;
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
transition: all 0.35s ease;
}
/* Clase para experimentar */
#foto.zoom {
transform: scale(1.08) rotate(-1deg);
filter: saturate(1.4);
box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
/* =========================
PÁRRAFOS COMUNES
========================= */
#parrafos p {
padding: 14px 16px;
border-radius: 10px;
transition: all 0.25s ease;
}
/* Hover suave */
#parrafos p:hover {
background: #f2f7ff;
}
/* =========================
DESTACADOS
========================= */
.destacado {
background: linear-gradient(135deg, #4a90e2, #357abd);
color: white;
font-weight: bold;
padding: 18px !important;
box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);
transform: scale(1.02);
}
/* Otra clase para probar desde JS */
.destacado.alerta {
background: linear-gradient(135deg, #ff5f6d, #d7263d);
transform: scale(1.05);
letter-spacing: 1px;
}
/* =========================
RESPONSIVE
========================= */
@media (max-width: 700px) {
body {
padding: 20px 12px;
}
h1 {
font-size: 2rem;
}
.grupo-comidas,
#parrafos {
padding: 20px;
}
}

BIN
foto1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
foto2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

35
index.html Normal file
View File

@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Comidas típicas de Argentina</title>
<link rel="stylesheet" href="estilo.css">
</head>
<body>
<h1>Comidas típicas de Argentina</h1>
<div class="grupo-comidas">
<p id="primer-parrafo" class="texto-inicial">Si bien cada región
tiene sus propias comidas típicas, hay algunas que son
tradicionales en casi todas las provincias:</p>
<ul class="lista-comidas" id="lista-inicial">
<li>Asado</li>
<li>Empanadas</li>
<li>Locro</li>
<li>Tortas fritas</li>
</ul>
<img id="foto" src="foto1.jpg" alt="Empanadas">
</div>
<div id="parrafos">
<p>Este es un párrafo cualquiera.</p>
<p>Pero este es un párrafo muy importante.</p>
<p>Es importante distinguir los párrafos relevantes de los
comunes.</p>
<p>¿Y este párrafo? ¿Será importante?</p>
<p>Este es otro párrafo del montón.</p>
</div>
</body>
</html>