-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosteo.html
227 lines (200 loc) · 11.2 KB
/
osteo.html
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="output.css">
<link rel="shortcut icon" href="assets/asset 0.png" type="image/x-icon">
<title>Tailwind project</title>
</head>
<body class="overflow-x-hidden">
<!-- Navbar -->
<nav class="p-3 flex justify-between items-center bg-white">
<a href="#" id="brand" class="flex gap-2 items-center">
<img class="object-cover max-h-12 max-w-12" src="./assets/asset 0.png" alt="Navbar logo">
<span class="text-lg font-medium font-poppins">Physiofit</span>
</a>
<div id="nav-menu" class="hidden lg:flex gap-12">
<a href="index.html" class="font-medium hover:text-primary">Home</a>
<a href="#steps" class="font-medium hover:text-primary">Exercises</a>
<!-- <a href="#" class="font-medium hover:text-primary">Changelog</a> -->
<a href="signup.html" class="font-medium hover:text-primary">Signup</a>
<a href="signup.html" class="font-medium hover:text-primary">Signin</a>
</div>
<button class="hidden lg:flex gap-2 items-center border border-gray-400 px-6 py-2 rounded-lg hover:border-gray-600 hover:-translate-y-1 transition group"> <!--Pehle ye hidden rahega aur screen size jaise hi medium se bada hoga to ye show hoga -->
<img src="assets/asset 1.svg" alt="">
<span>Consult doctors</span>
<i class="fa-solid fa-arrow-right group-hover:translate-x-1 transition"></i>
</button>
<button class="p-2 lg:hidden" onclick="handleMenu()">
<i class="fa-solid fa-bars"></i>
</button>
<!-- Nav dialog -->
<div id="nav-dialog" class="hidden fixed bg-white inset-0 p-3 md:hidden">
<div id="nav-bar" class="flex justify-between">
<a href="#" id="brand" class="flex gap-2 items-center">
<img class="object-cover max-h-12 max-w-12" src="./assets/asset 0.png" alt="Navbar logo">
<span class="text-lg font-medium font-poppins">Digiphysio</span>
</a>
<button class="p-2 md:hidden" onclick="handleMenu()">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
<div class="mt-6">
<a href="index.html" class="font-medium hover:text-primary block m-3 p-3">Home</a>
<a href="#steps" class="font-medium hover:text-primary block m-3 p-3">Exercises</a>
<!-- <a href="#" class="font-medium hover:text-primary block m-3 p-3">Changelog</a> -->
<a href="signup.html" class="font-medium hover:text-primary block m-3 p-3">Signup</a>
<a href="signup.html" class="font-medium hover:text-primary block m-3 p-3">Signin</a>
</div>
<div class="h-[1px] bg-gray-300"></div>
<button class="ml-5 mt-6 flex gap-2 items-center border border-gray-400 px-6 py-2 rounded-lg hover:border-gray-600"> <!--Pehle ye hidden rahega aur screen size jaise hi medium se bada hoga to ye show hoga -->
<img src="assets/asset 1.svg" alt="">
<span>Consult Doctors</span>
<i class="fa-solid fa-arrow-right"></i>
</button>
</div>
</nav>
<h1 class="text-6xl font-bold text-center mt-10 bg-blue-200 w-fit m-auto rounded-lg p-5">Exercises for Osteoporosis Recovery</h1>
<!-- Mild -->
<div id="main-exercises" class="bg-green-50 rounded-xl border flex flex-col gap-6 px-6 py-12 max-w-7xl mt-16 mx-auto md:px-8 md:mt-22">
<div id="mild" class="flex flex-col p-4">
<h1 class="text-5xl font-bold font-poppins p-2">Mild <span class="text-5xl font-light"> (Assisted shoulder flexion)</span></h1>
<p class="font-light text-2xl font-poppins p-2 mb-4">Mild Generally asymptomatic in this stage, with no fractures or noticeable bone pain. The person may not be aware of the condition unless discovered through a routine bone density test.</p>
<video controls src="assets/osteo-mild.mov" class="items-center max-w-2xl m-auto border border-black rounded-xl mb-6"></video>
<!-- Progress Bar -->
<div class="w-1/2 bg-gray-200 rounded-full h-4 mb-4 m-auto">
<div id="progress-bar-mild" class="bg-blue-600 h-4 rounded-full" style="width: 0%;"></div>
</div>
<!-- Checkboxes -->
<div class="space-y-6 m-auto border p-6 rounded-lg bg-green-200">
<div>
<input type="checkbox" id="checkbox1" class="checkbox-mild" />
<label for="checkbox-mild-1" class="ml-2">Rep 1</label>
</div>
<div>
<input type="checkbox" id="checkbox2" class="checkbox-mild" />
<label for="checkbox-mild-2" class="ml-2">Rep 2</label>
</div>
<div>
<input type="checkbox" id="checkbox3" class="checkbox-mild" />
<label for="checkbox-mild-3" class="ml-2">Rep 3</label>
</div>
</div>
</div>
</div>
<!-- moderate -->
<div id="main-exercises" class="bg-yellow-50 rounded-xl border flex flex-col gap-6 px-6 py-12 max-w-7xl mt-16 mx-auto md:px-8 md:mt-32">
<div id="mild" class="flex flex-col p-4">
<h1 class="text-5xl font-bold font-poppins p-2">Moderate<span class="text-5xl font-light"> (Assisted shoulder flexion)</span></h1>
<p class="font-light text-2xl font-poppins p-2 mb-4">May begin to experience bone pain or tenderness, especially in the back or hips. Some individuals might have had minor fractures, such as a wrist fracture, that heal with time.</p>
<video controls src="assets/osteo-moderate.mov" class="items-center max-w-2xl m-auto border border-black rounded-xl mb-6"></video>
<!-- Progress Bar -->
<div class="w-1/2 bg-gray-200 rounded-full h-4 mb-4 m-auto">
<div id="progress-bar-moderate" class="bg-blue-600 h-4 rounded-full" style="width: 0%;"></div>
</div>
<!-- Checkboxes -->
<div class="space-y-6 m-auto border p-6 rounded-lg bg-yellow-200">
<div>
<input type="checkbox" id="checkbox1" class="checkbox-moderate" />
<label for="checkbox1" class="ml-2">Rep 1</label>
</div>
<div>
<input type="checkbox" id="checkbox2" class="checkbox-moderate" />
<label for="checkbox2" class="ml-2">Rep 2</label>
</div>
<div>
<input type="checkbox" id="checkbox3" class="checkbox-moderate" />
<label for="checkbox3" class="ml-2">Rep 3</label>
</div>
</div>
</div>
</div>
<!-- severe -->
<div id="main-exercises" class="bg-red-50 rounded-xl border flex flex-col gap-6 px-6 py-12 max-w-7xl mt-16 mx-auto md:px-8 md:mt-32">
<div id="mild" class="flex flex-col p-4">
<h1 class="text-5xl font-bold font-poppins p-2">Severe<span class="text-5xl font-light"> (Scaption strengthening, weight)</span></h1>
<p class="font-light text-2xl font-poppins p-2 mb-4">Severe Chronic bone pain, especially in the back, due to vertebral compression fractures. Noticeable changes in posture, such as a hunched back (kyphosis), and significant loss of height. Daily activities may be severely impacted.</p>
<video controls src="assets/osteo-severe.mov" class="items-center max-w-2xl m-auto border border-black rounded-xl mb-6"></video>
<!-- Progress Bar -->
<div class="w-1/2 bg-gray-200 rounded-full h-4 mb-4 m-auto">
<div id="progress-bar-severe" class="bg-blue-600 h-4 rounded-full" style="width: 0%;"></div>
</div>
<!-- Checkboxes -->
<div class="space-y-6 m-auto border p-6 rounded-lg bg-red-200">
<div>
<input type="checkbox" id="checkbox1" class="checkbox-severe" />
<label for="checkbox1" class="ml-2">Rep 1</label>
</div>
<div>
<input type="checkbox" id="checkbox2" class="checkbox-severe" />
<label for="checkbox2" class="ml-2">Rep 2</label>
</div>
<div>
<input type="checkbox" id="checkbox3" class="checkbox-severe" />
<label for="checkbox3" class="ml-2">Rep 3</label>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="px-6 py-12 max-w-7xl mt-16 mx-auto lg:px-8 lg:mt-10;">
<div class="rounded-lg border lg:border-none lg:bg-gray-50 bg-gray-50 flex flex-col lg:flex-row-reverse items-center px-8 py-12 gap-8">
<a href="#" class="font-light font-display">Documentation</a>
<div class="flex gap-8 text-lg">
<a href="#" class="text-gray-600 hover:text-gray-900"><i class="fa-brands fa-twitter"></i></a>
<a href="#" class="text-gray-600 hover:text-gray-900"><i class="fa-brands fa-github"></i></a>
</div>
<a href="#" id="brand" class="flex gap-2 items-center flex-1">
<img class="object-cover max-w-12 max-h-12" src="./assets/asset 0.png" alt="Logo">
<span class="text-lg font-medium font-display">Physiofit</span>
</a>
</div>
<div id="sub-footer" class="flex flex-col gap-6 items-center justify-center my-12">
<div class="flex gap-2 items-center ">
<img class="w-4 h-4" src="./assets/asset 37.svg" alt="Y-combinator">
<p class="text-sm text-gray-600">A Y Combinator company.</p>
</div>
<p class="text-sm text-gray-400">© 2024 Physiofit, Inc. All rights reserved.</p>
</div>
</footer>
<!-- <div class="h-[1000px]"></div> -->
<!-- JavaScript -->
<script>
// Function to update progress bar for Mild section
function updateProgressBar(section, progressBarId, checkboxClass) {
const checkboxes = document.querySelectorAll(`.${checkboxClass}`);
const progressBar = document.getElementById(progressBarId);
let checkedCount = 0;
checkboxes.forEach((checkbox) => {
if (checkbox.checked) {
checkedCount++;
}
});
const progressPercentage = (checkedCount / checkboxes.length) * 100;
progressBar.style.width = `${progressPercentage}%`;
}
// Event listeners for Mild checkboxes
document.querySelectorAll('.checkbox-mild').forEach((checkbox) => {
checkbox.addEventListener('change', () => {
updateProgressBar('Mild', 'progress-bar-mild', 'checkbox-mild');
});
});
// Event listeners for Moderate checkboxes
document.querySelectorAll('.checkbox-moderate').forEach((checkbox) => {
checkbox.addEventListener('change', () => {
updateProgressBar('Moderate', 'progress-bar-moderate', 'checkbox-moderate');
});
});
// Event listeners for Severe checkboxes
document.querySelectorAll('.checkbox-severe').forEach((checkbox) => {
checkbox.addEventListener('change', () => {
updateProgressBar('Severe', 'progress-bar-severe', 'checkbox-severe');
});
});
</script>
</body>
<script src="script.js"></script>
</html>