forked from favorade01/Fitness-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprototype code
More file actions
2731 lines (2524 loc) · 149 KB
/
Copy pathprototype code
File metadata and controls
2731 lines (2524 loc) · 149 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
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import React, { useState, useEffect } from ‘react’;
import { Calculator, UtensilsCrossed, Calendar, Home, User, ChevronRight, Heart, Search, Clock, Flame, Users, X, TrendingDown, TrendingUp, Ruler, Weight, Activity, Target, Zap, Plus, Trash2, MessageCircle, Send, Dumbbell, Play, CheckCircle, Award, Coffee, Moon, Sun, Droplets } from ‘lucide-react’;
const RECIPE_DATABASE = [
{ id: 1, name: ‘Oikos Triple Zero Vanilla’, emoji: ‘🥛’, gradient: ‘from-yellow-200 to-amber-300’, calories: 90, protein: 15, carbs: 7, fats: 0, time: 1, servings: 1, category: ‘Breakfast’, difficulty: ‘Easy’, ingredients: [‘1 Oikos Triple Zero Vanilla Greek Yogurt (5.3 oz)’], instructions: [‘Open cup and enjoy’], tags: [‘high-protein’, ‘quick’] },
{ id: 2, name: ‘Oikos Triple Zero Strawberry’, emoji: ‘🍓’, gradient: ‘from-pink-200 to-red-300’, calories: 90, protein: 15, carbs: 7, fats: 0, time: 1, servings: 1, category: ‘Breakfast’, difficulty: ‘Easy’, ingredients: [‘1 Oikos Triple Zero Strawberry Greek Yogurt (5.3 oz)’], instructions: [‘Open cup and enjoy’], tags: [‘high-protein’, ‘quick’] },
{ id: 3, name: ‘Grilled Chicken Salad’, emoji: ‘🥗’, gradient: ‘from-green-200 to-emerald-300’, calories: 320, protein: 35, carbs: 20, fats: 8, time: 20, servings: 2, category: ‘Lunch’, difficulty: ‘Medium’, ingredients: [‘Chicken breast’, ‘Mixed greens’, ‘Cherry tomatoes’, ‘Cucumber’, ‘Cooking spray’, ‘Lemon’], instructions: [‘Season and spray chicken with cooking spray’, ‘Grill chicken breast’, ‘Chop vegetables’, ‘Slice grilled chicken’, ‘Toss with greens and lemon’, ‘Serve fresh’], tags: [‘high-protein’, ‘low-fat’] },
{ id: 4, name: ‘Grilled Salmon’, emoji: ‘🐟’, gradient: ‘from-orange-200 to-pink-300’, calories: 380, protein: 40, carbs: 12, fats: 18, time: 25, servings: 2, category: ‘Dinner’, difficulty: ‘Medium’, ingredients: [‘Salmon fillet’, ‘Asparagus’, ‘Garlic’, ‘Lemon’, ‘Cooking spray’], instructions: [‘Preheat grill’, ‘Season salmon’, ‘Spray with cooking spray’, ‘Grill 4-5 min per side’, ‘Grill asparagus’, ‘Serve with lemon’], tags: [‘high-protein’] },
{ id: 5, name: ‘Protein Smoothie Bowl’, emoji: ‘🥤’, gradient: ‘from-purple-300 to-pink-300’, calories: 320, protein: 28, carbs: 35, fats: 8, time: 5, servings: 1, category: ‘Breakfast’, difficulty: ‘Easy’, ingredients: [‘Protein powder’, ‘Banana’, ‘Berries’, ‘Almond milk’, ‘Granola’], instructions: [‘Blend protein, banana, berries with milk’, ‘Pour into bowl’, ‘Top with granola and fresh fruit’], tags: [‘high-protein’, ‘quick’] },
{ id: 6, name: ‘Quinoa Power Bowl’, emoji: ‘🍚’, gradient: ‘from-amber-200 to-orange-300’, calories: 420, protein: 22, carbs: 48, fats: 16, time: 30, servings: 2, category: ‘Lunch’, difficulty: ‘Medium’, ingredients: [‘Quinoa’, ‘Chickpeas’, ‘Avocado’, ‘Sweet potato’, ‘Spinach’], instructions: [‘Cook quinoa’, ‘Roast chickpeas and sweet potato’, ‘Assemble bowl with spinach’, ‘Add avocado and dressing’], tags: [‘vegetarian’] },
// Breakfast Recipes
{ id: 7, name: ‘Avocado Toast Supreme’, emoji: ‘🥑’, gradient: ‘from-green-300 to-lime-400’, calories: 340, protein: 18, carbs: 32, fats: 16, time: 10, servings: 1, category: ‘Breakfast’, difficulty: ‘Easy’, ingredients: [‘Whole grain bread’, ‘Avocado’, ‘Eggs’, ‘Cherry tomatoes’, ‘Everything bagel seasoning’], instructions: [‘Toast bread until golden’, ‘Mash avocado with lime and salt’, ‘Fry or poach eggs’, ‘Spread avocado on toast, top with eggs’, ‘Add tomatoes and seasoning’], tags: [‘quick’, ‘vegetarian’] },
{ id: 8, name: ‘Overnight Oats Deluxe’, emoji: ‘🥣’, gradient: ‘from-blue-200 to-indigo-300’, calories: 380, protein: 20, carbs: 52, fats: 10, time: 5, servings: 1, category: ‘Breakfast’, difficulty: ‘Easy’, ingredients: [‘Rolled oats’, ‘Greek yogurt’, ‘Chia seeds’, ‘Honey’, ‘Berries’, ‘Almond milk’], instructions: [‘Mix oats, yogurt, chia seeds in jar’, ‘Add almond milk and honey’, ‘Refrigerate overnight’, ‘Top with fresh berries before serving’], tags: [‘make-ahead’, ‘high-protein’] },
{ id: 9, name: ‘Egg White Veggie Scramble’, emoji: ‘🍳’, gradient: ‘from-yellow-300 to-orange-400’, calories: 220, protein: 26, carbs: 12, fats: 6, time: 15, servings: 1, category: ‘Breakfast’, difficulty: ‘Easy’, ingredients: [‘Egg whites (6)’, ‘Spinach’, ‘Bell peppers’, ‘Mushrooms’, ‘Onion’, ‘Feta cheese’], instructions: [‘Sauté vegetables in pan’, ‘Add egg whites and scramble’, ‘Cook until fluffy’, ‘Top with feta cheese’, ‘Season with herbs’], tags: [‘high-protein’, ‘low-carb’] },
{ id: 10, name: ‘Banana Protein Pancakes’, emoji: ‘🥞’, gradient: ‘from-amber-300 to-yellow-400’, calories: 360, protein: 24, carbs: 42, fats: 10, time: 20, servings: 2, category: ‘Breakfast’, difficulty: ‘Medium’, ingredients: [‘Banana’, ‘Eggs’, ‘Protein powder’, ‘Oats’, ‘Cinnamon’, ‘Vanilla extract’], instructions: [‘Blend all ingredients until smooth’, ‘Heat non-stick pan over medium’, ‘Pour batter to form pancakes’, ‘Flip when bubbles form’, ‘Serve with Greek yogurt’], tags: [‘high-protein’] },
{ id: 11, name: ‘Chia Seed Pudding’, emoji: ‘🍮’, gradient: ‘from-purple-200 to-pink-300’, calories: 280, protein: 12, carbs: 28, fats: 14, time: 5, servings: 1, category: ‘Breakfast’, difficulty: ‘Easy’, ingredients: [‘Chia seeds’, ‘Almond milk’, ‘Vanilla’, ‘Maple syrup’, ‘Fresh fruit’, ‘Coconut flakes’], instructions: [‘Mix chia seeds with almond milk’, ‘Add vanilla and maple syrup’, ‘Refrigerate for 4 hours or overnight’, ‘Top with fruit and coconut’], tags: [‘make-ahead’, ‘vegan’] },
{ id: 12, name: ‘Turkey Sausage Breakfast Bowl’, emoji: ‘🌯’, gradient: ‘from-red-300 to-orange-400’, calories: 410, protein: 32, carbs: 28, fats: 18, time: 25, servings: 1, category: ‘Breakfast’, difficulty: ‘Medium’, ingredients: [‘Turkey sausage’, ‘Eggs’, ‘Sweet potato hash’, ‘Spinach’, ‘Red onion’], instructions: [‘Cook turkey sausage and slice’, ‘Roast sweet potato cubes’, ‘Scramble eggs’, ‘Sauté spinach and onion’, ‘Combine all in bowl’], tags: [‘high-protein’] },
// Lunch Recipes
{ id: 13, name: ‘Mediterranean Wrap’, emoji: ‘🌯’, gradient: ‘from-blue-300 to-teal-400’, calories: 420, protein: 28, carbs: 45, fats: 14, time: 15, servings: 1, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Whole wheat tortilla’, ‘Grilled chicken’, ‘Hummus’, ‘Cucumber’, ‘Tomatoes’, ‘Feta’, ‘Lettuce’], instructions: [‘Spread hummus on tortilla’, ‘Layer chicken and vegetables’, ‘Add feta cheese’, ‘Roll tightly and slice in half’, ‘Serve immediately’], tags: [‘high-protein’] },
{ id: 14, name: ‘Tuna Poke Bowl’, emoji: ‘🍱’, gradient: ‘from-pink-300 to-red-400’, calories: 480, protein: 38, carbs: 52, fats: 12, time: 20, servings: 2, category: ‘Lunch’, difficulty: ‘Medium’, ingredients: [‘Sushi-grade tuna’, ‘Brown rice’, ‘Edamame’, ‘Cucumber’, ‘Avocado’, ‘Soy sauce’, ‘Sesame seeds’], instructions: [‘Cube tuna and marinate in soy sauce’, ‘Cook brown rice’, ‘Prep all vegetables’, ‘Assemble bowl with rice as base’, ‘Top with tuna and garnish’], tags: [‘high-protein’] },
{ id: 15, name: ‘Southwest Chicken Bowl’, emoji: ‘🌮’, gradient: ‘from-yellow-400 to-red-500’, calories: 520, protein: 42, carbs: 48, fats: 18, time: 30, servings: 2, category: ‘Lunch’, difficulty: ‘Medium’, ingredients: [‘Chicken breast’, ‘Black beans’, ‘Corn’, ‘Brown rice’, ‘Salsa’, ‘Greek yogurt’, ‘Cheese’], instructions: [‘Season and grill chicken’, ‘Cook rice and warm beans’, ‘Char corn in pan’, ‘Assemble bowl with all ingredients’, ‘Top with Greek yogurt and salsa’], tags: [‘high-protein’] },
{ id: 16, name: ‘Asian Lettuce Wraps’, emoji: ‘🥬’, gradient: ‘from-green-400 to-emerald-500’, calories: 320, protein: 32, carbs: 18, fats: 14, time: 20, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Ground turkey’, ‘Lettuce leaves’, ‘Water chestnuts’, ‘Green onions’, ‘Ginger’, ‘Soy sauce’, ‘Hoisin sauce’], instructions: [‘Brown turkey in skillet’, ‘Add water chestnuts and aromatics’, ‘Season with sauces’, ‘Spoon mixture into lettuce cups’, ‘Garnish with green onions’], tags: [‘low-carb’, ‘high-protein’] },
{ id: 17, name: ‘Greek Chicken Bowl’, emoji: ‘🇬🇷’, gradient: ‘from-blue-400 to-cyan-500’, calories: 460, protein: 40, carbs: 38, fats: 16, time: 25, servings: 2, category: ‘Lunch’, difficulty: ‘Medium’, ingredients: [‘Chicken breast’, ‘Quinoa’, ‘Cucumber’, ‘Tomatoes’, ‘Kalamata olives’, ‘Feta’, ‘Tzatziki’], instructions: [‘Marinate chicken in lemon and oregano’, ‘Grill chicken until cooked through’, ‘Cook quinoa’, ‘Chop vegetables’, ‘Assemble bowl and top with tzatziki’], tags: [‘high-protein’, ‘mediterranean’] },
{ id: 18, name: ‘Shrimp Cauliflower Rice’, emoji: ‘🍤’, gradient: ‘from-orange-300 to-pink-400’, calories: 340, protein: 35, carbs: 22, fats: 12, time: 20, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Shrimp’, ‘Cauliflower rice’, ‘Mixed vegetables’, ‘Garlic’, ‘Ginger’, ‘Coconut aminos’], instructions: [‘Sauté garlic and ginger’, ‘Add shrimp and cook until pink’, ‘Add cauliflower rice and vegetables’, ‘Season with coconut aminos’, ‘Stir fry until heated through’], tags: [‘low-carb’, ‘high-protein’] },
// Dinner Recipes
{ id: 19, name: ‘Baked Cod with Vegetables’, emoji: ‘🐠’, gradient: ‘from-cyan-300 to-blue-400’, calories: 380, protein: 42, carbs: 24, fats: 12, time: 30, servings: 2, category: ‘Dinner’, difficulty: ‘Medium’, ingredients: [‘Cod fillets’, ‘Broccoli’, ‘Cherry tomatoes’, ‘Lemon’, ‘Garlic’, ‘Olive oil’, ‘Herbs’], instructions: [‘Preheat oven to 400°F’, ‘Place cod and vegetables on baking sheet’, ‘Drizzle with olive oil and season’, ‘Bake for 20 minutes’, ‘Serve with lemon wedges’], tags: [‘low-carb’, ‘high-protein’] },
{ id: 20, name: ‘Turkey Meatballs & Zucchini Noodles’, emoji: ‘🍝’, gradient: ‘from-green-400 to-lime-500’, calories: 420, protein: 38, carbs: 18, fats: 22, time: 35, servings: 2, category: ‘Dinner’, difficulty: ‘Medium’, ingredients: [‘Ground turkey’, ‘Egg’, ‘Breadcrumbs’, ‘Zucchini’, ‘Marinara sauce’, ‘Parmesan’, ‘Italian herbs’], instructions: [‘Mix turkey with egg, breadcrumbs, herbs’, ‘Form into meatballs and bake at 375°F’, ‘Spiralize zucchini into noodles’, ‘Heat marinara sauce’, ‘Combine meatballs with zoodles and sauce’], tags: [‘low-carb’, ‘high-protein’] },
{ id: 21, name: ‘Chicken Fajita Skillet’, emoji: ‘🍗’, gradient: ‘from-red-400 to-orange-500’, calories: 440, protein: 45, carbs: 32, fats: 14, time: 25, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Chicken breast’, ‘Bell peppers (3 colors)’, ‘Onion’, ‘Fajita seasoning’, ‘Lime’, ‘Cilantro’], instructions: [‘Slice chicken and vegetables’, ‘Heat skillet and cook chicken’, ‘Add peppers and onions’, ‘Season with fajita spices’, ‘Finish with lime and cilantro’], tags: [‘high-protein’, ‘mexican’] },
{ id: 22, name: ‘Beef & Broccoli Stir Fry’, emoji: ‘🥦’, gradient: ‘from-green-500 to-emerald-600’, calories: 480, protein: 40, carbs: 28, fats: 22, time: 20, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Flank steak’, ‘Broccoli’, ‘Garlic’, ‘Ginger’, ‘Soy sauce’, ‘Sesame oil’, ‘Brown rice’], instructions: [‘Slice beef thinly against grain’, ‘Stir fry beef in hot wok’, ‘Remove beef, add broccoli’, ‘Add sauce ingredients’, ‘Return beef and toss together’], tags: [‘high-protein’, ‘asian’] },
{ id: 23, name: ‘Baked Chicken Thighs’, emoji: ‘🍖’, gradient: ‘from-amber-400 to-orange-500’, calories: 520, protein: 48, carbs: 8, fats: 32, time: 40, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Chicken thighs’, ‘Garlic powder’, ‘Paprika’, ‘Rosemary’, ‘Lemon’, ‘Green beans’], instructions: [‘Season chicken with spices’, ‘Place in baking dish with lemon slices’, ‘Bake at 425°F for 35 minutes’, ‘Add green beans halfway through’, ‘Let rest before serving’], tags: [‘high-protein’, ‘keto-friendly’] },
{ id: 24, name: ‘Lemon Herb Tilapia’, emoji: ‘🐟’, gradient: ‘from-yellow-300 to-green-400’, calories: 360, protein: 38, carbs: 18, fats: 14, time: 25, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Tilapia fillets’, ‘Lemon’, ‘Fresh herbs’, ‘Garlic’, ‘White wine’, ‘Asparagus’], instructions: [‘Season tilapia with herbs and garlic’, ‘Place in baking dish with lemon and wine’, ‘Add asparagus to dish’, ‘Bake at 400°F for 15-18 minutes’, ‘Serve immediately’], tags: [‘low-carb’, ‘high-protein’] },
// Snack Recipes
{ id: 25, name: ‘Protein Energy Balls’, emoji: ‘⚡’, gradient: ‘from-purple-400 to-pink-500’, calories: 180, protein: 8, carbs: 22, fats: 7, time: 10, servings: 4, category: ‘Snack’, difficulty: ‘Easy’, ingredients: [‘Oats’, ‘Protein powder’, ‘Peanut butter’, ‘Honey’, ‘Dark chocolate chips’, ‘Chia seeds’], instructions: [‘Mix all ingredients in bowl’, ‘Roll into 1-inch balls’, ‘Refrigerate for 30 minutes’, ‘Store in airtight container’], tags: [‘make-ahead’, ‘high-protein’] },
{ id: 26, name: ‘Cottage Cheese Bowl’, emoji: ‘🥣’, gradient: ‘from-blue-300 to-purple-400’, calories: 240, protein: 24, carbs: 18, fats: 8, time: 5, servings: 1, category: ‘Snack’, difficulty: ‘Easy’, ingredients: [‘Cottage cheese’, ‘Pineapple’, ‘Almonds’, ‘Cinnamon’, ‘Honey’], instructions: [‘Scoop cottage cheese into bowl’, ‘Top with pineapple chunks’, ‘Add sliced almonds’, ‘Drizzle with honey’, ‘Sprinkle cinnamon on top’], tags: [‘quick’, ‘high-protein’] },
{ id: 27, name: ‘Apple Almond Butter Slices’, emoji: ‘🍎’, gradient: ‘from-red-300 to-orange-400’, calories: 220, protein: 6, carbs: 28, fats: 10, time: 5, servings: 1, category: ‘Snack’, difficulty: ‘Easy’, ingredients: [‘Apple’, ‘Almond butter’, ‘Granola’, ‘Cinnamon’], instructions: [‘Slice apple into rounds’, ‘Spread almond butter on each slice’, ‘Sprinkle with granola’, ‘Dust with cinnamon’], tags: [‘quick’, ‘vegan’] },
{ id: 28, name: ‘Turkey Roll-Ups’, emoji: ‘🦃’, gradient: ‘from-pink-300 to-red-400’, calories: 160, protein: 18, carbs: 4, fats: 8, time: 5, servings: 1, category: ‘Snack’, difficulty: ‘Easy’, ingredients: [‘Turkey slices (deli)’, ‘Cream cheese’, ‘Cucumber sticks’, ‘Bell pepper strips’], instructions: [‘Spread cream cheese on turkey slices’, ‘Place veggie sticks on one end’, ‘Roll up tightly’, ‘Secure with toothpick if needed’], tags: [‘quick’, ‘low-carb’, ‘high-protein’] },
{ id: 29, name: ‘Hummus Veggie Plate’, emoji: ‘🥕’, gradient: ‘from-orange-300 to-yellow-400’, calories: 200, protein: 8, carbs: 24, fats: 9, time: 10, servings: 1, category: ‘Snack’, difficulty: ‘Easy’, ingredients: [‘Hummus’, ‘Carrots’, ‘Cucumber’, ‘Bell peppers’, ‘Cherry tomatoes’, ‘Celery’], instructions: [‘Slice all vegetables into sticks’, ‘Arrange on plate’, ‘Add hummus to center for dipping’, ‘Season vegetables with salt and pepper’], tags: [‘vegan’, ‘quick’] },
{ id: 30, name: ‘Greek Yogurt Parfait’, emoji: ‘🍨’, gradient: ‘from-pink-400 to-purple-500’, calories: 280, protein: 20, carbs: 36, fats: 6, time: 5, servings: 1, category: ‘Snack’, difficulty: ‘Easy’, ingredients: [‘Greek yogurt’, ‘Mixed berries’, ‘Granola’, ‘Honey’, ‘Chia seeds’], instructions: [‘Layer yogurt in glass’, ‘Add berries and granola’, ‘Repeat layers’, ‘Top with honey and chia seeds’], tags: [‘quick’, ‘high-protein’] },
// More Dinner Options
{ id: 31, name: ‘Stuffed Bell Peppers’, emoji: ‘🫑’, gradient: ‘from-red-500 to-orange-600’, calories: 420, protein: 32, carbs: 38, fats: 16, time: 45, servings: 2, category: ‘Dinner’, difficulty: ‘Medium’, ingredients: [‘Bell peppers’, ‘Ground turkey’, ‘Brown rice’, ‘Black beans’, ‘Tomato sauce’, ‘Cheese’, ‘Spices’], instructions: [‘Cut tops off peppers and remove seeds’, ‘Cook turkey with spices’, ‘Mix with cooked rice and beans’, ‘Stuff peppers with mixture’, ‘Bake covered at 375°F for 30 minutes’], tags: [‘high-protein’] },
{ id: 32, name: ‘Pesto Chicken & Veggies’, emoji: ‘🌿’, gradient: ‘from-green-500 to-teal-600’, calories: 460, protein: 44, carbs: 22, fats: 22, time: 30, servings: 2, category: ‘Dinner’, difficulty: ‘Medium’, ingredients: [‘Chicken breast’, ‘Basil pesto’, ‘Cherry tomatoes’, ‘Zucchini’, ‘Mozzarella’, ‘Pine nuts’], instructions: [‘Coat chicken with pesto’, ‘Grill or bake chicken’, ‘Sauté zucchini and tomatoes’, ‘Top chicken with mozzarella’, ‘Garnish with pine nuts’], tags: [‘high-protein’, ‘italian’] },
{ id: 33, name: ‘Teriyaki Salmon Bowl’, emoji: ‘🍣’, gradient: ‘from-orange-400 to-pink-500’, calories: 520, protein: 42, carbs: 48, fats: 18, time: 30, servings: 2, category: ‘Dinner’, difficulty: ‘Medium’, ingredients: [‘Salmon fillet’, ‘Brown rice’, ‘Teriyaki sauce’, ‘Edamame’, ‘Carrots’, ‘Sesame seeds’], instructions: [‘Marinate salmon in teriyaki’, ‘Bake salmon at 400°F for 15 minutes’, ‘Cook rice and steam edamame’, ‘Julienne carrots’, ‘Assemble bowl and garnish’], tags: [‘high-protein’, ‘asian’] },
{ id: 34, name: ‘Chicken Caprese’, emoji: ‘🍅’, gradient: ‘from-red-400 to-green-500’, calories: 480, protein: 48, carbs: 14, fats: 26, time: 25, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Chicken breast’, ‘Fresh mozzarella’, ‘Tomatoes’, ‘Fresh basil’, ‘Balsamic glaze’, ‘Olive oil’], instructions: [‘Grill or pan-sear chicken’, ‘Top with mozzarella and tomato slices’, ‘Add basil leaves’, ‘Drizzle with balsamic glaze’, ‘Serve immediately’], tags: [‘high-protein’, ‘italian’] },
{ id: 35, name: ‘Cajun Shrimp & Sausage’, emoji: ‘🦐’, gradient: ‘from-red-500 to-orange-600’, calories: 440, protein: 38, carbs: 24, fats: 22, time: 25, servings: 2, category: ‘Dinner’, difficulty: ‘Medium’, ingredients: [‘Shrimp’, ‘Turkey sausage’, ‘Bell peppers’, ‘Onion’, ‘Cajun seasoning’, ‘Brown rice’], instructions: [‘Slice sausage and cook in skillet’, ‘Add peppers and onions’, ‘Season with cajun spices’, ‘Add shrimp and cook until pink’, ‘Serve over brown rice’], tags: [‘high-protein’, ‘spicy’] },
{ id: 36, name: ‘Vegetarian Chili’, emoji: ‘🌶️’, gradient: ‘from-orange-500 to-red-600’, calories: 380, protein: 18, carbs: 58, fats: 8, time: 40, servings: 4, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Black beans’, ‘Kidney beans’, ‘Tomatoes’, ‘Corn’, ‘Onion’, ‘Chili powder’, ‘Cumin’], instructions: [‘Sauté onion and garlic’, ‘Add all beans and tomatoes’, ‘Season with spices’, ‘Simmer for 30 minutes’, ‘Serve with toppings of choice’], tags: [‘vegetarian’, ‘high-fiber’] },
// Low-Carb Meals
{ id: 37, name: ‘Keto Cauliflower Pizza’, emoji: ‘🍕’, gradient: ‘from-yellow-400 to-red-500’, calories: 380, protein: 28, carbs: 12, fats: 24, time: 35, servings: 2, category: ‘Dinner’, difficulty: ‘Medium’, ingredients: [‘Cauliflower’, ‘Eggs’, ‘Mozzarella cheese’, ‘Parmesan’, ‘Pizza sauce’, ‘Italian seasoning’, ‘Toppings of choice’], instructions: [‘Rice cauliflower and squeeze out moisture’, ‘Mix with eggs and cheese to form crust’, ‘Bake crust at 425°F for 15 minutes’, ‘Add sauce and toppings’, ‘Bake another 10 minutes’], tags: [‘low-carb’, ‘keto’, ‘vegetarian’] },
{ id: 38, name: ‘Lettuce Wrapped Burgers’, emoji: ‘🍔’, gradient: ‘from-green-400 to-red-500’, calories: 420, protein: 38, carbs: 8, fats: 26, time: 20, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Ground beef (93% lean)’, ‘Lettuce leaves’, ‘Tomato’, ‘Onion’, ‘Pickles’, ‘Sugar-free ketchup’, ‘Mustard’], instructions: [‘Form beef into patties and season’, ‘Grill or pan-fry burgers to desired doneness’, ‘Wash and dry large lettuce leaves’, ‘Wrap burgers in lettuce with toppings’, ‘Serve immediately’], tags: [‘low-carb’, ‘keto’, ‘high-protein’] },
{ id: 39, name: ‘Garlic Butter Shrimp’, emoji: ‘🧈’, gradient: ‘from-yellow-300 to-pink-400’, calories: 320, protein: 36, carbs: 6, fats: 18, time: 15, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Large shrimp’, ‘Butter’, ‘Garlic’, ‘Lemon juice’, ‘White wine’, ‘Parsley’, ‘Red pepper flakes’], instructions: [‘Melt butter in pan with garlic’, ‘Add shrimp and cook 2 min per side’, ‘Add wine and lemon juice’, ‘Season with red pepper and parsley’, ‘Serve with cauliflower rice’], tags: [‘low-carb’, ‘keto’, ‘high-protein’] },
{ id: 40, name: ‘Zucchini Lasagna’, emoji: ‘🥒’, gradient: ‘from-green-500 to-red-500’, calories: 360, protein: 32, carbs: 14, fats: 22, time: 50, servings: 4, category: ‘Dinner’, difficulty: ‘Hard’, ingredients: [‘Zucchini (4 large)’, ‘Ground turkey’, ‘Ricotta cheese’, ‘Mozzarella’, ‘Marinara sauce’, ‘Parmesan’, ‘Italian herbs’], instructions: [‘Slice zucchini lengthwise, salt and drain’, ‘Brown turkey with herbs’, ‘Layer zucchini, meat, ricotta, sauce’, ‘Repeat layers, top with mozzarella’, ‘Bake at 375°F for 35 minutes’], tags: [‘low-carb’, ‘high-protein’] },
{ id: 41, name: ‘Chicken Alfredo Shirataki’, emoji: ‘🍜’, gradient: ‘from-white-300 to-yellow-400’, calories: 340, protein: 42, carbs: 8, fats: 16, time: 20, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Chicken breast’, ‘Shirataki noodles’, ‘Heavy cream’, ‘Parmesan cheese’, ‘Garlic’, ‘Butter’, ‘Spinach’], instructions: [‘Rinse and dry shirataki noodles’, ‘Cook chicken and slice’, ‘Make alfredo sauce with cream, butter, parmesan’, ‘Toss noodles in sauce’, ‘Add chicken and spinach’], tags: [‘low-carb’, ‘keto’, ‘high-protein’] },
{ id: 42, name: ‘Egg Roll in a Bowl’, emoji: ‘🥡’, gradient: ‘from-green-400 to-orange-500’, calories: 380, protein: 28, carbs: 12, fats: 24, time: 20, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Ground pork’, ‘Cabbage (shredded)’, ‘Carrots’, ‘Ginger’, ‘Garlic’, ‘Soy sauce’, ‘Sesame oil’], instructions: [‘Brown ground pork in large skillet’, ‘Add ginger and garlic’, ‘Add cabbage and carrots’, ‘Season with soy sauce and sesame oil’, ‘Cook until cabbage is tender’], tags: [‘low-carb’, ‘asian’, ‘high-protein’] },
{ id: 43, name: ‘Spicy Tuna Cucumber Boats’, emoji: ‘🚤’, gradient: ‘from-green-400 to-red-500’, calories: 180, protein: 24, carbs: 6, fats: 6, time: 10, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Canned tuna’, ‘Cucumber’, ‘Sriracha mayo’, ‘Green onions’, ‘Sesame seeds’, ‘Avocado’], instructions: [‘Halve cucumbers and scoop out seeds’, ‘Mix tuna with sriracha mayo’, ‘Fill cucumber boats with tuna mixture’, ‘Top with avocado and green onions’, ‘Sprinkle with sesame seeds’], tags: [‘low-carb’, ‘quick’, ‘high-protein’] },
{ id: 44, name: ‘Buffalo Chicken Salad’, emoji: ‘🥗’, gradient: ‘from-orange-500 to-red-600’, calories: 340, protein: 38, carbs: 10, fats: 18, time: 15, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Grilled chicken’, ‘Buffalo sauce’, ‘Romaine lettuce’, ‘Celery’, ‘Blue cheese dressing’, ‘Ranch (low-fat)’, ‘Carrots’], instructions: [‘Toss chicken with buffalo sauce’, ‘Chop romaine and celery’, ‘Arrange salad with vegetables’, ‘Top with buffalo chicken’, ‘Drizzle with blue cheese or ranch’], tags: [‘low-carb’, ‘high-protein’, ‘spicy’] },
{ id: 45, name: ‘Keto Taco Salad’, emoji: ‘🌮’, gradient: ‘from-green-500 to-yellow-600’, calories: 420, protein: 35, carbs: 10, fats: 28, time: 20, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Ground beef’, ‘Lettuce’, ‘Cheese’, ‘Sour cream’, ‘Salsa’, ‘Avocado’, ‘Taco seasoning’], instructions: [‘Brown beef with taco seasoning’, ‘Chop lettuce and vegetables’, ‘Layer lettuce as base’, ‘Top with seasoned beef’, ‘Add cheese, sour cream, salsa, avocado’], tags: [‘low-carb’, ‘keto’, ‘high-protein’] },
{ id: 46, name: ‘Portobello Mushroom Burger’, emoji: ‘🍄’, gradient: ‘from-brown-400 to-green-500’, calories: 280, protein: 18, carbs: 12, fats: 18, time: 25, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Portobello mushroom caps’, ‘Mozzarella cheese’, ‘Tomato’, ‘Basil’, ‘Balsamic vinegar’, ‘Olive oil’, ‘Garlic’], instructions: [‘Marinate mushrooms in balsamic and oil’, ‘Grill mushrooms 4 min per side’, ‘Top with cheese to melt’, ‘Add tomato and fresh basil’, ‘Serve as open-faced burger’], tags: [‘low-carb’, ‘vegetarian’] },
{ id: 47, name: ‘Cabbage Stir Fry’, emoji: ‘🥬’, gradient: ‘from-green-500 to-purple-500’, calories: 320, protein: 26, carbs: 14, fats: 18, time: 20, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Cabbage’, ‘Chicken or tofu’, ‘Bell peppers’, ‘Soy sauce’, ‘Ginger’, ‘Garlic’, ‘Sesame oil’], instructions: [‘Slice cabbage and peppers’, ‘Stir-fry protein until cooked’, ‘Add vegetables and aromatics’, ‘Season with soy sauce and sesame oil’, ‘Cook until cabbage is tender-crisp’], tags: [‘low-carb’, ‘asian’, ‘high-protein’] },
{ id: 48, name: ‘Baked Avocado Eggs’, emoji: ‘🥑’, gradient: ‘from-green-400 to-yellow-500’, calories: 280, protein: 14, carbs: 9, fats: 22, time: 20, servings: 2, category: ‘Breakfast’, difficulty: ‘Easy’, ingredients: [‘Avocados (2)’, ‘Eggs (4)’, ‘Bacon bits’, ‘Cheese’, ‘Chives’, ‘Salt’, ‘Pepper’], instructions: [‘Halve avocados and scoop out some flesh’, ‘Crack egg into each avocado half’, ‘Top with bacon and cheese’, ‘Bake at 425°F for 15 minutes’, ‘Garnish with chives’], tags: [‘low-carb’, ‘keto’, ‘high-protein’] },
// Low-Fat Meals
{ id: 49, name: ‘Grilled Chicken & Veggie Skewers’, emoji: ‘�串’, gradient: ‘from-yellow-400 to-green-500’, calories: 280, protein: 38, carbs: 18, fats: 6, time: 25, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Chicken breast’, ‘Bell peppers’, ‘Zucchini’, ‘Cherry tomatoes’, ‘Onion’, ‘Lemon’, ‘Herbs’], instructions: [‘Cut chicken and vegetables into chunks’, ‘Thread onto skewers alternating items’, ‘Season with herbs and lemon’, ‘Grill for 12-15 minutes, turning often’, ‘Serve with brown rice’], tags: [‘low-fat’, ‘high-protein’] },
{ id: 50, name: ‘Baked Tilapia & Broccoli’, emoji: ‘🐠’, gradient: ‘from-blue-300 to-green-400’, calories: 260, protein: 36, carbs: 16, fats: 5, time: 25, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Tilapia fillets’, ‘Broccoli’, ‘Lemon’, ‘Garlic’, ‘White wine’, ‘Herbs’, ‘Cooking spray’], instructions: [‘Spray baking dish with cooking spray’, ‘Place tilapia and broccoli in dish’, ‘Season with garlic, lemon, herbs’, ‘Add splash of white wine’, ‘Bake at 400°F for 20 minutes’], tags: [‘low-fat’, ‘high-protein’, ‘low-calorie’] },
{ id: 51, name: ‘Turkey Chili’, emoji: ‘🍲’, gradient: ‘from-red-400 to-orange-500’, calories: 320, protein: 32, carbs: 36, fats: 6, time: 35, servings: 4, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Ground turkey (99% lean)’, ‘Kidney beans’, ‘Black beans’, ‘Tomatoes’, ‘Onion’, ‘Chili powder’, ‘Cumin’], instructions: [‘Brown turkey in large pot’, ‘Add onions and cook until soft’, ‘Add all beans, tomatoes, spices’, ‘Simmer for 25 minutes’, ‘Serve with optional low-fat toppings’], tags: [‘low-fat’, ‘high-protein’, ‘high-fiber’] },
{ id: 52, name: ‘Egg White Frittata’, emoji: ‘🍳’, gradient: ‘from-yellow-300 to-green-400’, calories: 180, protein: 24, carbs: 10, fats: 4, time: 30, servings: 4, category: ‘Breakfast’, difficulty: ‘Medium’, ingredients: [‘Egg whites (12)’, ‘Spinach’, ‘Mushrooms’, ‘Tomatoes’, ‘Onion’, ‘Low-fat feta’, ‘Herbs’], instructions: [‘Sauté vegetables in oven-safe pan’, ‘Pour egg whites over vegetables’, ‘Cook on stove for 5 minutes’, ‘Transfer to oven at 375°F’, ‘Bake 15-20 minutes until set’], tags: [‘low-fat’, ‘high-protein’, ‘vegetarian’] },
{ id: 53, name: ‘Shrimp & Veggie Stir Fry’, emoji: ‘🦐’, gradient: ‘from-pink-300 to-green-400’, calories: 240, protein: 32, carbs: 22, fats: 4, time: 20, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Shrimp’, ‘Broccoli’, ‘Snow peas’, ‘Carrots’, ‘Ginger’, ‘Low-sodium soy sauce’, ‘Brown rice’], instructions: [‘Stir-fry shrimp in non-stick pan’, ‘Remove shrimp, add vegetables’, ‘Add ginger and soy sauce’, ‘Return shrimp to pan’, ‘Serve over brown rice’], tags: [‘low-fat’, ‘high-protein’] },
{ id: 54, name: ‘Lentil Soup’, emoji: ‘🥣’, gradient: ‘from-orange-400 to-red-500’, calories: 280, protein: 18, carbs: 48, fats: 3, time: 40, servings: 4, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Lentils’, ‘Carrots’, ‘Celery’, ‘Onion’, ‘Tomatoes’, ‘Vegetable broth’, ‘Cumin’, ‘Turmeric’], instructions: [‘Sauté vegetables in pot’, ‘Add lentils and broth’, ‘Season with spices’, ‘Simmer for 30 minutes’, ‘Blend partially for creamy texture’], tags: [‘low-fat’, ‘vegan’, ‘high-fiber’] },
{ id: 55, name: ‘Chicken & Rice Bowl’, emoji: ‘🍚’, gradient: ‘from-brown-300 to-green-400’, calories: 380, protein: 36, carbs: 48, fats: 6, time: 30, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Chicken breast’, ‘Brown rice’, ‘Steamed broccoli’, ‘Carrots’, ‘Low-sodium teriyaki’, ‘Garlic’, ‘Ginger’], instructions: [‘Cook brown rice’, ‘Grill or bake chicken breast’, ‘Steam vegetables’, ‘Slice chicken’, ‘Assemble bowl and drizzle with teriyaki’], tags: [‘low-fat’, ‘high-protein’] },
{ id: 56, name: ‘Tuna Salad Lettuce Wraps’, emoji: ‘🥬’, gradient: ‘from-green-400 to-blue-400’, calories: 220, protein: 28, carbs: 12, fats: 6, time: 10, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Canned tuna (in water)’, ‘Greek yogurt’, ‘Celery’, ‘Onion’, ‘Mustard’, ‘Lettuce leaves’, ‘Cherry tomatoes’], instructions: [‘Drain tuna well’, ‘Mix tuna with yogurt, celery, onion, mustard’, ‘Wash and dry lettuce leaves’, ‘Spoon tuna mixture into lettuce cups’, ‘Top with cherry tomatoes’], tags: [‘low-fat’, ‘high-protein’, ‘quick’] },
{ id: 57, name: ‘Veggie Omelette’, emoji: ‘🥚’, gradient: ‘from-yellow-400 to-red-500’, calories: 240, protein: 20, carbs: 12, fats: 12, time: 15, servings: 1, category: ‘Breakfast’, difficulty: ‘Easy’, ingredients: [‘Eggs (2 whole + 2 whites)’, ‘Spinach’, ‘Mushrooms’, ‘Tomatoes’, ‘Onion’, ‘Low-fat cheese’, ‘Herbs’], instructions: [‘Whisk eggs with herbs’, ‘Sauté vegetables in non-stick pan’, ‘Pour eggs over vegetables’, ‘Add cheese and fold omelette’, ‘Cook until set’], tags: [‘low-fat’, ‘vegetarian’, ‘high-protein’] },
{ id: 58, name: ‘Baked Chicken Breast’, emoji: ‘🍗’, gradient: ‘from-orange-300 to-yellow-400’, calories: 280, protein: 48, carbs: 4, fats: 6, time: 30, servings: 2, category: ‘Dinner’, difficulty: ‘Easy’, ingredients: [‘Chicken breast’, ‘Lemon’, ‘Rosemary’, ‘Garlic’, ‘Steamed vegetables’, ‘Low-sodium broth’], instructions: [‘Season chicken with herbs and garlic’, ‘Place in baking dish with lemon slices’, ‘Add a bit of broth to keep moist’, ‘Bake at 375°F for 25 minutes’, ‘Serve with steamed vegetables’], tags: [‘low-fat’, ‘high-protein’, ‘low-calorie’] },
{ id: 59, name: ‘Quinoa Veggie Bowl’, emoji: ‘🥙’, gradient: ‘from-green-500 to-yellow-500’, calories: 340, protein: 14, carbs: 52, fats: 8, time: 25, servings: 2, category: ‘Lunch’, difficulty: ‘Easy’, ingredients: [‘Quinoa’, ‘Chickpeas’, ‘Cucumber’, ‘Tomatoes’, ‘Red onion’, ‘Lemon juice’, ‘Herbs’], instructions: [‘Cook quinoa according to package’, ‘Dice all vegetables’, ‘Rinse and drain chickpeas’, ‘Combine all ingredients’, ‘Dress with lemon juice and herbs’], tags: [‘low-fat’, ‘vegan’, ‘high-fiber’] },
{ id: 60, name: ‘Turkey Meatball Marinara’, emoji: ‘🍝’, gradient: ‘from-red-500 to-orange-500’, calories: 320, protein: 38, carbs: 28, fats: 8, time: 35, servings: 3, category: ‘Dinner’, difficulty: ‘Medium’, ingredients: [‘Ground turkey (99% lean)’, ‘Egg white’, ‘Breadcrumbs’, ‘Marinara sauce’, ‘Italian herbs’, ‘Whole wheat pasta’, ‘Parmesan’], instructions: [‘Mix turkey with egg white, breadcrumbs, herbs’, ‘Form into meatballs’, ‘Bake at 400°F for 20 minutes’, ‘Heat marinara sauce’, ‘Serve over whole wheat pasta’], tags: [‘low-fat’, ‘high-protein’] }
];
const DAYS = [‘Mon’, ‘Tue’, ‘Wed’, ‘Thu’, ‘Fri’, ‘Sat’, ‘Sun’];
const MEALS = [‘Breakfast’, ‘Lunch’, ‘Dinner’];
const WORKOUT_CATEGORIES = [
{
id: ‘weightlifting’,
name: ‘Weightlifting’,
emoji: ‘🏋️’,
gradient: ‘from-blue-400 to-indigo-500’,
exercises: [
{ name: ‘Bench Press’, sets: 4, reps: 8 },
{ name: ‘Deadlifts’, sets: 4, reps: 6 },
{ name: ‘Squats’, sets: 4, reps: 10 },
{ name: ‘Overhead Press’, sets: 3, reps: 10 },
{ name: ‘Barbell Rows’, sets: 4, reps: 8 },
{ name: ‘Romanian Deadlifts’, sets: 3, reps: 12 },
{ name: ‘Lat Pulldowns’, sets: 3, reps: 12 },
{ name: ‘Leg Press’, sets: 4, reps: 12 },
{ name: ‘Bicep Curls’, sets: 3, reps: 12 },
{ name: ‘Tricep Extensions’, sets: 3, reps: 12 }
]
},
{
id: ‘calisthenics’,
name: ‘Calisthenics’,
emoji: ‘🤸’,
gradient: ‘from-green-400 to-emerald-500’,
exercises: [
{ name: ‘Push-ups’, sets: 3, reps: 15 },
{ name: ‘Pull-ups’, sets: 3, reps: 8 },
{ name: ‘Dips’, sets: 3, reps: 12 },
{ name: ‘Pistol Squats’, sets: 3, reps: 8 },
{ name: ‘Handstand Push-ups’, sets: 3, reps: 5 },
{ name: ‘Muscle-ups’, sets: 3, reps: 5 },
{ name: ‘L-sits’, sets: 3, reps: ‘30 sec’ },
{ name: ‘Planche Holds’, sets: 3, reps: ‘20 sec’ },
{ name: ‘Front Lever’, sets: 3, reps: ‘15 sec’ },
{ name: ‘Burpees’, sets: 3, reps: 15 }
]
},
{
id: ‘cardio’,
name: ‘Cardio’,
emoji: ‘🏃’,
gradient: ‘from-red-400 to-pink-500’,
exercises: [
{ name: ‘Running’, sets: 1, reps: ‘30 min’ },
{ name: ‘Jump Rope’, sets: 5, reps: ‘2 min’ },
{ name: ‘Cycling’, sets: 1, reps: ‘45 min’ },
{ name: ‘Rowing Machine’, sets: 1, reps: ‘20 min’ },
{ name: ‘Stair Climber’, sets: 1, reps: ‘15 min’ },
{ name: ‘High Knees’, sets: 4, reps: 30 },
{ name: ‘Mountain Climbers’, sets: 4, reps: 30 },
{ name: ‘Jumping Jacks’, sets: 4, reps: 40 },
{ name: ‘Box Jumps’, sets: 4, reps: 12 },
{ name: ‘Sprint Intervals’, sets: 8, reps: ‘30 sec’ }
]
},
{
id: ‘core’,
name: ‘Core & Abs’,
emoji: ‘🔥’,
gradient: ‘from-orange-400 to-red-500’,
exercises: [
{ name: ‘Plank’, sets: 3, reps: ‘60 sec’ },
{ name: ‘Crunches’, sets: 3, reps: 25 },
{ name: ‘Russian Twists’, sets: 3, reps: 40 },
{ name: ‘Leg Raises’, sets: 3, reps: 15 },
{ name: ‘Bicycle Crunches’, sets: 3, reps: 30 },
{ name: ‘V-ups’, sets: 3, reps: 15 },
{ name: ‘Mountain Climbers’, sets: 3, reps: 30 },
{ name: ‘Dead Bug’, sets: 3, reps: 20 },
{ name: ‘Hanging Knee Raises’, sets: 3, reps: 12 },
{ name: ‘Ab Wheel Rollouts’, sets: 3, reps: 10 }
]
},
{
id: ‘flexibility’,
name: ‘Flexibility & Yoga’,
emoji: ‘🧘’,
gradient: ‘from-purple-400 to-pink-400’,
exercises: [
{ name: ‘Downward Dog’, sets: 3, reps: ‘45 sec’ },
{ name: ‘Pigeon Pose’, sets: 3, reps: ‘60 sec’ },
{ name: ‘Child's Pose’, sets: 3, reps: ‘60 sec’ },
{ name: ‘Cat-Cow Stretch’, sets: 3, reps: 15 },
{ name: ‘Hamstring Stretch’, sets: 3, reps: ‘45 sec’ },
{ name: ‘Hip Flexor Stretch’, sets: 3, reps: ‘45 sec’ },
{ name: ‘Warrior Pose’, sets: 3, reps: ‘45 sec’ },
{ name: ‘Triangle Pose’, sets: 3, reps: ‘45 sec’ },
{ name: ‘Cobra Stretch’, sets: 3, reps: ‘30 sec’ },
{ name: ‘Spinal Twist’, sets: 3, reps: ‘45 sec’ }
]
},
{
id: ‘hiit’,
name: ‘HIIT’,
emoji: ‘⚡’,
gradient: ‘from-yellow-400 to-orange-500’,
exercises: [
{ name: ‘Burpees’, sets: 4, reps: 15 },
{ name: ‘Jump Squats’, sets: 4, reps: 20 },
{ name: ‘Plank Jacks’, sets: 4, reps: 20 },
{ name: ‘Tuck Jumps’, sets: 4, reps: 15 },
{ name: ‘Battle Ropes’, sets: 4, reps: ‘30 sec’ },
{ name: ‘Kettlebell Swings’, sets: 4, reps: 20 },
{ name: ‘Box Jumps’, sets: 4, reps: 15 },
{ name: ‘Speed Skaters’, sets: 4, reps: 20 },
{ name: ‘Medicine Ball Slams’, sets: 4, reps: 15 },
{ name: ‘Sprint in Place’, sets: 4, reps: ‘30 sec’ }
]
}
];
export default function CalorieFitMobileApp() {
const [currentView, setCurrentView] = useState(‘home’);
const [selectedRecipe, setSelectedRecipe] = useState(null);
const [favorites, setFavorites] = useState([]);
const [mealPlan, setMealPlan] = useState({});
const [tdeeResults, setTdeeResults] = useState(null);
const [unit, setUnit] = useState(‘metric’);
const [searchTerm, setSearchTerm] = useState(’’);
const [selectedDay, setSelectedDay] = useState(‘Mon’);
const [messages, setMessages] = useState([]);
const [isLoading, setIsLoading] = useState(false);
const [selectedWorkout, setSelectedWorkout] = useState(null);
const [completedWorkouts, setCompletedWorkouts] = useState([]);
const [selectedCategory, setSelectedCategory] = useState(null);
const [showMealSelector, setShowMealSelector] = useState(null);
const [isGeneratingMeals, setIsGeneratingMeals] = useState(false);
const [showAIRecipeGenerator, setShowAIRecipeGenerator] = useState(false);
const [aiRecipePrompt, setAiRecipePrompt] = useState(’’);
const [isGeneratingRecipe, setIsGeneratingRecipe] = useState(false);
const [customRecipes, setCustomRecipes] = useState([]);
const [animateIn, setAnimateIn] = useState(false);
const [darkMode, setDarkMode] = useState(false);
const [showMenu, setShowMenu] = useState(false);
// New social features state
const [userProfile, setUserProfile] = useState(null);
const [friends, setFriends] = useState([]);
const [friendRequests, setFriendRequests] = useState([]);
const [chatMessages, setChatMessages] = useState({});
const [selectedFriend, setSelectedFriend] = useState(null);
const [showProfileSetup, setShowProfileSetup] = useState(false);
const [searchUsers, setSearchUsers] = useState(’’);
const [allUsers, setAllUsers] = useState([
{ id: ‘user1’, username: ‘FitJohn’, name: ‘John Smith’, avatar: ‘💪’, status: ‘Crushing my goals!’, workouts: 45, calories: 2200 },
{ id: ‘user2’, username: ‘HealthyEmma’, name: ‘Emma Wilson’, avatar: ‘🏃♀️’, status: ‘Marathon training’, workouts: 62, calories: 1800 },
{ id: ‘user3’, username: ‘GymRat_Mike’, name: ‘Mike Johnson’, avatar: ‘🏋️’, status: ‘Leg day best day’, workouts: 88, calories: 2800 },
{ id: ‘user4’, username: ‘YogaSarah’, name: ‘Sarah Lee’, avatar: ‘🧘♀️’, status: ‘Finding balance’, workouts: 34, calories: 1600 },
{ id: ‘user5’, username: ‘CardioKing’, name: ‘David Chen’, avatar: ‘🚴’, status: ‘Run, bike, repeat’, workouts: 71, calories: 2400 }
]);
useEffect(() => {
setAnimateIn(true);
const savedFavorites = localStorage.getItem(‘favoriteRecipes’);
const savedMealPlan = localStorage.getItem(‘mealPlan’);
const savedTdee = localStorage.getItem(‘tdeeData’);
const savedMessages = localStorage.getItem(‘coachMessages’);
const savedWorkouts = localStorage.getItem(‘completedWorkouts’);
const savedCustomRecipes = localStorage.getItem(‘customRecipes’);
const savedProfile = localStorage.getItem(‘userProfile’);
const savedFriends = localStorage.getItem(‘friends’);
const savedChatMessages = localStorage.getItem(‘chatMessages’);
const savedFriendRequests = localStorage.getItem(‘friendRequests’);
const savedDarkMode = localStorage.getItem(‘darkMode’);
```
if (savedFavorites) setFavorites(JSON.parse(savedFavorites));
if (savedMealPlan) setMealPlan(JSON.parse(savedMealPlan));
if (savedMessages) setMessages(JSON.parse(savedMessages));
if (savedWorkouts) setCompletedWorkouts(JSON.parse(savedWorkouts));
if (savedCustomRecipes) setCustomRecipes(JSON.parse(savedCustomRecipes));
if (savedFriends) setFriends(JSON.parse(savedFriends));
if (savedChatMessages) setChatMessages(JSON.parse(savedChatMessages));
if (savedFriendRequests) setFriendRequests(JSON.parse(savedFriendRequests));
if (savedDarkMode) setDarkMode(JSON.parse(savedDarkMode));
if (savedTdee) {
const data = JSON.parse(savedTdee);
setTdeeResults(data.results);
setUnit(data.unit || 'metric');
}
if (savedProfile) {
setUserProfile(JSON.parse(savedProfile));
}
// Don't force profile setup on first load - let users explore the app first
```
}, []);
useEffect(() => {
setAnimateIn(false);
setTimeout(() => setAnimateIn(true), 50);
}, [currentView]);
const toggleFavorite = (recipeId) => {
const newFavorites = favorites.includes(recipeId) ? favorites.filter(id => id !== recipeId) : […favorites, recipeId];
setFavorites(newFavorites);
localStorage.setItem(‘favoriteRecipes’, JSON.stringify(newFavorites));
};
const sendFriendRequest = (userId) => {
if (!friends.find(f => f.id === userId) && !friendRequests.find(r => r.id === userId)) {
const user = allUsers.find(u => u.id === userId);
const newRequests = […friendRequests, { …user, status: ‘pending’ }];
setFriendRequests(newRequests);
localStorage.setItem(‘friendRequests’, JSON.stringify(newRequests));
}
};
const acceptFriendRequest = (userId) => {
const user = friendRequests.find(r => r.id === userId);
if (user) {
const newFriends = […friends, user];
const newRequests = friendRequests.filter(r => r.id !== userId);
setFriends(newFriends);
setFriendRequests(newRequests);
localStorage.setItem(‘friends’, JSON.stringify(newFriends));
localStorage.setItem(‘friendRequests’, JSON.stringify(newRequests));
```
// Initialize empty chat for new friend
const newChats = { ...chatMessages, [userId]: [] };
setChatMessages(newChats);
localStorage.setItem('chatMessages', JSON.stringify(newChats));
}
```
};
const rejectFriendRequest = (userId) => {
const newRequests = friendRequests.filter(r => r.id !== userId);
setFriendRequests(newRequests);
localStorage.setItem(‘friendRequests’, JSON.stringify(newRequests));
};
const sendChatMessage = (friendId, message) => {
const timestamp = new Date().toISOString();
const newMessage = {
id: Date.now(),
text: message,
sender: ‘me’,
timestamp
};
```
const updatedChats = {
...chatMessages,
[friendId]: [...(chatMessages[friendId] || []), newMessage]
};
setChatMessages(updatedChats);
localStorage.setItem('chatMessages', JSON.stringify(updatedChats));
// Simulate friend response after 2 seconds
setTimeout(() => {
const responses = [
"That's awesome! Keep it up! 💪",
"Great job! You're crushing it!",
"Nice work! Let's stay motivated together!",
"That's inspiring! 🔥",
"Amazing progress! Keep going!"
];
const friendResponse = {
id: Date.now() + 1,
text: responses[Math.floor(Math.random() * responses.length)],
sender: 'friend',
timestamp: new Date().toISOString()
};
const updatedChatsWithResponse = {
...updatedChats,
[friendId]: [...updatedChats[friendId], friendResponse]
};
setChatMessages(updatedChatsWithResponse);
localStorage.setItem('chatMessages', JSON.stringify(updatedChatsWithResponse));
}, 2000);
```
};
const createProfile = (profileData) => {
console.log(’=== CREATE PROFILE CALLED ===’);
console.log(‘Profile data received:’, profileData);
```
if (!profileData.name || !profileData.username) {
console.error('Validation failed - missing required fields');
alert('Please fill in all required fields (Name and Username)');
return;
}
const newProfile = {
...profileData,
id: 'me',
createdAt: new Date().toISOString()
};
console.log('New profile object created:', newProfile);
try {
// Save to state
setUserProfile(newProfile);
console.log('setUserProfile called');
// Save to localStorage
localStorage.setItem('userProfile', JSON.stringify(newProfile));
console.log('localStorage saved');
// Verify localStorage
const saved = localStorage.getItem('userProfile');
console.log('Verification - localStorage contains:', saved);
// Close modal
setShowProfileSetup(false);
console.log('Modal closed');
// Force re-render and show success
setTimeout(() => {
console.log('Current userProfile state:', userProfile);
alert('✅ Profile created successfully!\n\nRefresh if you don\'t see it.');
// Force page to recognize the profile
window.location.hash = '#profile-created';
}, 200);
} catch (error) {
console.error('Error creating profile:', error);
alert('Error creating profile. Check console for details.');
}
```
};
const toggleDarkMode = () => {
const newMode = !darkMode;
setDarkMode(newMode);
localStorage.setItem(‘darkMode’, JSON.stringify(newMode));
};
const completeWorkout = (workoutId) => {
const today = new Date().toISOString().split(‘T’)[0];
const newCompleted = […completedWorkouts, { workoutId, date: today }];
setCompletedWorkouts(newCompleted);
localStorage.setItem(‘completedWorkouts’, JSON.stringify(newCompleted));
setSelectedWorkout(null);
setSelectedCategory(null);
};
const generateAIMealPlan = async () => {
if (isGeneratingMeals) return;
```
setIsGeneratingMeals(true);
try {
const calorieTarget = tdeeResults?.calorieGoal || 2000;
const proteinTarget = tdeeResults?.macros?.protein || 150;
const response = await fetch('https://api.anthropic.com/v1/messages', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'claude-sonnet-4-20250514',
max_tokens: 1000,
messages: [
{
role: 'user',
content: `Generate 3 meal suggestions (breakfast, lunch, dinner) for a ${calorieTarget} calorie day. Each meal should include the name, approximate calories, protein, carbs, and fats. Target ${proteinTarget}g protein total. Return ONLY valid JSON in this exact format with no markdown or preamble:
```
{
“Breakfast”: {“name”: “…”, “calories”: 0, “protein”: 0, “carbs”: 0, “fats”: 0},
“Lunch”: {“name”: “…”, “calories”: 0, “protein”: 0, “carbs”: 0, “fats”: 0},
“Dinner”: {“name”: “…”, “calories”: 0, “protein”: 0, “carbs”: 0, “fats”: 0}
}`
}
]
})
});
```
const data = await response.json();
const content = data.content[0].text.trim();
const cleanedContent = content.replace(/```json\n?|\n?```/g, '').trim();
const meals = JSON.parse(cleanedContent);
const updated = { ...mealPlan };
Object.keys(meals).forEach((mealType) => {
const key = `${selectedDay}-${mealType}`;
updated[key] = {
...meals[mealType],
id: `ai-${Date.now()}-${mealType}`,
emoji: mealType === 'Breakfast' ? '🍳' : mealType === 'Lunch' ? '🥗' : '🍽️',
gradient: mealType === 'Breakfast' ? 'from-yellow-400 to-orange-400' : mealType === 'Lunch' ? 'from-green-400 to-emerald-400' : 'from-purple-400 to-pink-400',
time: 20,
servings: 1,
category: mealType,
difficulty: 'Medium',
ingredients: ['AI-generated meal - ingredients not listed'],
instructions: ['AI-generated meal - follow standard preparation'],
tags: ['ai-generated']
};
});
setMealPlan(updated);
localStorage.setItem('mealPlan', JSON.stringify(updated));
} catch (error) {
console.error('Error generating meals:', error);
alert('Failed to generate meal plan. Please try again.');
} finally {
setIsGeneratingMeals(false);
}
```
};
const HamburgerMenu = () => (
<>
{/* Enhanced Hamburger Button - Fixed top right */}
<button
onClick={() => setShowMenu(!showMenu)}
className={`fixed top-6 right-6 z-50 p-4 rounded-2xl shadow-2xl transition-all duration-300 hover:scale-110 active:scale-95 ${ showMenu ? 'bg-gradient-to-br from-teal-500 to-cyan-500 rotate-90 scale-110' : darkMode ? 'bg-gradient-to-br from-slate-800 to-slate-700 border-2 border-slate-600 hover:border-slate-500' : 'bg-gradient-to-br from-white to-slate-50 border-2 border-slate-200 hover:border-slate-300 hover:shadow-xl' }`}
>
{showMenu ? (
<X className="w-7 h-7 text-white" />
) : (
<div className="relative">
<svg className={`w-7 h-7 ${darkMode ? 'text-white' : 'text-slate-800'}`} fill=“none” stroke=“currentColor” viewBox=“0 0 24 24”>
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M4 6h16M4 12h16M4 18h16" />
</svg>
{/* Pulse indicator */}
<div className="absolute -top-1 -right-1 w-3 h-3 bg-gradient-to-br from-teal-500 to-cyan-500 rounded-full animate-pulse" />
</div>
)}
</button>
```
{/* Slide-out Menu */}
{showMenu && (
<div
className="fixed inset-0 z-40"
onClick={() => setShowMenu(false)}
>
{/* Backdrop */}
<div className="absolute inset-0 bg-black/60 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]" />
{/* Menu Panel */}
<div
className={`absolute top-0 right-0 h-full w-80 shadow-2xl overflow-y-auto animate-[slideInRight_0.3s_ease-out] ${
darkMode ? 'bg-slate-900' : 'bg-white'
}`}
onClick={(e) => e.stopPropagation()}
>
<div className="p-6 pt-20">
{/* Header */}
<div className="mb-8">
<h2 className={`text-3xl font-black mb-2 bg-gradient-to-r from-teal-600 to-cyan-600 bg-clip-text text-transparent`}>
Menu
</h2>
<p className={`text-sm ${darkMode ? 'text-slate-400' : 'text-slate-500'}`}>
Navigate to any section
</p>
</div>
{/* Main Navigation */}
<div className="space-y-2 mb-8">
<p className={`text-xs font-bold uppercase tracking-wider mb-3 ${darkMode ? 'text-slate-500' : 'text-slate-400'}`}>
Main
</p>
{[
{ view: 'home', icon: Home, label: 'Home', desc: 'Dashboard', gradient: 'from-teal-500 to-cyan-500', emoji: '🏠' },
{ view: 'workouts', icon: Dumbbell, label: 'Workouts', desc: 'Training programs', gradient: 'from-orange-500 to-red-500', emoji: '💪' },
{ view: 'recipes', icon: UtensilsCrossed, label: 'Recipes', desc: '60+ meals', gradient: 'from-green-500 to-emerald-500', emoji: '🍽️' },
{ view: 'mealplan', icon: Calendar, label: 'Meal Plan', desc: 'Weekly planner', gradient: 'from-purple-500 to-pink-500', emoji: '📅' },
].map(item => (
<button
key={item.view}
onClick={() => {
setCurrentView(item.view);
setShowMenu(false);
}}
className={`w-full p-4 rounded-xl flex items-center gap-4 transition-all duration-300 group relative overflow-hidden ${
currentView === item.view
? `bg-gradient-to-r ${item.gradient} text-white shadow-xl scale-105`
: darkMode
? 'hover:bg-slate-800 text-slate-300 hover:shadow-lg hover:scale-105 hover:-translate-x-1'
: 'hover:bg-slate-50 text-slate-700 hover:shadow-lg hover:scale-105 hover:-translate-x-1'
}`}
>
{/* Shimmer effect on hover */}
{currentView !== item.view && (
<div className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 shimmer pointer-events-none" />
)}
<div className={`w-12 h-12 rounded-xl flex items-center justify-center text-2xl transition-all duration-300 relative z-10 ${
currentView === item.view
? 'bg-white/20 scale-110'
: darkMode
? 'bg-slate-800 group-hover:scale-125 group-hover:rotate-12'
: 'bg-slate-100 group-hover:scale-125 group-hover:rotate-12'
}`}>
{item.emoji}
</div>
<div className="flex-1 text-left relative z-10">
<p className={`font-bold transition-all duration-300 ${currentView !== item.view && 'group-hover:translate-x-1'}`}>{item.label}</p>
<p className={`text-xs transition-all duration-300 ${
currentView === item.view
? 'text-white/80'
: darkMode
? 'text-slate-500 group-hover:text-slate-400'
: 'text-slate-500 group-hover:text-slate-600'
} ${currentView !== item.view && 'group-hover:translate-x-1'}`}>
{item.desc}
</p>
</div>
{currentView === item.view ? (
<CheckCircle className="w-5 h-5 animate-pulse relative z-10" />
) : (
<ChevronRight className={`w-5 h-5 opacity-0 group-hover:opacity-100 transition-all duration-300 group-hover:translate-x-1 relative z-10 ${
darkMode ? 'text-slate-400' : 'text-slate-500'
}`} />
)}
</button>
))}
</div>
{/* Tools */}
<div className="space-y-2 mb-8">
<p className={`text-xs font-bold uppercase tracking-wider mb-3 ${darkMode ? 'text-slate-500' : 'text-slate-400'}`}>
Tools
</p>
{[
{ view: 'calculator', icon: Calculator, label: 'TDEE Calculator', desc: 'Calculate goals', gradient: 'from-blue-500 to-indigo-500', emoji: '🧮' },
{ view: 'coach', icon: MessageCircle, label: 'AI Coach', desc: 'Ask questions', gradient: 'from-indigo-500 to-purple-500', emoji: '🤖' },
].map(item => (
<button
key={item.view}
onClick={() => {
setCurrentView(item.view);
setShowMenu(false);
}}
className={`w-full p-4 rounded-xl flex items-center gap-4 transition-all duration-300 group relative overflow-hidden ${
currentView === item.view
? `bg-gradient-to-r ${item.gradient} text-white shadow-xl scale-105`
: darkMode
? 'hover:bg-slate-800 text-slate-300 hover:shadow-lg hover:scale-105 hover:-translate-x-1'
: 'hover:bg-slate-50 text-slate-700 hover:shadow-lg hover:scale-105 hover:-translate-x-1'
}`}
>
{/* Shimmer effect on hover */}
{currentView !== item.view && (
<div className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 shimmer pointer-events-none" />
)}
<div className={`w-12 h-12 rounded-xl flex items-center justify-center text-2xl transition-all duration-300 relative z-10 ${
currentView === item.view
? 'bg-white/20 scale-110'
: darkMode
? 'bg-slate-800 group-hover:scale-125 group-hover:rotate-12'
: 'bg-slate-100 group-hover:scale-125 group-hover:rotate-12'
}`}>
{item.emoji}
</div>
<div className="flex-1 text-left relative z-10">
<p className={`font-bold transition-all duration-300 ${currentView !== item.view && 'group-hover:translate-x-1'}`}>{item.label}</p>
<p className={`text-xs transition-all duration-300 ${
currentView === item.view
? 'text-white/80'
: darkMode
? 'text-slate-500 group-hover:text-slate-400'
: 'text-slate-500 group-hover:text-slate-600'
} ${currentView !== item.view && 'group-hover:translate-x-1'}`}>
{item.desc}
</p>
</div>
{currentView === item.view ? (
<CheckCircle className="w-5 h-5 animate-pulse relative z-10" />
) : (
<ChevronRight className={`w-5 h-5 opacity-0 group-hover:opacity-100 transition-all duration-300 group-hover:translate-x-1 relative z-10 ${
darkMode ? 'text-slate-400' : 'text-slate-500'
}`} />
)}
</button>
))}
</div>
{/* Social */}
<div className="space-y-2 mb-8">
<p className={`text-xs font-bold uppercase tracking-wider mb-3 ${darkMode ? 'text-slate-500' : 'text-slate-400'}`}>
Social
</p>
<button
onClick={() => {
setCurrentView('social');
setShowMenu(false);
}}
className={`w-full p-4 rounded-xl flex items-center gap-4 transition-all duration-300 group relative overflow-hidden ${
currentView === 'social'
? 'bg-gradient-to-r from-pink-500 to-rose-500 text-white shadow-xl scale-105'
: darkMode
? 'hover:bg-slate-800 text-slate-300 hover:shadow-lg hover:scale-105 hover:-translate-x-1'
: 'hover:bg-slate-50 text-slate-700 hover:shadow-lg hover:scale-105 hover:-translate-x-1'
}`}
>
{/* Shimmer effect */}
{currentView !== 'social' && (
<div className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 shimmer pointer-events-none" />
)}
<div className={`w-12 h-12 rounded-xl flex items-center justify-center relative text-2xl transition-all duration-300 z-10 ${
currentView === 'social'
? 'bg-white/20 scale-110'
: darkMode
? 'bg-slate-800 group-hover:scale-125 group-hover:rotate-12'
: 'bg-slate-100 group-hover:scale-125 group-hover:rotate-12'
}`}>
👥
{friendRequests.length > 0 && (
<div className="absolute -top-1 -right-1 w-6 h-6 bg-red-500 rounded-full flex items-center justify-center border-2 border-white animate-pulse">
<span className="text-white text-xs font-bold">{friendRequests.length}</span>
</div>
)}
</div>
<div className="flex-1 text-left relative z-10">
<p className={`font-bold transition-all duration-300 ${currentView !== 'social' && 'group-hover:translate-x-1'}`}>Social</p>
<p className={`text-xs transition-all duration-300 ${
currentView === 'social'
? 'text-white/80'
: darkMode
? 'text-slate-500 group-hover:text-slate-400'
: 'text-slate-500 group-hover:text-slate-600'
} ${currentView !== 'social' && 'group-hover:translate-x-1'}`}>
Friends & chat
</p>
</div>
{currentView === 'social' ? (
<CheckCircle className="w-5 h-5 animate-pulse relative z-10" />
) : (
<ChevronRight className={`w-5 h-5 opacity-0 group-hover:opacity-100 transition-all duration-300 group-hover:translate-x-1 relative z-10 ${
darkMode ? 'text-slate-400' : 'text-slate-500'
}`} />
)}
</button>
<button
onClick={() => {
setCurrentView('profile');
setShowMenu(false);
}}
className={`w-full p-4 rounded-xl flex items-center gap-4 transition-all duration-300 group relative overflow-hidden ${
currentView === 'profile'
? 'bg-gradient-to-r from-amber-500 to-orange-500 text-white shadow-xl scale-105'
: darkMode
? 'hover:bg-slate-800 text-slate-300 hover:shadow-lg hover:scale-105 hover:-translate-x-1'
: 'hover:bg-slate-50 text-slate-700 hover:shadow-lg hover:scale-105 hover:-translate-x-1'
}`}
>
{/* Shimmer effect */}
{currentView !== 'profile' && (
<div className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 shimmer pointer-events-none" />
)}
<div className={`w-12 h-12 rounded-xl flex items-center justify-center text-2xl transition-all duration-300 relative z-10 ${
currentView === 'profile'
? 'bg-white/20 scale-110'
: darkMode
? 'bg-slate-800 group-hover:scale-125 group-hover:rotate-12'
: 'bg-slate-100 group-hover:scale-125 group-hover:rotate-12'
}`}>
👤
</div>
<div className="flex-1 text-left relative z-10">
<p className={`font-bold transition-all duration-300 ${currentView !== 'profile' && 'group-hover:translate-x-1'}`}>Profile</p>
<p className={`text-xs transition-all duration-300 ${
currentView === 'profile'
? 'text-white/80'
: darkMode
? 'text-slate-500 group-hover:text-slate-400'
: 'text-slate-500 group-hover:text-slate-600'
} ${currentView !== 'profile' && 'group-hover:translate-x-1'}`}>
Settings & stats
</p>
</div>
{currentView === 'profile' ? (
<CheckCircle className="w-5 h-5 animate-pulse relative z-10" />
) : (
<ChevronRight className={`w-5 h-5 opacity-0 group-hover:opacity-100 transition-all duration-300 group-hover:translate-x-1 relative z-10 ${
darkMode ? 'text-slate-400' : 'text-slate-500'
}`} />
)}
</button>
</div>
{/* Quick Settings */}
<div className="space-y-2">
<p className={`text-xs font-bold uppercase tracking-wider mb-3 ${darkMode ? 'text-slate-500' : 'text-slate-400'}`}>
Quick Settings
</p>
<button
onClick={() => {
toggleDarkMode();
}}
className={`w-full p-4 rounded-xl flex items-center gap-4 transition-all duration-300 group hover:scale-105 hover:-translate-x-1 hover:shadow-lg ${
darkMode
? 'hover:bg-slate-800 text-slate-300'
: 'hover:bg-slate-50 text-slate-700'
}`}
>
<div className={`w-12 h-12 rounded-xl flex items-center justify-center transition-all duration-300 group-hover:scale-125 ${
darkMode ? 'bg-slate-800 group-hover:rotate-12' : 'bg-slate-100 group-hover:rotate-12'
}`}>
{darkMode ? (
<Sun className="w-6 h-6 text-yellow-400 group-hover:rotate-180 transition-transform duration-500" />
) : (
<Moon className="w-6 h-6 text-indigo-500 group-hover:rotate-12 transition-transform duration-300" />
)}
</div>
<div className="flex-1 text-left">
<p className={`font-bold transition-all duration-300 group-hover:translate-x-1`}>{darkMode ? 'Light Mode' : 'Dark Mode'}</p>
<p className={`text-xs transition-all duration-300 group-hover:translate-x-1 ${darkMode ? 'text-slate-500 group-hover:text-slate-400' : 'text-slate-500 group-hover:text-slate-600'}`}>
Toggle theme
</p>
</div>
<div className={`w-14 h-7 rounded-full transition-all duration-300 ${darkMode ? 'bg-teal-600' : 'bg-slate-300'}`}>
<div className={`w-6 h-6 rounded-full bg-white shadow-lg transform transition-all duration-300 mt-0.5 ${
darkMode ? 'translate-x-7 ml-1' : 'translate-x-0.5'
}`} />
</div>
</button>
</div>
{/* App Info */}
<div className={`mt-8 p-4 rounded-xl border-2 ${darkMode ? 'bg-slate-800/50 border-slate-700' : 'bg-slate-50 border-slate-200'}`}>
<div className="flex items-center gap-3 mb-2">
<div className="w-10 h-10 rounded-lg bg-gradient-to-br from-teal-500 to-cyan-500 flex items-center justify-center">
<Zap className="w-6 h-6 text-white" />
</div>
<div>
<p className={`font-bold ${darkMode ? 'text-slate-200' : 'text-slate-800'}`}>CalorieFit</p>
<p className={`text-xs ${darkMode ? 'text-slate-500' : 'text-slate-400'}`}>Version 1.0</p>
</div>
</div>
<p className={`text-xs ${darkMode ? 'text-slate-400' : 'text-slate-500'}`}>
Your AI-powered fitness companion
</p>
</div>
</div>
</div>
</div>
)}
</>
```
);
const HomeView = () => {
const getGreeting = () => {
const hour = new Date().getHours();
if (hour < 12) return { text: ‘Good Morning’, icon: Sun, color: ‘text-orange-400’ };
if (hour < 18) return { text: ‘Good Afternoon’, icon: Sun, color: ‘text-yellow-400’ };
return { text: ‘Good Evening’, icon: Moon, color: ‘text-indigo-400’ };
};
```
const greeting = getGreeting();
const GreetingIcon = greeting.icon;
return (
<div className={`pb-6 min-h-screen transition-all duration-500 ${animateIn ? 'opacity-100' : 'opacity-0'} ${darkMode ? 'bg-gradient-to-b from-slate-900 to-slate-800' : 'bg-gradient-to-b from-slate-50 to-white'}`}>
{/* Hero Header with Gradient */}
<div className={`relative px-6 pt-14 pb-12 overflow-hidden ${darkMode ? 'bg-gradient-to-br from-teal-700 via-teal-800 to-cyan-900' : 'bg-gradient-to-br from-teal-500 via-teal-600 to-cyan-600'}`}>
{/* Decorative circles */}
<div className="absolute top-0 right-0 w-40 h-40 bg-white/10 rounded-full blur-3xl" />
<div className="absolute bottom-0 left-0 w-32 h-32 bg-white/10 rounded-full blur-2xl" />
<div className="relative z-10">
<div className="flex items-center justify-between mb-3">
<div className="flex items-center gap-2">
<GreetingIcon className={`w-6 h-6 ${greeting.color}`} />
<p className="text-teal-100 font-medium">{greeting.text}</p>
</div>
<button
onClick={toggleDarkMode}
className="p-2 bg-white/20 hover:bg-white/30 rounded-xl transition-all duration-300"
>
{darkMode ? <Sun className="w-5 h-5 text-yellow-300" /> : <Moon className="w-5 h-5 text-slate-700" />}
</button>
</div>
<h1 className="text-4xl font-bold text-white mb-2 tracking-tight">CalorieFit</h1>
<p className="text-teal-100 text-sm">Let's crush your goals today 💪</p>
</div>
</div>
{/* Stats Card */}
{tdeeResults && (
<div className={`px-6 -mt-8 mb-6 transition-all duration-700 ${animateIn ? 'translate-y-0 opacity-100' : 'translate-y-4 opacity-0'}`}>
<div className="bg-white rounded-3xl shadow-xl p-6 border border-slate-100">
<div className="flex items-center justify-between mb-4">
<div className="flex items-center gap-2">
<div className="w-10 h-10 rounded-xl bg-gradient-to-br from-teal-400 to-cyan-500 flex items-center justify-center">
<Target className="w-5 h-5 text-white" />
</div>
<div>
<p className="text-xs text-slate-500 font-medium">Daily Target</p>
<p className="text-sm text-slate-400">Stay on track</p>
</div>
</div>
<Award className="w-8 h-8 text-amber-400" />
</div>
<div className="flex items-baseline gap-2 mb-4">
<span className="text-5xl font-bold bg-gradient-to-r from-teal-600 to-cyan-600 bg-clip-text text-transparent">
{tdeeResults.calorieGoal}
</span>
<span className="text-slate-400 text-lg">cal</span>
</div>
{/* Macro rings */}
<div className="grid grid-cols-3 gap-3">
<div className="text-center p-3 rounded-2xl bg-blue-50">
<div className="w-12 h-12 mx-auto mb-2 relative">
<svg className="w-full h-full transform -rotate-90">
<circle cx="24" cy="24" r="20" stroke="#dbeafe" strokeWidth="4" fill="none" />
<circle cx="24" cy="24" r="20" stroke="#3b82f6" strokeWidth="4" fill="none"
strokeDasharray={`${(tdeeResults.macros.protein / 200) * 125} 125`} />
</svg>
<div className="absolute inset-0 flex items-center justify-center">
<Zap className="w-5 h-5 text-blue-500" />
</div>
</div>
<p className="text-xs text-slate-500 mb-1">Protein</p>
<p className="text-sm font-bold text-slate-800">{tdeeResults.macros.protein}g</p>
</div>
<div className="text-center p-3 rounded-2xl bg-green-50">
<div className="w-12 h-12 mx-auto mb-2 relative">
<svg className="w-full h-full transform -rotate-90">
<circle cx="24" cy="24" r="20" stroke="#dcfce7" strokeWidth="4" fill="none" />
<circle cx="24" cy="24" r="20" stroke="#22c55e" strokeWidth="4" fill="none"
strokeDasharray={`${(tdeeResults.macros.carbs / 300) * 125} 125`} />
</svg>
<div className="absolute inset-0 flex items-center justify-center">
<Coffee className="w-5 h-5 text-green-500" />
</div>
</div>
<p className="text-xs text-slate-500 mb-1">Carbs</p>
<p className="text-sm font-bold text-slate-800">{tdeeResults.macros.carbs}g</p>
</div>
<div className="text-center p-3 rounded-2xl bg-amber-50">
<div className="w-12 h-12 mx-auto mb-2 relative">
<svg className="w-full h-full transform -rotate-90">
<circle cx="24" cy="24" r="20" stroke="#fef3c7" strokeWidth="4" fill="none" />
<circle cx="24" cy="24" r="20" stroke="#f59e0b" strokeWidth="4" fill="none"
strokeDasharray={`${(tdeeResults.macros.fats / 100) * 125} 125`} />
</svg>
<div className="absolute inset-0 flex items-center justify-center">
<Droplets className="w-5 h-5 text-amber-500" />
</div>
</div>
<p className="text-xs text-slate-500 mb-1">Fats</p>
<p className="text-sm font-bold text-slate-800">{tdeeResults.macros.fats}g</p>
</div>
</div>
</div>
</div>
)}
{/* Quick Actions */}
<div className="px-6 space-y-3">
<div className="flex items-center justify-between mb-4">
<h2 className={`font-bold text-lg ${darkMode ? 'text-slate-200' : 'text-slate-800'}`}>Quick Access</h2>
<p className={`text-xs ${darkMode ? 'text-slate-500' : 'text-slate-400'}`}>Tap menu for more</p>
</div>
{[
{ view: 'workouts', icon: Dumbbell, title: 'Start Workout', desc: 'Browse programs', gradient: 'from-orange-500 to-red-500', delay: '0s' },
{ view: 'coach', icon: MessageCircle, title: 'AI Coach', desc: 'Ask anything', gradient: 'from-indigo-500 to-purple-500', delay: '0.1s' }
].map((action, idx) => (
<button
key={action.view}
onClick={() => setCurrentView(action.view)}
className={`w-full group rounded-2xl p-5 flex items-center justify-between shadow-sm hover:shadow-2xl transition-all duration-300 border relative overflow-hidden hover-lift ${
darkMode
? 'bg-slate-800 border-slate-700 hover:border-slate-600'
: 'bg-white border-slate-100 hover:border-slate-200'
} ${animateIn ? 'translate-x-0 opacity-100' : 'translate-x-4 opacity-0'}`}
style={{
transitionDelay: animateIn ? action.delay : '0s'
}}
>
{/* Hover shimmer effect */}
<div className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 shimmer pointer-events-none" />
<div className="flex items-center gap-4 relative z-10">
<div className={`w-14 h-14 bg-gradient-to-br ${action.gradient} rounded-2xl flex items-center justify-center shadow-lg transition-all duration-300 group-hover:scale-110 group-hover:rotate-3`}>
<action.icon className="w-7 h-7 text-white group-hover:scale-110 transition-transform duration-300" />
</div>
<div className="text-left">
<p className={`font-bold text-lg transition-colors duration-300 ${darkMode ? 'text-slate-200 group-hover:text-white' : 'text-slate-800 group-hover:text-slate-900'}`}>{action.title}</p>
<p className={`text-sm transition-colors duration-300 ${darkMode ? 'text-slate-400 group-hover:text-slate-300' : 'text-slate-500 group-hover:text-slate-600'}`}>{action.desc}</p>
</div>
</div>
<div className={`w-10 h-10 rounded-xl flex items-center justify-center transition-all duration-300 group-hover:bg-gradient-to-br group-hover:${action.gradient} ${
darkMode ? 'bg-slate-700/50 group-hover:scale-110' : 'bg-slate-50 group-hover:scale-110'
}`}>
<ChevronRight className={`w-6 h-6 transition-all duration-300 group-hover:translate-x-1 group-hover:text-white ${darkMode ? 'text-slate-400' : 'text-slate-500'}`} />
</div>
</button>
))}
</div>
{/* Motivational Quote */}