Spaces:
Running
Running
File size: 2,707 Bytes
da1b1d3 830f100 eef7b41 830f100 da1b1d3 830f100 da1b1d3 830f100 da1b1d3 830f100 da1b1d3 830f100 da1b1d3 830f100 da1b1d3 830f100 da1b1d3 830f100 da1b1d3 6f270ca 830f100 da1b1d3 830f100 da1b1d3 830f100 da1b1d3 830f100 0ff587f da1b1d3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
<!DOCTYPE html>
<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>
|