Merge ecaf5b302a into c92b0bc3a8
commit
c0f3b520c0
@ -1,13 +1,51 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="es">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link rel="stylesheet" href="style.css" />
|
<link rel="stylesheet" href="style.css" />
|
||||||
<title>My Project</title>
|
<title>Project Starter</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<main class="starter">
|
||||||
|
<section class="starter__hero">
|
||||||
|
<div class="starter__content">
|
||||||
<h1>Project Starter</h1>
|
<h1>Project Starter</h1>
|
||||||
|
<p>Bienvenido al proyecto inicial. Esta página está preparada para usar tu CSS y JavaScript.</p>
|
||||||
|
<button id="startButton" type="button">Comenzar</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="starter__summary">
|
||||||
|
<div class="summary__item">
|
||||||
|
<strong>03</strong>
|
||||||
|
<span>Componentes</span>
|
||||||
|
</div>
|
||||||
|
<div class="summary__item">
|
||||||
|
<strong>01</strong>
|
||||||
|
<span>Interacción</span>
|
||||||
|
</div>
|
||||||
|
<div class="summary__item">
|
||||||
|
<strong>100%</strong>
|
||||||
|
<span>Responsive</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="starter__cards">
|
||||||
|
<article class="card">
|
||||||
|
<h2>Diseño moderno</h2>
|
||||||
|
<p>Tarjetas limpias, colores suaves y efectos de profundidad para destacar tu contenido.</p>
|
||||||
|
</article>
|
||||||
|
<article class="card">
|
||||||
|
<h2>Fácil de personalizar</h2>
|
||||||
|
<p>Reemplaza textos, agrega secciones y usa esta base para tu próximo proyecto web.</p>
|
||||||
|
</article>
|
||||||
|
<article class="card">
|
||||||
|
<h2>Animaciones simples</h2>
|
||||||
|
<p>Incluye botones interactivos y transiciones que mejoran la experiencia de usuario.</p>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1 +1,31 @@
|
|||||||
|
const startButton = document.getElementById('startButton');
|
||||||
|
const content = document.querySelector('.starter__content');
|
||||||
|
const starter = document.querySelector('.starter');
|
||||||
|
|
||||||
|
if (startButton && content) {
|
||||||
|
startButton.addEventListener('click', () => {
|
||||||
|
if (starter) starter.classList.add('starter--active');
|
||||||
|
|
||||||
|
content.innerHTML = `
|
||||||
|
<div class="hero__result">
|
||||||
|
<h1>¡Perfecto!</h1>
|
||||||
|
<p>El proyecto ya respondió a tu clic. Ahora puedes ver contenido dinámico y continuar personalizando esta plantilla.</p>
|
||||||
|
<ul class="result__list">
|
||||||
|
<li>Contenido actualizado al instante</li>
|
||||||
|
<li>Botón <strong>Volver</strong> sin recargar todo el sitio</li>
|
||||||
|
<li>Base lista para agregar más secciones</li>
|
||||||
|
</ul>
|
||||||
|
<button type="button" id="resetButton">Volver</button>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
|
const resetButton = document.getElementById('resetButton');
|
||||||
|
if (resetButton) {
|
||||||
|
resetButton.addEventListener('click', () => {
|
||||||
|
if (starter) starter.classList.remove('starter--active');
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue