Spaces:
Running
Running
Download signin.html from RISEFinalYear/RISE: direct link, hf CLI and curl.
- Browser
- Download file 2.71 kB
-
https://huggingface.co/spaces/RISEFinalYear/RISE/resolve/main/signin.html
- Command line
-
hf download hf://spaces/RISEFinalYear/RISE/signin.html
-
curl -L -o signin.html https://huggingface.co/spaces/RISEFinalYear/RISE/resolve/main/signin.html
2.71 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Sign In - RISE</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <main class="signup-container"> | |
| <section class="signup-box"> | |
| <div class="logo">RISE</div> | |
| <h1>Welcome back</h1> | |
| <p class="signup-subtitle"> | |
| Sign in to continue your communication journey. | |
| </p> | |
| <form id="signin-form"> | |
| <label for="email">Email Address</label> | |
| <input | |
| id="email" | |
| name="email" | |
| type="email" | |
| placeholder="Enter your email" | |
| autocomplete="email" | |
| required | |
| > | |
| <label for="password">Password</label> | |
| <input | |
| id="password" | |
| name="password" | |
| type="password" | |
| placeholder="Enter your password" | |
| autocomplete="current-password" | |
| minlength="8" | |
| required | |
| > | |
| <button type="submit" class="primary-btn"> | |
| Sign In | |
| </button> | |
| </form> | |
| <p class="login-text"> | |
| Don't have an account? | |
| <a href="/signup.html">Create Account</a> | |
| </p> | |
| </section> | |
| </main> | |
| <script> | |
| document | |
| .getElementById("signin-form") | |
| .addEventListener("submit", function (event) { | |
| event.preventDefault(); | |
| // This project currently uses demo sign-in (no server-side authentication). | |
| // Keep progress separated by the email entered on this browser. | |
| const email = document.getElementById("email").value.trim().toLowerCase(); | |
| if (!email) return; | |
| localStorage.setItem("riseActiveUserEmail", email); | |
| const key = "riseUser:" + email; | |
| if (!localStorage.getItem(key)) { | |
| const legacyLevel = 1; | |
| localStorage.setItem(key, JSON.stringify({ | |
| email, | |
| startingLevel: legacyLevel, | |
| unlockedLevel: legacyLevel, | |
| attempts: [], | |
| sessionsCompleted: 0, | |
| averageScore: 0 | |
| })); | |
| } | |
| window.location.href = "/dashboard.html"; | |
| }); | |
| </script> | |
| </body> | |
| </html> | |