Build a responsive web app prototype for a health-focused food discovery platform- with basic tech stack so it can be run everywhere easily and i can see preview in v0
- Home Page:
- Integrate Google Maps to display nearby food outlets.
- Use pins/markers to represent food outlets on the map.
- Clicking a pin should open a popup with outlet name, short info, and a link to view full outlet profile.
- Outlet Profile Page:
- Show outlet name, address, and a "Verified for Safety" badge if applicable.
- List of food items with:
- Name, ingredients, image
- Calorie and nutrition info
- Allergen info and health warnings
- AI Chat Assistant Section:
- A simple chat UI where users can type a food item name and receive:
- Nutritional breakdown
- Potential allergy or health risks
- Caution suggestions based on common health conditions
- Search and Filter Bar:
- Allow users to filter food by tags: Low Sugar, Gluten-Free, Diabetic-Friendly, High Protein, etc.
- Navigation Bar:
- Tabs: Home | Verified Outlets | AI Assistant | Profile
- Use mock data for outlets and food items for now.
- Make the UI clean and modern using Tailwind CSS.
- If real Google Maps is not possible, use a placeholder with a fake map and pins to simulate the experience.
I'll create a responsive web app prototype for a health-focused food discovery platform using Next.js and Tailwind CSS. This will be a simple tech stack that can run easily anywhere.
This health-focused food discovery platform includes all the requested features:
Home Page with Map:
Outlet Profile Page:
AI Chat Assistant:
Search and Filter Bar:
Navigation Bar:
Mock Data:
Clean UI with Tailwind CSS:
Map Placeholder:
The application is fully responsive and works on both mobile and desktop devices. The UI is clean and focused on health information, making it easy for users to find nutritious food options.
google map api se connect krke isko working bna do search krne pr work kre
I'll update the application to connect with the Google Maps API and make the search functionality work. Let's implement this:
I've updated the application to integrate with the Google Maps API and made the search functionality work. Here's what I've done:
@react-google-maps/api
library to render the Google MapSetup Google Maps API Key:
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY
Search for Locations:
Filter Results:
Now the application has a fully functional Google Maps integration with search capabilities. The search bar will suggest locations as you type, and selecting a location will center the map on that area. The dietary filters still work to show only outlets that match your preferences.
Please make sure to add the following environment variable to your project: