Create a simple, single-page website for "VITAP Bike Taxi" using React and Tailwind CSS, with no backend or database, and deploy it directly to Netlify or Vercel. The site should have a clean, modern design with a booking form that sends ride details to a WhatsApp bot upon submission. Include a poster image and ensure the site is responsive and optimized for production.Requirements:1. Framework and Styling: - Use React for the frontend. - Use Tailwind CSS (installed via npm, not CDN) for styling. - No backend or database required.2. Page Content: - Single page with a centered form and poster image. - Title: "VITAP Bike Taxi" (h1, bold, green-600 color, centered). - Poster image: - URL: https://via.placeholder.com/400x300.png?text=VITAP+Bike+Taxi+Poster (replace with [PROVIDE YOUR POSTER URL HERE] once provided). - Display full-width, auto-height, with rounded corners and margin below. - Booking form with fields: - Name (text input, required, placeholder: "Enter your name"). - Phone (tel input, required, placeholder: "Enter your phone number"). - Destination (text input, required, placeholder: "Enter your destination"). - Submit button ("Book Ride", green-600 background, white text, full-width, hover effect to green-700). - Form styling: Clean, with labels, borders, and focus states (use Tailwind classes like border-gray-300, focus:ring-green-500). - On form submission: - Prevent default behavior. - Construct a WhatsApp URL with the message: "New Bike Taxi Booking:\nName: [name]\nPhone: [phone]\nDestination: [destination]". - WhatsApp number: +919876543210 (replace with [PROVIDE YOUR WHATSAPP NUMBER HERE] once provided). - Open the URL in a new tab (window.open
). - Clear the form. - Show a success message ("Ride booked! Check WhatsApp for confirmation") in green-600, centered, for 3 seconds. - Background: Light gray (bg-gray-100), with the form in a white card (bg-white, rounded-lg, shadow-lg).3. Project Structure: - Include: - public/index.html
: Basic HTML with a root div and title "VITAP Bike Taxi". - src/App.jsx
: Main component with the form and logic. - src/index.js
: React entry point. - src/styles.css
: Tailwind CSS imports. - package.json
: With dependencies (react, react-dom) and devDependencies (vite, tailwindcss, postcss, autoprefixer, @vitejs/plugin-react). - tailwind.config.js
: Configure Tailwind for React. - postcss.config.js
: Include Tailwind and autoprefixer. - Use Vite as the build tool for fast bundling.4. Deployment: - Automatically deploy to Netlify or Vercel with one click. - Ensure Node.js version 18 is used (add .nvmrc
with "18"). - Build command: npm run build
. - Publish directory: dist
. - Provide the live URL after deployment.5. Additional Notes: - Ensure the site is responsive (mobile-friendly). - Optimize for production (minify CSS/JS, use Tailwind via npm). - No authentication, dashboard, or backend features. - Test that the form submits to WhatsApp and the poster displays correctly.Please generate the website, create all necessary files, and deploy it to Netlify or Vercel, providing the final URL. If any clarification is needed for the poster URL or WhatsApp number, use the placeholders provided and note where replacements are required.
I'll create a complete VITAP Bike Taxi website using React and Tailwind CSS with the poster image you provided. I can see the WhatsApp number (+91 9032789753) from the poster, so I'll use that for the booking integration.
I've created a complete VITAP Bike Taxi website with all the features you requested:
.nvmrc
The project is ready to deploy to either:
dist
folder after running npm run build
The website uses your actual poster image and WhatsApp number, so it's ready to go live immediately!
Build a responsive and user-friendly website called "VITAP Bike Taxi Booking" for a student bike taxi service around VIT-AP University.🌟 FEATURES TO INCLUDE:1. 🏍️ Booking Form: - Fields: - Name (text) - Phone Number (text) - Destination (dropdown with fixed options) - Destination Options: - Vijayawada Railway Station – 16 km - Vijayawada Bus Stand – 16 km - Mangalagiri – 14 km - Guntur – 34 km - Mandadam Centre – 5.1 km - Optional: Checkbox for "Rainy/Night Ride" - Show dynamically calculated fare in real-time using formula: Base Fare: ₹40 Pickup Fee: ₹25 ₹10 per km ₹50 extra if Rainy/Night Ride is checked
Total Fare = 40 + 25 + (Distance × 10) [+50 if checkbox is checked]2. 🟢 On Submit: - Auto-generate a Booking ID - Send a WhatsApp message using a pre-filled WhatsApp link like: https://wa.me/<PhoneNumber>?text=Booking%20Details:%0AName:%20{UserName}%0ADestination:%20{Destination}%0AFare:%20₹{Fare}%0ABooking%20ID:%20{ID}
- Open WhatsApp message in a new tab - Show a success confirmation message on the website3. 🖼️ Add Poster: - Display a full-width banner/poster at the top of the website (you can use a placeholder or sample VITAP taxi image)4. 💡 Other: - No login, no signup, no admin dashboard - No Google Sign-in, no location tracking - Mobile-friendly, clean, attractive UI - Include branding as "VITAP Bike Taxi" at the top🧰 Technical Notes: - Fully static site (no backend needed) - Optional: Store past bookings in localStorage for user's reference🚀 Deploy this as a static site that works 24/7
I'll create a comprehensive VITAP Bike Taxi booking website with all the features you requested, including dynamic fare calculation, WhatsApp integration, and booking history.
I've created a comprehensive VITAP Bike Taxi Booking website with all the features you requested! 🚀
The website is 100% static, requires no backend, and is ready to deploy to Vercel/Netlify immediately! 🎉