Inderdev07 commited on
Commit
f1be7e5
·
verified ·
1 Parent(s): 31f20b2

also add a nav bar in this website where usung aiml after open camera and detect the human body and gives us requirement ✅ Steps & Requirements for Human Body Detection

Browse files

Set up Hardware

A laptop/PC with a working camera (or an external webcam).

Decent processing power (GPU if possible for real-time).

Install Required Software/Packages

Python installed.

Libraries: opencv-python, mediapipe or openpose, numpy.

Optionally, TensorFlow/PyTorch if you want custom models.

Access Camera Feed

Open the webcam using OpenCV (cv2.VideoCapture(0)).

Capture frames in real-time.

Preprocess the Frame

Convert to RGB (most models expect RGB, not BGR).

Resize or normalize the frame if needed.

Apply Human Detection Model

Use Haar cascades (basic, face/body detection).

Or use MediaPipe Pose / OpenPose (advanced, gives 33+ body keypoints).

Extract Human Body Features

Detect bounding box of the body.

Mark keypoints: head, shoulders, elbows, wrists, hips, knees, ankles.

Optionally, calculate skeleton lines between keypoints.

Process / Use the Data

Fitness app: Compare detected pose with correct posture.

Security system: Check presence of humans.

Gaming/AR: Map movements to in-game characters.

Display Results

Draw bounding boxes or skeleton keypoints on the video feed.

Show the live result in a window.

Handle Edge Cases

Multiple people in frame.

Poor lighting or occlusion.

Partial body visibility.

Optimization for Real-time

Reduce frame size (e.g., 640x480).

Use GPU acceleration if available.

Files changed (2) hide show
  1. body-detection.html +89 -0
  2. index.html +0 -534
