Premium Indian pomegranate export company website. This phase adds the full public site — Home, About, Products, Gallery, and Contact (with the buyer lead form wired to Firestore + WhatsApp) — plus the Firestore rules and Cloud Function behind it. The Admin Dashboard is the one remaining phase (see Roadmap).
#FBF7F0 (base), blush #F4E1D8 (warm secondary panel — replaces
the earlier grayish tone), pomegranate #7A1F2B (primary), ruby #C8102E (CTA
accent), forest #1F3D2B (secondary/trust), gold #B8974E (premium accent).SectionDivider.tsx) between
sections, echoing a pomegranate’s calyx — used instead of a plain straight border.produce, labor (our team at work), or site (facility/equipment) — in
src/lib/data.ts → galleryPhotos. Swap for real photography via Firebase Storage
before launch; the tags make it easy to see what still needs a real-photo replacement.npm install
cp .env.example .env.local # fill in Firebase config
npm run dev
Visit http://localhost:3000.
Public site
buyer_leads, opens a prefilled WhatsApp chat as an immediate fallbackrobots.ts, sitemap.tsBackend / Firebase
firestore.rules — public create on buyer_leads only; read/update/delete
restricted to admins; gallery/testimonials/products/settings are public-read,
admin-writefunctions/ — a Cloud Function (onLeadCreated) that fires on every new buyer lead
and sends a WhatsApp Cloud API notification to the business number. If the API isn’t
configured yet, it logs a warning and relies on the client-side wa.me fallback that’s
already active on the Contact page — so lead capture keeps working either wayfirebase.json / firestore.indexes.json — ready for firebase deployADMIN_ALLOWED_EMAILS, dashboard
cards (total/today/unread leads, countries), lead table with search/filter/
pagination, lead detail modal (mark read, delete, open WhatsApp, send email),
analytics charts (top countries, monthly leads, quantity requested).cd functions
firebase functions:config:set \
whatsapp.token="YOUR_CLOUD_API_TOKEN" \
whatsapp.phone_number_id="YOUR_PHONE_NUMBER_ID" \
whatsapp.business_number="91XXXXXXXXXX"
npm run deploy
npm install -g firebase-tools
firebase login
firebase init hosting # select "Next.js" framework support if prompted
firebase deploy