Spaces:
Running
Running
File size: 14,849 Bytes
6cfcdf2 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WASTE-LESS - Smart Food Waste Management</title>
<link rel="stylesheet" href="style.css">
<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">
</head>
<body class="min-h-screen">
<custom-navbar></custom-navbar>
<div class="container mx-auto px-4 py-12">
<!-- Hero Section -->
<header class="relative overflow-hidden rounded-2xl shadow-2xl mb-16 text-white p-12">
<div class="absolute inset-0 bg-gradient-to-br from-green-600 via-emerald-500 to-teal-400"></div>
<div class="absolute inset-0 bg-opacity-20" style="background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%239C92AC" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E')"></div>
<div class="relative z-10 max-w-3xl mx-auto text-center">
<h1 class="text-5xl md:text-6xl font-bold mb-6 tracking-tight">
<span class="block">WASTE-LESS</span>
<span class="block text-3xl md:text-4xl font-semibold mt-4 opacity-90">Smart Food Waste Management</span>
</h1>
<p class="text-xl mb-10 opacity-95 max-w-2xl mx-auto">
Reducing food waste through intelligent tracking and data-driven insights for sustainable dining management.
</p>
<div class="flex flex-wrap justify-center gap-4">
<a href="attendance.html" class="btn btn-primary text-lg px-8 py-4 rounded-xl">
<i class="fas fa-utensils mr-2"></i> Start Attendance
</a>
<a href="reports.html" class="btn bg-white text-green-600 hover:bg-gray-100 text-lg px-8 py-4 rounded-xl">
<i class="fas fa-chart-line mr-2"></i> View Analytics
</a>
</div>
</div>
<div class="absolute bottom-0 left-0 right-0 h-24 bg-gradient-to-t from-white to-transparent"></div>
</header>
<!-- Stats Overview -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 mb-16">
<div class="stat-card">
<div class="text-5xl mb-4 text-green-600">
<i class="fas fa-users"></i>
</div>
<div class="stat-value" id="totalStudents">1,240</div>
<div class="stat-label">Total Students</div>
</div>
<div class="stat-card">
<div class="text-5xl mb-4 text-green-600">
<i class="fas fa-check-circle"></i>
</div>
<div class="stat-value" id="todayAttendance">78%</div>
<div class="stat-label">Today's Attendance</div>
</div>
<div class="stat-card">
<div class="text-5xl mb-4 text-yellow-600">
<i class="fas fa-utensils"></i>
</div>
<div class="stat-value" id="mealsServed">850</div>
<div class="stat-label">Meals Served</div>
</div>
<div class="stat-card">
<div class="text-5xl mb-4 text-red-600">
<i class="fas fa-trash-alt"></i>
</div>
<div class="stat-value" id="foodWaste">15<span class="text-2xl">kg</span></div>
<div class="stat-label">Food Waste Today</div>
</div>
</div>
<!-- Main Menu Options -->
<h2 class="text-3xl font-bold mb-8 text-center">System Dashboard</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-20">
<!-- Dining Attendance -->
<a href="attendance.html" class="card group hover:shadow-2xl transition-all duration-500">
<div class="relative mb-6">
<div class="absolute -top-2 -left-2 w-16 h-16 bg-blue-100 rounded-full opacity-70 group-hover:scale-110 transition-transform duration-500"></div>
<div class="text-blue-600 text-6xl mb-6 relative z-10 group-hover:text-blue-700 transition-colors duration-300 transform group-hover:scale-110">
<i class="fas fa-utensils"></i>
</div>
</div>
<h2 class="text-2xl font-bold mb-4 text-gray-800 group-hover:text-blue-700 transition-colors">Attendance Form A</h2>
<p class="text-gray-600 mb-6">Record students who plan to eat at the dining hall. This helps in meal preparation planning and reduces food waste.</p>
<div class="mt-4 text-blue-600 font-semibold flex items-center group-hover:text-blue-800 transition-colors">
<span class="mr-2">Go to form</span>
<i class="fas fa-arrow-right transform group-hover:translate-x-2 transition-transform"></i>
</div>
</a>
<!-- Students Who Ate -->
<a href="students-ate.html" class="card group hover:shadow-2xl transition-all duration-500">
<div class="relative mb-6">
<div class="absolute -top-2 -left-2 w-16 h-16 bg-green-100 rounded-full opacity-70 group-hover:scale-110 transition-transform duration-500"></div>
<div class="text-green-600 text-6xl mb-6 relative z-10 group-hover:text-green-700 transition-colors duration-300 transform group-hover:scale-110">
<i class="fas fa-check-circle"></i>
</div>
</div>
<h2 class="text-2xl font-bold mb-4 text-gray-800 group-hover:text-green-700 transition-colors">Attendance Form B</h2>
<p class="text-gray-600 mb-6">Confirm students who have eaten at the dining hall. Track actual consumption vs. planned attendance.</p>
<div class="mt-4 text-green-600 font-semibold flex items-center group-hover:text-green-800 transition-colors">
<span class="mr-2">Go to form</span>
<i class="fas fa-arrow-right transform group-hover:translate-x-2 transition-transform"></i>
</div>
</a>
<!-- Admin Login -->
<a href="admin-login.html" class="card group hover:shadow-2xl transition-all duration-500">
<div class="relative mb-6">
<div class="absolute -top-2 -left-2 w-16 h-16 bg-green-100 rounded-full opacity-70 group-hover:scale-110 transition-transform duration-500"></div>
<div class="text-green-600 text-6xl mb-6 relative z-10 group-hover:text-green-700 transition-colors duration-300 transform group-hover:scale-110">
<i class="fas fa-lock"></i>
</div>
</div>
<h2 class="text-2xl font-bold mb-4 text-gray-800 group-hover:text-green-700 transition-colors">Admin Portal</h2>
<p class="text-gray-600 mb-6">Access analytics dashboard, reports, student management, and RFID card management tools for administrators.</p>
<div class="mt-4 text-green-600 font-semibold flex items-center group-hover:text-green-800 transition-colors">
<span class="mr-2">Login</span>
<i class="fas fa-arrow-right transform group-hover:translate-x-2 transition-transform"></i>
</div>
</a>
<!-- Reports -->
<a href="reports.html" class="card group hover:shadow-2xl transition-all duration-500">
<div class="relative mb-6">
<div class="absolute -top-2 -left-2 w-16 h-16 bg-green-100 rounded-full opacity-70 group-hover:scale-110 transition-transform duration-500"></div>
<div class="text-green-600 text-6xl mb-6 relative z-10 group-hover:text-green-700 transition-colors duration-300 transform group-hover:scale-110">
<i class="fas fa-chart-bar"></i>
</div>
</div>
<h2 class="text-2xl font-bold mb-4 text-gray-800 group-hover:text-green-700 transition-colors">Reports & Analytics</h2>
<p class="text-gray-600 mb-6">View food waste statistics, attendance trends, and consumption patterns with interactive charts.</p>
<div class="mt-4 text-green-600 font-semibold flex items-center group-hover:text-green-800 transition-colors">
<span class="mr-2">View reports</span>
<i class="fas fa-arrow-right transform group-hover:translate-x-2 transition-transform"></i>
</div>
</a>
<!-- Quick Guide -->
<div class="card bg-gradient-to-br from-green-50 to-emerald-50 border border-green-100 md:col-span-2 lg:col-span-2">
<div class="text-green-600 text-5xl mb-6">
<i class="fas fa-question-circle"></i>
</div>
<h2 class="text-2xl font-bold mb-4 text-gray-800">How It Works</h2>
<div class="space-y-4">
<div class="flex items-start">
<div class="bg-green-100 text-green-600 rounded-full p-2 mr-3">
<i class="fas fa-1"></i>
</div>
<p class="text-gray-700">Students indicate if they will eat (Form A) — now with RFID card scanning support!</p>
</div>
<div class="flex items-start">
<div class="bg-emerald-100 text-emerald-600 rounded-full p-2 mr-3">
<i class="fas fa-2"></i>
</div>
<p class="text-gray-700">Kitchen prepares exact quantities needed based on attendance data</p>
</div>
<div class="flex items-start">
<div class="bg-green-100 text-green-600 rounded-full p-2 mr-3">
<i class="fas fa-3"></i>
</div>
<p class="text-gray-700">Students confirm they ate (Form B) — quick RFID tap confirmation</p>
</div>
<div class="flex items-start">
<div class="bg-emerald-100 text-emerald-600 rounded-full p-2 mr-3">
<i class="fas fa-4"></i>
</div>
<p class="text-gray-700">System analyzes waste and optimizes future meals</p>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="mt-16 pt-8 border-t border-gray-200">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-8">
<div>
<h3 class="text-lg font-bold mb-4 text-gray-800">WASTE-LESS</h3>
<p class="text-gray-600">Smart Food Waste Management System for educational institutions, reducing waste through data-driven insights.</p>
</div>
<div>
<h3 class="text-lg font-bold mb-4 text-gray-800">Quick Links</h3>
<div class="space-y-2">
<a href="attendance.html" class="block text-gray-600 hover:text-green-600 transition-colors"><i class="fas fa-arrow-right mr-2"></i>Attendance Form A</a>
<a href="students-ate.html" class="block text-gray-600 hover:text-green-600 transition-colors"><i class="fas fa-arrow-right mr-2"></i>Attendance Form B</a>
<a href="reports.html" class="block text-gray-600 hover:text-green-600 transition-colors"><i class="fas fa-arrow-right mr-2"></i>Reports</a>
<a href="admin-login.html" class="block text-gray-600 hover:text-green-600 transition-colors"><i class="fas fa-arrow-right mr-2"></i>Admin Portal</a>
</div>
</div>
<div>
<h3 class="text-lg font-bold mb-4 text-gray-800">Connect</h3>
<div class="flex space-x-4">
<a href="https://github.com/SMSS-Waste-Less" class="text-gray-400 hover:text-gray-800 text-2xl transition-colors">
<i class="fab fa-github"></i>
</a>
<a href="mailto:wasteless@example.com" class="text-gray-400 hover:text-gray-800 text-2xl transition-colors">
<i class="fas fa-envelope"></i>
</a>
<a href="#" class="text-gray-400 hover:text-gray-800 text-2xl transition-colors">
<i class="fas fa-info-circle"></i>
</a>
</div>
<p class="text-gray-500 text-sm mt-6">© 2025 WASTE-LESS Food Management System.<br>All rights reserved.</p>
</div>
</div>
</footer>
</div>
<script src="components/navbar.js"></script>
<script>
// Update stats with random data for demo
function updateStats() {
// Simulate changing stats
const students = document.getElementById('totalStudents');
const attendance = document.getElementById('todayAttendance');
const meals = document.getElementById('mealsServed');
const waste = document.getElementById('foodWaste');
// Randomize numbers slightly for demo
if (students) students.textContent = (1240 + Math.floor(Math.random() * 10)).toString();
if (attendance) attendance.textContent = (78 + Math.floor(Math.random() * 3)) + '%';
if (meals) meals.textContent = (850 + Math.floor(Math.random() * 20)).toString();
if (waste) waste.innerHTML = (15 + (Math.random() * 2 - 1).toFixed(1)) + '<span class="text-2xl">kg</span>';
// Add animation
[students, attendance, meals, waste].forEach(el => {
if (el) {
el.classList.add('transform', 'scale-110');
setTimeout(() => el.classList.remove('transform', 'scale-110'), 300);
}
});
}
// Update stats every 10 seconds for demo effect
setInterval(updateStats, 10000);
// Initial update
setTimeout(updateStats, 1000);
</script>
</body>
</html> |