body-detection.html ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Body Detection</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ </head>
11
+ <body class="bg-gray-100">
12
+ <nav class="bg-gray-800 p-4">
13
+ <div class="container mx-auto flex justify-between items-center">
14
+ <a href="index.html" class="text-white font-bold text-xl">AI Body Detection</a>
15
+ <div class="flex space-x-4">
16
+ <a href="index.html" class="text-gray-300 hover:text-white px-3 py-2">Home</a>
17
+ <a href="body-detection.html" class="text-gray-300 hover:text-white px-3 py-2">Body Detection</a>
18
+ </div>
19
+ </div>
20
+ </nav>
21
+
22
+ <main class="container mx-auto p-4">
23
+ <h1 class="text-3xl font-bold mb-6">Real-time Body Detection</h1>
24
+
25
+ <div class="bg-white rounded-lg shadow-md p-6 mb-6">
26
+ <h2 class="text-xl font-semibold mb-4">Camera Feed</h2>
27
+ <div class="relative">
28
+ <video id="video" width="640" height="480" autoplay class="border rounded-lg"></video>
29
+ <canvas id="canvas" width="640" height="480" class="absolute top-0 left-0"></canvas>
30
+ </div>
31
+ <div class="mt-4 flex space-x-4">
32
+ <button id="startBtn" class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded">
33
+ Start Detection
34
+ </button>
35
+ <button id="stopBtn" class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded">
36
+ Stop Detection
37
+ </button>
38
+ </div>
39
+ </div>
40
+
41
+ <div class="bg-white rounded-lg shadow-md p-6">
42
+ <h2 class="text-xl font-semibold mb-4">Detection Results</h2>
43
+ <div id="results" class="space-y-4">
44
+ <div class="p-4 bg-gray-50 rounded-lg">
45
+ <h3 class="font-medium">Body Keypoints Detected:</h3>
46
+ <p id="keypoints" class="text-gray-600">Waiting for detection...</p>
47
+ </div>
48
+ <div class="p-4 bg-gray-50 rounded-lg">
49
+ <h3 class="font-medium">Posture Analysis:</h3>
50
+ <p id="posture" class="text-gray-600">No data available yet.</p>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </main>
55
+
56
+ <script>
57
+ // Camera and canvas setup
58
+ const video = document.getElementById('video');
59
+ const canvas = document.getElementById('canvas');
60
+ const ctx = canvas.getContext('2d');
61
+ const startBtn = document.getElementById('startBtn');
62
+ const stopBtn = document.getElementById('stopBtn');
63
+ const keypointsEl = document.getElementById('keypoints');
64
+ const postureEl = document.getElementById('posture');
65
+
66
+ // Camera access
67
+ if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
68
+ navigator.mediaDevices.getUserMedia({ video: true })
69
+ .then(stream => {
70
+ video.srcObject = stream;
71
+ });
72
+ }
73
+
74
+ // Detection logic would go here (would need additional JS libraries)
75
+ startBtn.addEventListener('click', () => {
76
+ // In a real implementation, this would start the body detection
77
+ keypointsEl.textContent = "Detection started - loading model...";
78
+ postureEl.textContent = "Analyzing posture...";
79
+ });
80
+
81
+ stopBtn.addEventListener('click', () => {
82
+ keypointsEl.textContent = "Detection stopped";
83
+ postureEl.textContent = "No data available";
84
+ });
85
+
86
+ feather.replace();
87
+ </script>
88
+ </body>
89
+ </html>
index.html CHANGED
@@ -1,534 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>FitTrack | Plan. Train. Track.</title>
7
- <script src="https://cdn.tailwindcss.com"></script>
8
- <script src="https://unpkg.com/feather-icons"></script>
9
- <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
- <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
11
- <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
12
- <script>
13
- tailwind.config = {
14
- theme: {
15
- extend: {
16
- colors: {
17
- primary: '#0B0B0B',
18
- accent: '#21D07A',
19
- dark: '#0F0F0F',
20
- light: '#E6E6E6',
21
- muted: '#9AA0A6',
22
- }
23
- }
24
- }
25
- }
26
- </script>
27
- <style>
28
- body {
29
- background-color: #0B0B0B;
30
- color: #E6E6E6;
31
- font-family: 'Inter', sans-serif;
32
- }
33
- .glass-card {
34
- background: rgba(255, 255, 255, 0.03);
35
- backdrop-filter: blur(10px);
36
- border: 1px solid rgba(255, 255, 255, 0.05);
37
- }
38
- .btn-primary {
39
- transition: all 0.3s ease;
40
- }
41
- .btn-primary:hover {
42
- box-shadow: 0 0 15px rgba(33, 208, 122, 0.5);
43
- transform: translateY(-2px);
44
- }
45
- .progress-ring {
46
- transition: stroke-dashoffset 0.5s;
47
- transform: rotate(-90deg);
48
- transform-origin: 50% 50%;
49
- }
50
- </style>
51
- </head>
52
- <body class="min-h-screen">
53
- <!-- Navigation -->
54
- <nav class="fixed w-full z-50 bg-primary/90 backdrop-blur-md border-b border-gray-800">
55
- <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
56
- <div class="flex items-center justify-between h-16">
57
- <div class="flex items-center">
58
- <div class="flex-shrink-0">
59
- <span class="text-accent font-bold text-2xl">FitTrack</span>
60
- </div>
61
- <div class="hidden md:block">
62
- <div class="ml-10 flex items-baseline space-x-4">
63
- <a href="#home" class="text-accent px-3 py-2 rounded-md text-sm font-medium">Home</a>
64
- <a href="#planner" class="text-light hover:text-accent px-3 py-2 rounded-md text-sm font-medium">Planner</a>
65
- <a href="#progress" class="text-light hover:text-accent px-3 py-2 rounded-md text-sm font-medium">Progress</a>
66
- <a href="#reviews" class="text-light hover:text-accent px-3 py-2 rounded-md text-sm font-medium">Reviews</a>
67
- </div>
68
- </div>
69
- </div>
70
- <div class="hidden md:block">
71
- <div class="ml-4 flex items-center md:ml-6">
72
- <button class="bg-accent text-primary px-4 py-2 rounded-md text-sm font-medium hover:bg-accent/90 transition">Sign In</button>
73
- </div>
74
- </div>
75
- <div class="-mr-2 flex md:hidden">
76
- <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none">
77
- <i data-feather="menu"></i>
78
- </button>
79
- </div>
80
- </div>
81
- </div>
82
- </nav>
83
-
84
- <!-- Hero Section -->
85
- <section id="home" class="pt-24 pb-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
86
- <div class="text-center py-20" data-aos="fade-up">
87
- <h1 class="text-5xl md:text-7xl font-bold mb-6">
88
- <span class="text-light">Plan.</span>
89
- <span class="text-light">Train.</span>
90
- <span class="text-accent">Track.</span>
91
- </h1>
92
- <p class="text-xl md:text-2xl text-muted max-w-3xl mx-auto mb-10">
93
- Your weekly workout, simplified. Build routines, track progress, read real reviews.
94
- </p>
95
- <div class="flex justify-center gap-4">
96
- <button class="btn-primary bg-accent text-primary px-8 py-3 rounded-lg font-bold">
97
- Create Week Plan
98
- </button>
99
- <button class="border border-accent text-accent px-8 py-3 rounded-lg font-bold hover:bg-accent/10 transition">
100
- View Demo
101
- </button>
102
- </div>
103
- </div>
104
- </section>
105
-
106
- <!-- Weekly Planner Section -->
107
- <section id="planner" class="py-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
108
- <div class="text-center mb-16">
109
- <h2 class="text-3xl font-bold mb-4" data-aos="fade-up">Weekly Workout Planner</h2>
110
- <p class="text-muted max-w-2xl mx-auto" data-aos="fade-up" data-aos-delay="100">
111
- Drag and drop exercises to build your perfect week. Choose from templates or create custom routines.
112
- </p>
113
- </div>
114
-
115
- <div class="grid grid-cols-1 md:grid-cols-7 gap-4 mb-8">
116
- <!-- Monday -->
117
- <div class="glass-card rounded-xl p-4" data-aos="fade-up">
118
- <h3 class="font-bold text-center mb-4">Monday</h3>
119
- <div class="space-y-3">
120
- <div class="bg-dark/50 p-3 rounded-lg border-l-4 border-accent">
121
- <div class="flex items-center">
122
- <div class="w-8 h-8 rounded-full bg-accent/20 flex items-center justify-center mr-3">
123
- <i data-feather="activity" class="text-accent" width="16"></i>
124
- </div>
125
- <span class="text-sm">Morning: HIIT</span>
126
- </div>
127
- </div>
128
- <div class="bg-dark/50 p-3 rounded-lg border-l-4 border-accent">
129
- <div class="flex items-center">
130
- <div class="w-8 h-8 rounded-full bg-accent/20 flex items-center justify-center mr-3">
131
- <i data-feather="dumbbell" class="text-accent" width="16"></i>
132
- </div>
133
- <span class="text-sm">Evening: Strength</span>
134
- </div>
135
- </div>
136
- </div>
137
- </div>
138
-
139
- <!-- Tuesday through Sunday (similar structure) -->
140
- <!-- Tuesday -->
141
- <div class="glass-card rounded-xl p-4" data-aos="fade-up" data-aos-delay="50">
142
- <h3 class="font-bold text-center mb-4">Tuesday</h3>
143
- <div class="space-y-3">
144
- <div class="bg-dark/50 p-3 rounded-lg border-l-4 border-accent">
145
- <div class="flex items-center">
146
- <div class="w-8 h-8 rounded-full bg-accent/20 flex items-center justify-center mr-3">
147
- <i data-feather="wind" class="text-accent" width="16"></i>
148
- </div>
149
- <span class="text-sm">Morning: Cardio</span>
150
- </div>
151
- </div>
152
- </div>
153
- </div>
154
-
155
- <!-- Wednesday -->
156
- <div class="glass-card rounded-xl p-4" data-aos="fade-up" data-aos-delay="100">
157
- <h3 class="font-bold text-center mb-4">Wednesday</h3>
158
- <div class="space-y-3">
159
- <div class="bg-dark/50 p-3 rounded-lg border-l-4 border-accent">
160
- <div class="flex items-center">
161
- <div class="w-8 h-8 rounded-full bg-accent/20 flex items-center justify-center mr-3">
162
- <i data-feather="activity" class="text-accent" width="16"></i>
163
- </div>
164
- <span class="text-sm">Morning: HIIT</span>
165
- </div>
166
- </div>
167
- </div>
168
- </div>
169
-
170
- <!-- Thursday -->
171
- <div class="glass-card rounded-xl p-4" data-aos="fade-up" data-aos-delay="150">
172
- <h3 class="font-bold text-center mb-4">Thursday</h3>
173
- <div class="space-y-3">
174
- <div class="bg-dark/50 p-3 rounded-lg border-l-4 border-accent">
175
- <div class="flex items-center">
176
- <div class="w-8 h-8 rounded-full bg-accent/20 flex items-center justify-center mr-3">
177
- <i data-feather="wind" class="text-accent" width="16"></i>
178
- </div>
179
- <span class="text-sm">Morning: Cardio</span>
180
- </div>
181
- </div>
182
- </div>
183
- </div>
184
-
185
- <!-- Friday -->
186
- <div class="glass-card rounded-xl p-4" data-aos="fade-up" data-aos-delay="200">
187
- <h3 class="font-bold text-center mb-4">Friday</h3>
188
- <div class="space-y-3">
189
- <div class="bg-dark/50 p-3 rounded-lg border-l-4 border-accent">
190
- <div class="flex items-center">
191
- <div class="w-8 h-8 rounded-full bg-accent/20 flex items-center justify-center mr-3">
192
- <i data-feather="dumbbell" class="text-accent" width="16"></i>
193
- </div>
194
- <span class="text-sm">Evening: Strength</span>
195
- </div>
196
- </div>
197
- </div>
198
- </div>
199
-
200
- <!-- Saturday -->
201
- <div class="glass-card rounded-xl p-4" data-aos="fade-up" data-aos-delay="250">
202
- <h3 class="font-bold text-center mb-4">Saturday</h3>
203
- <div class="space-y-3">
204
- <div class="bg-dark/50 p-3 rounded-lg border-l-4 border-accent">
205
- <div class="flex items-center">
206
- <div class="w-8 h-8 rounded-full bg-accent/20 flex items-center justify-center mr-3">
207
- <i data-feather="wind" class="text-accent" width="16"></i>
208
- </div>
209
- <span class="text-sm">Morning: Cardio</span>
210
- </div>
211
- </div>
212
- </div>
213
- </div>
214
-
215
- <!-- Sunday -->
216
- <div class="glass-card rounded-xl p-4" data-aos="fade-up" data-aos-delay="300">
217
- <h3 class="font-bold text-center mb-4">Sunday</h3>
218
- <div class="space-y-3">
219
- <div class="bg-dark/50 p-3 rounded-lg border-l-4 border-accent">
220
- <div class="flex items-center">
221
- <div class="w-8 h-8 rounded-full bg-accent/20 flex items-center justify-center mr-3">
222
- <i data-feather="zap" class="text-accent" width="16"></i>
223
- </div>
224
- <span class="text-sm">Morning: Recovery</span>
225
- </div>
226
- </div>
227
- </div>
228
- </div>
229
- </div>
230
-
231
- <div class="text-center" data-aos="fade-up">
232
- <button class="btn-primary bg-accent text-primary px-8 py-3 rounded-lg font-bold">
233
- Save Week Plan
234
- </button>
235
- </div>
236
- </section>
237
-
238
- <!-- Progress Tracker Section -->
239
- <section id="progress" class="py-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
240
- <div class="text-center mb-16">
241
- <h2 class="text-3xl font-bold mb-4" data-aos="fade-up">Your Progress</h2>
242
- <p class="text-muted max-w-2xl mx-auto" data-aos="fade-up" data-aos-delay="100">
243
- Track your workouts, calories burned, and personal records.
244
- </p>
245
- </div>
246
-
247
- <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-12">
248
- <!-- Workouts Completed -->
249
- <div class="glass-card rounded-xl p-6 text-center" data-aos="fade-up">
250
- <div class="flex justify-center mb-4">
251
- <svg width="100" height="100" viewBox="0 0 100 100">
252
- <circle cx="50" cy="50" r="45" fill="none" stroke="#1E1E1E" stroke-width="8"/>
253
- <circle class="progress-ring" cx="50" cy="50" r="45" fill="none" stroke="#21D07A" stroke-width="8" stroke-dasharray="283" stroke-dashoffset="70"/>
254
- </svg>
255
- <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center">
256
- <span class="text-2xl font-bold">12</span>
257
- <span class="block text-xs text-muted">this week</span>
258
- </div>
259
- </div>
260
- <h3 class="font-bold mb-2">Workouts Completed</h3>
261
- <p class="text-sm text-muted">+2 from last week</p>
262
- </div>
263
-
264
- <!-- Calories Burned -->
265
- <div class="glass-card rounded-xl p-6 text-center" data-aos="fade-up" data-aos-delay="100">
266
- <div class="flex justify-center mb-4">
267
- <svg width="100" height="100" viewBox="0 0 100 100">
268
- <circle cx="50" cy="50" r="45" fill="none" stroke="#1E1E1E" stroke-width="8"/>
269
- <circle class="progress-ring" cx="50" cy="50" r="45" fill="none" stroke="#21D07A" stroke-width="8" stroke-dasharray="283" stroke-dashoffset="100"/>
270
- </svg>
271
- <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center">
272
- <span class="text-2xl font-bold">3,450</span>
273
- <span class="block text-xs text-muted">calories</span>
274
- </div>
275
- </div>
276
- <h3 class="font-bold mb-2">Calories Burned</h3>
277
- <p class="text-sm text-muted">15% increase</p>
278
- </div>
279
-
280
- <!-- Total Hours -->
281
- <div class="glass-card rounded-xl p-6 text-center" data-aos="fade-up" data-aos-delay="200">
282
- <div class="flex justify-center mb-4">
283
- <svg width="100" height="100" viewBox="0 0 100 100">
284
- <circle cx="50" cy="50" r="45" fill="none" stroke="#1E1E1E" stroke-width="8"/>
285
- <circle class="progress-ring" cx="50" cy="50" r="45" fill="none" stroke="#21D07A" stroke-width="8" stroke-dasharray="283" stroke-dashoffset="140"/>
286
- </svg>
287
- <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center">
288
- <span class="text-2xl font-bold">8.5</span>
289
- <span class="block text-xs text-muted">hours</span>
290
- </div>
291
- </div>
292
- <h3 class="font-bold mb-2">Total Hours</h3>
293
- <p class="text-sm text-muted">2.5h this week</p>
294
- </div>
295
-
296
- <!-- Current Streak -->
297
- <div class="glass-card rounded-xl p-6 text-center" data-aos="fade-up" data-aos-delay="300">
298
- <div class="flex justify-center mb-4">
299
- <svg width="100" height="100" viewBox="0 0 100 100">
300
- <circle cx="50" cy="50" r="45" fill="none" stroke="#1E1E1E" stroke-width="8"/>
301
- <circle class="progress-ring" cx="50" cy="50" r="45" fill="none" stroke="#21D07A" stroke-width="8" stroke-dasharray="283" stroke-dashoffset="40"/>
302
- </svg>
303
- <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center">
304
- <span class="text-2xl font-bold">7</span>
305
- <span class="block text-xs text-muted">days</span>
306
- </div>
307
- </div>
308
- <h3 class="font-bold mb-2">Current Streak</h3>
309
- <p class="text-sm text-muted">Keep it up!</p>
310
- </div>
311
- </div>
312
-
313
- <div class="glass-card rounded-xl p-6" data-aos="fade-up">
314
- <h3 class="font-bold mb-6 text-center">Weekly Activity</h3>
315
- <div class="h-64 bg-dark/50 rounded-lg flex items-end justify-between p-4">
316
- <div class="flex flex-col items-center">
317
- <div class="w-8 bg-accent rounded-t-sm" style="height: 40%;"></div>
318
- <span class="text-xs mt-1">Mon</span>
319
- </div>
320
- <div class="flex flex-col items-center">
321
- <div class="w-8 bg-accent rounded-t-sm" style="height: 60%;"></div>
322
- <span class="text-xs mt-1">Tue</span>
323
- </div>
324
- <div class="flex flex-col items-center">
325
- <div class="w-8 bg-accent rounded-t-sm" style="height: 30%;"></div>
326
- <span class="text-xs mt-1">Wed</span>
327
- </div>
328
- <div class="flex flex-col items-center">
329
- <div class="w-8 bg-accent rounded-t-sm" style="height: 80%;"></div>
330
- <span class="text-xs mt-1">Thu</span>
331
- </div>
332
- <div class="flex flex-col items-center">
333
- <div class="w-8 bg-accent rounded-t-sm" style="height: 50%;"></div>
334
- <span class="text-xs mt-1">Fri</span>
335
- </div>
336
- <div class="flex flex-col items-center">
337
- <div class="w-8 bg-accent rounded-t-sm" style="height: 90%;"></div>
338
- <span class="text-xs mt-1">Sat</span>
339
- </div>
340
- <div class="flex flex-col items-center">
341
- <div class="w-8 bg-accent rounded-t-sm" style="height: 20%;"></div>
342
- <span class="text-xs mt-1">Sun</span>
343
- </div>
344
- </div>
345
- </div>
346
- </section>
347
-
348
- <!-- Reviews Section -->
349
- <section id="reviews" class="py-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
350
- <div class="text-center mb-16">
351
- <h2 class="text-3xl font-bold mb-4" data-aos="fade-up">Community Reviews</h2>
352
- <p class="text-muted max-w-2xl mx-auto" data-aos="fade-up" data-aos-delay="100">
353
- See what others are saying about our workout plans
354
- </p>
355
- </div>
356
-
357
- <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
358
- <!-- Review 1 -->
359
- <div class="glass-card rounded-xl p-6" data-aos="fade-up">
360
- <div class="flex items-center mb-4">
361
- <div class="w-12 h-12 rounded-full bg-dark/50 flex items-center justify-center mr-4">
362
- <i data-feather="user" class="text-accent" width="20"></i>
363
- </div>
364
- <div>
365
- <h4 class="font-bold">Alex M.</h4>
366
- <div class="flex">
367
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
368
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
369
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
370
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
371
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
372
- </div>
373
- </div>
374
- </div>
375
- <p class="text-sm text-muted mb-4">
376
- "The HIIT routines are challenging but so rewarding. I've lost 8 pounds in 3 weeks following this plan!"
377
- </p>
378
- <div class="flex items-center text-xs text-muted">
379
- <i data-feather="clock" width="12" class="mr-1"></i>
380
- <span>2 days ago</span>
381
- </div>
382
- </div>
383
-
384
- <!-- Review 2 -->
385
- <div class="glass-card rounded-xl p-6" data-aos="fade-up" data-aos-delay="100">
386
- <div class="flex items-center mb-4">
387
- <div class="w-12 h-12 rounded-full bg-dark/50 flex items-center justify-center mr-4">
388
- <i data-feather="user" class="text-accent" width="20"></i>
389
- </div>
390
- <div>
391
- <h4 class="font-bold">Sarah J.</h4>
392
- <div class="flex">
393
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
394
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
395
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
396
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
397
- <i data-feather="star" class="text-yellow-400" width="14"></i>
398
- </div>
399
- </div>
400
- </div>
401
- <p class="text-sm text-muted mb-4">
402
- "Love the flexibility of being able to customize my week. The strength training routines are perfect for my goals."
403
- </p>
404
- <div class="flex items-center text-xs text-muted">
405
- <i data-feather="clock" width="12" class="mr-1"></i>
406
- <span>1 week ago</span>
407
- </div>
408
- </div>
409
-
410
- <!-- Review 3 -->
411
- <div class="glass-card rounded-xl p-6" data-aos="fade-up" data-aos-delay="200">
412
- <div class="flex items-center mb-4">
413
- <div class="w-12 h-12 rounded-full bg-dark/50 flex items-center justify-center mr-4">
414
- <i data-feather="user" class="text-accent" width="20"></i>
415
- </div>
416
- <div>
417
- <h4 class="font-bold">Michael T.</h4>
418
- <div class="flex">
419
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
420
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
421
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
422
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
423
- <i data-feather="star" class="text-yellow-400" width="14" fill="currentColor"></i>
424
- </div>
425
- </div>
426
- </div>
427
- <p class="text-sm text-muted mb-4">
428
- "The progress tracking is game-changing. Seeing my improvements week over week keeps me motivated!"
429
- </p>
430
- <div class="flex items-center text-xs text-muted">
431
- <i data-feather="clock" width="12" class="mr-1"></i>
432
- <span>2 weeks ago</span>
433
- </div>
434
- </div>
435
- </div>
436
-
437
- <div class="text-center mt-12" data-aos="fade-up">
438
- <button class="border border-accent text-accent px-8 py-3 rounded-lg font-bold hover:bg-accent/10 transition">
439
- View All Reviews
440
- </button>
441
- </div>
442
- </section>
443
-
444
- <!-- CTA Section -->
445
- <section class="py-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
446
- <div class="glass-card rounded-2xl p-12 text-center" data-aos="fade-up">
447
- <h2 class="text-3xl font-bold mb-6">Ready to Transform Your Fitness?</h2>
448
- <p class="text-xl text-muted max-w-2xl mx-auto mb-8">
449
- Join thousands of users who are achieving their fitness goals with FitTrack.
450
- </p>
451
- <button class="btn-primary bg-accent text-primary px-8 py-4 rounded-lg font-bold text-lg">
452
- Get Started - It's Free
453
- </button>
454
- </div>
455
- </section>
456
-
457
- <!-- Footer -->
458
- <footer class="border-t border-gray-800 py-12 px-4 sm:px-6 lg:px-8">
459
- <div class="max-w-7xl mx-auto">
460
- <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
461
- <div>
462
- <h3 class="text-xl font-bold text-accent mb-4">FitTrack</h3>
463
- <p class="text-sm text-muted">
464
- Plan. Train. Track. Your all-in-one fitness companion.
465
- </p>
466
- </div>
467
- <div>
468
- <h4 class="font-bold mb-4">Product</h4>
469
- <ul class="space-y-2">
470
- <li><a href="#" class="text-sm text-muted hover:text-accent transition">Features</a></li>
471
- <li><a href="#" class="text-sm text-muted hover:text-accent transition">Pricing</a></li>
472
- <li><a href="#" class="text-sm text-muted hover:text-accent transition">Templates</a></li>
473
- </ul>
474
- </div>
475
- <div>
476
- <h4 class="font-bold mb-4">Resources</h4>
477
- <ul class="space-y-2">
478
- <li><a href="#" class="text-sm text-muted hover:text-accent transition">Blog</a></li>
479
- <li><a href="#" class="text-sm text-muted hover:text-accent transition">Help Center</a></li>
480
- <li><a href="#" class="text-sm text-muted hover:text-accent transition">Community</a></li>
481
- </ul>
482
- </div>
483
- <div>
484
- <h4 class="font-bold mb-4">Connect</h4>
485
- <div class="flex space-x-4">
486
- <a href="#" class="text-muted hover:text-accent transition">
487
- <i data-feather="instagram" width="18"></i>
488
- </a>
489
- <a href="#" class="text-muted hover:text-accent transition">
490
- <i data-feather="twitter" width="18"></i>
491
- </a>
492
- <a href="#" class="text-muted hover:text-accent transition">
493
- <i data-feather="facebook" width="18"></i>
494
- </a>
495
- </div>
496
- </div>
497
- </div>
498
- <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
499
- <p class="text-sm text-muted mb-4 md:mb-0">
500
- © 2023 FitTrack. All rights reserved.
501
- </p>
502
- <div class="flex space-x-6">
503
- <a href="#" class="text-sm text-muted hover:text-accent transition">Privacy</a>
504
- <a href="#" class="text-sm text-muted hover:text-accent transition">Terms</a>
505
- <a href="#" class="text-sm text-muted hover:text-accent transition">Cookies</a>
506
- </div>
507
- </div>
508
- </div>
509
- </footer>
510
-
511
- <script>
512
- AOS.init({
513
- duration: 800,
514
- easing: 'ease-in-out',
515
- once: true
516
- });
517
- feather.replace();
518
-
519
- // Simple animation for progress rings
520
- document.addEventListener('DOMContentLoaded', function() {
521
- const rings = document.querySelectorAll('.progress-ring');
522
- rings.forEach(ring => {
523
- const circumference = 2 * Math.PI * 45;
524
- const offset = circumference - (parseInt(ring.getAttribute('stroke-dashoffset')) / 100) * circumference;
525
- ring.style.strokeDashoffset = circumference;
526
- setTimeout(() => {
527
- ring.style.transition = 'stroke-dashoffset 1s ease-in-out';
528
- ring.style.strokeDashoffset = offset;
529
- }, 100);
530
- });
531
- });
532
- </script>
533
- </body>
534
- </html>