Download index.html from beesiq/nectarina: direct link, hf CLI and curl.
- Browser
- Download file 50.8 kB
-
https://huggingface.co/spaces/beesiq/nectarina/resolve/main/index.html
- Command line
-
hf download hf://spaces/beesiq/nectarina/index.html
-
curl -L -o index.html https://huggingface.co/spaces/beesiq/nectarina/resolve/main/index.html
50.8 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ZeroA1 - Quiz Personalizado</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"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap'); | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background-color: #0a0a0a; | |
| color: #f5f5f5; | |
| scroll-behavior: smooth; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%); | |
| } | |
| .gradient-text { | |
| background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| } | |
| .blur-effect { | |
| filter: blur(8px); | |
| transition: all 0.3s ease; | |
| } | |
| .card-hover { | |
| transition: all 0.3s ease; | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3); | |
| } | |
| .quiz-progress { | |
| height: 6px; | |
| background-color: #1f2937; | |
| border-radius: 3px; | |
| } | |
| .quiz-progress-bar { | |
| height: 100%; | |
| border-radius: 3px; | |
| background: linear-gradient(90deg, #f97316 0%, #f59e0b 100%); | |
| transition: width 0.4s ease; | |
| } | |
| input[type="radio"]:checked + label { | |
| border-color: #f97316; | |
| background-color: rgba(249, 115, 22, 0.1); | |
| } | |
| input[type="checkbox"]:checked + label { | |
| border-color: #f97316; | |
| background-color: rgba(249, 115, 22, 0.1); | |
| } | |
| .slide-in { | |
| animation: slideIn 0.5s forwards; | |
| } | |
| .slide-out { | |
| animation: slideOut 0.5s forwards; | |
| } | |
| @keyframes slideIn { | |
| from { transform: translateX(100%); opacity: 0; } | |
| to { transform: translateX(0); opacity: 1; } | |
| } | |
| @keyframes slideOut { | |
| from { transform: translateX(0); opacity: 1; } | |
| to { transform: translateX(-100%); opacity: 0; } | |
| } | |
| .count-up { | |
| animation: countUp 1s forwards; | |
| } | |
| @keyframes countUp { | |
| from { content: "0"; } | |
| to { content: attr(data-count); } | |
| } | |
| .handwriting { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| font-style: italic; | |
| } | |
| .typing-effect { | |
| overflow: hidden; | |
| white-space: nowrap; | |
| border-right: 2px solid #f97316; | |
| animation: typing 3s steps(40) 1s 1 normal both; | |
| } | |
| @keyframes typing { | |
| from { width: 0 } | |
| to { width: 100% } | |
| } | |
| .glow { | |
| animation: glow 2s ease-in-out infinite alternate; | |
| } | |
| @keyframes glow { | |
| from { box-shadow: 0 0 5px rgba(249, 115, 22, 0.5); } | |
| to { box-shadow: 0 0 15px rgba(249, 115, 22, 0.8); } | |
| } | |
| .option-card { | |
| transition: all 0.3s ease; | |
| cursor: pointer; | |
| } | |
| .option-card:hover { | |
| transform: scale(1.03); | |
| } | |
| .option-card.selected { | |
| border-color: #f97316; | |
| background-color: rgba(249, 115, 22, 0.1); | |
| transform: scale(1.03); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Home Section --> | |
| <div id="home" class="min-h-screen flex flex-col items-center justify-center p-6 text-center"> | |
| <div class="max-w-4xl mx-auto"> | |
| <h1 class="text-4xl md:text-6xl font-bold mb-6"> | |
| <span class="gradient-text">ZeroA1</span> - Seu Treino Personalizado | |
| </h1> | |
| <p class="text-xl md:text-2xl mb-8 text-gray-300"> | |
| Descubra em poucos minutos o treino ideal para seu corpo, sua rotina e sua vibe | |
| </p> | |
| <button id="startButton" class="gradient-bg text-white px-8 py-4 rounded-full font-bold hover:opacity-90 transition text-lg animate-bounce"> | |
| Começar Agora | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Quiz Modal --> | |
| <div id="quizModal" class="fixed inset-0 bg-black bg-opacity-90 z-50 flex items-center justify-center p-6 hidden"> | |
| <div class="bg-gray-900 rounded-2xl w-full max-w-2xl max-h-[90vh] overflow-y-auto"> | |
| <!-- Quiz Header --> | |
| <div class="sticky top-0 bg-gray-900 p-6 border-b border-gray-800 rounded-t-2xl"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold">Quiz ZeroA1</h3> | |
| <button onclick="closeQuiz()" class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="quiz-progress"> | |
| <div id="quizProgress" class="quiz-progress-bar" style="width: 0%"></div> | |
| </div> | |
| </div> | |
| <!-- Quiz Content --> | |
| <div id="quizContent" class="p-6"> | |
| <!-- Welcome Screen --> | |
| <div id="welcomeScreen" class="text-center"> | |
| <h2 class="text-2xl md:text-3xl font-bold mb-6"> | |
| Descubra em poucos minutos o treino ideal pro seu corpo, sua rotina e sua vibe | |
| </h2> | |
| <p class="text-gray-300 mb-8 text-lg"> | |
| Não é um teste. É o primeiro passo pra sair do "quero treinar" e entrar no "tô fazendo acontecer". | |
| </p> | |
| <div class="bg-gray-800 p-4 rounded-lg mb-8 text-left"> | |
| <p class="text-gray-400 text-sm"> | |
| Ao continuar, você concorda com nossos <a href="#" class="text-orange-500 hover:underline">Termos de Uso</a> e <a href="#" class="text-orange-500 hover:underline">Política de Privacidade</a>. | |
| </p> | |
| </div> | |
| <button onclick="nextQuestion('welcomeScreen', 'question1')" class="gradient-bg text-white px-8 py-4 rounded-full font-bold hover:opacity-90 transition text-lg"> | |
| Começar Agora | |
| </button> | |
| </div> | |
| <!-- Question 1 - Nome --> | |
| <div id="question1" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">1. Qual seu nome completo?</h3> | |
| <input type="text" id="userName" class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 text-white mb-6" placeholder="Digite seu nome"> | |
| <div class="flex justify-end"> | |
| <button onclick="nextQuestion('question1', 'socialProof1')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Social Proof 1 --> | |
| <div id="socialProof1" class="hidden text-center py-8"> | |
| <div class="bg-gray-800 rounded-2xl p-8"> | |
| <div class="text-5xl font-bold gradient-text mb-4 count-up" data-count="3.200+">3.200+</div> | |
| <p class="text-xl mb-4">pessoas já passaram pelo ZeroA1 nas últimas semanas</p> | |
| <p class="text-gray-400">85% disseram que nunca tinham feito um treino tão personalizado</p> | |
| <div class="mt-6"> | |
| <button onclick="nextQuestion('socialProof1', 'question2')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Continuar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Question 2 - Sexo --> | |
| <div id="question2" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">2. Qual seu sexo biológico?</h3> | |
| <div class="grid grid-cols-2 gap-4 mb-6"> | |
| <div> | |
| <input type="radio" name="gender" id="male" value="male" class="hidden"> | |
| <label for="male" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-mars text-2xl mb-2"></i> | |
| <p>Masculino</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" name="gender" id="female" value="female" class="hidden"> | |
| <label for="female" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-venus text-2xl mb-2"></i> | |
| <p>Feminino</p> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question2', 'question1')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question2', 'question3')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 3 - Data de Nascimento --> | |
| <div id="question3" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">3. Qual sua data de nascimento?</h3> | |
| <input type="date" id="userBirth" class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 text-white mb-6"> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question3', 'question2')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question3', 'question4')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 4 - Peso --> | |
| <div id="question4" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">4. Qual seu peso atual? (kg)</h3> | |
| <input type="number" id="userWeight" class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 text-white mb-6" placeholder="Digite seu peso"> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question4', 'question3')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question4', 'question5')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 5 - Altura --> | |
| <div id="question5" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">5. Qual sua altura? (cm)</h3> | |
| <input type="number" id="userHeight" class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 text-white mb-6" placeholder="Digite sua altura"> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question5', 'question4')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question5', 'question6')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 6 - Objetivo --> | |
| <div id="question6" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">6. Qual seu principal objetivo com os treinos?</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"> | |
| <div> | |
| <input type="radio" name="goal" id="loseWeight" value="loseWeight" class="hidden"> | |
| <label for="loseWeight" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-weight text-2xl mb-2"></i> | |
| <p>Perder peso</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" name="goal" id="gainMuscle" value="gainMuscle" class="hidden"> | |
| <label for="gainMuscle" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-dumbbell text-2xl mb-2"></i> | |
| <p>Ganhar massa muscular</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" name="goal" id="endurance" value="endurance" class="hidden"> | |
| <label for="endurance" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-heartbeat text-2xl mb-2"></i> | |
| <p>Melhorar resistência</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" name="goal" id="health" value="health" class="hidden"> | |
| <label for="health" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-heart text-2xl mb-2"></i> | |
| <p>Melhorar saúde geral</p> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question6', 'question5')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question6', 'question7')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 7 - Tempo disponível --> | |
| <div id="question7" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">7. Quanto tempo você pode dedicar aos treinos por semana?</h3> | |
| <div class="grid grid-cols-1 gap-4 mb-6"> | |
| <div> | |
| <input type="radio" name="time" id="time1" value="1-2h" class="hidden"> | |
| <label for="time1" class="block border border-gray-700 rounded-lg p-4 cursor-pointer hover:border-orange-500 transition"> | |
| <p class="font-bold">1-2 horas</p> | |
| <p class="text-sm text-gray-400">Treinos curtos e eficientes</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" name="time" id="time2" value="3-4h" class="hidden"> | |
| <label for="time2" class="block border border-gray-700 rounded-lg p-4 cursor-pointer hover:border-orange-500 transition"> | |
| <p class="font-bold">3-4 horas</p> | |
| <p class="text-sm text-gray-400">Treinos moderados com boa variedade</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" name="time" id="time3" value="5+h" class="hidden"> | |
| <label for="time3" class="block border border-gray-700 rounded-lg p-4 cursor-pointer hover:border-orange-500 transition"> | |
| <p class="font-bold">5+ horas</p> | |
| <p class="text-sm text-gray-400">Treinos completos e intensos</p> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question7', 'question6')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question7', 'question8')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 8 - Local de treino --> | |
| <div id="question8" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">8. Onde você pretende treinar?</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"> | |
| <div> | |
| <input type="radio" name="place" id="gym" value="gym" class="hidden"> | |
| <label for="gym" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-dumbbell text-2xl mb-2"></i> | |
| <p>Academia</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" name="place" id="home", value="home" class="hidden"> | |
| <label for="home" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-home text-2xl mb-2"></i> | |
| <p>Em casa</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" name="place" id="park" value="park" class="hidden"> | |
| <label for="park" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-tree text-2xl mb-2"></i> | |
| <p>Parque/Ar livre</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" name="place" id="anywhere" value="anywhere" class="hidden"> | |
| <label for="anywhere" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-globe text-2xl mb-2"></i> | |
| <p>Qualquer lugar</p> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question8', 'question7')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question8', 'question9')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 9 - Equipamentos --> | |
| <div id="question9" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">9. Quais equipamentos você tem disponível?</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"> | |
| <div> | |
| <input type="checkbox" name="equipment" id="none" value="none" class="hidden"> | |
| <label for="none" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-times text-2xl mb-2"></i> | |
| <p>Nenhum</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="checkbox" name="equipment", id="dumbbells" value="dumbbells" class="hidden"> | |
| <label for="dumbbells" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-dumbbell text-2xl mb-2"></i> | |
| <p>Halteres</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="checkbox" name="equipment" id="resistance" value="resistance" class="hidden"> | |
| <label for="resistance" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-ring text-2xl mb-2"></i> | |
| <p>Banda elástica</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="checkbox" name="equipment" id="yoga" value="yoga" class="hidden"> | |
| <label for="yoga" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-spa text-2xl mb-2"></i> | |
| <p>Tapete de yoga</p> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question9', 'question8')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question9', 'question10')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 10 - Condicionamento --> | |
| <div id="question10" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">10. Como você avalia seu condicionamento físico atual?</h3> | |
| <div class="mb-6"> | |
| <div class="flex justify-between mb-2"> | |
| <span>Iniciante</span> | |
| <span>Avançado</span> | |
| </div> | |
| <input type="range" id="fitnessLevel" min="0" max="10" step="1" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer"> | |
| <div class="flex justify-between text-xs text-gray-400"> | |
| <span>0</span> | |
| <span>1</span> | |
| <span>2</span> | |
| <span>3</span> | |
| <span>4</span> | |
| <span>5</span> | |
| <span>6</span> | |
| <span>7</span> | |
| <span>8</span> | |
| <span>9</span> | |
| <span>10</span> | |
| </div> | |
| </div> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question10', 'question9')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question10', 'question11')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 11 - Lesões --> | |
| <div id="question11" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">11. Você tem alguma lesão ou condição física que devemos considerar?</h3> | |
| <textarea id="injuries" class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 text-white mb-6" placeholder="Descreva qualquer lesão, dor crônica ou condição física relevante"></textarea> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question11', 'question10')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question11', 'question12')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Próxima | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Question 12 - Preferências --> | |
| <div id="question12" class="quiz-question hidden"> | |
| <h3 class="text-xl font-bold mb-6">12. Quais tipos de exercícios você mais gosta?</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"> | |
| <div> | |
| <input type="checkbox" name="preferences" id="cardio" value="cardio" class="hidden"> | |
| <label for="cardio" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-running text-2xl mb-2"></i> | |
| <p>Cardio</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="checkbox" name="preferences" id="strength" value="strength" class="hidden"> | |
| <label for="strength" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-dumbbell text-2xl mb-2"></i> | |
| <p>Força</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="checkbox" name="preferences" id="hiit" value="hiit" class="hidden"> | |
| <label for="hiit" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-bolt text-2xl mb-2"></i> | |
| <p>HIIT</p> | |
| </label> | |
| </div> | |
| <div> | |
| <input type="checkbox" name="preferences" id="yogaPilates" value="yogaPilates" class="hidden"> | |
| <label for="yogaPilates" class="block border border-gray-700 rounded-lg p-4 text-center cursor-pointer hover:border-orange-500 transition"> | |
| <i class="fas fa-spa text-2xl mb-2"></i> | |
| <p>Yoga/Pilates</p> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="flex justify-between"> | |
| <button onclick="prevQuestion('question12', 'question11')" class="border border-gray-700 text-white px-6 py-3 rounded-lg font-bold hover:bg-gray-800 transition"> | |
| Voltar | |
| </button> | |
| <button onclick="nextQuestion('question12', 'results')" class="gradient-bg text-white px-6 py-3 rounded-lg font-bold hover:opacity-90 transition"> | |
| Ver Resultado | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Results Screen --> | |
| <div id="results" class="hidden text-center py-8"> | |
| <div class="bg-gray-800 rounded-2xl p-8"> | |
| <h2 class="text-2xl md:text-3xl font-bold mb-6"> | |
| <span class="gradient-text">Parabéns!</span> Seu treino personalizado está pronto | |
| </h2> | |
| <div class="mb-8"> | |
| <p class="text-lg mb-4">Com base nas suas respostas, criamos um plano de treino perfeito para você:</p> | |
| <div id="workoutPlan" class="text-left bg-gray-900 p-4 rounded-lg"> | |
| <!-- Workout plan will be inserted here by JavaScript --> | |
| </div> | |
| </div> | |
| <div class="mb-8"> | |
| <p class="text-lg mb-4">Queremos te enviar esse plano completo por email:</p> | |
| <input type="email" id="userEmail" class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 text-white mb-4" placeholder="Digite seu melhor email"> | |
| <button onclick="submitQuiz()" class="gradient-bg text-white px-8 py-4 rounded-full font-bold hover:opacity-90 transition text-lg w-full"> | |
| Enviar meu Plano de Treino | |
| </button> | |
| </div> | |
| <div class="text-sm text-gray-400"> | |
| <p>Seu email está seguro conosco. Não compartilhamos seus dados.</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Thank You Screen --> | |
| <div id="thankYou" class="hidden text-center py-8"> | |
| <div class="bg-gray-800 rounded-2xl p-8"> | |
| <div class="text-6xl mb-6">🎉</div> | |
| <h2 class="text-2xl md:text-3xl font-bold mb-6"> | |
| <span class="gradient-text">Obrigado!</span> Seu treino está a caminho | |
| </h2> | |
| <p class="text-lg mb-6">Enviamos seu plano personalizado para o email cadastrado.</p> | |
| <p class="text-gray-400 mb-8">Confira sua caixa de entrada (e o spam, por garantia).</p> | |
| <button onclick="closeQuiz()" class="gradient-bg text-white px-8 py-4 rounded-full font-bold hover:opacity-90 transition text-lg"> | |
| Fechar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Quiz data and state | |
| const quizData = { | |
| currentQuestion: 0, | |
| totalQuestions: 12, | |
| answers: {}, | |
| workoutPlans: { | |
| beginner: { | |
| title: "Plano Iniciante", | |
| description: "Foco em construir uma base sólida com exercícios fundamentais e adaptados para quem está começando.", | |
| schedule: "3x por semana (Segunda, Quarta e Sexta)", | |
| duration: "45-60 minutos por sessão", | |
| focus: "Técnica correta, mobilidade e resistência básica" | |
| }, | |
| intermediate: { | |
| title: "Plano Intermediário", | |
| description: "Combinação de força và resistência para quem já tem alguma experiência com treinos.", | |
| schedule: "4x por semana (Segunda, Terça, Quinta e Sexta)", | |
| duration: "60-75 minutos por sessão", | |
| focus: "Ganho de força muscular e melhoria da capacidade cardiovascular" | |
| }, | |
| advanced: { | |
| title: "Plano Avançado", | |
| description: "Treinos intensos e desafiadores para quem busca maximizar resultados.", | |
| schedule: "5-6x por semana (Segunda a Sábado com 1-2 dias de descanso)", | |
| duration: "75-90 minutos por sessão", | |
| focus: "Força máxima, hipertrofia e performance atlética" | |
| }, | |
| homeWorkout: { | |
| title: "Plano para Casa", | |
| description: "Treinos eficientes usando apenas o peso do corpo e equipamentos mínimos.", | |
| schedule: "4x por semana (com dias alternados)", | |
| duration: "30-45 minutos por sessão", | |
| focus: "Resistência, mobilidade e força funcional" | |
| }, | |
| weightLoss: { | |
| title: "Plano para Perda de Peso", | |
| description: "Combinação de exercícios cardiovasculares e treino de força para maximizar queima calórica.", | |
| schedule: "5x por semana (3 dias cardio + 2 dias força)", | |
| duration: "45-60 minutos por sessão", | |
| focus: "Queima calórica, resistência e tonificação" | |
| }, | |
| muscleGain: { | |
| title: "Plano para Ganho de Massa", | |
| description: "Foco em exercícios compostos e progressão de carga para estimular hipertrofia.", | |
| schedule: "4-5x por semana (divisão por grupos musculares)", | |
| duration: "60-75 minutos por sessão", | |
| focus: "Hipertrofia muscular e força progressiva" | |
| } | |
| } | |
| }; | |
| // DOM elements | |
| const quizModal = document.getElementById('quizModal'); | |
| const quizProgress = document.getElementById('quizProgress'); | |
| const workoutPlanElement = document.getElementById('workoutPlan'); | |
| const startButton = document.getElementById('startButton'); | |
| // Open quiz modal | |
| function openQuiz() { | |
| quizModal.classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| quizData.currentQuestion = 0; | |
| updateProgressBar(); | |
| } | |
| // Close quiz modal | |
| function closeQuiz() { | |
| quizModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| resetQuiz(); | |
| } | |
| // Reset quiz state | |
| function resetQuiz() { | |
| quizData.currentQuestion = 0; | |
| quizData.answers = {}; | |
| document.getElementById('welcomeScreen').classList.remove('hidden'); | |
| document.querySelectorAll('.quiz-question, #socialProof1, #results, #thankYou').forEach(el => { | |
| el.classList.add('hidden'); | |
| }); | |
| updateProgressBar(); | |
| } | |
| // Navigate to next question | |
| function nextQuestion(currentId, nextId) { | |
| // Validate current question before proceeding | |
| if (!validateQuestion(currentId)) { | |
| return; | |
| } | |
| // Save answer if applicable | |
| if (currentId.startsWith('question')) { | |
| saveAnswer(currentId); | |
| } | |
| // Special case for results screen | |
| if (nextId === 'results') { | |
| generateWorkoutPlan(); | |
| } | |
| // Hide current and show next | |
| document.getElementById(currentId).classList.add('hidden'); | |
| document.getElementById(nextId).classList.remove('hidden'); | |
| // Update progress | |
| if (nextId.startsWith('question')) { | |
| const questionNum = parseInt(nextId.replace('question', '')); | |
| quizData.currentQuestion = questionNum; | |
| updateProgressBar(); | |
| } | |
| } | |
| // Navigate to previous question | |
| function prevQuestion(currentId, prevId) { | |
| document.getElementById(currentId).classList.add('hidden'); | |
| document.getElementById(prevId).classList.remove('hidden'); | |
| if (prevId.startsWith('question')) { | |
| const questionNum = parseInt(prevId.replace('question', '')); | |
| quizData.currentQuestion = questionNum; | |
| updateProgressBar(); | |
| } | |
| } | |
| // Validate current question | |
| function validateQuestion(questionId) { | |
| switch(questionId) { | |
| case 'question1': | |
| const name = document.getElementById('userName').value.trim(); | |
| if (!name) { | |
| alert('Por favor, digite seu nome'); | |
| return false; | |
| } | |
| break; | |
| case 'question2': | |
| const gender = document.querySelector('input[name="gender"]:checked'); | |
| if (!gender) { | |
| alert('Por favor, selecione seu sexo'); | |
| return false; | |
| } | |
| break; | |
| case 'question3': | |
| const birthDate = document.getElementById('userBirth').value; | |
| if (!birthDate) { | |
| alert('Por favor, selecione sua data de nascimento'); | |
| return false; | |
| } | |
| break; | |
| case 'question4': | |
| const weight = document.getElementById('userWeight').value; | |
| if (!weight || weight <= 0) { | |
| alert('Por favor, digite um peso válido'); | |
| return false; | |
| } | |
| break; | |
| case 'question5': | |
| const height = document.getElementById('userHeight').value; | |
| if (!height || height <= 0) { | |
| alert('Por favor, digite uma altura válida'); | |
| return false; | |
| } | |
| break; | |
| case 'question6': | |
| const goal = document.querySelector('input[name="goal"]:checked'); | |
| if (!goal) { | |
| alert('Por favor, selecione seu objetivo'); | |
| return false; | |
| } | |
| break; | |
| case 'question7': | |
| const time = document.querySelector('input[name="time"]:checked'); | |
| if (!time) { | |
| alert('Por favor, selecione seu tempo disponível'); | |
| return false; | |
| } | |
| break; | |
| case 'question8': | |
| const place = document.querySelector('input[name="place"]:checked'); | |
| if (!place) { | |
| alert('Por favor, selecione onde pretende treinar'); | |
| return false; | |
| } | |
| break; | |
| } | |
| return true; | |
| } | |
| // Save answer to quiz data | |
| function saveAnswer(questionId) { | |
| switch(questionId) { | |
| case 'question1': | |
| quizData.answers.name = document.getElementById('userName').value.trim(); | |
| break; | |
| case 'question2': | |
| quizData.answers.gender = document.querySelector('input[name="gender"]:checked').value; | |
| break; | |
| case 'question3': | |
| quizData.answers.birthDate = document.getElementById('userBirth').value; | |
| break; | |
| case 'question4': | |
| quizData.answers.weight = document.getElementById('userWeight').value; | |
| break; | |
| case 'question5': | |
| quizData.answers.height = document.getElementById('userHeight').value; | |
| break; | |
| case 'question6': | |
| quizData.answers.goal = document.querySelector('input[name="goal"]:checked').value; | |
| break; | |
| case 'question7': | |
| quizData.answers.time = document.querySelector('input[name="time"]:checked').value; | |
| break; | |
| case 'question8': | |
| quizData.answers.place = document.querySelector('input[name="place"]:checked').value; | |
| break; | |
| case 'question9': | |
| const equipment = []; | |
| document.querySelectorAll('input[name="equipment"]:checked').forEach(el => { | |
| equipment.push(el.value); | |
| }); | |
| quizData.answers.equipment = equipment; | |
| break; | |
| case 'question10': | |
| quizData.answers.fitnessLevel = document.getElementById('fitnessLevel').value; | |
| break; | |
| case 'question11': | |
| quizData.answers.injuries = document.getElementById('injuries').value.trim(); | |
| break; | |
| case 'question12': | |
| const preferences = []; | |
| document.querySelectorAll('input[name="preferences"]:checked').forEach(el => { | |
| preferences.push(el.value); | |
| }); | |
| quizData.answers.preferences = preferences; | |
| break; | |
| } | |
| } | |
| // Update progress bar | |
| function updateProgressBar() { | |
| const progress = (quizData.currentQuestion / quizData.totalQuestions) * 100; | |
| quizProgress.style.width = `${progress}%`; | |
| } | |
| // Generate workout plan based on answers | |
| function generateWorkoutPlan() { | |
| const fitnessLevel = parseInt(quizData.answers.fitnessLevel || 0); | |
| const goal = quizData.answers.goal; | |
| const place = quizData.answers.place; | |
| // Determine base plan based on fitness level | |
| let planType; | |
| if (fitnessLevel <= 3) { | |
| planType = 'beginner'; | |
| } else if (fitnessLevel <= 7) { | |
| planType = 'intermediate'; | |
| } else { | |
| planType = 'advanced'; | |
| } | |
| // Adjust plan based on specific goals and preferences | |
| if (place === 'home') { | |
| planType = 'homeWorkout'; | |
| } else if (goal === 'loseWeight') { | |
| planType = 'weightLoss'; | |
| } else if (goal === 'gainMuscle') { | |
| planType = 'muscleGain'; | |
| } | |
| const plan = quizData.workoutPlans[planType]; | |
| // Generate equipment recommendations | |
| let equipmentRec = "Nenhum equipamento necessário"; | |
| if (quizData.answers.equipment && quizData.answers.equipment.length > 0) { | |
| equipmentRec = "Você pode usar: " + quizData.answers.equipment.map(eq => { | |
| switch(eq) { | |
| case 'dumbbells': return 'halteres'; | |
| case 'resistance': return 'banda elástica'; | |
| case 'yoga': return 'tapete de yoga'; | |
| default: return eq; | |
| } | |
| }).join(', '); | |
| } | |
| // Generate injury warnings if any | |
| let injuryNote = ""; | |
| if (quizData.answers.injuries && quizData.answers.injuries.trim() !== "") { | |
| injuryNote = ` | |
| <div class="mt-4 p-3 bg-red-900 bg-opacity-30 rounded-lg"> | |
| <h4 class="font-bold mb-1">⚠️ Atenção às suas lesões:</h4> | |
| <p>${quizData.answers.injuries}</p> | |
| <p class="text-sm mt-2">Consulte um profissional antes de iniciar qualquer exercício que possa agravar sua condição.</p> | |
| </div> | |
| `; | |
| } | |
| workoutPlanElement.innerHTML = ` | |
| <h3 class="text-xl font-bold mb-2 gradient-text">${plan.title}</h3> | |
| <p class="mb-4">${plan.description}</p> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-4"> | |
| <div class="bg-gray-800 p-3 rounded-lg"> | |
| <h4 class="font-bold mb-1">Frequência</h4> | |
| <p>${plan.schedule}</p> | |
| </div> | |
| <div class="bg-gray-800 p-3 rounded-lg"> | |
| <h4 class="font-bold mb-1">Duração</h4> | |
| <p>${plan.duration}</p> | |
| </div> | |
| <div class="bg-gray-800 p-3 rounded-lg"> | |
| <h4 class="font-bold mb-1">Foco</h4> | |
| <p>${plan.focus}</p> | |
| </div> | |
| </div> | |
| <div class="mt-4 p-3 bg-gray-800 rounded-lg"> | |
| <h4 class="font-bold mb-1">Equipamentos</h4> | |
| <p>${equipmentRec}</p> | |
| </div> | |
| ${injuryNote} | |
| <div class="mt-6"> | |
| <p class="text-sm text-gray-400">Plano gerado especialmente para ${quizData.answers.name} com base nas suas respostas.</p> | |
| </div> | |
| `; | |
| } | |
| // Submit quiz and show thank you screen | |
| function submitQuiz() { | |
| const email = document.getElementById('userEmail').value.trim(); | |
| if (!email || !email.includes('@')) { | |
| alert('Por favor, digite um email válido'); | |
| return; | |
| } | |
| // In a real app, you would send this data to your backend | |
| quizData.answers.email = email; | |
| console.log('Quiz answers:', quizData.answers); | |
| // Show thank you screen | |
| document.getElementById('results').classList.add('hidden'); | |
| document.getElementById('thankYou').classList.remove('hidden'); | |
| } | |
| // Initialize count-up animation for social proof | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const countUpElements = document.querySelectorAll('.count-up'); | |
| countUpElements.forEach(el => { | |
| setTimeout(() => { | |
| el.textContent = el.getAttribute('data-count'); | |
| }, 1000); | |
| }); | |
| // Add click handlers for option cards | |
| document.querySelectorAll('input[type="radio"], input[type="checkbox"]').forEach(input => { | |
| input.addEventListener('change', function() { | |
| const label = document.querySelector(`label[for="${this.id}"]`); | |
| if (this.type === 'radio') { | |
| // For radio buttons, remove selected class from all siblings first | |
| const parent = label.closest('.grid'); | |
| if (parent) { | |
| parent.querySelectorAll('.option-card').forEach(card => { | |
| card.classList.remove('selected'); | |
| }); | |
| } | |
| } | |
| if (this.checked) { | |
| label.classList.add('selected'); | |
| } else { | |
| label.classList.remove('selected'); | |
| } | |
| }); | |
| }); | |
| // Add click handler for start button | |
| startButton.addEventListener('click', openQuiz); | |
| }); | |
| </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=beesiq/nectarina" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |