-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathonboarding.html
More file actions
92 lines (71 loc) · 2.68 KB
/
onboarding.html
File metadata and controls
92 lines (71 loc) · 2.68 KB
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
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Onboarding</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="top-bar onboarding-header">
<div>Setup Your Profile</div>
</header>
<main class="container">
<div class="card">
<form id="onboardingForm">
<!-- Step 1: Personal Info -->
<div class="step" id="step-1">
<h3>Personal Info</h3>
<label>First Name</label>
<input type="text" id="firstName" required>
<label>Last Name</label>
<input type="text" id="lastName" required>
<label>Age</label>
<input type="number" id="age" required>
<label>Sex</label>
<select id="sex">
<option value="male">Male</option>
<option value="female">Female</option>
</select>
<button type="button" onclick="nextStep(2)" class="primary-btn">Next</button>
</div>
<!-- Step 2: Body Info -->
<div class="step" id="step-2" style="display:none;">
<h3>Body Info</h3>
<label>Height (cm)</label>
<input type="number" id="height" placeholder="e.g., 170" required>
<label>Weight (kg)</label>
<input type="number" id="weight" required>
<label>Activity Level</label>
<select id="activityMultiplier">
<option value="1.2">Sedentary</option>
<option value="1.35">Light Activity</option>
<option value="1.55">Moderate</option>
<option value="1.75">Very Active</option>
</select>
<button type="button" onclick="nextStep(3)" class="primary-btn">Next</button>
</div>
<!-- Step 3: Goal -->
<div class="step" id="step-3" style="display:none;">
<h3>Your Goal</h3>
<select id="goal">
<option value="lose">Lose weight</option>
<option value="maintain">Maintain weight</option>
<option value="gain">Gain weight</option>
</select>
<div id="weightloss_box" style="display:none;">
<label>Weight Loss Speed</label>
<select id="weightLossSpeed">
<option value="slow">Slow</option>
<option value="moderate">Moderate</option>
<option value="aggressive">Aggressive</option>
</select>
</div>
<button type="button" onclick="finishOnboarding()" class="primary-btn">Finish</button>
</div>
</form>
</div>
</main>
<script type="module" src="./js/onboarding.js"></script>
</body>
</html>