Spaces:
Sleeping
Sleeping
| <html lang="vi"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Quiz Mockup - Option B (Interactive Quiz Mode)</title> | |
| <style> | |
| :root { | |
| --primary: #3b82f6; | |
| --primary-active: #2563eb; | |
| --bg-surface: #ffffff; | |
| --bg-surface-secondary: #f8fafc; | |
| --bg-surface-tertiary: #f1f5f9; | |
| --text-primary: #1e293b; | |
| --text-secondary: #475569; | |
| --text-muted: #94a3b8; | |
| --border-primary: #e2e8f0; | |
| --ta-red: #ef4444; | |
| --ta-red-bg: rgba(239, 68, 68, 0.1); | |
| --ta-amber: #f59e0b; | |
| --ta-amber-bg: rgba(245, 158, 11, 0.1); | |
| --ta-blue: #3b82f6; | |
| --ta-blue-bg: rgba(59, 130, 246, 0.1); | |
| --ta-green: #10b981; | |
| --ta-green-bg: rgba(16, 185, 129, 0.1); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| background: var(--bg-surface-secondary); | |
| color: var(--text-primary); | |
| line-height: 1.5; | |
| } | |
| .mockup-container { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| padding: 40px 24px; | |
| } | |
| .mockup-header { | |
| text-align: center; | |
| margin-bottom: 40px; | |
| } | |
| .mockup-header h1 { | |
| font-size: 28px; | |
| font-weight: 700; | |
| color: var(--primary); | |
| margin-bottom: 8px; | |
| } | |
| .mockup-header p { | |
| font-size: 14px; | |
| color: var(--text-muted); | |
| } | |
| .option-badge { | |
| display: inline-block; | |
| padding: 6px 16px; | |
| background: linear-gradient(135deg, var(--ta-amber) 0%, #f97316 100%); | |
| color: white; | |
| border-radius: 20px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| margin-bottom: 16px; | |
| } | |
| /* Main Card Container */ | |
| .quiz-container { | |
| background: var(--bg-surface-secondary); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 12px; | |
| overflow: hidden; | |
| height: 800px; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* Header */ | |
| .quiz-header { | |
| padding: 16px 24px; | |
| border-bottom: 1px solid var(--border-primary); | |
| background: var(--bg-surface-tertiary); | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| flex-shrink: 0; | |
| } | |
| .quiz-header-left { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .quiz-icon { | |
| width: 32px; | |
| height: 32px; | |
| background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%); | |
| border-radius: 8px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: white; | |
| } | |
| .quiz-title h3 { | |
| font-size: 15px; | |
| font-weight: 700; | |
| margin: 0; | |
| } | |
| .quiz-title p { | |
| font-size: 12px; | |
| color: var(--text-muted); | |
| margin-top: 2px; | |
| } | |
| .quiz-timer { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 6px 12px; | |
| background: var(--ta-red-bg); | |
| border-radius: 8px; | |
| color: var(--ta-red); | |
| font-size: 12px; | |
| font-weight: 600; | |
| } | |
| /* Empty State / Start Screen */ | |
| .quiz-start-screen { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 40px; | |
| text-align: center; | |
| } | |
| .start-icon { | |
| width: 120px; | |
| height: 120px; | |
| background: linear-gradient(135deg, var(--ta-blue-bg) 0%, rgba(59, 130, 246, 0.2) 100%); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin-bottom: 24px; | |
| } | |
| .start-icon svg { | |
| width: 56px; | |
| height: 56px; | |
| color: var(--primary); | |
| } | |
| .start-title { | |
| font-size: 24px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin-bottom: 12px; | |
| } | |
| .start-description { | |
| font-size: 14px; | |
| color: var(--text-muted); | |
| max-width: 400px; | |
| margin-bottom: 32px; | |
| line-height: 1.6; | |
| } | |
| .start-info-grid { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 16px; | |
| margin-bottom: 32px; | |
| width: 100%; | |
| max-width: 500px; | |
| } | |
| .info-card { | |
| padding: 20px 16px; | |
| background: var(--bg-surface); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 12px; | |
| text-align: center; | |
| } | |
| .info-value { | |
| font-size: 24px; | |
| font-weight: 700; | |
| color: var(--primary); | |
| margin-bottom: 4px; | |
| } | |
| .info-label { | |
| font-size: 11px; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| font-weight: 600; | |
| } | |
| .start-btn { | |
| padding: 16px 48px; | |
| background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%); | |
| color: white; | |
| border: none; | |
| border-radius: 12px; | |
| font-size: 16px; | |
| font-weight: 700; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| transition: all 0.3s; | |
| box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3); | |
| font-family: inherit; | |
| } | |
| .start-btn:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4); | |
| } | |
| /* Active Quiz Screen */ | |
| .quiz-active-screen { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| /* Progress Bar */ | |
| .quiz-progress-bar { | |
| height: 4px; | |
| background: var(--bg-surface-tertiary); | |
| display: flex; | |
| flex-shrink: 0; | |
| } | |
| .progress-segment { | |
| flex: 1; | |
| height: 100%; | |
| background: var(--border-primary); | |
| transition: background 0.3s; | |
| } | |
| .progress-segment.completed { | |
| background: var(--ta-green); | |
| } | |
| .progress-segment.current { | |
| background: var(--primary); | |
| } | |
| .progress-segment.pending { | |
| background: var(--bg-surface-tertiary); | |
| } | |
| /* Question Card Area */ | |
| .question-area { | |
| flex: 1; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 32px 48px; | |
| overflow-y: auto; | |
| } | |
| .question-card { | |
| background: var(--bg-surface); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 16px; | |
| padding: 40px; | |
| max-width: 600px; | |
| width: 100%; | |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); | |
| } | |
| .question-card-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 24px; | |
| } | |
| .question-badge { | |
| padding: 6px 14px; | |
| background: var(--ta-amber-bg); | |
| color: var(--ta-amber); | |
| border-radius: 20px; | |
| font-size: 11px; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| } | |
| .question-number-badge { | |
| padding: 6px 14px; | |
| background: var(--bg-surface-tertiary); | |
| color: var(--text-muted); | |
| border-radius: 8px; | |
| font-size: 13px; | |
| font-weight: 600; | |
| } | |
| .question-text { | |
| font-size: 18px; | |
| font-weight: 600; | |
| line-height: 1.5; | |
| margin-bottom: 32px; | |
| color: var(--text-primary); | |
| } | |
| /* Options */ | |
| .options-grid { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .option-card { | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| padding: 18px 22px; | |
| border: 2px solid var(--border-primary); | |
| border-radius: 12px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| background: var(--bg-surface); | |
| } | |
| .option-card:hover { | |
| border-color: var(--primary); | |
| background: var(--ta-blue-bg); | |
| transform: translateX(4px); | |
| } | |
| .option-card.selected { | |
| border-color: var(--primary); | |
| background: var(--ta-blue-bg); | |
| } | |
| .option-letter { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 10px; | |
| background: var(--bg-surface-tertiary); | |
| border: 2px solid var(--border-primary); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 14px; | |
| font-weight: 700; | |
| color: var(--text-muted); | |
| flex-shrink: 0; | |
| transition: all 0.2s; | |
| } | |
| .option-card.selected .option-letter { | |
| background: var(--primary); | |
| border-color: var(--primary); | |
| color: white; | |
| } | |
| .option-text { | |
| flex: 1; | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| line-height: 1.5; | |
| } | |
| /* Quiz Footer */ | |
| .quiz-footer { | |
| padding: 20px 32px; | |
| border-top: 1px solid var(--border-primary); | |
| background: var(--bg-surface); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| flex-shrink: 0; | |
| } | |
| .navigation-btn { | |
| padding: 12px 24px; | |
| border-radius: 10px; | |
| border: 1px solid var(--border-primary); | |
| background: var(--bg-surface); | |
| color: var(--text-secondary); | |
| font-size: 13px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| transition: all 0.2s; | |
| font-family: inherit; | |
| } | |
| .navigation-btn:hover:not(:disabled) { | |
| border-color: var(--primary); | |
| color: var(--primary); | |
| } | |
| .navigation-btn:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| .submit-btn { | |
| padding: 12px 32px; | |
| border-radius: 10px; | |
| border: none; | |
| background: linear-gradient(135deg, var(--ta-green) 0%, #059669 100%); | |
| color: white; | |
| font-size: 14px; | |
| font-weight: 700; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| transition: all 0.3s; | |
| box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); | |
| font-family: inherit; | |
| } | |
| .submit-btn:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4); | |
| } | |
| /* Results Screen */ | |
| .results-screen { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 40px; | |
| text-align: center; | |
| } | |
| .results-icon { | |
| width: 100px; | |
| height: 100px; | |
| background: linear-gradient(135deg, var(--ta-green) 0%, #059669 100%); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin-bottom: 24px; | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { transform: scale(1); } | |
| 50% { transform: scale(1.05); } | |
| } | |
| .results-icon svg { | |
| width: 48px; | |
| height: 48px; | |
| color: white; | |
| } | |
| .results-title { | |
| font-size: 28px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin-bottom: 8px; | |
| } | |
| .results-subtitle { | |
| font-size: 14px; | |
| color: var(--text-muted); | |
| margin-bottom: 32px; | |
| } | |
| .score-display { | |
| width: 180px; | |
| height: 180px; | |
| border-radius: 50%; | |
| background: conic-gradient(var(--primary) 0deg, var(--bg-surface-tertiary) 0deg); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin-bottom: 32px; | |
| position: relative; | |
| } | |
| .score-display::before { | |
| content: ''; | |
| position: absolute; | |
| width: 150px; | |
| height: 150px; | |
| background: var(--bg-surface); | |
| border-radius: 50%; | |
| } | |
| .score-content { | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .score-number { | |
| font-size: 48px; | |
| font-weight: 800; | |
| color: var(--primary); | |
| line-height: 1; | |
| } | |
| .score-text { | |
| font-size: 12px; | |
| color: var(--text-muted); | |
| margin-top: 4px; | |
| } | |
| .results-stats { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 16px; | |
| margin-bottom: 32px; | |
| width: 100%; | |
| max-width: 500px; | |
| } | |
| .result-stat { | |
| padding: 20px 16px; | |
| background: var(--bg-surface); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 12px; | |
| text-align: center; | |
| } | |
| .result-stat-icon { | |
| font-size: 24px; | |
| margin-bottom: 8px; | |
| } | |
| .result-stat-value { | |
| font-size: 24px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| } | |
| .result-stat-label { | |
| font-size: 11px; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| font-weight: 600; | |
| margin-top: 2px; | |
| } | |
| .results-actions { | |
| display: flex; | |
| gap: 12px; | |
| } | |
| .action-btn { | |
| padding: 14px 28px; | |
| border-radius: 10px; | |
| font-size: 14px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| font-family: inherit; | |
| } | |
| .action-btn.secondary { | |
| background: var(--bg-surface); | |
| color: var(--text-secondary); | |
| border: 1px solid var(--border-primary); | |
| } | |
| .action-btn.secondary:hover { | |
| border-color: var(--primary); | |
| color: var(--primary); | |
| } | |
| .action-btn.primary { | |
| background: var(--primary); | |
| color: white; | |
| border: none; | |
| } | |
| .action-btn.primary:hover { | |
| background: var(--primary-active); | |
| } | |
| /* Performance Badge */ | |
| .performance-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 8px 16px; | |
| background: var(--ta-green-bg); | |
| border-radius: 20px; | |
| color: var(--ta-green); | |
| font-size: 13px; | |
| font-weight: 600; | |
| margin-bottom: 24px; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 1024px) { | |
| .mockup-container { | |
| padding: 20px; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="mockup-container"> | |
| <div class="mockup-header"> | |
| <span class="option-badge">OPTION B</span> | |
| <h1>Interactive Quiz Mode</h1> | |
| <p>Game-like experience with one question at a time, navigation controls, and final score submission.</p> | |
| </div> | |
| <div class="quiz-container"> | |
| <!-- Header --> | |
| <div class="quiz-header"> | |
| <div class="quiz-header-left"> | |
| <div class="quiz-icon"> | |
| <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> | |
| <path d="M13 10V3L4 14h7v7l9-11h-7z"/> | |
| </svg> | |
| </div> | |
| <div class="quiz-title"> | |
| <h3>Quiz Challenge</h3> | |
| <p>Machine Learning Basics</p> | |
| </div> | |
| </div> | |
| <div class="quiz-timer"> | |
| <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> | |
| <circle cx="12" cy="12" r="10"/> | |
| <path d="M12 6v6l4 2"/> | |
| </svg> | |
| 15:00 | |
| </div> | |
| </div> | |
| <!-- Progress Bar --> | |
| <div class="quiz-progress-bar"> | |
| <div class="progress-segment completed"></div> | |
| <div class="progress-segment completed"></div> | |
| <div class="progress-segment current"></div> | |
| <div class="progress-segment pending"></div> | |
| <div class="progress-segment pending"></div> | |
| <div class="progress-segment pending"></div> | |
| <div class="progress-segment pending"></div> | |
| <div class="progress-segment pending"></div> | |
| <div class="progress-segment pending"></div> | |
| <div class="progress-segment pending"></div> | |
| </div> | |
| <!-- Active Quiz Screen --> | |
| <div class="quiz-active-screen"> | |
| <!-- Question Area --> | |
| <div class="question-area"> | |
| <div class="question-card"> | |
| <div class="question-card-header"> | |
| <span class="question-badge">Kiến thức cơ bản</span> | |
| <span class="question-number-badge">Câu 3/10</span> | |
| </div> | |
| <div class="question-text"> | |
| Trong Supervised Learning, dữ liệu huấn luyện cần có đặc điểm gì quan trọng nhất? | |
| </div> | |
| <div class="options-grid"> | |
| <div class="option-card"> | |
| <div class="option-letter">A</div> | |
| <span class="option-text">Phải có kích thước lớn hơn 1GB</span> | |
| </div> | |
| <div class="option-card selected"> | |
| <div class="option-letter">B</div> | |
| <span class="option-text">Có nhãn (label) hoặc target variable</span> | |
| </div> | |
| <div class="option-card"> | |
| <div class="option-letter">C</div> | |
| <span class="option-text">Chỉ chứa dữ liệu số</span> | |
| </div> | |
| <div class="option-card"> | |
| <div class="option-letter">D</div> | |
| <span class="option-text">Phải được chuẩn hóa trước</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer Navigation --> | |
| <div class="quiz-footer"> | |
| <button class="navigation-btn" disabled> | |
| <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> | |
| <path d="M15 19l-7-7 7-7"/> | |
| </svg> | |
| Previous | |
| </button> | |
| <div style="display: flex; gap: 12px;"> | |
| <button class="navigation-btn"> | |
| Next | |
| <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> | |
| <path d="M9 5l7 7-7 7"/> | |
| </svg> | |
| </button> | |
| <button class="submit-btn"> | |
| <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> | |
| <path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/> | |
| </svg> | |
| Nộp bài | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Results Screen Section --> | |
| <div style="margin-top: 60px;"> | |
| <div class="mockup-header" style="margin-bottom: 24px;"> | |
| <h2 style="font-size: 20px; color: var(--text-primary); margin-bottom: 8px;">Results Screen</h2> | |
| <p style="font-size: 13px;">Hiển thị kết quả sau khi nộp bài</p> | |
| </div> | |
| <div class="quiz-container"> | |
| <div class="results-screen"> | |
| <div class="performance-badge"> | |
| <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> | |
| <path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/> | |
| </svg> | |
| Xuất sắc! | |
| </div> | |
| <div class="score-display" style="background: conic-gradient(var(--ta-green) 306deg, var(--bg-surface-tertiary) 306deg);"> | |
| <div class="score-content"> | |
| <div class="score-number">85</div> | |
| <div class="score-text">/ 100 điểm</div> | |
| </div> | |
| </div> | |
| <h3 class="results-title">Hoàn thành tốt!</h3> | |
| <p class="results-subtitle">Bạn đã làm rất tốt bài quiz về Machine Learning Basics</p> | |
| <div class="results-stats"> | |
| <div class="result-stat"> | |
| <div class="result-stat-icon">✓</div> | |
| <div class="result-stat-value">8.5</div> | |
| <div class="result-stat-label">Đúng</div> | |
| </div> | |
| <div class="result-stat"> | |
| <div class="result-stat-icon">✗</div> | |
| <div class="result-stat-value">1.5</div> | |
| <div class="result-stat-label">Sai</div> | |
| </div> | |
| <div class="result-stat"> | |
| <div class="result-stat-icon">⏱️</div> | |
| <div class="result-stat-value">12:34</div> | |
| <div class="result-stat-label">Thời gian</div> | |
| </div> | |
| </div> | |
| <div class="results-actions"> | |
| <button class="action-btn secondary"> | |
| <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 6px;"> | |
| <path d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/> | |
| </svg> | |
| Làm lại | |
| </button> | |
| <button class="action-btn secondary"> | |
| <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 6px;"> | |
| <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/> | |
| <path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"/> | |
| </svg> | |
| Xem chi tiết | |
| </button> | |
| <button class="action-btn primary"> | |
| <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 6px;"> | |
| <path d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"/> | |
| </svg> | |
| Xuất kết quả | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |