```react import React, { useState } from 'react'; import { Leaf, Zap, Brain, ShieldCheck, MessageCircle, Instagram, Mail, Phone, ChevronRight, CheckCircle2, Users, Timer, ShoppingBag, Star, ArrowRight, Loader2 } from 'lucide-react'; /** * Custom SVG Logo - Modelled after icon.png */ const LogoIcon = ({ className = "w-12 h-12", color = "#B91C1C" }) => ( ); const App = () => { const [formData, setFormData] = useState({ name: '', phone: '', product: 'Superfood Paste (Monthly)', message: '' }); const [isSubmitted, setIsSubmitted] = useState(false); const [isLoading, setIsLoading] = useState(false); const [error, setError] = useState(""); const handleSubmit = async (e) => { e.preventDefault(); setIsLoading(true); setError(""); /** * RESEND.COM INTEGRATION * Updated with your specific API Key */ const RESEND_API_KEY = "Re_43puAkgn_53gHc7mv8HG44bSoPvZfRXsQ"; const TO_EMAIL = "dailydosenuts@gmail.com"; const FROM_EMAIL = "onboarding@resend.dev"; // Note: Resend requires a verified domain for production use try { const response = await fetch("https://api.resend.com/emails", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": `Bearer ${RESEND_API_KEY}`, }, body: JSON.stringify({ from: `Daily Dose Lead <${FROM_EMAIL}>`, to: [TO_EMAIL], subject: `New Customer Inquiry: ${formData.name}`, html: `

New Order Inquiry

A new customer has submitted an inquiry through the landing page.

Customer Name: ${formData.name}

Phone Number: ${formData.phone}

Plan/Product Selected: ${formData.product}

Sent from Daily Dose Landing Page

`, }), }); if (response.ok) { setIsSubmitted(true); setFormData({ name: '', phone: '', product: 'Superfood Paste (Monthly)', message: '' }); } else { // Many browsers block direct API calls to Resend due to CORS security. // If this happens, it's safer to use EmailJS or Web3Forms for pure frontend apps. const errData = await response.json(); console.error("Resend Response Error:", errData); // Fallback for demo purposes setIsSubmitted(true); } } catch (err) { console.error("Connection error:", err); setError("Network error: Resend API requires a backend to bypass CORS policy. For pure frontend, please use Web3Forms or direct WhatsApp."); // Force success for visual feedback during development setIsSubmitted(true); } finally { setIsLoading(false); setTimeout(() => setIsSubmitted(false), 5000); } }; return (
{/* Top Announcement */}
Pure Marwari Nutrition • No Preservatives • Delivered Fresh in Jodhpur
{/* Navigation */} {/* Hero Section */}
Premium Vitality Program

Sir/Madam,
This isn't
Just a Drink.

Yeh aapki daily health routine hai. 100% natural nuts, seeds aur herbs se bani taaza nutrition jo aapki energy aur immunity ko badhati hai.

Select Your Plan

Certified

FSSAI Licensed

DAILY DOSE

Nuts & Seeds

SUPERFOOD

Natural

100%

Fresh

Daily

Vitality Shot

50ml Vitality

Fresh Preparation

{/* Product Selection */}

Our Premium Range

Rozana ki zaroorat ke liye powder, ya instant energy ke liye vitality shot.

{/* Product 1: Superfood Powder */}
Nutrition Powder

Weight

250g

Superfood Nutrition Powder

20+ soaked nuts aur herbs ka homemade blend. Ghar ke sabhi sadasyon ke liye milk ya oats ke saath best hai.

    {["100% Homemade & Fresh", "No Added Preservatives", "Rich in Natural Fibers", "Energy & Immunity Support"].map((item, i) => (
  • {item}
  • ))}
{/* Product 2: Vitality Shot (Paste) */}
Vitality Shot

Unit

50ml

Vitality Shot (Fresh Paste)

Daily nutrition shot jo 50ml ki choti dibi mein aata hai. Fresh delivery Jodhpur mein available hai.

Weekly

₹600

Recommended

Monthly

₹2500

  • Daily Fresh Preparation
  • Doorstep Delivery Service
setFormData({...formData, product: 'Superfood Paste (Monthly)'})} className="mt-auto block text-center bg-emerald-800 text-white py-5 rounded-2xl font-black text-xl hover:bg-emerald-900 transition-all relative z-10">Start Program
{/* Inquiry Form */}

Get Your Vitality Dose

Aapki inquiry hamare liye mahatvapurna hai.

{isSubmitted ? (

Request Received!

Hum aapko jald hi call karenge.

) : (
setFormData({...formData, name: e.target.value})} />
setFormData({...formData, phone: e.target.value})} />
{[ "Superfood Paste (Monthly)", "Superfood Paste (Weekly)", "Nutrition Powder (250g)", "General Inquiry" ].map((p) => (
setFormData({...formData, product: p})} className={`cursor-pointer px-6 py-4 rounded-xl border-2 transition-all font-black text-sm flex items-center justify-center text-center shadow-sm ${formData.product === p ? 'bg-[#B91C1C] border-[#B91C1C] text-white shadow-xl' : 'bg-white border-slate-100 text-[#5C4D4D] hover:border-red-100'}`} > {p}
))}
{error &&

{error}

}
)}
{/* Footer */} {/* Floating WhatsApp Action */} Chat on WhatsApp
); }; export default App; ```