Descubra os melhores cursos gratuitos para Jovem Aprendiz em 2025. Veja como se inscrever, garantir certificado e aumentar suas chances de conseguir uma vaga de emprego.
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.quiz-container { width: 90%; max-width: 500px; background: #fff; padding: 25px; border-radius: 12px; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,0.3); animation: aparecer 0.4s ease; }
@keyframes aparecer { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
h2 { font-size: 22px; margin-bottom: 25px; font-weight: bold; color: #000; } h2 span { color: #007bff; }
.option { display: block; background: #007bff; color: #fff; font-weight: bold; text-transform: uppercase; font-size: 16px; padding: 15px; margin: 12px 0; border-radius: 8px; cursor: pointer; transition: 0.3s; } .option:hover { background: #0056b3; }
#next-btn { display: none; background: #28a745; color: #fff; font-weight: bold; border: none; padding: 15px 25px; font-size: 16px; border-radius: 8px; cursor: pointer; margin-top: 25px; text-transform: uppercase; } #next-btn:hover { background: #1e7e34; }
.progress { height: 12px; background: #ddd; border-radius: 8px; overflow: hidden; margin-bottom: 20px; } .progress-bar { height: 100%; width: 0; background: #007bff; transition: width 0.3s; }
.result { display: none; } .cta { display: inline-block; background: #007bff; color: #fff; font-weight: bold; font-size: 18px; padding: 18px 30px; text-decoration: none; border-radius: 10px; margin-top: 25px; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.2); } .cta:hover { background: #0056b3; }
.ads-container { margin: 10px 0 20px 0; }
Próxima Questão
Agora você pode acessar os melhores cursos gratuitos com certificado para aumentar suas chances no mercado.
Acessar Lista de Cursos
const questionEl = document.querySelector("h2"); const optionsEl = document.getElementById("options"); const nextBtn = document.getElementById("next-btn"); const progressBar = document.getElementById("progress-bar"); const quiz = document.getElementById("quiz"); const result = document.getElementById("result");
let currentQuestion = 0;
function loadQuestion() { const q = quizData[currentQuestion]; questionEl.innerHTML = `Cursos Gratuitos - ${q.question}`; optionsEl.innerHTML = ""; q.options.forEach(option => { const btn = document.createElement("div"); btn.classList.add("option"); btn.innerText = option; btn.addEventListener("click", () => selectOption(btn)); optionsEl.appendChild(btn); }); nextBtn.style.display = "none"; updateProgress(); }
function selectOption(selected) { const options = document.querySelectorAll(".option"); options.forEach(opt => opt.style.background = "#007bff"); selected.style.background = "#28a745"; nextBtn.style.display = "inline-block"; }
function updateProgress() { progressBar.style.width = ((currentQuestion) / quizData.length) * 100 + "%"; }
nextBtn.addEventListener("click", () => { currentQuestion++; if (currentQuestion < quizData.length) { loadQuestion(); } else { quiz.style.display = "none"; result.style.display = "block"; progressBar.style.width = "100%"; } }); loadQuestion();
Extras de SEO e Monetização que eu coloco no artigo:
Aproveite para compartilhar clicando no botão acima!
Visite nosso site e veja todos os outros artigos disponíveis!