miami-menu-matchmaker / custom.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>Custom Diet | 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;
}
.checkbox-item:hover {
background-color: #f0fdf4;
}
</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="index.html" class="bg-white text-green-600 px-4 py-2 rounded-full font-medium hover:bg-gray-100 transition">Back to Home</a>
</div>
</div>
</nav>
<!-- Main Content -->
<div class="container mx-auto px-4 py-12">
<div class="max-w-2xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-green-600 text-white p-6">
<h1 class="text-2xl font-bold">Create Your Custom Diet</h1>
<p class="mt-2 opacity-90">Select your specific dietary needs and preferences</p>
</div>
<div class="p-6">
<form id="customDietForm">
<!-- Dietary Restrictions -->
<div class="mb-8">
<h2 class="text-xl font-bold mb-4 text-gray-800">Dietary Restrictions</h2>
<div class="space-y-3">
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="restrictions" value="vegetarian" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Vegetarian (no meat or fish)</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="restrictions" value="vegan" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Vegan (no animal products)</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="restrictions" value="gluten-free" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Gluten-Free</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="restrictions" value="dairy-free" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Dairy-Free</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="restrictions" value="nut-free" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Nut-Free</span>
</label>
</div>
</div>
<!-- Allergies -->
<div class="mb-8">
<h2 class="text-xl font-bold mb-4 text-gray-800">Allergies</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="allergies" value="peanuts" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Peanuts</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="allergies" value="tree-nuts" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Tree Nuts</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="allergies" value="shellfish" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Shellfish</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="allergies" value="soy" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Soy</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="allergies" value="wheat" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Wheat</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="allergies" value="eggs" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Eggs</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="allergies" value="fish" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Fish</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="allergies" value="sesame" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Sesame</span>
</label>
</div>
</div>
<!-- Preferences -->
<div class="mb-8">
<h2 class="text-xl font-bold mb-4 text-gray-800">Dietary Preferences</h2>
<div class="space-y-3">
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="preferences" value="low-carb" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Low-Carb/Keto</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="preferences" value="paleo" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Paleo</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="preferences" value="mediterranean" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Mediterranean</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="preferences" value="organic" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Organic Preferred</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="preferences" value="halal" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Halal</span>
</label>
<label class="checkbox-item flex items-center p-3 rounded-lg cursor-pointer transition">
<input type="checkbox" name="preferences" value="kosher" class="form-checkbox h-5 w-5 text-green-600 rounded">
<span class="ml-3 text-gray-700">Kosher</span>
</label>
</div>
</div>
<!-- Additional Notes -->
<div class="mb-8">
<h2 class="text-xl font-bold mb-4 text-gray-800">Additional Notes</h2>
<textarea name="notes" rows="4" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:border-green-500" placeholder="Any other specific dietary needs or preferences..."></textarea>
</div>
<div class="flex justify-center">
<button type="submit" class="bg-green-600 text-white px-8 py-3 rounded-full text-lg font-medium hover:bg-green-700 transition flex items-center">
<i data-feather="search" class="w-5 h-5 mr-2"></i>
Find Matching Meals
</button>
</div>
</form>
</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="index.html" class="text-gray-400 hover:text-white transition">Home</a></li>
<li><a href="about.html" class="text-gray-400 hover:text-white transition">About</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Contact</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();
document.getElementById('customDietForm').addEventListener('submit', function(e) {
e.preventDefault();
const formData = new FormData(this);
const params = new URLSearchParams();
for (const [key, value] of formData.entries()) {
params.append(key, value);
}
window.location.href = `results.html?${params.toString()}`;
});
</script>
</body>
</html>