Spaces:
Running
Running
Download index.html from iiCHARii/cpu-gpu-widget-overlay: direct link, hf CLI and curl.
- Browser
- Download file 14 kB
-
https://huggingface.co/spaces/iiCHARii/cpu-gpu-widget-overlay/resolve/main/index.html
- Command line
-
hf download hf://spaces/iiCHARii/cpu-gpu-widget-overlay/index.html
-
curl -L -o index.html https://huggingface.co/spaces/iiCHARii/cpu-gpu-widget-overlay/resolve/main/index.html
14 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>FitTrack Pro - Gym Tracker</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> | |
| .exercise-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .progress-ring__circle { | |
| transition: stroke-dashoffset 0.5s; | |
| transform: rotate(-90deg); | |
| transform-origin: 50% 50%; | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.5s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="min-h-screen"> | |
| <!-- Header --> | |
| <header class="bg-indigo-700 text-white shadow-lg"> | |
| <div class="container mx-auto px-4 py-6"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-dumbbell text-2xl"></i> | |
| <h1 class="text-2xl font-bold">FitTrack Pro</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button id="theme-toggle" class="p-2 rounded-full hover:bg-indigo-600"> | |
| <i class="fas fa-moon"></i> | |
| </button> | |
| <div class="relative"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-10 h-10 rounded-full cursor-pointer border-2 border-white"> | |
| <div class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full border-2 border-white"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-4 py-8"> | |
| <div class="grid grid-cols-1 lg:grid-cols-4 gap-6"> | |
| <!-- Sidebar --> | |
| <aside class="lg:col-span-1 space-y-6"> | |
| <!-- User Stats --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <div class="flex flex-col items-center"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-20 h-20 rounded-full mb-4 border-4 border-indigo-200"> | |
| <h3 class="font-bold text-lg">John Doe</h3> | |
| <p class="text-gray-500 text-sm">Member since June 2023</p> | |
| <div class="w-full mt-6 space-y-4"> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium">Workout Streak</span> | |
| <span class="text-sm font-medium">5 days</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-indigo-600 h-2.5 rounded-full" style="width: 70%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium">Monthly Goal</span> | |
| <span class="text-sm font-medium">12/20 workouts</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-green-500 h-2.5 rounded-full" style="width: 60%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Quick Actions --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h3 class="font-bold text-lg mb-4">Quick Actions</h3> | |
| <div class="space-y-3"> | |
| <button id="new-workout-btn" class="w-full flex items-center justify-between p-3 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition"> | |
| <span>New Workout</span> | |
| <i class="fas fa-plus"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between p-3 bg-gray-100 rounded-lg hover:bg-gray-200 transition"> | |
| <span>Track Progress</span> | |
| <i class="fas fa-chart-line"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between p-3 bg-gray-100 rounded-lg hover:bg-gray-200 transition"> | |
| <span>Exercise Library</span> | |
| <i class="fas fa-book"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Recent Workouts --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h3 class="font-bold text-lg mb-4">Recent Workouts</h3> | |
| <div class="space-y-3"> | |
| <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg"> | |
| <div> | |
| <p class="font-medium">Full Body Workout</p> | |
| <p class="text-sm text-gray-500">Yesterday, 45 min</p> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </div> | |
| <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg"> | |
| <div> | |
| <p class="font-medium">Chest & Triceps</p> | |
| <p class="text-sm text-gray-500">2 days ago, 55 min</p> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </div> | |
| <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg"> | |
| <div> | |
| <p class="font-medium">Leg Day</p> | |
| <p class="text-sm text-gray-500">4 days ago, 60 min</p> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </aside> | |
| <!-- Main Dashboard --> | |
| <div class="lg:col-span-3 space-y-6"> | |
| <!-- Stats Overview --> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <div class="bg-white rounded-xl shadow-md p-6 flex items-center"> | |
| <div class="p-3 bg-indigo-100 rounded-full mr-4"> | |
| <i class="fas fa-fire text-indigo-600 text-xl"></i> | |
| </div> | |
| <div> | |
| <p class="text-gray-500">Workouts This Week</p> | |
| <h3 class="text-2xl font-bold">4</h3> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 flex items-center"> | |
| <div class="p-3 bg-green-100 rounded-full mr-4"> | |
| <i class="fas fa-weight-hanging text-green-600 text-xl"></i> | |
| </div> | |
| <div> | |
| <p class="text-gray-500">Total Weight Lifted</p> | |
| <h3 class="text-2xl font-bold">12,450 lbs</h3> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 flex items-center"> | |
| <div class="p-3 bg-purple-100 rounded-full mr-4"> | |
| <i class="fas fa-bolt text-purple-600 text-xl"></i> | |
| </div> | |
| <div> | |
| <p class="text-gray-500">Personal Records</p> | |
| <h3 class="text-2xl font-bold">3</h3> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Workout History Chart --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h3 class="font-bold text-lg">Workout History</h3> | |
| <select class="bg-gray-100 border-0 rounded-lg px-3 py-2 text-sm"> | |
| <option>Last 7 Days</option> | |
| <option>Last 30 Days</option> | |
| <option>Last 3 Months</option> | |
| </select> | |
| </div> | |
| <canvas id="workoutChart" height="250"></canvas> | |
| </div> | |
| <!-- Today's Workout --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h3 class="font-bold text-lg">Today's Workout: Chest & Back</h3> | |
| <div class="flex space-x-2"> | |
| <button class="p-2 bg-gray-100 rounded-lg hover:bg-gray-200"> | |
| <i class="fas fa-edit text-gray-600"></i> | |
| </button> | |
| <button class="p-2 bg-gray-100 rounded-lg hover:bg-gray-200"> | |
| <i class="fas fa-trash text-gray-600"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="space-y-4"> | |
| <!-- Exercise 1 --> | |
| <div class="exercise-card bg-gray-50 rounded-xl p-4 border-l-4 border-indigo-500 transition duration-300"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="font-bold">Bench Press</h4> | |
| <p class="text-sm text-gray-500">3 sets of 8-12 reps</p> | |
| </div> | |
| <button class="text-indigo-600 hover:text-indigo-800"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| <div class="mt-3 grid grid-cols-3 gap-2"> | |
| <div class="bg-white p-2 rounded text-center"> | |
| <p class="text-xs text-gray-500">Set 1</p> | |
| <p class="font-medium">135 lbs × 10</p> | |
| </div> | |
| <div class="bg-white p-2 rounded text-center"> | |
| <p class="text-xs text-gray-500">Set 2</p> | |
| <p class="font-medium">155 lbs × 8</p> | |
| </div> | |
| <div class="bg-white p-2 rounded text-center"> | |
| <p class="text-xs text-gray-500">Set 3</p> | |
| <p class="font-medium">165 lbs × 6</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Exercise 2 --> | |
| <div class="exercise-card bg-gray-50 rounded-xl p-4 border-l-4 border-green-500 transition duration-300"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="font-bold">Incline Dumbbell Press</h4> | |
| <p class="text-sm text-gray-500">3 sets of 10-12 reps</p> | |
| </div> | |
| <button class="text-indigo-600 hover:text-indigo-800"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| <div class="mt-3 grid grid-cols-3 gap-2"> | |
| <div class="bg-white p-2 rounded text-center"> | |
| <p class="text-xs text-gray-500">Set 1</p> | |
| <p class="font-medium">50 lbs × 12 | |
| </html> |