Spaces:
Running
Running
File size: 9,255 Bytes
6dcea05 | 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 | <!DOCTYPE html>
<html lang="en" class="">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Workouts | FitFusion</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-50 dark:bg-gray-900 min-h-screen flex flex-col">
<!-- Top Navigation -->
<header class="bg-white dark:bg-gray-800 shadow-sm sticky top-0 z-10">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-primary-500 flex items-center justify-center">
<i data-feather="activity" class="text-white"></i>
</div>
<h1 class="text-xl font-bold text-gray-800 dark:text-white">Workouts</h1>
</div>
<div class="flex items-center space-x-4">
<button id="theme-toggle" class="text-gray-600 dark:text-gray-300 hover:text-primary-500 dark:hover:text-primary-400">
<i data-feather="moon" class="hidden dark:block"></i>
<i data-feather="sun" class="dark:hidden"></i>
</button>
<button class="text-gray-600 dark:text-gray-300 hover:text-primary-500 dark:hover:text-primary-400">
<i data-feather="search"></i>
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-1 overflow-y-auto pb-20">
<div class="container mx-auto px-4 py-6">
<!-- Categories -->
<div class="flex overflow-x-auto space-x-3 pb-2 scrollbar-hide">
<button class="px-4 py-2 bg-primary-500 text-white rounded-full whitespace-nowrap font-medium text-sm">All Workouts</button>
<button class="px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-white rounded-full whitespace-nowrap font-medium text-sm">Beginner</button>
<button class="px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-white rounded-full whitespace-nowrap font-medium text-sm">Intermediate</button>
<button class="px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-white rounded-full whitespace-nowrap font-medium text-sm">Advanced</button>
<button class="px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-white rounded-full whitespace-nowrap font-medium text-sm">Cardio</button>
<button class="px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-white rounded-full whitespace-nowrap font-medium text-sm">Strength</button>
</div>
<!-- Featured Workout -->
<div class="mt-6">
<h2 class="text-lg font-bold text-gray-800 dark:text-white mb-3">Featured Workout</h2>
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-sm overflow-hidden relative">
<img src="http://static.photos/sport/640x360/2" alt="Workout" class="w-full h-48 object-cover">
<div class="absolute top-3 left-3 bg-primary-500 text-white px-2 py-1 rounded-md text-xs font-medium">
Beginner
</div>
<div class="p-4">
<h3 class="font-bold text-gray-800 dark:text-white">Morning Stretch Routine</h3>
<p class="text-sm text-gray-600 dark:text-gray-300 mt-1">15 min • Full Body</p>
<div class="flex items-center justify-between mt-4">
<div class="flex items-center space-x-2 text-gray-600 dark:text-gray-300">
<i data-feather="clock" class="w-4 h-4"></i>
<span class="text-xs">Daily</span>
</div>
<button class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-1 rounded-lg text-sm font-medium">
Start
</button>
</div>
</div>
</div>
</div>
<!-- Workout Categories -->
<div class="mt-8">
<h2 class="text-lg font-bold text-gray-800 dark:text-white mb-3">Beginner Workouts</h2>
<div class="grid grid-cols-2 gap-4">
<!-- Workout 1 -->
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm overflow-hidden">
<img src="http://static.photos/sport/320x240/1" alt="Workout" class="w-full h-32 object-cover">
<div class="p-3">
<h3 class="font-medium text-gray-800 dark:text-white text-sm">5-Minute Warm Up</h3>
<p class="text-xs text-gray-600 dark:text-gray-300 mt-1">5 min • Warm Up</p>
</div>
</div>
<!-- Workout 2 -->
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm overflow-hidden">
<img src="http://static.photos/sport/320x240/2" alt="Workout" class="w-full h-32 object-cover">
<div class="p-3">
<h3 class="font-medium text-gray-800 dark:text-white text-sm">Basic Abs Workout</h3>
<p class="text-xs text-gray-600 dark:text-gray-300 mt-1">10 min • Core</p>
</div>
</div>
<!-- Workout 3 -->
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm overflow-hidden">
<img src="http://static.photos/sport/320x240/3" alt="Workout" class="w-full h-32 object-cover">
<div class="p-3">
<h3 class="font-medium text-gray-800 dark:text-white text-sm">Lower Body Stretch</h3>
<p class="text-xs text-gray-600 dark:text-gray-300 mt-1">8 min • Flexibility</p>
</div>
</div>
<!-- Workout 4 -->
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm overflow-hidden">
<img src="http://static.photos/sport/320x240/4" alt="Workout" class="w-full h-32 object-cover">
<div class="p-3">
<h3 class="font-medium text-gray-800 dark:text-white text-sm">Beginner Yoga Flow</h3>
<p class="text-xs text-gray-600 dark:text-gray-300 mt-1">15 min • Yoga</p>
</div>
</div>
</div>
</div>
<!-- More categories would be here -->
</div>
</main>
<!-- Bottom Navigation -->
<nav class="bg-white dark:bg-gray-800 fixed bottom-0 left-0 right-0 shadow-lg border-t border-gray-200 dark:border-gray-700">
<div class="container mx-auto px-4">
<div class="flex justify-around">
<a href="index.html" class="flex flex-col items-center py-3 px-4 text-gray-500 hover:text-primary-500 dark:hover:text-primary-400">
<i data-feather="home"></i>
<span class="text-xs mt-1">Home</span>
</a>
<a href="workout.html" class="flex flex-col items-center py-3 px-4 text-primary-500">
<i data-feather="activity"></i>
<span class="text-xs mt-1">Workout</span>
</a>
<a href="premium.html" class="flex flex-col items-center py-3 px-4 text-gray-500 hover:text-primary-500 dark:hover:text-primary-400">
<i data-feather="award"></i>
<span class="text-xs mt-1">Premium</span>
</a>
<a href="profile.html" class="flex flex-col items-center py-3 px-4 text-gray-500 hover:text-primary-500 dark:hover:text-primary-400">
<i data-feather="user"></i>
<span class="text-xs mt-1">Profile</span>
</a>
</div>
</div>
</nav>
<script>
// Theme toggle
const themeToggle = document.getElementById('theme-toggle');
const html = document.documentElement;
if (localStorage.getItem('theme') === 'dark' || (!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
html.classList.add('dark');
} else {
html.classList.remove('dark');
}
themeToggle.addEventListener('click', () => {
html.classList.toggle('dark');
localStorage.setItem('theme', html.classList.contains('dark') ? 'dark' : 'light');
});
feather.replace();
</script>
</body>
</html>
|