|
|
<!DOCTYPE html> |
|
|
<html lang="en"> |
|
|
<head> |
|
|
<meta charset="UTF-8"> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<title>Avispa-t | Discover Your Learning Style</title> |
|
|
<script src="https://cdn.tailwindcss.com"></script> |
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
|
|
<style> |
|
|
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); |
|
|
|
|
|
body { |
|
|
font-family: 'Poppins', sans-serif; |
|
|
background-color: #f8fafc; |
|
|
} |
|
|
|
|
|
.progress-ring__circle { |
|
|
transition: stroke-dashoffset 0.5s; |
|
|
transform: rotate(-90deg); |
|
|
transform-origin: 50% 50%; |
|
|
} |
|
|
|
|
|
.floating-xp { |
|
|
animation: float 3s ease-in-out infinite; |
|
|
} |
|
|
|
|
|
@keyframes float { |
|
|
0% { transform: translateY(0px); } |
|
|
50% { transform: translateY(-5px); } |
|
|
100% { transform: translateY(0px); } |
|
|
} |
|
|
|
|
|
.achievement-badge { |
|
|
transition: all 0.3s ease; |
|
|
} |
|
|
|
|
|
.achievement-badge:hover { |
|
|
transform: scale(1.1); |
|
|
} |
|
|
|
|
|
.locked-achievement { |
|
|
filter: grayscale(100%); |
|
|
opacity: 0.7; |
|
|
} |
|
|
</style> |
|
|
</head> |
|
|
<body> |
|
|
|
|
|
<div class="fixed bottom-4 right-4 z-50 bg-white rounded-full shadow-lg px-4 py-2 flex items-center floating-xp"> |
|
|
<div class="w-8 h-8 bg-yellow-400 rounded-full flex items-center justify-center mr-2"> |
|
|
<i class="fas fa-bolt text-white text-sm"></i> |
|
|
</div> |
|
|
<span class="font-semibold text-gray-700">XP: <span id="xp-counter">1250</span></span> |
|
|
<div class="ml-2 bg-gray-200 rounded-full h-2 w-16"> |
|
|
<div class="bg-purple-500 h-2 rounded-full" style="width: 75%"></div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<nav class="bg-white shadow-sm fixed w-full z-40"> |
|
|
<div class="max-w-6xl mx-auto px-4"> |
|
|
<div class="flex justify-between h-16"> |
|
|
<div class="flex items-center"> |
|
|
<div class="flex-shrink-0 flex items-center"> |
|
|
<div class="w-8 h-8 bg-purple-600 rounded-md flex items-center justify-center"> |
|
|
<i class="fas fa-bee text-white"></i> |
|
|
</div> |
|
|
<span class="ml-2 text-xl font-bold text-gray-800">Avispa-t</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8"> |
|
|
<a href="#" class="text-purple-600 border-b-2 border-purple-600 px-1 pt-1 text-sm font-medium">Home</a> |
|
|
<a href="#challenges" class="text-gray-500 hover:text-gray-700 px-1 pt-1 text-sm font-medium">Challenges</a> |
|
|
<a href="#feedback" class="text-gray-500 hover:text-gray-700 px-1 pt-1 text-sm font-medium">Feedback</a> |
|
|
</div> |
|
|
<div class="flex items-center"> |
|
|
<div class="flex-shrink-0"> |
|
|
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center"> |
|
|
<i class="fas fa-user text-purple-600 text-sm"></i> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="md:hidden flex items-center"> |
|
|
<button id="mobile-menu-button" class="text-gray-500 hover:text-gray-700 focus:outline-none"> |
|
|
<i class="fas fa-bars"></i> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="mobile-menu" class="hidden md:hidden bg-white border-t"> |
|
|
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3"> |
|
|
<a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-purple-600 bg-purple-50">Home</a> |
|
|
<a href="#challenges" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-gray-700 hover:bg-gray-50">Challenges</a> |
|
|
<a href="#feedback" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-gray-700 hover:bg-gray-50">Feedback</a> |
|
|
</div> |
|
|
</div> |
|
|
</nav> |
|
|
|
|
|
|
|
|
<main class="pt-16 pb-12"> |
|
|
|
|
|
<section id="welcome" class="py-12 px-4 sm:px-6 lg:px-8"> |
|
|
<div class="max-w-3xl mx-auto text-center"> |
|
|
<div class="w-24 h-24 bg-purple-100 rounded-2xl flex items-center justify-center mx-auto mb-6"> |
|
|
<i class="fas fa-bee text-purple-600 text-4xl"></i> |
|
|
</div> |
|
|
<h1 class="text-4xl font-bold text-gray-900 mb-4">¡Descubre tu mejor estilo de aprendizaje!</h1> |
|
|
<p class="text-xl text-gray-600 mb-8">Realiza nuestro test rápido para entender cómo aprendes mejor y obtén recomendaciones de estudio personalizadas.</p> |
|
|
<button id="start-test-btn" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-3 px-8 rounded-full transition duration-300 transform hover:scale-105"> |
|
|
Comenzar Test de Estilos |
|
|
</button> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section id="quiz-section" class="hidden py-12 px-4 sm:px-6 lg:px-8 bg-purple-50 rounded-xl max-w-3xl mx-auto mb-12"> |
|
|
<div class="mb-8"> |
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-2 text-center">Learning Style Assessment</h2> |
|
|
<div class="w-full bg-gray-200 rounded-full h-2.5"> |
|
|
<div id="quiz-progress" class="bg-purple-600 h-2.5 rounded-full" style="width: 0%"></div> |
|
|
</div> |
|
|
<p id="progress-text" class="text-sm text-gray-500 mt-1 text-center">Question 0 of 12</p> |
|
|
</div> |
|
|
|
|
|
<div id="quiz-container"> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="flex justify-between mt-8"> |
|
|
<button id="prev-btn" class="bg-gray-200 hover:bg-gray-300 text-gray-800 font-semibold py-2 px-6 rounded-full transition duration-300 hidden"> |
|
|
<i class="fas fa-arrow-left mr-2"></i> Previous |
|
|
</button> |
|
|
<button id="next-btn" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-2 px-6 rounded-full transition duration-300 ml-auto"> |
|
|
Next <i class="fas fa-arrow-right ml-2"></i> |
|
|
</button> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section id="result-section" class="hidden py-12 px-4 sm:px-6 lg:px-8 max-w-3xl mx-auto mb-12"> |
|
|
<div class="bg-white rounded-xl shadow-md overflow-hidden"> |
|
|
<div class="p-8 text-center"> |
|
|
<div class="w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-6"> |
|
|
<i class="fas fa-lightbulb text-purple-600 text-3xl"></i> |
|
|
</div> |
|
|
<h2 class="text-3xl font-bold text-gray-900 mb-2">Tu Estilo de Aprendizaje</h2> |
|
|
<h3 id="learning-style" class="text-2xl font-semibold text-purple-600 mb-4">Asimilador</h3> |
|
|
<p id="learning-style-desc" class="text-gray-600 mb-6"> |
|
|
Aprendes mejor observando y pensando. Prefieres la conceptualización abstracta y la observación reflexiva. |
|
|
Te gusta analizar teorías y crear modelos. Las lecturas y clases con tiempo para pensar son ideales para ti. |
|
|
</p> |
|
|
<button id="continue-dashboard" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-3 px-8 rounded-full transition duration-300 transform hover:scale-105"> |
|
|
Continuar al Panel |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section id="dashboard-section" class="hidden py-8 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto"> |
|
|
<div class="mb-8"> |
|
|
<h1 class="text-3xl font-bold text-gray-900 mb-1">¡Bienvenido de vuelta, <span class="text-purple-600">Alex</span>!</h1> |
|
|
<p class="text-gray-600">Tu estilo de aprendizaje: <span id="dashboard-learning-style" class="font-semibold">Asimilador</span></p> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="mb-12"> |
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-6">Learning Tips for You</h2> |
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> |
|
|
<div class="bg-white rounded-xl shadow-sm p-6 border-l-4 border-purple-500"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-book-open text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-lg">Concept Mapping</h3> |
|
|
</div> |
|
|
<p class="text-gray-600">Create visual diagrams to organize and connect theoretical concepts.</p> |
|
|
</div> |
|
|
<div class="bg-white rounded-xl shadow-sm p-6 border-l-4 border-purple-500"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-chalkboard-teacher text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-lg">Lecture Notes</h3> |
|
|
</div> |
|
|
<p class="text-gray-600">Focus on capturing key theories and models during lectures.</p> |
|
|
</div> |
|
|
<div class="bg-white rounded-xl shadow-sm p-6 border-l-4 border-purple-500"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-brain text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-lg">Abstract Thinking</h3> |
|
|
</div> |
|
|
<p class="text-gray-600">Spend time analyzing how concepts relate to each other theoretically.</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="mb-12"> |
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-6">Your Progress</h2> |
|
|
<div class="bg-white rounded-xl shadow-sm p-6"> |
|
|
<div class="flex flex-col md:flex-row items-center justify-between"> |
|
|
<div class="mb-6 md:mb-0"> |
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-2">Learning Journey</h3> |
|
|
<div class="flex items-center"> |
|
|
<div class="relative"> |
|
|
<svg class="w-24 h-24"> |
|
|
<circle class="text-gray-200" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50%" cy="50%"/> |
|
|
<circle class="text-purple-600" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="62.8" stroke-linecap="round" stroke="currentColor" fill="transparent" r="40" cx="50%" cy="50%"/> |
|
|
</svg> |
|
|
<div class="absolute inset-0 flex items-center justify-center"> |
|
|
<span class="text-2xl font-bold">75%</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="ml-6"> |
|
|
<div class="flex items-center mb-2"> |
|
|
<div class="w-4 h-4 bg-purple-600 rounded-full mr-2"></div> |
|
|
<span class="text-sm">Current Level: <span class="font-semibold">Advanced</span></span> |
|
|
</div> |
|
|
<div class="flex items-center"> |
|
|
<div class="w-4 h-4 bg-gray-200 rounded-full mr-2"></div> |
|
|
<span class="text-sm">Next Level: <span class="font-semibold">Expert</span></span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="text-center md:text-right"> |
|
|
<div class="text-4xl font-bold text-purple-600 mb-1">1250</div> |
|
|
<div class="text-gray-600">Total XP</div> |
|
|
<div class="mt-4"> |
|
|
<div class="flex items-center justify-center md:justify-end"> |
|
|
<i class="fas fa-fire text-orange-500 mr-2"></i> |
|
|
<span class="font-semibold">7-day streak!</span> |
|
|
</div> |
|
|
<div class="flex mt-1"> |
|
|
<div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div> |
|
|
<div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div> |
|
|
<div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div> |
|
|
<div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div> |
|
|
<div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div> |
|
|
<div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div> |
|
|
<div class="w-4 h-4 bg-orange-500 rounded-full mx-0.5"></div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="mb-12"> |
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-6">Today's Challenge</h2> |
|
|
<div class="bg-white rounded-xl shadow-sm overflow-hidden"> |
|
|
<div class="p-6"> |
|
|
<div class="flex flex-col md:flex-row items-start md:items-center justify-between"> |
|
|
<div class="mb-4 md:mb-0"> |
|
|
<h3 class="text-xl font-semibold text-gray-900 mb-1">Concept Mapping Exercise</h3> |
|
|
<p class="text-gray-600 mb-2">Create a concept map for a topic you're learning, showing relationships between key ideas.</p> |
|
|
<div class="flex items-center text-sm text-gray-500"> |
|
|
<i class="far fa-clock mr-2"></i> |
|
|
<span>Estimated: 25 minutes</span> |
|
|
</div> |
|
|
</div> |
|
|
<button id="complete-challenge" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-2 px-6 rounded-full transition duration-300"> |
|
|
Complete Challenge |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="bg-gray-50 px-6 py-3 flex items-center justify-between"> |
|
|
<div class="flex items-center"> |
|
|
<div class="w-3 h-3 bg-purple-600 rounded-full mr-2"></div> |
|
|
<span class="text-sm font-medium">In Progress</span> |
|
|
</div> |
|
|
<a href="#challenges" class="text-sm text-purple-600 hover:text-purple-700 font-medium">View All Challenges</a> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="mb-12"> |
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-6">Achievements</h2> |
|
|
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4"> |
|
|
<div class="achievement-badge bg-white rounded-xl shadow-sm p-4 text-center"> |
|
|
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-2"> |
|
|
<i class="fas fa-award text-purple-600 text-2xl"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-sm">Fast Learner</h3> |
|
|
<p class="text-xs text-gray-500">Complete 5 challenges</p> |
|
|
</div> |
|
|
<div class="achievement-badge bg-white rounded-xl shadow-sm p-4 text-center"> |
|
|
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-2"> |
|
|
<i class="fas fa-fire text-purple-600 text-2xl"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-sm">7-Day Streak</h3> |
|
|
<p class="text-xs text-gray-500">Learn for 7 days straight</p> |
|
|
</div> |
|
|
<div class="achievement-badge bg-white rounded-xl shadow-sm p-4 text-center"> |
|
|
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-2"> |
|
|
<i class="fas fa-lightbulb text-purple-600 text-2xl"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-sm">Concept Master</h3> |
|
|
<p class="text-xs text-gray-500">Complete 3 concept maps</p> |
|
|
</div> |
|
|
<div class="achievement-badge locked-achievement bg-white rounded-xl shadow-sm p-4 text-center"> |
|
|
<div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2"> |
|
|
<i class="fas fa-lock text-gray-400 text-2xl"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-sm">30-Day Streak</h3> |
|
|
<p class="text-xs text-gray-500">Learn for 30 days straight</p> |
|
|
</div> |
|
|
<div class="achievement-badge locked-achievement bg-white rounded-xl shadow-sm p-4 text-center"> |
|
|
<div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2"> |
|
|
<i class="fas fa-lock text-gray-400 text-2xl"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-sm">Style Expert</h3> |
|
|
<p class="text-xs text-gray-500">Master all learning techniques</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div> |
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-6">Micro-Habits to Try</h2> |
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> |
|
|
<div class="bg-white rounded-xl shadow-sm p-6"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-sticky-note text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-lg">Theory Summary</h3> |
|
|
</div> |
|
|
<p class="text-gray-600 mb-4">After reading, write a one-paragraph summary of the key theoretical concepts.</p> |
|
|
<button class="text-purple-600 hover:text-purple-700 text-sm font-medium"> |
|
|
Try Now <i class="fas fa-arrow-right ml-1"></i> |
|
|
</button> |
|
|
</div> |
|
|
<div class="bg-white rounded-xl shadow-sm p-6"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-project-diagram text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-lg">Concept Connection</h3> |
|
|
</div> |
|
|
<p class="text-gray-600 mb-4">Identify how a new concept connects to something you already know.</p> |
|
|
<button class="text-purple-600 hover:text-purple-700 text-sm font-medium"> |
|
|
Try Now <i class="fas fa-arrow-right ml-1"></i> |
|
|
</button> |
|
|
</div> |
|
|
<div class="bg-white rounded-xl shadow-sm p-6"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-question text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="font-semibold text-lg">Critical Question</h3> |
|
|
</div> |
|
|
<p class="text-gray-600 mb-4">Formulate one critical question about the material you're studying.</p> |
|
|
<button class="text-purple-600 hover:text-purple-700 text-sm font-medium"> |
|
|
Try Now <i class="fas fa-arrow-right ml-1"></i> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section id="challenges" class="py-12 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto"> |
|
|
<h2 class="text-3xl font-bold text-gray-900 mb-8">Retos Diarios</h2> |
|
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> |
|
|
<div class="bg-white rounded-xl shadow-sm overflow-hidden"> |
|
|
<div class="p-6"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-book-open text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="text-xl font-semibold">Mapas Conceptuales</h3> |
|
|
</div> |
|
|
<p class="text-gray-600 mb-4">Crea un diagrama visual mostrando las relaciones entre conceptos clave de tu tema de estudio actual.</p> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div class="flex items-center text-sm text-gray-500"> |
|
|
<i class="far fa-clock mr-2"></i> |
|
|
<span>25 min</span> |
|
|
</div> |
|
|
<div class="flex items-center"> |
|
|
<span class="text-sm font-medium text-green-600 mr-2">Completado</span> |
|
|
<i class="fas fa-check-circle text-green-500"></i> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="bg-white rounded-xl shadow-sm overflow-hidden"> |
|
|
<div class="p-6"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-headphones text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="text-xl font-semibold">Análisis de Clase</h3> |
|
|
</div> |
|
|
<p class="text-gray-600 mb-4">Mira un video de clase e identifica los 3 marcos teóricos principales presentados.</p> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div class="flex items-center text-sm text-gray-500"> |
|
|
<i class="far fa-clock mr-2"></i> |
|
|
<span>30 min</span> |
|
|
</div> |
|
|
<div class="flex items-center"> |
|
|
<span class="text-sm font-medium text-purple-600 mr-2">En Progreso</span> |
|
|
<i class="fas fa-sync-alt text-purple-500 animate-spin"></i> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="bg-white rounded-xl shadow-sm overflow-hidden"> |
|
|
<div class="p-6"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-question text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="text-xl font-semibold">Preguntas Críticas</h3> |
|
|
</div> |
|
|
<p class="text-gray-600 mb-4">Desarrolla 5 preguntas críticas sobre una teoría que estés estudiando para discutir con compañeros.</p> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div class="flex items-center text-sm text-gray-500"> |
|
|
<i class="far fa-clock mr-2"></i> |
|
|
<span>20 min</span> |
|
|
</div> |
|
|
<button class="bg-purple-600 hover:bg-purple-700 text-white text-sm font-semibold py-1 px-4 rounded-full"> |
|
|
Empezar |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="bg-white rounded-xl shadow-sm overflow-hidden"> |
|
|
<div class="p-6"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-chart-pie text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="text-xl font-semibold">Construcción de Modelos</h3> |
|
|
</div> |
|
|
<p class="text-gray-600 mb-4">Crea un modelo o marco simple para representar un concepto complejo.</p> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div class="flex items-center text-sm text-gray-500"> |
|
|
<i class="far fa-clock mr-2"></i> |
|
|
<span>35 min</span> |
|
|
</div> |
|
|
<button class="bg-purple-600 hover:bg-purple-700 text-white text-sm font-semibold py-1 px-4 rounded-full"> |
|
|
Start |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="bg-white rounded-xl shadow-sm overflow-hidden"> |
|
|
<div class="p-6"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-book text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="text-xl font-semibold">Síntesis de Lectura</h3> |
|
|
</div> |
|
|
<p class="text-gray-600 mb-4">Lee un artículo académico y resume los aportes teóricos clave.</p> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div class="flex items-center text-sm text-gray-500"> |
|
|
<i class="far fa-clock mr-2"></i> |
|
|
<span>45 min</span> |
|
|
</div> |
|
|
<button class="bg-purple-600 hover:bg-purple-700 text-white text-sm font-semibold py-1 px-4 rounded-full"> |
|
|
Start |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="bg-white rounded-xl shadow-sm overflow-hidden"> |
|
|
<div class="p-6"> |
|
|
<div class="flex items-center mb-4"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-comments text-purple-600"></i> |
|
|
</div> |
|
|
<h3 class="text-xl font-semibold">Discusión Teórica</h3> |
|
|
</div> |
|
|
<p class="text-gray-600 mb-4">Discute un concepto teórico con un compañero y compara interpretaciones.</p> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div class="flex items-center text-sm text-gray-500"> |
|
|
<i class="far fa-clock mr-2"></i> |
|
|
<span>30 min</span> |
|
|
</div> |
|
|
<button class="bg-purple-600 hover:bg-purple-700 text-white text-sm font-semibold py-1 px-4 rounded-full"> |
|
|
Start |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section id="feedback" class="py-12 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto bg-purple-50 rounded-xl"> |
|
|
<h2 class="text-3xl font-bold text-gray-900 mb-8">Your Feedback</h2> |
|
|
|
|
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8"> |
|
|
<div class="bg-white rounded-xl shadow-sm p-6"> |
|
|
<h3 class="text-xl font-semibold mb-4">Comparte Tu Experiencia</h3> |
|
|
<form> |
|
|
<div class="mb-6"> |
|
|
<label class="block text-gray-700 text-sm font-medium mb-2" for="helpful-tips"> |
|
|
¿Qué consejos te ayudaron más esta semana? |
|
|
</label> |
|
|
<textarea id="helpful-tips" rows="3" class="w-full px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="The concept mapping technique was particularly useful..."></textarea> |
|
|
</div> |
|
|
|
|
|
<div class="mb-6"> |
|
|
<label class="block text-gray-700 text-sm font-medium mb-2"> |
|
|
¿Cómo sientes tu progreso? |
|
|
</label> |
|
|
<div class="flex justify-between mb-2"> |
|
|
<span class="text-sm text-gray-500">No tan bien</span> |
|
|
<span class="text-sm text-gray-500">Neutral</span> |
|
|
<span class="text-sm text-gray-500">Excelente</span> |
|
|
</div> |
|
|
<div class="flex"> |
|
|
<div class="flex items-center mr-4"> |
|
|
<input id="progress-1" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500"> |
|
|
<label for="progress-1" class="ml-2 text-sm font-medium text-gray-700">1</label> |
|
|
</div> |
|
|
<div class="flex items-center mr-4"> |
|
|
<input id="progress-2" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500"> |
|
|
<label for="progress-2" class="ml-2 text-sm font-medium text-gray-700">2</label> |
|
|
</div> |
|
|
<div class="flex items-center mr-4"> |
|
|
<input id="progress-3" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500" checked> |
|
|
<label for="progress-3" class="ml-2 text-sm font-medium text-gray-700">3</label> |
|
|
</div> |
|
|
<div class="flex items-center mr-4"> |
|
|
<input id="progress-4" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500"> |
|
|
<label for="progress-4" class="ml-2 text-sm font-medium text-gray-700">4</label> |
|
|
</div> |
|
|
<div class="flex items-center"> |
|
|
<input id="progress-5" type="radio" name="progress" class="w-4 h-4 text-purple-600 focus:ring-purple-500"> |
|
|
<label for="progress-5" class="ml-2 text-sm font-medium text-gray-700">5</label> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="mb-6"> |
|
|
<label class="block text-gray-700 text-sm font-medium mb-2" for="suggestions"> |
|
|
Sugerencias para mejorar |
|
|
</label> |
|
|
<textarea id="suggestions" rows="3" class="w-full px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="I'd love to see more challenges about..."></textarea> |
|
|
</div> |
|
|
|
|
|
<button type="submit" class="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-2 px-6 rounded-full transition duration-300"> |
|
|
Submit Feedback |
|
|
</button> |
|
|
</form> |
|
|
</div> |
|
|
|
|
|
<div class="bg-white rounded-xl shadow-sm p-6"> |
|
|
<h3 class="text-xl font-semibold mb-4">Tus Insights de Aprendizaje</h3> |
|
|
|
|
|
<div class="mb-8"> |
|
|
<div class="flex items-center justify-between mb-2"> |
|
|
<h4 class="font-medium">Eficiencia de Aprendizaje</h4> |
|
|
<span class="text-sm font-semibold text-purple-600">+20%</span> |
|
|
</div> |
|
|
<div class="w-full bg-gray-200 rounded-full h-2.5"> |
|
|
<div class="bg-purple-600 h-2.5 rounded-full" style="width: 70%"></div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="mb-8"> |
|
|
<div class="flex items-center justify-between mb-2"> |
|
|
<h4 class="font-medium">Retención de Conceptos</h4> |
|
|
<span class="text-sm font-semibold text-purple-600">+15%</span> |
|
|
</div> |
|
|
<div class="w-full bg-gray-200 rounded-full h-2.5"> |
|
|
<div class="bg-purple-600 h-2.5 rounded-full" style="width: 65%"></div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="mb-8"> |
|
|
<h4 class="font-medium mb-2">Most Effective Techniques</h4> |
|
|
<div class="space-y-2"> |
|
|
<div class="flex items-center"> |
|
|
<div class="w-2 h-2 bg-purple-600 rounded-full mr-2"></div> |
|
|
<span class="text-sm">Mapas Conceptuales</span> |
|
|
<span class="ml-auto text-sm font-semibold">85% effective</span> |
|
|
</div> |
|
|
<div class="flex items-center"> |
|
|
<div class="w-2 h-2 bg-purple-500 rounded-full mr-2"></div> |
|
|
<span class="text-sm">Análisis de Clases</span> |
|
|
<span class="ml-auto text-sm font-semibold">78% effective</span> |
|
|
</div> |
|
|
<div class="flex items-center"> |
|
|
<div class="w-2 h-2 bg-purple-400 rounded-full mr-2"></div> |
|
|
<span class="text-sm">Discusión Teórica</span> |
|
|
<span class="ml-auto text-sm font-semibold">72% effective</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="bg-purple-50 rounded-lg p-4"> |
|
|
<div class="flex items-start"> |
|
|
<div class="flex-shrink-0"> |
|
|
<i class="fas fa-star text-purple-600 mt-1"></i> |
|
|
</div> |
|
|
<div class="ml-3"> |
|
|
<h4 class="font-semibold text-purple-800">¡Gran Progreso!</h4> |
|
|
<p class="text-sm text-purple-700 mt-1">Has mejorado tu comprensión un 20% este mes. ¡Sigue así!</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="mt-6"> |
|
|
<h4 class="font-medium mb-2">Próximo Micro-Hábito Sugerido</h4> |
|
|
<div class="bg-white border border-purple-100 rounded-lg p-4 shadow-sm"> |
|
|
<div class="flex items-center"> |
|
|
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-4"> |
|
|
<i class="fas fa-project-diagram text-purple-600"></i> |
|
|
</div> |
|
|
<div> |
|
|
<h5 class="font-semibold">Conexión de Conceptos</h5> |
|
|
<p class="text-sm text-gray-600">Identifica cómo un nuevo concepto se conecta con algo que ya sabes.</p> |
|
|
</div> |
|
|
</div> |
|
|
<button class="mt-3 text-purple-600 hover:text-purple-700 text-sm font-medium"> |
|
|
Probar Ahora <i class="fas fa-arrow-right ml-1"></i> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
</main> |
|
|
|
|
|
|
|
|
<footer class="bg-white border-t border-gray-200 py-8 px-4 sm:px-6 lg:px-8"> |
|
|
<div class="max-w-6xl mx-auto"> |
|
|
<div class="md:flex md:items-center md:justify-between"> |
|
|
<div class="flex justify-center md:order-2 space-x-6"> |
|
|
<a href="#" class="text-gray-400 hover:text-gray-500"> |
|
|
<i class="fab fa-facebook-f"></i> |
|
|
</a> |
|
|
<a href="#" class="text-gray-400 hover:text-gray-500"> |
|
|
<i class="fab fa-twitter"></i> |
|
|
</a> |
|
|
<a href="#" class="text-gray-400 hover:text-gray-500"> |
|
|
<i class="fab fa-instagram"></i> |
|
|
</a> |
|
|
</div> |
|
|
<div class="mt-8 md:mt-0 md:order-1"> |
|
|
<p class="text-center text-base text-gray-400"> |
|
|
© 2023 Avispa-t. All rights reserved. |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</footer> |
|
|
|
|
|
|
|
|
<div id="achievement-modal" class="hidden fixed inset-0 z-50 overflow-y-auto"> |
|
|
<div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"> |
|
|
<div class="fixed inset-0 transition-opacity" aria-hidden="true"> |
|
|
<div class="absolute inset-0 bg-gray-500 opacity-75"></div> |
|
|
</div> |
|
|
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span> |
|
|
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full"> |
|
|
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> |
|
|
<div class="sm:flex sm:items-start"> |
|
|
<div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-purple-100 sm:mx-0 sm:h-16 sm:w-16"> |
|
|
<i class="fas fa-trophy text-purple-600 text-xl"></i> |
|
|
</div> |
|
|
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"> |
|
|
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title"> |
|
|
Achievement Unlocked! |
|
|
</h3> |
|
|
<div class="mt-2"> |
|
|
<p class="text-sm text-gray-500" id="achievement-desc"> |
|
|
You've completed your first challenge! Keep up the great work. |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"> |
|
|
<button id="close-modal" type="button" class="w-full inline-flex justify-center rounded-full border border-transparent shadow-sm px-4 py-2 bg-purple-600 text-base font-medium text-white hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:ml-3 sm:w-auto sm:text-sm"> |
|
|
Awesome! |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<script> |
|
|
|
|
|
const quizQuestions = [ |
|
|
{ |
|
|
question: "When learning something new, I prefer to:", |
|
|
options: [ |
|
|
"Watch and listen to explanations", |
|
|
"Read about the topic in detail", |
|
|
"Try it out hands-on", |
|
|
"Discuss it with others" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "I learn best when I can:", |
|
|
options: [ |
|
|
"Understand the theory behind it", |
|
|
"See demonstrations or examples", |
|
|
"Practice doing it myself", |
|
|
"Relate it to my own experiences" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "When solving problems, I typically:", |
|
|
options: [ |
|
|
"Analyze them carefully and logically", |
|
|
"Look for patterns and connections", |
|
|
"Try different approaches to see what works", |
|
|
"Consider how others might approach them" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "In a study group, I'm most likely to:", |
|
|
options: [ |
|
|
"Organize the information and create outlines", |
|
|
"Ask questions to explore different perspectives", |
|
|
"Suggest practical applications of the material", |
|
|
"Relate the concepts to real-world situations" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "When preparing for an exam, I prefer to:", |
|
|
options: [ |
|
|
"Create summaries and concept maps", |
|
|
"Discuss the material with classmates", |
|
|
"Solve practice problems", |
|
|
"Relate the material to things I already know" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "I consider myself to be:", |
|
|
options: [ |
|
|
"Good at thinking through ideas", |
|
|
"Good at understanding people", |
|
|
"Good at making things work", |
|
|
"Good at seeing possibilities" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "When learning a new skill, I prefer:", |
|
|
options: [ |
|
|
"To understand the theory first", |
|
|
"To see demonstrations before trying", |
|
|
"To jump in and learn by doing", |
|
|
"To explore how it relates to my life" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "In lectures, I appreciate when the instructor:", |
|
|
options: [ |
|
|
"Presents clear, logical explanations", |
|
|
"Uses visual aids and demonstrations", |
|
|
"Provides hands-on activities", |
|
|
"Relates concepts to real-world examples" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "When working on a project, I tend to:", |
|
|
options: [ |
|
|
"Plan carefully before starting", |
|
|
"Consider different perspectives", |
|
|
"Learn by trial and error", |
|
|
"Connect it to my personal interests" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "I prefer teachers who:", |
|
|
options: [ |
|
|
"Give clear, organized lectures", |
|
|
"Encourage discussion and debate", |
|
|
"Focus on practical applications", |
|
|
"Relate material to students' lives" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "When studying, I find it most helpful to:", |
|
|
options: [ |
|
|
"Organize information systematically", |
|
|
"Brainstorm different ideas", |
|
|
"Practice applying the concepts", |
|
|
"Relate the material to my experiences" |
|
|
] |
|
|
}, |
|
|
{ |
|
|
question: "I judge my learning by whether:", |
|
|
options: [ |
|
|
"I can explain the theory clearly", |
|
|
"I can see things from multiple perspectives", |
|
|
"I can successfully complete tasks", |
|
|
"I can connect it to my personal understanding" |
|
|
] |
|
|
} |
|
|
]; |
|
|
|
|
|
|
|
|
const learningStyles = { |
|
|
"Assimilating": { |
|
|
description: "You learn best by watching and thinking. You prefer abstract conceptualization and reflective observation. You like to analyze theories and create models. Lectures and readings with time to think are ideal for you.", |
|
|
icon: "fas fa-brain" |
|
|
}, |
|
|
"Diverging": { |
|
|
description: "You learn best by feeling and watching. You prefer concrete experience and reflective observation. You're good at brainstorming and seeing things from different perspectives. Group work and discussions help you learn.", |
|
|
icon: "fas fa-lightbulb" |
|
|
}, |
|
|
"Converging": { |
|
|
description: "You learn best by thinking and doing. You prefer abstract conceptualization and active experimentation. You're good at solving problems and making decisions. Hands-on practice and practical applications work well for you.", |
|
|
icon: "fas fa-cogs" |
|
|
}, |
|
|
"Accommodating": { |
|
|
description: "You learn best by feeling and doing. You prefer concrete experience and active experimentation. You like hands-on experiences and learning by trial and error. Practical challenges and new experiences help you learn.", |
|
|
icon: "fas fa-hands-helping" |
|
|
} |
|
|
}; |
|
|
|
|
|
|
|
|
const startTestBtn = document.getElementById('start-test-btn'); |
|
|
const quizSection = document.getElementById('quiz-section'); |
|
|
const quizContainer = document.getElementById('quiz-container'); |
|
|
const prevBtn = document.getElementById('prev-btn'); |
|
|
const nextBtn = document.getElementById('next-btn'); |
|
|
const quizProgress = document.getElementById('quiz-progress'); |
|
|
const progressText = document.getElementById('progress-text'); |
|
|
const resultSection = document.getElementById('result-section'); |
|
|
const continueDashboardBtn = document.getElementById('continue-dashboard'); |
|
|
const dashboardSection = document.getElementById('dashboard-section'); |
|
|
const completeChallengeBtn = document.getElementById('complete-challenge'); |
|
|
const xpCounter = document.getElementById('xp-counter'); |
|
|
const achievementModal = document.getElementById('achievement-modal'); |
|
|
const closeModalBtn = document.getElementById('close-modal'); |
|
|
const mobileMenuButton = document.getElementById('mobile-menu-button'); |
|
|
const mobileMenu = document.getElementById('mobile-menu'); |
|
|
const learningStyleElement = document.getElementById('learning-style'); |
|
|
const learningStyleDesc = document.getElementById('learning-style-desc'); |
|
|
const dashboardLearningStyle = document.getElementById('dashboard-learning-style'); |
|
|
|
|
|
|
|
|
let currentQuestion = 0; |
|
|
let answers = []; |
|
|
let xp = 1250; |
|
|
|
|
|
|
|
|
startTestBtn.addEventListener('click', startQuiz); |
|
|
prevBtn.addEventListener('click', showPreviousQuestion); |
|
|
nextBtn.addEventListener('click', showNextQuestion); |
|
|
continueDashboardBtn.addEventListener('click', showDashboard); |
|
|
completeChallengeBtn.addEventListener('click', completeChallenge); |
|
|
closeModalBtn.addEventListener('click', closeModal); |
|
|
mobileMenuButton.addEventListener('click', toggleMobileMenu); |
|
|
|
|
|
|
|
|
function startQuiz() { |
|
|
document.getElementById('welcome').classList.add('hidden'); |
|
|
quizSection.classList.remove('hidden'); |
|
|
showQuestion(currentQuestion); |
|
|
} |
|
|
|
|
|
function showQuestion(index) { |
|
|
quizContainer.innerHTML = ''; |
|
|
|
|
|
const question = quizQuestions[index]; |
|
|
const questionElement = document.createElement('div'); |
|
|
questionElement.className = 'mb-6'; |
|
|
|
|
|
const questionText = document.createElement('h3'); |
|
|
questionText.className = 'text-xl font-semibold text-gray-900 mb-4'; |
|
|
questionText.textContent = question.question; |
|
|
questionElement.appendChild(questionText); |
|
|
|
|
|
const optionsList = document.createElement('div'); |
|
|
optionsList.className = 'space-y-3'; |
|
|
|
|
|
question.options.forEach((option, i) => { |
|
|
const optionContainer = document.createElement('div'); |
|
|
optionContainer.className = 'flex items-center'; |
|
|
|
|
|
const input = document.createElement('input'); |
|
|
input.type = 'radio'; |
|
|
input.id = `option-${i}`; |
|
|
input.name = 'quiz-option'; |
|
|
input.value = i; |
|
|
input.className = 'w-4 h-4 text-purple-600 focus:ring-purple-500'; |
|
|
|
|
|
if (answers[index] === i) { |
|
|
input.checked = true; |
|
|
} |
|
|
|
|
|
const label = document.createElement('label'); |
|
|
label.htmlFor = `option-${i}`; |
|
|
label.className = 'ml-3 text-gray-700'; |
|
|
label.textContent = option; |
|
|
|
|
|
optionContainer.appendChild(input); |
|
|
optionContainer.appendChild(label); |
|
|
optionsList.appendChild(optionContainer); |
|
|
}); |
|
|
|
|
|
questionElement.appendChild(optionsList); |
|
|
quizContainer.appendChild(questionElement); |
|
|
|
|
|
|
|
|
const progress = ((index + 1) / quizQuestions.length) * 100; |
|
|
quizProgress.style.width = `${progress}%`; |
|
|
progressText.textContent = `Question ${index + 1} of ${quizQuestions.length}`; |
|
|
|
|
|
|
|
|
prevBtn.classList.toggle('hidden', index === 0); |
|
|
|
|
|
if (index === quizQuestions.length - 1) { |
|
|
nextBtn.innerHTML = 'Submit <i class="fas fa-check ml-2"></i>'; |
|
|
} else { |
|
|
nextBtn.innerHTML = 'Next <i class="fas fa-arrow-right ml-2"></i>'; |
|
|
} |
|
|
} |
|
|
|
|
|
function showPreviousQuestion() { |
|
|
saveAnswer(); |
|
|
currentQuestion--; |
|
|
showQuestion(currentQuestion); |
|
|
} |
|
|
|
|
|
function showNextQuestion() { |
|
|
saveAnswer(); |
|
|
|
|
|
if (currentQuestion < quizQuestions.length - 1) { |
|
|
currentQuestion++; |
|
|
showQuestion(currentQuestion); |
|
|
} else { |
|
|
submitQuiz(); |
|
|
} |
|
|
} |
|
|
|
|
|
function saveAnswer() { |
|
|
const selectedOption = document.querySelector('input[name="quiz-option"]:checked'); |
|
|
if (selectedOption) { |
|
|
answers[currentQuestion] = parseInt(selectedOption.value); |
|
|
} |
|
|
} |
|
|
|
|
|
function submitQuiz() { |
|
|
|
|
|
const score = [0, 0, 0, 0]; |
|
|
answers.forEach(answer => { |
|
|
if (answer !== undefined) { |
|
|
score[answer]++; |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
const maxScore = Math.max(...score); |
|
|
const styleIndex = score.indexOf(maxScore); |
|
|
let learningStyle; |
|
|
|
|
|
if (styleIndex === 0) learningStyle = "Assimilating"; |
|
|
else if (styleIndex === 1) learningStyle = "Diverging"; |
|
|
else if (styleIndex === 2) learningStyle = "Converging"; |
|
|
else learningStyle = "Accommodating"; |
|
|
|
|
|
|
|
|
quizSection.classList.add('hidden'); |
|
|
resultSection.classList.remove('hidden'); |
|
|
|
|
|
learningStyleElement.textContent = learningStyle; |
|
|
learningStyleDesc.textContent = learningStyles[learningStyle].description; |
|
|
dashboardLearningStyle.textContent = learningStyle; |
|
|
|
|
|
|
|
|
xp += 50; |
|
|
xpCounter.textContent = xp; |
|
|
} |
|
|
|
|
|
function showDashboard() { |
|
|
resultSection.classList.add('hidden'); |
|
|
dashboardSection.classList.remove('hidden'); |
|
|
} |
|
|
|
|
|
function completeChallenge() { |
|
|
xp += 25; |
|
|
xpCounter.textContent = xp; |
|
|
|
|
|
completeChallengeBtn.innerHTML = '<i class="fas fa-check mr-2"></i> Completed'; |
|
|
completeChallengeBtn.classList.remove('bg-purple-600', 'hover:bg-purple-700'); |
|
|
completeChallengeBtn.classList.add('bg-green-500', 'hover:bg-green-600'); |
|
|
completeChallengeBtn.disabled = true; |
|
|
|
|
|
|
|
|
document.getElementById('achievement-desc').textContent = "You've completed today's challenge! 25 XP earned."; |
|
|
achievementModal.classList.remove('hidden'); |
|
|
} |
|
|
|
|
|
function closeModal() { |
|
|
achievementModal.classList.add('hidden'); |
|
|
} |
|
|
|
|
|
function toggleMobileMenu() { |
|
|
mobileMenu.classList.toggle('hidden'); |
|
|
} |
|
|
|
|
|
|
|
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => { |
|
|
anchor.addEventListener('click', function (e) { |
|
|
e.preventDefault(); |
|
|
|
|
|
const targetId = this.getAttribute('href'); |
|
|
if (targetId === '#') return; |
|
|
|
|
|
const targetElement = document.querySelector(targetId); |
|
|
if (targetElement) { |
|
|
targetElement.scrollIntoView({ |
|
|
behavior: 'smooth' |
|
|
}); |
|
|
|
|
|
|
|
|
if (!mobileMenu.classList.contains('hidden')) { |
|
|
mobileMenu.classList.add('hidden'); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
for (let i = 0; i < quizQuestions.length; i++) { |
|
|
answers.push(undefined); |
|
|
} |
|
|
</script> |
|
|
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=teo1hem/avispate" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> |
|
|
</html> |