miami-menu-matchmaker / index.html
klostegj's picture
make sure all buttons are actually interactive
ac33a4e verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Miami Menu Matchmaker</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
}
.diet-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);
}
.food-place {
transition: all 0.3s ease;
}
.food-place:hover {
transform: scale(1.03);
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="bg-green-600 text-white shadow-lg">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="utensils" class="w-6 h-6"></i>
<span class="font-bold text-xl">Miami Menu Matchmaker</span>
</div>
<div>
<a href="about.html" class="bg-white text-green-600 px-4 py-2 rounded-full font-medium hover:bg-gray-100 transition">About</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<div class="bg-green-500 text-white py-16">
<div class="container mx-auto px-4 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-4">Find Your Perfect Campus Meal</h1>
<p class="text-xl md:text-2xl mb-8">Match your dietary needs with delicious options across Miami University</p>
<div class="max-w-md mx-auto bg-white rounded-full shadow-lg overflow-hidden">
<div class="flex">
<input type="text" placeholder="Search for specific foods..." class="flex-grow px-4 py-3 text-gray-700 focus:outline-none">
<button class="bg-green-600 text-white px-6 py-3 hover:bg-green-700 transition">
<i data-feather="search" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
</div>
<!-- Diet Selection Section -->
<div class="container mx-auto px-4 py-12">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">Choose Your Diet Preference</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Vegetarian -->
<div class="diet-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer transition">
<div class="h-40 bg-gradient-to-r from-green-400 to-green-600 flex items-center justify-center">
<i data-feather="leaf" class="w-12 h-12 text-white"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Vegetarian</h3>
<p class="text-gray-600">Plant-based meals without meat or fish</p>
<a href="results.html?diet=vegetarian" class="inline-block mt-4 bg-green-500 text-white px-4 py-2 rounded-full hover:bg-green-600 transition">Select</a>
</div>
</div>
<!-- Vegan -->
<div class="diet-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer transition">
<div class="h-40 bg-gradient-to-r from-purple-400 to-purple-600 flex items-center justify-center">
<i data-feather="droplet" class="w-12 h-12 text-white"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Vegan</h3>
<p class="text-gray-600">No animal products including dairy and eggs</p>
<a href="results.html?diet=vegan" class="inline-block mt-4 bg-purple-500 text-white px-4 py-2 rounded-full hover:bg-purple-600 transition">Select</a>
</div>
</div>
<!-- Gluten-Free -->
<div class="diet-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer transition">
<div class="h-40 bg-gradient-to-r from-yellow-400 to-yellow-600 flex items-center justify-center">
<i data-feather="circle" class="w-12 h-12 text-white"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Gluten-Free</h3>
<p class="text-gray-600">Avoiding gluten found in wheat, barley, and rye</p>
<a href="results.html?diet=glutenfree" class="inline-block mt-4 bg-yellow-500 text-white px-4 py-2 rounded-full hover:bg-yellow-600 transition">Select</a>
</div>
</div>
<!-- Keto -->
<div class="diet-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer transition">
<div class="h-40 bg-gradient-to-r from-red-400 to-red-600 flex items-center justify-center">
<i data-feather="zap" class="w-12 h-12 text-white"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Keto</h3>
<p class="text-gray-600">High-fat, moderate-protein, low-carb meals</p>
<a href="results.html?diet=keto" class="inline-block mt-4 bg-red-500 text-white px-4 py-2 rounded-full hover:bg-red-600 transition">Select</a>
</div>
</div>
<!-- Paleo -->
<div class="diet-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer transition">
<div class="h-40 bg-gradient-to-r from-blue-400 to-blue-600 flex items-center justify-center">
<i data-feather="compass" class="w-12 h-12 text-white"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Paleo</h3>
<p class="text-gray-600">Whole foods similar to what might have been eaten during the Paleolithic era</p>
<a href="results.html?diet=paleo" class="inline-block mt-4 bg-blue-500 text-white px-4 py-2 rounded-full hover:bg-blue-600 transition">Select</a>
</div>
</div>
<!-- Mediterranean -->
<div class="diet-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer transition">
<div class="h-40 bg-gradient-to-r from-orange-400 to-orange-600 flex items-center justify-center">
<i data-feather="sun" class="w-12 h-12 text-white"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Mediterranean</h3>
<p class="text-gray-600">Plant-based, healthy fats, with moderate amounts of fish and poultry</p>
<a href="results.html?diet=mediterranean" class="inline-block mt-4 bg-orange-500 text-white px-4 py-2 rounded-full hover:bg-orange-600 transition">Select</a>
</div>
</div>
<!-- Custom -->
<div class="diet-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer transition">
<div class="h-40 bg-gradient-to-r from-gray-400 to-gray-600 flex items-center justify-center">
<i data-feather="sliders" class="w-12 h-12 text-white"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Custom Diet</h3>
<p class="text-gray-600">Create your own dietary restrictions and preferences</p>
<a href="custom.html" class="inline-block mt-4 bg-gray-500 text-white px-4 py-2 rounded-full hover:bg-gray-600 transition">Select</a>
</div>
</div>
</div>
</div>
<!-- Featured Dining Locations -->
<div class="bg-gray-100 py-12">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">Popular Dining Locations</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Armstrong Student Center -->
<div class="food-place bg-white rounded-lg shadow-md overflow-hidden">
<img src="http://static.photos/food/640x360/1" alt="Armstrong Student Center" class="w-full h-48 object-cover">
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Armstrong Student Center</h3>
<div class="flex items-center mb-3">
<div class="flex text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
</div>
<span class="text-gray-600 ml-2">4.8 (124)</span>
</div>
<p class="text-gray-600 mb-4">Variety of options including salad bar, grill, and international cuisine.</p>
<div class="flex flex-wrap gap-2 mb-4">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded">Vegetarian</span>
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">Vegan</span>
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded">Gluten-Free</span>
</div>
<a href="location.html?id=armstrong" class="block w-full bg-green-600 text-white py-2 rounded-lg hover:bg-green-700 transition text-center">View Menu</a>
</div>
</div>
<!-- Bell Tower Place -->
<div class="food-place bg-white rounded-lg shadow-md overflow-hidden">
<img src="http://static.photos/food/640x360/2" alt="Bell Tower Place" class="w-full h-48 object-cover">
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Bell Tower Place</h3>
<div class="flex items-center mb-3">
<div class="flex text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4"></i>
</div>
<span class="text-gray-600 ml-2">4.5 (98)</span>
</div>
<p class="text-gray-600 mb-4">Casual dining with comfort food and daily specials.</p>
<div class="flex flex-wrap gap-2 mb-4">
<span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Keto</span>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">Paleo</span>
</div>
<a href="location.html?id=belltower" class="block w-full bg-green-600 text-white py-2 rounded-lg hover:bg-green-700 transition text-center">View Menu</a>
</div>
</div>
<!-- Maple Street Station -->
<div class="food-place bg-white rounded-lg shadow-md overflow-hidden">
<img src="http://static.photos/food/640x360/3" alt="Maple Street Station" class="w-full h-48 object-cover">
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Maple Street Station</h3>
<div class="flex items-center mb-3">
<div class="flex text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4"></i>
</div>
<span class="text-gray-600 ml-2">4.3 (87)</span>
</div>
<p class="text-gray-600 mb-4">International cuisine with rotating regional specialties.</p>
<div class="flex flex-wrap gap-2 mb-4">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded">Vegetarian</span>
<span class="bg-orange-100 text-orange-800 text-xs px-2 py-1 rounded">Mediterranean</span>
</div>
<a href="location.html?id=maplest" class="block w-full bg-green-600 text-white py-2 rounded-lg hover:bg-green-700 transition text-center">View Menu</a>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<h3 class="text-lg font-bold mb-4">Miami Menu Matchmaker</h3>
<p class="text-gray-400">Helping students find the perfect meal options that fit their dietary needs across Miami University's campus.</p>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">About Us</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Feedback</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Connect</h3>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="facebook"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="instagram"></i></a>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400">
<p>© 2023 Miami Menu Matchmaker. All rights reserved.</p>
</div>
</div>
</footer>
<script>
feather.replace();
// Simple animation for diet cards
document.querySelectorAll('.diet-card').forEach(card => {
card.addEventListener('click', function() {
// In a real app, this would navigate to the diet results page
alert(`Showing results for ${this.querySelector('h3').textContent} diet`);
});
});
// Animation for food place cards
document.querySelectorAll('.food-place button').forEach(button => {
button.addEventListener('click', function() {
// In a real app, this would show the menu for the selected location
const location = this.closest('.food-place').querySelector('h3').textContent;
alert(`Showing menu for ${location}`);
});
});
</script>
</body>
</html>