project-html / index.html
prasannakumar02's picture
Add 3 files
8ac3450 verified
Raw History Blame Contribute Delete
25.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Be Fit - Weight Management App</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">
<style>
.gradient-bg {
background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}
.progress-ring__circle {
transition: stroke-dashoffset 0.35s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.food-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.animate-pulse-slow {
animation: pulse 3s infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Header -->
<header class="gradient-bg 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-heartbeat text-3xl"></i>
<h1 class="text-2xl font-bold">Be Fit</h1>
</div>
<div class="flex items-center space-x-4">
<button id="profileBtn" class="bg-white text-green-600 px-4 py-2 rounded-full font-semibold shadow-md hover:bg-gray-100 transition">
<i class="fas fa-user mr-2"></i>Profile
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Dashboard Overview -->
<section class="mb-12">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<!-- Goal Card -->
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-semibold text-gray-800">Your Goal</h2>
<span id="goalType" class="px-3 py-1 rounded-full text-xs font-semibold bg-green-100 text-green-800">Weight Loss</span>
</div>
<div class="flex items-center justify-between">
<div>
<p class="text-gray-600 mb-1">Current Weight</p>
<p class="text-2xl font-bold">68<span class="text-lg">kg</span></p>
</div>
<div class="text-center">
<p class="text-gray-600 mb-1">Target Weight</p>
<p class="text-2xl font-bold">62<span class="text-lg">kg</span></p>
</div>
<div class="text-right">
<p class="text-gray-600 mb-1">Remaining</p>
<p class="text-2xl font-bold">6<span class="text-lg">kg</span></p>
</div>
</div>
<div class="mt-4">
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-green-500 h-2.5 rounded-full" style="width: 45%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">45% of your goal achieved</p>
</div>
</div>
<!-- Calorie Intake Card -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Daily Calories</h2>
<div class="flex justify-center mb-4">
<div class="relative w-32 h-32">
<svg class="w-full h-full" viewBox="0 0 100 100">
<circle class="text-gray-200" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" />
<circle class="text-green-500 progress-ring__circle" stroke-width="8" stroke-linecap="round" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" stroke-dasharray="251.2" stroke-dashoffset="100.48" />
</svg>
<div class="absolute inset-0 flex items-center justify-center flex-col">
<span class="text-2xl font-bold">1,200</span>
<span class="text-xs text-gray-500">kcal</span>
</div>
</div>
</div>
<div class="text-center">
<p class="text-sm text-gray-600">Consumed <span class="font-semibold">1,200</span> of <span class="font-semibold">1,800</span> kcal</p>
<p class="text-xs text-green-600 mt-1">600 kcal remaining</p>
</div>
</div>
<!-- Macronutrients Card -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Macronutrients</h2>
<div class="space-y-3">
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Protein</span>
<span class="font-semibold">45g / 90g</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-blue-500 h-2 rounded-full" style="width: 50%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Carbs</span>
<span class="font-semibold">120g / 150g</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-yellow-500 h-2 rounded-full" style="width: 80%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-600">Fats</span>
<span class="font-semibold">40g / 60g</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-red-500 h-2 rounded-full" style="width: 66%"></div>
</div>
</div>
</div>
<button class="mt-4 w-full bg-green-500 hover:bg-green-600 text-white py-2 rounded-lg font-medium transition">
View Details
</button>
</div>
</div>
</section>
<!-- Food Diary Section -->
<section class="mb-12">
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<div class="flex justify-between items-center">
<h2 class="text-xl font-semibold text-gray-800">Today's Food Diary</h2>
<button id="addFoodBtn" class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-lg font-medium transition flex items-center">
<i class="fas fa-plus mr-2"></i> Add Food
</button>
</div>
<p class="text-sm text-gray-500 mt-1">June 15, 2023</p>
</div>
<div class="divide-y divide-gray-200">
<!-- Breakfast -->
<div class="p-6">
<div class="flex justify-between items-center mb-3">
<h3 class="text-lg font-medium text-gray-800 flex items-center">
<i class="fas fa-sun mr-2 text-yellow-500"></i> Breakfast
</h3>
<span class="text-sm font-medium text-gray-600">450 kcal</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Oatmeal</h4>
<p class="text-sm text-gray-500">1 bowl (50g)</p>
</div>
<span class="text-sm font-medium">150 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Banana</h4>
<p class="text-sm text-gray-500">1 medium (118g)</p>
</div>
<span class="text-sm font-medium">105 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Almond Milk</h4>
<p class="text-sm text-gray-500">1 cup (240ml)</p>
</div>
<span class="text-sm font-medium">60 kcal</span>
</div>
</div>
</div>
</div>
<!-- Lunch -->
<div class="p-6">
<div class="flex justify-between items-center mb-3">
<h3 class="text-lg font-medium text-gray-800 flex items-center">
<i class="fas fa-sun mr-2 text-orange-500"></i> Lunch
</h3>
<span class="text-sm font-medium text-gray-600">620 kcal</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Grilled Chicken</h4>
<p class="text-sm text-gray-500">1 breast (200g)</p>
</div>
<span class="text-sm font-medium">330 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Brown Rice</h4>
<p class="text-sm text-gray-500">1/2 cup cooked (100g)</p>
</div>
<span class="text-sm font-medium">110 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Steamed Vegetables</h4>
<p class="text-sm text-gray-500">1 cup (150g)</p>
</div>
<span class="text-sm font-medium">180 kcal</span>
</div>
</div>
</div>
</div>
<!-- Dinner -->
<div class="p-6">
<div class="flex justify-between items-center mb-3">
<h3 class="text-lg font-medium text-gray-800 flex items-center">
<i class="fas fa-moon mr-2 text-indigo-500"></i> Dinner
</h3>
<span class="text-sm font-medium text-gray-600">350 kcal</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Salmon</h4>
<p class="text-sm text-gray-500">1 fillet (150g)</p>
</div>
<span class="text-sm font-medium">280 kcal</span>
</div>
</div>
<div class="food-card bg-gray-50 rounded-lg p-4 transition cursor-pointer">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Asparagus</h4>
<p class="text-sm text-gray-500">1/2 cup (90g)</p>
</div>
<span class="text-sm font-medium">70 kcal</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Meal Plan Section -->
<section class="mb-12">
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-800">Your Weekly Meal Plan</h2>
<p class="text-sm text-gray-500 mt-1">Personalized for your weight loss goals</p>
</div>
<div class="p-6">
<div class="flex overflow-x-auto pb-4 space-x-4">
<!-- Monday -->
<div class="flex-shrink-0 w-64 bg-green-50 rounded-lg p-4">
<h3 class="font-medium text-green-800 mb-3">Monday</h3>
<div class="space-y-3">
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Breakfast</p>
<p class="text-xs text-gray-600">Oatmeal, berries, almond milk</p>
<p class="text-xs text-green-600 mt-1">450 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Lunch</p>
<p class="text-xs text-gray-600">Grilled chicken, quinoa, veggies</p>
<p class="text-xs text-green-600 mt-1">550 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Dinner</p>
<p class="text-xs text-gray-600">Baked salmon, asparagus</p>
<p class="text-xs text-green-600 mt-1">400 kcal</p>
</div>
</div>
</div>
<!-- Tuesday -->
<div class="flex-shrink-0 w-64 bg-green-50 rounded-lg p-4">
<h3 class="font-medium text-green-800 mb-3">Tuesday</h3>
<div class="space-y-3">
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Breakfast</p>
<p class="text-xs text-gray-600">Greek yogurt, granola, honey</p>
<p class="text-xs text-green-600 mt-1">400 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Lunch</p>
<p class="text-xs text-gray-600">Turkey wrap, side salad</p>
<p class="text-xs text-green-600 mt-1">500 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Dinner</p>
<p class="text-xs text-gray-600">Stir-fry tofu with vegetables</p>
<p class="text-xs text-green-600 mt-1">450 kcal</p>
</div>
</div>
</div>
<!-- Wednesday -->
<div class="flex-shrink-0 w-64 bg-green-50 rounded-lg p-4">
<h3 class="font-medium text-green-800 mb-3">Wednesday</h3>
<div class="space-y-3">
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Breakfast</p>
<p class="text-xs text-gray-600">Smoothie bowl</p>
<p class="text-xs text-green-600 mt-1">350 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Lunch</p>
<p class="text-xs text-gray-600">Grilled shrimp, brown rice</p>
<p class="text-xs text-green-600 mt-1">500 kcal</p>
</div>
<div class="bg-white rounded p-3">
<p class="text-sm font-medium">Dinner</p>
<p class="text-xs text-gray-600">Chicken soup, whole grain bread</p>
<p class="text-xs text-green-600 mt-1">400 kcal</p>
</div>
</div>
</div>
</div>
</div>
<div class="px-6 py-4 bg-gray-50">
<button class="w-full bg-white hover:bg-gray-100 text-green-600 border border-green-600 py-2 rounded-lg font-medium transition">
View Full Meal Plan
</button>
</div>
</div>
</section>
<!-- Water Intake Section -->
<section class="mb-12">
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-800">Water Intake</h2>
<div class="text-right">
<p class="text-sm text-gray-600">Today's Goal: <span class="font-semibold">2.5L</span></p>
<p class="text-sm text-blue-600">1.2L consumed</p>
</div>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<div class="bg-blue-50 rounded-lg p-4 text-center">
<div class="w-16 h-16 mx-auto mb-2 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-glass-water text-blue-500 text-2xl"></i>
</div>
<p class="font-medium">Morning</p>
<p class="text-xs text-gray-600">500ml</p>
</div>
<div class="bg-blue-50 rounded-lg p-4 text-center">
<div class="w-16 h-16 mx-auto mb-2 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-glass-water text-blue-500 text-2xl"></i>
</div>
<p class="font-medium">Noon</p>
<p class="text-xs text-gray-600">300ml</p>
</div>
<div class="bg-blue-50 rounded-lg p-4 text-center">
<div class="w-16 h-16 mx-auto mb-2 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-glass-water text-blue-500 text-2xl"></i>
</div>
<p class="font-medium">Afternoon</p>
<p class="text-xs text-gray-600">400ml</p>
</div>
<div class="bg-blue-50 rounded-lg p-4 text-center">
<div class="w-16 h-16 mx-auto mb-2 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-glass-water text-blue-500 text-2xl"></i>
</div>
<p class="font-medium">Evening</p>
<p class="text-xs text-gray-600">0ml</p>
</div>
</div>
<div class="mt-6">
<button class="w-full bg-blue-500 hover:bg-blue-600 text-white py-3 rounded-lg font-medium transition flex items-center justify-center">
<i class="fas fa-plus mr-2"></i> Add Water Intake
</button>
</div>
</div>
</section>
<!-- Progress Tracking -->
<section>
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-6">Weight Progress</h2>
<div class="h-64">
<!-- Chart placeholder (would be implemented with a chart library in a real app) -->
<div class="w-full h-full bg-gray-100 rounded-lg flex items-center justify-center text-gray-400">
<p>Weight progress chart would appear here</p>
</div>
</div>
<div class="mt-6 grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="bg-green-50 rounded-lg p-4">
<p class="text-sm text-gray-600">Starting Weight</p>
<p class="text-2xl font-bold">72<span class="text-lg">kg</span></p>
</div>
<div class="bg-green-50 rounded-lg p-4">
<p class="text-sm text-gray-600">Current Weight</p>
<p class="text-2xl font-bold">68<span class="text-lg">kg</span></p>
</div>
<div class="bg-green-50 rounded-lg p-4">
<p class="text-sm text-gray-600">Total Lost</p>
<p class="text-2xl font-bold">4<span class="text-lg">kg</span></p>
</div>
</div>
<div class="mt-6">
<button class="w-full bg-white hover:bg-gray-100 text-green-600 border border-green-600 py-2 rounded-lg font-medium transition">
Log New Weight
</button>
</div>
</div>
</section>
</main>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 left-0 right-0 bg-white shadow-lg border-t border-gray-200">
<div class="container mx-auto px-4">
<div class="flex justify-around">
<a href="#" class="
</html>