| <!DOCTYPE html> |
| <html lang="vi"> |
| <head> |
| <meta charset="UTF-8" /> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| <title>HVU QA - Mô hình sinh câu hỏi thường gặp</title> |
| <meta |
| name="description" |
| content="Hệ thống sinh câu hỏi thường gặp của Trường Đại học Hùng Vương." |
| /> |
| <link rel="preconnect" href="https://fonts.googleapis.com" /> |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
| <link |
| href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap" |
| rel="stylesheet" |
| /> |
| <link rel="stylesheet" href="/frontend/style.css" /> |
| <script src="/frontend/app.js" defer></script> |
| </head> |
| <body> |
| <div class="page-shell"> |
| <aside class="sidebar" id="sidebar"> |
| <div class="sidebar-top"> |
| <button |
| class="menu-toggle" |
| id="menuToggle" |
| type="button" |
| aria-label="Mở hoặc đóng thanh bên" |
| aria-expanded="false" |
| aria-controls="sidebarContent" |
| > |
| <span></span> |
| <span></span> |
| <span></span> |
| </button> |
| </div> |
|
|
| <div class="sidebar-content" id="sidebarContent" aria-hidden="true"> |
| <section class="side-card"> |
| <p class="side-label">Chọn model</p> |
| <label class="select-shell"> |
| <span class="select-icon" aria-hidden="true"> |
| <svg viewBox="0 0 24 24" fill="none"> |
| <path |
| d="M12 3 4.5 7.2v9.6L12 21l7.5-4.2V7.2L12 3Zm0 0v8.4m0 0 7.5-4.2M12 11.4 4.5 7.2" |
| stroke="currentColor" |
| stroke-linecap="round" |
| stroke-linejoin="round" |
| stroke-width="1.6" |
| /> |
| </svg> |
| </span> |
| <select id="modelSelect" disabled> |
| <option>Đang tải danh sách model...</option> |
| </select> |
| </label> |
| </section> |
|
|
| <section class="side-card status-card"> |
| <div class="status-chip"> |
| <span class="status-dot" aria-hidden="true"></span> |
| <p id="deviceStatus">Đang kiểm tra thiết bị...</p> |
| </div> |
| <p class="status-note" id="modelStatus">Model sẽ được nạp ở lần sinh câu hỏi đầu tiên.</p> |
| </section> |
|
|
| <section class="side-card history-card"> |
| <div class="history-header"> |
| <p class="side-label">Lịch sử</p> |
| <button id="clearHistory" type="button">Xóa</button> |
| </div> |
| <div class="history-list" id="historyList"></div> |
| </section> |
|
|
| <section class="author-card"> |
| <button |
| class="author-toggle" |
| id="authorToggle" |
| type="button" |
| aria-expanded="false" |
| aria-controls="authorContent" |
| > |
| <div class="author-header"> |
| <div class="author-header-icon" aria-hidden="true"> |
| <svg viewBox="0 0 24 24" fill="none"> |
| <path |
| d="M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-7 8c0-3.314 3.134-6 7-6s7 2.686 7 6" |
| stroke="currentColor" |
| stroke-linecap="round" |
| stroke-linejoin="round" |
| stroke-width="1.8" |
| /> |
| </svg> |
| </div> |
| <div> |
| <p class="author-title">Tác giả</p> |
| </div> |
| </div> |
| <span class="author-toggle-icon" aria-hidden="true"> |
| <svg viewBox="0 0 24 24" fill="none"> |
| <path |
| d="m8 10 4 4 4-4" |
| stroke="currentColor" |
| stroke-linecap="round" |
| stroke-linejoin="round" |
| stroke-width="1.8" |
| /> |
| </svg> |
| </span> |
| </button> |
|
|
| <div class="author-content" id="authorContent" hidden> |
| <div class="author-grid" id="authorList"></div> |
| </div> |
|
|
| <div class="author-footer"> |
| <p id="copyrightLine">© 2026 HVU - KTCN</p> |
| </div> |
| </section> |
| </div> |
| </aside> |
|
|
| <main class="workspace"> |
| <header class="topbar"> |
| <div class="identity"> |
| <img class="logo" src="/assets/HVU.png" alt="Logo Trường Đại học Hùng Vương" /> |
| <div class="identity-copy"> |
| <h1>Trường Đại học Hùng Vương</h1> |
| <p>Khoa Kỹ thuật - công nghệ</p> |
| </div> |
| </div> |
| </header> |
|
|
| <section class="hero-panel"> |
| <div class="hero-copy"> |
| <h2> |
| <span |
| class="typewriter-text" |
| id="heroTitle" |
| data-text="Mô hình sinh câu hỏi thường gặp" |
| aria-label="Mô hình sinh câu hỏi thường gặp" |
| ></span> |
| </h2> |
| </div> |
| </section> |
|
|
| <section class="result-card" id="resultCard" aria-live="polite" hidden></section> |
|
|
| <form class="composer" id="generatorForm"> |
| <div class="input-shell" id="sourceShell"> |
| <label class="visually-hidden" for="sourceText">Nhập đoạn văn bản</label> |
| <textarea |
| id="sourceText" |
| name="sourceText" |
| rows="1" |
| placeholder="Nhập đoạn văn bản ..." |
| required |
| ></textarea> |
|
|
| <div class="composer-actions"> |
| <div class="count-shell" aria-label="Số câu hỏi"> |
| <span class="count-label">Số câu hỏi</span> |
| <div class="count-stepper" role="group" aria-label="Điều chỉnh số câu hỏi"> |
| <button class="count-button" id="decreaseCount" type="button" aria-label="Giảm số câu hỏi"> |
| <span aria-hidden="true">-</span> |
| </button> |
| <output class="count-value" id="questionCountValue" for="questionCount">0</output> |
| <button class="count-button" id="increaseCount" type="button" aria-label="Tăng số câu hỏi"> |
| <span aria-hidden="true">+</span> |
| </button> |
| </div> |
| <input id="questionCount" name="questionCount" type="hidden" value="0" /> |
| </div> |
|
|
| <div class="action-cluster"> |
| <span class="voice-status is-empty" id="voiceStatus" aria-live="polite"></span> |
| <div class="action-buttons"> |
| <button |
| class="voice-button" |
| id="voiceInputButton" |
| type="button" |
| aria-label="Nhập bằng giọng nói qua trình duyệt" |
| > |
| <span class="voice-button-icon" aria-hidden="true"> |
| <svg viewBox="0 0 24 24" fill="none"> |
| <path |
| d="M12 15a3.5 3.5 0 0 0 3.5-3.5v-4a3.5 3.5 0 1 0-7 0v4A3.5 3.5 0 0 0 12 15Z" |
| stroke="currentColor" |
| stroke-linecap="round" |
| stroke-linejoin="round" |
| stroke-width="1.8" |
| /> |
| <path |
| d="M6.5 11.5a5.5 5.5 0 1 0 11 0M12 17v3m-3 0h6" |
| stroke="currentColor" |
| stroke-linecap="round" |
| stroke-linejoin="round" |
| stroke-width="1.8" |
| /> |
| </svg> |
| </span> |
| </button> |
|
|
| <button class="generate-button" id="generateButton" type="submit"> |
| <span class="atom-loader atom-loader-sm" aria-hidden="true"> |
| <span class="atom-core"></span> |
| <span class="atom-orbit atom-orbit-a"><span class="atom-electron"></span></span> |
| <span class="atom-orbit atom-orbit-b"><span class="atom-electron"></span></span> |
| <span class="atom-orbit atom-orbit-c"><span class="atom-electron"></span></span> |
| </span> |
| <span class="button-label">Sinh câu hỏi</span> |
| </button> |
| </div> |
| </div> |
| </div> |
| </div> |
| </form> |
|
|
| <section class="landing-panel" id="landingPanel"> |
| <article class="landing-card landing-guide"> |
| <div class="landing-card-head"> |
| <p class="landing-kicker">Hướng dẫn nhanh</p> |
| <p class="landing-card-note">Tạo bộ câu hỏi từ đoạn văn bản đầu vào.</p> |
| </div> |
| <ol class="landing-guide-list"> |
| <li>Nhập hoặc dán đoạn văn bản vào ô nhập.</li> |
| <li>Chọn số lượng câu hỏi cần sinh.</li> |
| <li>Nhấn <strong>Sinh câu hỏi</strong> để hệ thống xử lý.</li> |
| </ol> |
| </article> |
|
|
| <article class="landing-card landing-samples"> |
| <div class="landing-card-head"> |
| <p class="landing-kicker">Ví dụ mẫu</p> |
| <p class="landing-card-note">Chọn văn bản luật mẫu để chèn nhanh nội dung thử nghiệm.</p> |
| </div> |
| <div class="landing-sample-grid" id="sampleList"></div> |
| </article> |
|
|
| <article class="landing-card landing-system"> |
| <div class="landing-card-head"> |
| <p class="landing-kicker">Trạng thái model</p> |
| <span class="landing-runtime-badge is-pending" id="landingRuntimeBadge">Đang kiểm tra</span> |
| </div> |
| <p class="landing-card-note" id="landingStatusText">Đang kết nối backend và đọc cấu hình hệ thống.</p> |
| <div class="landing-system-list"> |
| <div class="landing-system-row"> |
| <span>Model đang dùng</span> |
| <strong id="landingModelName">Đang tải...</strong> |
| </div> |
| <div class="landing-system-row"> |
| <span>Thiết bị xử lý</span> |
| <strong id="landingDeviceName">Đang kiểm tra...</strong> |
| </div> |
| <div class="landing-system-row"> |
| <span>Số model khả dụng</span> |
| <strong id="landingModelCount">0</strong> |
| </div> |
| </div> |
| </article> |
| </section> |
| </main> |
| </div> |
| </body> |
| </html> |
|
|