File size: 2,684 Bytes
34865aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3a5eff1
34865aa
 
0ff587f
34865aa
 
0ff587f
34865aa
 
b5c85d0
34865aa
 
 
 
 
 
 
 
 
 
 
 
 
dc6ff98
34865aa
dc6ff98
34865aa
 
 
b01070c
34865aa
8a3bb6c
b01070c
34865aa
 
 
 
dc6ff98
 
 
0ff587f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dc6ff98
 
 
34865aa
 
 
 
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
89
90
91
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Create Account - RISE</title>

    <link rel="stylesheet" href="style.css">
</head>

<body>

    <div class="signup-container">

        <div class="signup-box">

            <div class="logo">
                RISE
            </div>

            <h1>Create your account</h1>

            <p class="signup-subtitle">
                Start your journey toward better communication.
            </p>

            <form onsubmit="goToAssessment(event)">

                <label>Full Name</label>
                <input id="signup-name" type="text" placeholder="Enter your full name" required>

                <label>Email Address</label>
                <input id="signup-email" type="email" placeholder="Enter your email" required>

                <label>Password</label>
                <input type="password" placeholder="Create a password" minlength="8" required>

                <label>Date of Birth</label>
                <input type="date" required>

                <label>Communication Level</label>

                <select required>
                    <option value="">Select your level</option>
                    <option value="beginner">Beginner</option>
                    <option value="intermediate">Intermediate</option>
                    <option value="confident">Confident</option>
                </select>

                <button type="submit" class="primary-btn">
                    Continue
                </button>

            </form>

            <div class="login-text">
                Already have an account?
                <a href="signin.html" class="signin-link">Sign In</a>
            </div>

        </div>

    </div>
<script>
function goToAssessment(event) {
    event.preventDefault();
    const email = document.getElementById("signup-email").value.trim().toLowerCase();
    const name = document.getElementById("signup-name").value.trim();
    if (!email) return;
    localStorage.setItem("riseActiveUserEmail", email);
    const key = "riseUser:" + email;
    const existing = JSON.parse(localStorage.getItem(key) || "null");
    localStorage.setItem(key, JSON.stringify({
        ...(existing || {}),
        email,
        name,
        startingLevel: existing?.startingLevel || 1,
        unlockedLevel: existing?.unlockedLevel || 1,
        attempts: existing?.attempts || [],
        sessionsCompleted: existing?.sessionsCompleted || 0,
        averageScore: existing?.averageScore || 0
    }));
    window.location.href = "assessment.html";
}
</script>

</body>

</html>