| <!doctype html>
|
| <html lang="en">
|
| <head>
|
| <meta charset="UTF-8" />
|
| <link rel="icon" type="image/svg+xml" href="https://base44.com/logo_v2.svg" />
|
| <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| <link rel="manifest" href="/manifest.json" />
|
| </head>
|
| <body>
|
| <div id="root"></div>
|
| <script type="module" src="/src/main.jsx"></script>
|
| </body>
|
| </html>
|
|
|
|
|
|
|
|
|
|
|
| <!doctype html>
|
| <html lang="en">
|
| <head>
|
| <meta charset="UTF-8" />
|
| <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| <title>Class Entry</title>
|
| <style>
|
| :root{
|
| --bg1:#0f172a;
|
| --bg2:#2e1065;
|
| --card:#0b1220cc;
|
| --border:#ffffff1a;
|
| --text:#e5e7eb;
|
| --muted:#cbd5e180;
|
| --cyan:#22d3ee;
|
| --purple:#a855f7;
|
| --danger:#fb7185;
|
| }
|
| *{box-sizing:border-box}
|
| html,body{height:100%; margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;}
|
| body{
|
| color:var(--text);
|
| background: radial-gradient(900px 500px at 20% 20%, rgba(59,130,246,.22), transparent 60%),
|
| radial-gradient(900px 500px at 80% 80%, rgba(168,85,247,.22), transparent 60%),
|
| linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg1));
|
| display:grid;
|
| place-items:center;
|
| padding:24px;
|
| overflow-x:hidden;
|
| }
|
| .card{
|
| width:min(520px, 100%);
|
| background: linear-gradient(180deg, rgba(15,23,42,.75), rgba(15,23,42,.45));
|
| border:1px solid var(--border);
|
| border-radius:24px;
|
| padding:28px;
|
| backdrop-filter: blur(14px);
|
| box-shadow: 0 25px 60px rgba(0,0,0,.45);
|
| position:relative;
|
| overflow:hidden;
|
| }
|
| .glow{
|
| position:absolute; inset:-80px;
|
| background: radial-gradient(circle at 30% 20%, rgba(34,211,238,.16), transparent 55%),
|
| radial-gradient(circle at 70% 80%, rgba(168,85,247,.16), transparent 55%);
|
| pointer-events:none;
|
| }
|
| h1{margin:0 0 8px; font-size:28px; letter-spacing:.2px;}
|
| .sub{margin:0 0 18px; color:var(--muted); line-height:1.4;}
|
| label{display:block; font-size:14px; color:#e5e7ebcc; margin:14px 0 8px;}
|
| input{
|
| width:100%;
|
| padding:14px 14px;
|
| border-radius:14px;
|
| border:1px solid rgba(255,255,255,.15);
|
| background: rgba(2,6,23,.55);
|
| color:var(--text);
|
| outline:none;
|
| font-size:16px;
|
| }
|
| input:focus{
|
| border-color: rgba(34,211,238,.55);
|
| box-shadow: 0 0 0 4px rgba(34,211,238,.12);
|
| }
|
| .row{display:flex; gap:12px; margin-top:16px; align-items:center; flex-wrap:wrap;}
|
| button{
|
| border:0;
|
| border-radius:16px;
|
| padding:12px 16px;
|
| font-size:16px;
|
| font-weight:700;
|
| color:white;
|
| cursor:pointer;
|
| background: linear-gradient(90deg, rgba(59,130,246,1), rgba(168,85,247,1));
|
| box-shadow: 0 16px 30px rgba(168,85,247,.22);
|
| }
|
| button:active{transform: translateY(1px);}
|
| .hint{
|
| font-size:13px;
|
| color:var(--muted);
|
| flex: 1 1 auto;
|
| }
|
| .error{
|
| margin-top:12px;
|
| color: var(--danger);
|
| font-size:14px;
|
| display:none;
|
| }
|
| .ok{
|
| margin-top:12px;
|
| color: rgba(34,211,238,.95);
|
| font-size:14px;
|
| display:none;
|
| }
|
| .tiny{
|
| margin-top:18px;
|
| border-top:1px solid var(--border);
|
| padding-top:12px;
|
| color:#ffffff66;
|
| font-size:12px;
|
| text-align:center;
|
| }
|
| </style>
|
| </head>
|
| <body>
|
| <div class="card">
|
| <div class="glow"></div>
|
|
|
| <h1>Computer Vision Lab</h1>
|
| <p class="sub">Enter your class username to continue.</p>
|
|
|
| <form id="entryForm" autocomplete="off">
|
| <label for="username">Username</label>
|
| <input id="username" name="username" placeholder="e.g., cv-student" required />
|
|
|
| <div class="row">
|
| <button type="submit">Continue</button>
|
| <div class="hint">Tip: usernames are case-insensitive in this form.</div>
|
| </div>
|
|
|
| <div id="ok" class="ok">Accepted. Redirecting…</div>
|
| <div id="error" class="error">That username isn’t allowed.</div>
|
| </form>
|
|
|
| <div class="tiny">Class access check (client-side)</div>
|
| </div>
|
|
|
| <script>
|
|
|
| const ONLY_ALLOWED_USERNAME = "GLIS26STEM";
|
| const REDIRECT_TO = "./Dashboard.html";
|
|
|
|
|
| const form = document.getElementById("entryForm");
|
| const input = document.getElementById("username");
|
| const error = document.getElementById("error");
|
| const ok = document.getElementById("ok");
|
|
|
| const normalize = (s) => (s || "").trim().toLowerCase();
|
|
|
| form.addEventListener("submit", (e) => {
|
| e.preventDefault();
|
|
|
| const entered = normalize(input.value);
|
| const allowed = normalize(ONLY_ALLOWED_USERNAME);
|
|
|
| error.style.display = "none";
|
| ok.style.display = "none";
|
|
|
| if (!entered) return;
|
|
|
| if (entered === allowed) {
|
| ok.style.display = "block";
|
|
|
|
|
| localStorage.setItem("class_username", entered);
|
| localStorage.setItem("class_access_granted", "true");
|
|
|
| setTimeout(() => {
|
| window.location.href = REDIRECT_TO;
|
| }, 450);
|
| } else {
|
| error.style.display = "block";
|
| input.focus();
|
| input.select();
|
| }
|
| });
|
| </script>
|
| </body>
|
| </html>
|
|
|