Skip to content

Commit 27e5440

Browse files
committed
Remove progress tracking, simplify cards
1 parent 8d5e920 commit 27e5440

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ <h1>🌱 Programación con Propósito</h1>
2626
<div class="intro-section">
2727
<h2>🚀 ¡Bienvenido a tu aventura de programación!</h2>
2828
<p>Cada día tienes un nuevo reto. Haz clic en las tarjetas para empezar.</p>
29-
<div class="progress-bar">
30-
<div class="progress-fill" id="progressFill">0%</div>
31-
</div>
32-
<p class="progress-text">Progreso: <span id="progressText">0</span> de 8 retos completados</p>
3329
</div>
3430
<div class="retos-grid" id="retosGrid"></div>
3531
</section>

script.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function renderRetos(retos) {
6262

6363
retos.forEach(reto => {
6464
const card = document.createElement('div');
65-
card.className = `reto-card ${isRetoCompleted(reto.id) ? 'completed' : ''}`;
65+
card.className = 'reto-card';
6666

6767
card.innerHTML = `
6868
<div class="reto-header">
@@ -76,9 +76,8 @@ function renderRetos(retos) {
7676
<span class="reto-tag">${reto.fase}</span>
7777
<span class="reto-tag">${reto.categoria}</span>
7878
</div>
79-
<button class="reto-btn ${isRetoCompleted(reto.id) ? 'completed-btn' : ''}"
80-
onclick="openReto(${reto.id}, '${reto.url}')">
81-
${isRetoCompleted(reto.id) ? '✓ Completado' : '🎮 ¡Empezar!'}
79+
<button class="reto-btn" onclick="openReto(${reto.id}, '${reto.url}')">
80+
🎮 ¡Empezar!
8281
</button>
8382
</div>
8483
`;
@@ -92,11 +91,6 @@ function isRetoCompleted(id) {
9291
}
9392

9493
function openReto(id, url) {
95-
if (!isRetoCompleted(id)) {
96-
if (confirm('¿Ya completaste este reto? Si es así, lo marcaré como completado.')) {
97-
markRetoCompleted(id);
98-
}
99-
}
10094
window.open(url, '_blank');
10195
}
10296

0 commit comments

Comments
 (0)