File size: 63,055 Bytes
ac19629 | 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 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 | <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MyFitCoach - Programme de Musculation Personnalisé</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.muscle-group:hover {
transform: scale(1.05);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.active-muscle {
border: 3px solid #3b82f6;
background-color: #eff6ff;
}
.calendar-day {
transition: all 0.2s ease;
}
.calendar-day:hover {
background-color: #f3f4f6;
}
.workout-day {
background-color: #dbeafe;
}
.performance-chart {
height: 300px;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="container mx-auto px-4 py-8 max-w-6xl">
<!-- Header -->
<header class="mb-10 text-center">
<h1 class="text-4xl font-bold text-blue-600 mb-2">MyFitCoach</h1>
<p class="text-gray-600">Votre programme de musculation personnalisé</p>
</header>
<!-- Navigation Tabs -->
<div class="flex border-b mb-8">
<button class="tab-btn py-4 px-6 font-medium text-blue-600 border-b-2 border-blue-600" data-tab="program">Programme</button>
<button class="tab-btn py-4 px-6 font-medium text-gray-500 hover:text-blue-600" data-tab="calendar">Agenda</button>
<button class="tab-btn py-4 px-6 font-medium text-gray-500 hover:text-blue-600" data-tab="performance">Performances</button>
<button class="tab-btn py-4 px-6 font-medium text-gray-500 hover:text-blue-600" data-tab="settings">Paramètres</button>
</div>
<!-- Program Tab Content -->
<div id="program" class="tab-content active">
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<h2 class="text-2xl font-semibold mb-6 text-gray-800">Créez votre programme personnalisé</h2>
<!-- Muscle Groups Selection -->
<div class="mb-8">
<h3 class="text-lg font-medium mb-4 text-gray-700">1. Sélectionnez vos groupes musculaires</h3>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4">
<div class="muscle-group p-4 rounded-lg border cursor-pointer text-center transition-all" data-muscle="full-body">
<i class="fas fa-user text-3xl mb-2 text-blue-500"></i>
<p>Corps entier</p>
</div>
<div class="muscle-group p-4 rounded-lg border cursor-pointer text-center transition-all" data-muscle="upper-body">
<i class="fas fa-tshirt text-3xl mb-2 text-blue-500"></i>
<p>Haut du corps</p>
</div>
<div class="muscle-group p-4 rounded-lg border cursor-pointer text-center transition-all" data-muscle="lower-body">
<i class="fas fa-walking text-3xl mb-2 text-blue-500"></i>
<p>Bas du corps</p>
</div>
<div class="muscle-group p-4 rounded-lg border cursor-pointer text-center transition-all" data-muscle="chest">
<i class="fas fa-heart text-3xl mb-2 text-blue-500"></i>
<p>Pectoraux</p>
</div>
<div class="muscle-group p-4 rounded-lg border cursor-pointer text-center transition-all" data-muscle="back">
<i class="fas fa-undo text-3xl mb-2 text-blue-500"></i>
<p>Dos</p>
</div>
<div class="muscle-group p-4 rounded-lg border cursor-pointer text-center transition-all" data-muscle="arms">
<i class="fas fa-hand-paper text-3xl mb-2 text-blue-500"></i>
<p>Bras</p>
</div>
<div class="muscle-group p-4 rounded-lg border cursor-pointer text-center transition-all" data-muscle="shoulders">
<i class="fas fa-arrows-alt text-3xl mb-2 text-blue-500"></i>
<p>Épaules</p>
</div>
<div class="muscle-group p-4 rounded-lg border cursor-pointer text-center transition-all" data-muscle="abs">
<i class="fas fa-barcode text-3xl mb-2 text-blue-500"></i>
<p>Abdominaux</p>
</div>
<div class="muscle-group p-4 rounded-lg border cursor-pointer text-center transition-all" data-muscle="legs">
<i class="fas fa-shoe-prints text-3xl mb-2 text-blue-500"></i>
<p>Jambes</p>
</div>
</div>
</div>
<!-- Personal Parameters -->
<div class="mb-8">
<h3 class="text-lg font-medium mb-4 text-gray-700">2. Vos paramètres personnels</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-gray-700 mb-2">Niveau actuel</label>
<select class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option value="beginner">Débutant</option>
<option value="intermediate">Intermédiaire</option>
<option value="advanced">Avancé</option>
</select>
</div>
<div>
<label class="block text-gray-700 mb-2">Objectif principal</label>
<select class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option value="muscle-gain">Prise de muscle</option>
<option value="weight-loss">Perte de poids</option>
<option value="strength">Force</option>
<option value="endurance">Endurance</option>
</select>
</div>
<div>
<label class="block text-gray-700 mb-2">Jours d'entraînement/semaine</label>
<select class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option value="2">2 jours</option>
<option value="3">3 jours</option>
<option value="4">4 jours</option>
<option value="5">5 jours</option>
<option value="6">6 jours</option>
</select>
</div>
<div>
<label class="block text-gray-700 mb-2">Durée par séance</label>
<select class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option value="30">30 minutes</option>
<option value="45">45 minutes</option>
<option value="60">60 minutes</option>
<option value="75">75 minutes</option>
<option value="90">90 minutes</option>
</select>
</div>
<div>
<label class="block text-gray-700 mb-2">Équipement disponible</label>
<select class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option value="bodyweight">Poids du corps</option>
<option value="dumbbells">Haltères</option>
<option value="barbell">Barre</option>
<option value="full-gym">Salle de sport complète</option>
</select>
</div>
<div>
<label class="block text-gray-700 mb-2">Blessures/limitations</label>
<input type="text" placeholder="Ex: douleur au genou droit" class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
</div>
</div>
<!-- Generate Program Button -->
<div class="text-center">
<button id="generate-program" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-lg text-lg transition-all transform hover:scale-105">
Générer mon programme <i class="fas fa-dumbbell ml-2"></i>
</button>
</div>
</div>
<!-- Generated Program (Hidden by default) -->
<div id="generated-program" class="bg-white rounded-lg shadow-md p-6 hidden">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-semibold text-gray-800">Votre programme personnalisé</h2>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-print"></i> Imprimer
</button>
</div>
<div class="mb-8">
<h3 class="text-xl font-medium mb-4 text-gray-700 border-b pb-2">Résumé de votre programme</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
<div class="bg-blue-50 p-4 rounded-lg">
<p class="text-sm text-blue-800">Fréquence</p>
<p class="text-xl font-bold">3 jours/semaine</p>
</div>
<div class="bg-green-50 p-4 rounded-lg">
<p class="text-sm text-green-800">Durée</p>
<p class="text-xl font-bold">45 min/séance</p>
</div>
<div class="bg-purple-50 p-4 rounded-lg">
<p class="text-sm text-purple-800">Objectif</p>
<p class="text-xl font-bold">Prise de muscle</p>
</div>
</div>
</div>
<div class="space-y-8">
<!-- Workout Day 1 -->
<div class="border rounded-lg overflow-hidden">
<div class="bg-blue-600 text-white p-4">
<h4 class="font-semibold text-lg">Jour 1 - Haut du corps</h4>
</div>
<div class="p-4">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Exercice</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Séries</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Répétitions</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Repos</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center">
<i class="fas fa-dumbbell text-blue-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Développé couché</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8-10</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 min</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center">
<i class="fas fa-dumbbell text-blue-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Tractions</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">6-8</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">90 sec</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center">
<i class="fas fa-dumbbell text-blue-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Élévations latérales</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12-15</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">60 sec</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Workout Day 2 -->
<div class="border rounded-lg overflow-hidden">
<div class="bg-green-600 text-white p-4">
<h4 class="font-semibold text-lg">Jour 2 - Bas du corps</h4>
</div>
<div class="p-4">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Exercice</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Séries</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Répétitions</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Repos</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-green-100 rounded-full flex items-center justify-center">
<i class="fas fa-running text-green-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Squats</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8-10</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 min</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-green-100 rounded-full flex items-center justify-center">
<i class="fas fa-running text-green-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Fentes</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10/ jambe</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">90 sec</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-green-100 rounded-full flex items-center justify-center">
<i class="fas fa-running text-green-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Mollets</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15-20</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">60 sec</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="mt-6 bg-yellow-50 border-l-4 border-yellow-400 p-4">
<div class="flex">
<div class="flex-shrink-0">
<i class="fas fa-lightbulb text-yellow-400"></i>
</div>
<div class="ml-3">
<p class="text-sm text-yellow-700">
<strong>Conseil d'entraînement:</strong> Augmentez les poids de 5% chaque semaine si vous terminez toutes vos séries avec facilité.
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Calendar Tab Content -->
<div id="calendar" class="tab-content">
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-semibold text-gray-800">Agenda d'entraînement</h2>
<div class="flex space-x-2">
<button class="px-4 py-2 border rounded-lg hover:bg-gray-50">
<i class="fas fa-chevron-left"></i>
</button>
<button class="px-4 py-2 border rounded-lg hover:bg-gray-50">
<i class="fas fa-chevron-right"></i>
</button>
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">
Aujourd'hui
</button>
<button id="add-workout" class="px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700">
<i class="fas fa-plus mr-1"></i> Ajouter
</button>
</div>
</div>
<!-- Calendar -->
<div class="mb-8">
<div class="grid grid-cols-7 gap-1 mb-2">
<div class="text-center font-medium text-gray-500 py-2">Lun</div>
<div class="text-center font-medium text-gray-500 py-2">Mar</div>
<div class="text-center font-medium text-gray-500 py-2">Mer</div>
<div class="text-center font-medium text-gray-500 py-2">Jeu</div>
<div class="text-center font-medium text-gray-500 py-2">Ven</div>
<div class="text-center font-medium text-gray-500 py-2">Sam</div>
<div class="text-center font-medium text-gray-500 py-2">Dim</div>
</div>
<div class="grid grid-cols-7 gap-1">
<!-- Calendar Days -->
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">1</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">2</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">3</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">4</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">5</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">6</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">7</div>
</div>
<!-- More days... -->
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">8</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">9</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24 workout-day">
<div class="text-right">10</div>
<div class="text-xs mt-1 p-1 bg-blue-100 text-blue-800 rounded">Haut du corps</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">11</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">12</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">13</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">14</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">15</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24 workout-day">
<div class="text-right">16</div>
<div class="text-xs mt-1 p-1 bg-green-100 text-green-800 rounded">Bas du corps</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">17</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">18</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24 workout-day">
<div class="text-right">19</div>
<div class="text-xs mt-1 p-1 bg-blue-100 text-blue-800 rounded">Haut du corps</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">20</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">21</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">22</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">23</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24 workout-day">
<div class="text-right">24</div>
<div class="text-xs mt-1 p-1 bg-green-100 text-green-800 rounded">Bas du corps</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">25</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">26</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24 workout-day">
<div class="text-right">27</div>
<div class="text-xs mt-1 p-1 bg-blue-100 text-blue-800 rounded">Haut du corps</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">28</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">29</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">30</div>
</div>
<div class="calendar-day border rounded-lg p-2 h-24">
<div class="text-right">31</div>
</div>
</div>
</div>
<!-- Today's Workout -->
<div class="border rounded-lg overflow-hidden">
<div class="bg-blue-600 text-white p-4">
<h4 class="font-semibold text-lg">Séance du jour - Haut du corps</h4>
<p class="text-sm opacity-90">10 octobre 2023 - 18:00</p>
</div>
<div class="p-4">
<div class="mb-6">
<h5 class="font-medium mb-2 text-gray-700">Exercices prévus</h5>
<ul class="space-y-3">
<li class="flex justify-between items-center p-2 bg-gray-50 rounded">
<div>
<span class="font-medium">Développé couché</span>
<span class="text-sm text-gray-500 ml-2">4x8-10</span>
</div>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-edit"></i>
</button>
</li>
<li class="flex justify-between items-center p-2 bg-gray-50 rounded">
<div>
<span class="font-medium">Tractions</span>
<span class="text-sm text-gray-500 ml-2">3x6-8</span>
</div>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-edit"></i>
</button>
</li>
<li class="flex justify-between items-center p-2 bg-gray-50 rounded">
<div>
<span class="font-medium">Élévations latérales</span>
<span class="text-sm text-gray-500 ml-2">3x12-15</span>
</div>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-edit"></i>
</button>
</li>
</ul>
</div>
<!-- Workout Log -->
<div>
<h5 class="font-medium mb-2 text-gray-700">Journal de séance</h5>
<div class="space-y-4">
<!-- Exercise 1 Log -->
<div class="border rounded-lg p-4">
<div class="flex justify-between items-center mb-2">
<h6 class="font-medium">Développé couché</h6>
<span class="text-sm bg-blue-100 text-blue-800 px-2 py-1 rounded">Terminé</span>
</div>
<div class="grid grid-cols-4 gap-2 text-center mb-3">
<div class="text-xs text-gray-500">Série</div>
<div class="text-xs text-gray-500">Poids (kg)</div>
<div class="text-xs text-gray-500">Répétitions</div>
<div class="text-xs text-gray-500">Difficulté</div>
</div>
<div class="space-y-2">
<div class="grid grid-cols-4 gap-2 text-center">
<div class="p-1 bg-gray-50 rounded">1</div>
<input type="number" value="40" class="p-1 border rounded text-center">
<input type="number" value="10" class="p-1 border rounded text-center">
<select class="p-1 border rounded text-center text-sm">
<option>Facile</option>
<option selected>Modéré</option>
<option>Difficile</option>
</select>
</div>
<div class="grid grid-cols-4 gap-2 text-center">
<div class="p-1 bg-gray-50 rounded">2</div>
<input type="number" value="40" class="p-1 border rounded text-center">
<input type="number" value="9" class="p-1 border rounded text-center">
<select class="p-1 border rounded text-center text-sm">
<option>Facile</option>
<option selected>Modéré</option>
<option>Difficile</option>
</select>
</div>
<div class="grid grid-cols-4 gap-2 text-center">
<div class="p-1 bg-gray-50 rounded">3</div>
<input type="number" value="40" class="p-1 border rounded text-center">
<input type="number" value="8" class="p-1 border rounded text-center">
<select class="p-1 border rounded text-center text-sm">
<option>Facile</option>
<option>Modéré</option>
<option selected>Difficile</option>
</select>
</div>
</div>
</div>
<!-- Exercise 2 Log -->
<div class="border rounded-lg p-4">
<div class="flex justify-between items-center mb-2">
<h6 class="font-medium">Tractions</h6>
<span class="text-sm bg-blue-100 text-blue-800 px-2 py-1 rounded">Terminé</span>
</div>
<div class="grid grid-cols-4 gap-2 text-center mb-3">
<div class="text-xs text-gray-500">Série</div>
<div class="text-xs text-gray-500">Poids (kg)</div>
<div class="text-xs text-gray-500">Répétitions</div>
<div class="text-xs text-gray-500">Difficulté</div>
</div>
<div class="space-y-2">
<div class="grid grid-cols-4 gap-2 text-center">
<div class="p-1 bg-gray-50 rounded">1</div>
<input type="number" value="0" class="p-1 border rounded text-center">
<input type="number" value="6" class="p-1 border rounded text-center">
<select class="p-1 border rounded text-center text-sm">
<option>Facile</option>
<option selected>Modéré</option>
<option>Difficile</option>
</select>
</div>
<div class="grid grid-cols-4 gap-2 text-center">
<div class="p-1 bg-gray-50 rounded">2</div>
<input type="number" value="0" class="p-1 border rounded text-center">
<input type="number" value="6" class="p-1 border rounded text-center">
<select class="p-1 border rounded text-center text-sm">
<option>Facile</option>
<option>Modéré</option>
<option selected>Difficile</option>
</select>
</div>
</div>
</div>
</div>
</div>
<!-- Notes -->
<div class="mt-6">
<label class="block text-gray-700 mb-2">Notes sur la séance</label>
<textarea class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" rows="3" placeholder="Comment s'est passée votre séance ?"></textarea>
</div>
<!-- Save Button -->
<div class="mt-6 text-right">
<button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-6 rounded-lg">
Enregistrer la séance
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Performance Tab Content -->
<div id="performance" class="tab-content">
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<h2 class="text-2xl font-semibold mb-6 text-gray-800">Analyse de vos performances</h2>
<!-- KPIs -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-blue-50 p-6 rounded-lg">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
<i class="fas fa-fire-alt text-xl"></i>
</div>
<div>
<p class="text-sm text-blue-800">Consistance</p>
<p class="text-2xl font-bold">85%</p>
<p class="text-xs text-blue-600">+5% vs mois dernier</p>
</div>
</div>
</div>
<div class="bg-green-50 p-6 rounded-lg">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
<i class="fas fa-chart-line text-xl"></i>
</div>
<div>
<p class="text-sm text-green-800">Progression</p>
<p class="text-2xl font-bold">12%</p>
<p class="text-xs text-green-600">+3% vs mois dernier</p>
</div>
</div>
</div>
<div class="bg-purple-50 p-6 rounded-lg">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
<i class="fas fa-dumbbell text-xl"></i>
</div>
<div>
<p class="text-sm text-purple-800">Force moyenne</p>
<p class="text-2xl font-bold">+7.5kg</p>
<p class="text-xs text-purple-600">sur 3 mois</p>
</div>
</div>
</div>
</div>
<!-- Performance Charts -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<!-- Strength Progress -->
<div class="border rounded-lg p-4">
<h3 class="font-medium mb-4 text-gray-700">Progression de force</h3>
<div class="performance-chart">
<canvas id="strengthChart"></canvas>
</div>
</div>
<!-- Workout Frequency -->
<div class="border rounded-lg p-4">
<h3 class="font-medium mb-4 text-gray-700">Fréquence d'entraînement</h3>
<div class="performance-chart">
<canvas id="frequencyChart"></canvas>
</div>
</div>
<!-- Exercise Performance -->
<div class="border rounded-lg p-4">
<h3 class="font-medium mb-4 text-gray-700">Performances par exercice</h3>
<select class="w-full p-3 border rounded-lg mb-4 focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option>Sélectionnez un exercice</option>
<option selected>Développé couché</option>
<option>Tractions</option>
<option>Squats</option>
<option>Fentes</option>
</select>
<div class="performance-chart">
<canvas id="exerciseChart"></canvas>
</div>
</div>
<!-- Recovery Analysis -->
<div class="border rounded-lg p-4">
<h3 class="font-medium mb-4 text-gray-700">Analyse de récupération</h3>
<div class="flex items-center mb-4">
<div class="w-2/3">
<div class="flex justify-between text-xs text-gray-500 mb-1">
<span>Faible</span>
<span>Élevée</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-yellow-500 h-2.5 rounded-full" style="width: 65%"></div>
</div>
</div>
<div class="w-1/3 text-right">
<span class="text-lg font-bold">6.5/10</span>
</div>
</div>
<p class="text-sm text-gray-600">
Votre récupération est moyenne. Essayez de dormir 7-9h par nuit et de bien vous hydrater pour améliorer vos performances.
</p>
</div>
</div>
<!-- Recommendations -->
<div class="mt-8 bg-blue-50 border-l-4 border-blue-400 p-4 rounded-lg">
<h3 class="font-medium mb-2 text-blue-800">Recommandations pour progresser</h3>
<ul class="list-disc list-inside text-sm text-blue-700 space-y-1">
<li>Augmentez les poids de 2.5kg sur le développé couché lors de votre prochaine séance</li>
<li>Ajoutez une série supplémentaire aux tractions pour améliorer votre endurance</li>
<li>Essayez de réduire votre temps de repos entre les séries de 15 secondes</li>
<li>Consommez 30g de protéines dans l'heure suivant votre entraînement</li>
</ul>
</div>
</div>
</div>
<!-- Settings Tab Content -->
<div id="settings" class="tab-content">
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<h2 class="text-2xl font-semibold mb-6 text-gray-800">Paramètres</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<!-- Personal Info -->
<div>
<h3 class="text-lg font-medium mb-4 text-gray-700 border-b pb-2">Informations personnelles</h3>
<div class="space-y-4">
<div>
<label class="block text-gray-700 mb-1">Nom</label>
<input type="text" value="Jean Dupont" class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div>
<label class="block text-gray-700 mb-1">Email</label>
<input type="email" value="jean.dupont@example.com" class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div>
<label class="block text-gray-700 mb-1">Date de naissance</label>
<input type="date" value="1985-05-15" class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div>
<label class="block text-gray-700 mb-1">Sexe</label>
<select class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option>Homme</option>
<option>Femme</option>
<option>Autre</option>
</select>
</div>
</div>
</div>
<!-- Physical Stats -->
<div>
<h3 class="text-lg font-medium mb-4 text-gray-700 border-b pb-2">Mesures physiques</h3>
<div class="space-y-4">
<div class="grid grid-cols-2 gap-4">
<div>
<label class="block text-gray-700 mb-1">Poids (kg)</label>
<input type="number" value="78" class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div>
<label class="block text-gray-700 mb-1">Taille (cm)</label>
<input type="number" value="180" class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
</div>
<div>
<label class="block text-gray-700 mb-1">Objectif de poids (kg)</label>
<input type="number" value="82" class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div>
<label class="block text-gray-700 mb-1">Niveau d'activité</label>
<select class="w-full p-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option>Sédentaire</option>
<option selected>Actif (1-3x/semaine)</option>
<option>Très actif (4-5x/semaine)</option>
<option>Athlète (6-7x/semaine)</option>
</select>
</div>
</div>
</div>
<!-- Notifications -->
<div>
<h3 class="text-lg font-medium mb-4 text-gray-700 border-b pb-2">Notifications</h3>
<div class="space-y-3">
<div class="flex items-center">
<input type="checkbox" id="workout-reminders" checked class="w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
<label for="workout-reminders" class="ml-2 text-gray-700">Rappels de séances</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="progress-updates" checked class="w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
<label for="progress-updates" class="ml-2 text-gray-700">Résumé hebdomadaire</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="motivational" class="w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
<label for="motivational" class="ml-2 text-gray-700">Messages motivationnels</label>
</div>
</div>
</div>
<!-- Account -->
<div>
<h3 class="text-lg font-medium mb-4 text-gray-700 border-b pb-2">Compte</h3>
<div class="space-y-4">
<button class="w-full text-left p-3 border rounded-lg hover:bg-gray-50 flex justify-between items-center">
<span>Changer de mot de passe</span>
<i class="fas fa-chevron-right text-gray-400"></i>
</button>
<button class="w-full text-left p-3 border rounded-lg hover:bg-gray-50 flex justify-between items-center">
<span>Exporter mes données</span>
<i class="fas fa-chevron-right text-gray-400"></i>
</button>
<button class="w-full text-left p-3 border rounded-lg hover:bg-gray-50 flex justify-between items-center text-red-600">
<span>Supprimer mon compte</span>
<i class="fas fa-chevron-right text-gray-400"></i>
</button>
</div>
</div>
</div>
<!-- Save Button -->
<div class="mt-8 text-right">
<button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-6 rounded-lg">
Enregistrer les modifications
</button>
</div>
</div>
</div>
</div>
<script>
// Tab Navigation
document.querySelectorAll('.tab-btn').forEach(button => {
button.addEventListener('click', () => {
// Remove active class from all buttons and content
document.querySelectorAll('.tab-btn').forEach(btn => {
btn.classList.remove('border-blue-600', 'text-blue-600');
btn.classList.add('text-gray-500');
});
document.querySelectorAll('.tab-content').forEach(content => {
content.classList.remove('active');
});
// Add active class to clicked button and corresponding content
button.classList.add('border-blue-600', 'text-blue-600');
button.classList.remove('text-gray-500');
const tabId = button.getAttribute('data-tab');
document.getElementById(tabId).classList.add('active');
// Initialize charts when performance tab is shown
if (tabId === 'performance') {
initCharts();
}
});
});
// Muscle Group Selection
document.querySelectorAll('.muscle-group').forEach(group => {
group.addEventListener('click', () => {
// Toggle active class
if (group.classList.contains('active-muscle')) {
group.classList.remove('active-muscle');
} else {
// For this demo, we'll allow only one selection at a time
document.querySelectorAll('.muscle-group').forEach(g => g.classList.remove('active-muscle'));
group.classList.add('active-muscle');
}
});
});
// Generate Program Button
document.getElementById('generate-program').addEventListener('click', () => {
const selectedMuscles = document.querySelectorAll('.muscle-group.active-muscle');
if (selectedMuscles.length === 0) {
alert('Veuillez sélectionner au moins un groupe musculaire');
return;
}
// Show generated program
document.getElementById('generated-program').classList.remove('hidden');
// Scroll to generated program
document.getElementById('generated-program').scrollIntoView({
behavior: 'smooth'
});
});
// Add Workout Button
document.getElementById('add-workout').addEventListener('click', () => {
alert('Fonctionnalité pour ajouter une séance sera implémentée ici');
});
// Initialize Charts
function initCharts() {
// Strength Progress Chart
const strengthCtx = document.getElementById('strengthChart').getContext('2d');
new Chart(strengthCtx, {
type: 'line',
data: {
labels: ['Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Août', 'Sep', 'Oct'],
datasets: [{
label: 'Force moyenne (kg)',
data: [45, 47, 50, 52, 55, 57, 60, 62, 65, 67],
borderColor: '#3b82f6',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
}
},
scales: {
y: {
beginAtZero: false,
min: 40
}
}
}
});
// Workout Frequency Chart
const frequencyCtx = document.getElementById('frequencyChart').getContext('2d');
new Chart(frequencyCtx, {
type: 'bar',
data: {
labels: ['Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam', 'Dim'],
datasets: [{
label: 'Séances/mois',
data: [4, 4, 4, 3, 3, 2, 1],
backgroundColor: '#10b981',
borderRadius: 4
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
}
},
scales: {
y: {
beginAtZero: true
}
}
}
});
// Exercise Performance Chart
const exerciseCtx = document.getElementById('exerciseChart').getContext('2d');
new Chart(exerciseCtx, {
type: 'line',
data: {
labels: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'],
datasets: [
{
label: 'Poids (kg)',
data: [35, 37, 37, 40, 40, 42, 42, 45, 45, 47],
borderColor: '#8b5cf6',
yAxisID: 'y',
tension: 0.3
},
{
label: 'Répétitions',
data: [8, 8, 9, 9, 10, 10, 10, 10, 10, 10],
borderColor: '#ec4899',
yAxisID: 'y1',
tension: 0.3
}
]
},
options: {
responsive: true,
interaction: {
mode: 'index',
intersect: false,
},
plugins: {
legend: {
position: 'top',
}
},
scales: {
y: {
type: 'linear',
display: true,
position: 'left',
title: {
display: true,
text: 'Poids (kg)'
}
},
y1: {
type: 'linear',
display: true,
position: 'right',
title: {
display: true,
text: 'Répétitions'
},
grid: {
drawOnChartArea: false,
}
}
}
}
});
}
// Initialize performance charts if on performance tab
if (document.getElementById('performance').classList.contains('active')) {
initCharts();
}
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=Bengalys/training" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
</html> |