diff --git a/index.html b/index.html
index 3b42b91..941d712 100644
--- a/index.html
+++ b/index.html
@@ -1,8 +1,8 @@
-
+
-
+
Mani Agro Exports | Indian Agricultural Products for Global Markets
diff --git a/public/favicon.svg b/public/favicon.svg
index f8bee38..c188e3a 100644
--- a/public/favicon.svg
+++ b/public/favicon.svg
@@ -1,7 +1,5 @@
-
\ No newline at end of file
+
diff --git a/public/images/coriander.png b/public/images/coriander.png
new file mode 100644
index 0000000..291f18f
Binary files /dev/null and b/public/images/coriander.png differ
diff --git a/public/images/red-chilli.png b/public/images/red-chilli.png
new file mode 100644
index 0000000..6845dcd
Binary files /dev/null and b/public/images/red-chilli.png differ
diff --git a/public/images/shipping-hero.png b/public/images/shipping-hero.png
new file mode 100644
index 0000000..35d9c67
Binary files /dev/null and b/public/images/shipping-hero.png differ
diff --git a/public/images/turmeric.png b/public/images/turmeric.png
new file mode 100644
index 0000000..2464c28
Binary files /dev/null and b/public/images/turmeric.png differ
diff --git a/public/images/vermicompost.png b/public/images/vermicompost.png
new file mode 100644
index 0000000..a075769
Binary files /dev/null and b/public/images/vermicompost.png differ
diff --git a/src/api/inquiries.ts b/src/api/inquiries.ts
new file mode 100644
index 0000000..35e2e92
--- /dev/null
+++ b/src/api/inquiries.ts
@@ -0,0 +1,28 @@
+import type { InquiryFormData } from '../types';
+
+export async function submitInquiry(inquiry: InquiryFormData): Promise {
+ const controller = new AbortController();
+ const timeout = window.setTimeout(() => controller.abort(), 45000);
+ try {
+ const response = await fetch('/api/inquiries', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify(inquiry),
+ signal: controller.signal,
+ });
+ if (!response.ok) {
+ throw new Error(response.status === 429
+ ? 'Too many requests. Please wait a minute or contact us on WhatsApp.'
+ : 'Your inquiry could not be sent. Please try again or contact us on WhatsApp.');
+ }
+ const result: { ok?: boolean } = await response.json();
+ if (result.ok !== true) throw new Error('Your inquiry could not be confirmed. Please contact us on WhatsApp.');
+ } catch (failure) {
+ if (failure instanceof DOMException && failure.name === 'AbortError') {
+ throw new Error('Sending took too long to confirm. Please contact us on WhatsApp.');
+ }
+ throw failure;
+ } finally {
+ window.clearTimeout(timeout);
+ }
+}
diff --git a/src/components/about/CompanyStory/CompanyStory.tsx b/src/components/about/CompanyStory/CompanyStory.tsx
index 9ac7099..6c0f314 100644
--- a/src/components/about/CompanyStory/CompanyStory.tsx
+++ b/src/components/about/CompanyStory/CompanyStory.tsx
@@ -48,7 +48,7 @@ export const CompanyStory: React.FC = () => {
>
diff --git a/src/components/common/FloatingWhatsApp/FloatingWhatsApp.tsx b/src/components/common/FloatingWhatsApp/FloatingWhatsApp.tsx
index 2a1ed56..26b62d5 100644
--- a/src/components/common/FloatingWhatsApp/FloatingWhatsApp.tsx
+++ b/src/components/common/FloatingWhatsApp/FloatingWhatsApp.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { Box, Tooltip, Fab } from '@mui/material';
-import { MessageCircle } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../WhatsAppIcon';
import { COMPANY_INFO } from '../../../data/companyData';
export const FloatingWhatsApp: React.FC = () => {
diff --git a/src/components/common/Footer/ContactSnippet.tsx b/src/components/common/Footer/ContactSnippet.tsx
index 95ab9f3..3b1a07f 100644
--- a/src/components/common/Footer/ContactSnippet.tsx
+++ b/src/components/common/Footer/ContactSnippet.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { Box, Typography, Link, Button } from '@mui/material';
-import { Phone, Mail, User, MapPin, MessageCircle } from 'lucide-react';
+import { Phone, Mail, User, MapPin } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../WhatsAppIcon';
import { COMPANY_INFO } from '../../../data/companyData';
import { useQuote } from '../../../context/QuoteContext';
diff --git a/src/components/common/Header/MobileDrawer.tsx b/src/components/common/Header/MobileDrawer.tsx
index 53bb5f8..2803c2f 100644
--- a/src/components/common/Header/MobileDrawer.tsx
+++ b/src/components/common/Header/MobileDrawer.tsx
@@ -11,7 +11,8 @@ import {
Divider,
Button,
} from '@mui/material';
-import { X, MessageCircle, FileText } from 'lucide-react';
+import { X, FileText } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../WhatsAppIcon';
import { useNavigate } from 'react-router-dom';
import { COMPANY_INFO } from '../../../data/companyData';
import { useQuote } from '../../../context/QuoteContext';
diff --git a/src/components/common/Header/Navbar.tsx b/src/components/common/Header/Navbar.tsx
index 2b25aba..6467e5d 100644
--- a/src/components/common/Header/Navbar.tsx
+++ b/src/components/common/Header/Navbar.tsx
@@ -8,7 +8,8 @@ import {
Button,
IconButton,
} from '@mui/material';
-import { Menu, FileText, MessageCircle, Sprout } from 'lucide-react';
+import { Menu, FileText, Sprout } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../WhatsAppIcon';
import { NavLink, useNavigate, useLocation } from 'react-router-dom';
import { TopAnnouncementBar } from './TopAnnouncementBar';
import { MobileDrawer } from './MobileDrawer';
diff --git a/src/components/common/QuoteModal/QuoteModal.tsx b/src/components/common/QuoteModal/QuoteModal.tsx
index 467e86c..a84599e 100644
--- a/src/components/common/QuoteModal/QuoteModal.tsx
+++ b/src/components/common/QuoteModal/QuoteModal.tsx
@@ -1,3 +1,4 @@
+import { submitInquiry } from '../../../api/inquiries';
import React, { useState, useEffect } from 'react';
import {
Dialog,
@@ -12,7 +13,8 @@ import {
Alert,
CircularProgress,
} from '@mui/material';
-import { X, Send, CheckCircle2, MessageCircle } from 'lucide-react';
+import { X, Send, CheckCircle2 } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../WhatsAppIcon';
import confetti from 'canvas-confetti';
import { useQuote } from '../../../context/QuoteContext';
import { PRODUCTS } from '../../../data/productsData';
@@ -29,14 +31,15 @@ export const QuoteModal: React.FC = () => {
phone: '',
country: '',
productInterest: '',
- estimatedQuantity: '1x20ft Container (FCL)',
- packagingPreference: '25kg Paper / PP Bags',
+ estimatedQuantity: '1x20ft Container (FCL - approx 14-18 MT)',
+ packagingPreference: '25kg Multi-layer Kraft Paper Bags',
destinationPort: '',
message: '',
});
const [submitted, setSubmitted] = useState(false);
const [loading, setLoading] = useState(false);
+ const [error, setError] = useState('');
useEffect(() => {
if (selectedProductForQuote) {
@@ -57,19 +60,20 @@ export const QuoteModal: React.FC = () => {
setFormData((prev) => ({ ...prev, [name]: value }));
};
- const handleSubmit = (e: React.FormEvent) => {
+ const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
+ if (loading) return;
setLoading(true);
-
- setTimeout(() => {
- setLoading(false);
+ setError('');
+ try {
+ await submitInquiry(formData);
setSubmitted(true);
- confetti({
- particleCount: 80,
- spread: 70,
- origin: { y: 0.6 },
- });
- }, 800);
+ confetti({ particleCount: 70, spread: 60, origin: { y: 0.6 } });
+ } catch (failure) {
+ setError(failure instanceof Error ? failure.message : 'Unable to send. Please try WhatsApp.');
+ } finally {
+ setLoading(false);
+ }
};
const handleReset = () => {
@@ -172,6 +176,7 @@ export const QuoteModal: React.FC = () => {
) : (
+ {error && {error}}
Looking for commercial pricing, custom mesh size, ASTA color, or sample dispatch? Fill out your requirements below for an immediate response.
diff --git a/src/components/common/WhatsAppIcon.tsx b/src/components/common/WhatsAppIcon.tsx
new file mode 100644
index 0000000..e4d18ee
--- /dev/null
+++ b/src/components/common/WhatsAppIcon.tsx
@@ -0,0 +1,11 @@
+import type { SVGProps } from 'react';
+
+type Props = SVGProps & { size?: number | string };
+
+export function WhatsAppIcon({ size = 24, color = 'currentColor', ...props }: Props) {
+ return (
+
+ );
+}
diff --git a/src/components/contact/ContactForm/ContactForm.tsx b/src/components/contact/ContactForm/ContactForm.tsx
index 105c9c2..1d4d6e1 100644
--- a/src/components/contact/ContactForm/ContactForm.tsx
+++ b/src/components/contact/ContactForm/ContactForm.tsx
@@ -1,3 +1,4 @@
+import { submitInquiry } from '../../../api/inquiries';
import React, { useState } from 'react';
import {
Box,
@@ -6,14 +7,13 @@ import {
TextField,
MenuItem,
Button,
- Stack,
Alert,
CircularProgress,
} from '@mui/material';
-import { Send, CheckCircle2, MessageCircle } from 'lucide-react';
+import { Send, CheckCircle2 } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../../common/WhatsAppIcon';
import confetti from 'canvas-confetti';
import { PRODUCTS } from '../../../data/productsData';
-import { COMPANY_INFO } from '../../../data/companyData';
import { InquiryFormData } from '../../../types';
export const ContactForm: React.FC = () => {
@@ -24,7 +24,7 @@ export const ContactForm: React.FC = () => {
phone: '',
country: '',
productInterest: 'All / Multiple Products',
- estimatedQuantity: '1x20ft Container (FCL)',
+ estimatedQuantity: '1x20ft Container (FCL - 14 to 18 MT)',
packagingPreference: '25kg Paper / PP Bags',
destinationPort: '',
message: '',
@@ -32,25 +32,27 @@ export const ContactForm: React.FC = () => {
const [submitted, setSubmitted] = useState(false);
const [loading, setLoading] = useState(false);
+ const [error, setError] = useState('');
const handleChange = (e: React.ChangeEvent) => {
const { name, value } = e.target;
setFormData((prev) => ({ ...prev, [name]: value }));
};
- const handleSubmit = (e: React.FormEvent) => {
+ const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
+ if (loading) return;
setLoading(true);
-
- setTimeout(() => {
- setLoading(false);
+ setError('');
+ try {
+ await submitInquiry(formData);
setSubmitted(true);
- confetti({
- particleCount: 70,
- spread: 60,
- origin: { y: 0.6 },
- });
- }, 700);
+ confetti({ particleCount: 70, spread: 60, origin: { y: 0.6 } });
+ } catch (failure) {
+ setError(failure instanceof Error ? failure.message : 'Unable to send. Please try WhatsApp.');
+ } finally {
+ setLoading(false);
+ }
};
const whatsappMsg = `Hello Mihir Motiyani, I am ${formData.name} from ${formData.companyName} (${formData.country}). Interested in ${formData.productInterest}. Qty: ${formData.estimatedQuantity}. Destination Port: ${formData.destinationPort}.`;
@@ -103,6 +105,7 @@ export const ContactForm: React.FC = () => {
) : (
+ {error && {error}}
Send an Export RFQ / Inquiry
diff --git a/src/components/contact/ContactInfoCards/ContactInfoCards.tsx b/src/components/contact/ContactInfoCards/ContactInfoCards.tsx
index 4e26ccc..dd44955 100644
--- a/src/components/contact/ContactInfoCards/ContactInfoCards.tsx
+++ b/src/components/contact/ContactInfoCards/ContactInfoCards.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { Box, Grid, Typography, Paper, Stack, Button, Link } from '@mui/material';
-import { Phone, Mail, User, Clock, MessageCircle, MapPin } from 'lucide-react';
+import { Phone, Mail, User, Clock, MapPin } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../../common/WhatsAppIcon';
import { COMPANY_INFO } from '../../../data/companyData';
export const ContactInfoCards: React.FC = () => {
diff --git a/src/components/home/HeroSection/HeroSection.tsx b/src/components/home/HeroSection/HeroSection.tsx
index f840785..0c44411 100644
--- a/src/components/home/HeroSection/HeroSection.tsx
+++ b/src/components/home/HeroSection/HeroSection.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { Box, Container, Typography, Button, Chip } from '@mui/material';
-import { FileText, ArrowRight, MessageCircle, CheckCircle } from 'lucide-react';
+import { FileText, ArrowRight, CheckCircle } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../../common/WhatsAppIcon';
import { useNavigate } from 'react-router-dom';
import { useQuote } from '../../../context/QuoteContext';
import { COMPANY_INFO } from '../../../data/companyData';
@@ -15,7 +16,7 @@ export const HeroSection: React.FC = () => {
sx={{
position: 'relative',
bgcolor: '#0D211A',
- backgroundImage: 'linear-gradient(to right, rgba(13, 33, 26, 0.95) 0%, rgba(13, 33, 26, 0.85) 50%, rgba(13, 33, 26, 0.75) 100%), url(/images/shipping-hero.jpg)',
+ backgroundImage: 'linear-gradient(to right, rgba(13, 33, 26, 0.95) 0%, rgba(13, 33, 26, 0.85) 50%, rgba(13, 33, 26, 0.75) 100%), url(/images/shipping-hero.png)',
backgroundSize: 'cover',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
diff --git a/src/components/home/PartnerCTA/PartnerCTA.tsx b/src/components/home/PartnerCTA/PartnerCTA.tsx
index 0712b6e..46c08c5 100644
--- a/src/components/home/PartnerCTA/PartnerCTA.tsx
+++ b/src/components/home/PartnerCTA/PartnerCTA.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { Box, Container, Typography, Button, Paper } from '@mui/material';
-import { Handshake, PhoneCall, Mail, MessageCircle, FileText } from 'lucide-react';
+import { Handshake, PhoneCall, Mail, FileText } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../../common/WhatsAppIcon';
import { COMPANY_INFO } from '../../../data/companyData';
import { useQuote } from '../../../context/QuoteContext';
diff --git a/src/components/products/ProductsHero/ProductsHero.tsx b/src/components/products/ProductsHero/ProductsHero.tsx
index 00e6fea..2305789 100644
--- a/src/components/products/ProductsHero/ProductsHero.tsx
+++ b/src/components/products/ProductsHero/ProductsHero.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { Box, Container, Typography, Chip, Button, Stack } from '@mui/material';
-import { FileText, MessageCircle } from 'lucide-react';
+import { FileText } from 'lucide-react';
+import { WhatsAppIcon as MessageCircle } from '../../common/WhatsAppIcon';
import { useQuote } from '../../../context/QuoteContext';
import { COMPANY_INFO } from '../../../data/companyData';
diff --git a/src/data/productsData.ts b/src/data/productsData.ts
index 7025174..aa2e997 100644
--- a/src/data/productsData.ts
+++ b/src/data/productsData.ts
@@ -9,7 +9,7 @@ export const PRODUCTS: Product[] = [
tagline: 'Vibrant color, customizable heat levels, and aromatic pungency.',
shortDesc: 'Indian red chilli powder suitable for food processing, wholesale and international distribution. Sourced from the finest chilli growing regions with verified ASTA color values and controlled heat.',
fullDesc: 'Mani Agro Exports provides premium export-grade Red Chilli Powder processed from dried ripe pods of Capsicum annuum. We offer specialized varieties tailored to international market preferences — from bright red, mild heat Kashmiri style to fiery Guntur / Teja and deep red Byadgi blends. Every batch is finely pulverized in temperature-controlled mills to preserve essential capsaicin oils and natural pigments.',
- image: '/images/red-chilli-powder.jpg',
+ image: '/images/red-chilli.png',
category: 'spices',
accentColor: '#BA2D1D',
badge: 'High Demand Export',
@@ -54,7 +54,7 @@ export const PRODUCTS: Product[] = [
tagline: 'High curcumin content, radiant golden hue, and potent aroma.',
shortDesc: 'Quality Indian turmeric powder for food, spice and distribution markets. Processed from authentic Indian turmeric fingers with guaranteed curcumin retention.',
fullDesc: 'Indian Turmeric is globally celebrated for its high natural curcumin content and vivid golden-yellow pigment. Mani Agro Exports sources whole, cured turmeric fingers from premier agricultural hubs like Salem, Nizamabad, and Sangli. Our turmeric is processed through automated destoners, magnetic separators, and micro-pulverizers to ensure immaculate purity, zero lead chromate, and maximum active bio-compounds.',
- image: '/images/turmeric-powder.jpg',
+ image: '/images/turmeric.png',
category: 'spices',
accentColor: '#D49B24',
badge: 'High Curcumin Grade',
@@ -99,7 +99,7 @@ export const PRODUCTS: Product[] = [
tagline: 'Aromatic, green-tinged golden powder sourced for commercial supply.',
shortDesc: 'Aromatic coriander powder sourced and processed for commercial supply. Ground from clean coriander seeds to retain natural volatile oils and refreshing citrus aroma.',
fullDesc: 'Coriander powder is the backbone of Asian, Middle Eastern, and Mediterranean culinary seasoning. Mani Agro Exports utilizes select Eagle and Badami variety coriander seeds from the fertile belts of Rajasthan, Gujarat, and Madhya Pradesh. Through cold-milling techniques, we preserve the fragile essential oils (linalool), ensuring an inviting citrusy, herbal fragrance and consistent color.',
- image: '/images/coriander-powder.jpg',
+ image: '/images/coriander.png',
category: 'spices',
accentColor: '#3E6B27',
badge: 'Aroma-Locked Milling',
@@ -144,7 +144,7 @@ export const PRODUCTS: Product[] = [
tagline: '100% natural, nutrient-dense organic soil conditioner and plant booster.',
shortDesc: 'Vermicompost suitable for agriculture, horticulture, nurseries and soil improvement applications. Produced via controlled earthworm bio-decomposition.',
fullDesc: 'Mani Agro Exports supplies superior-grade Organic Vermicompost engineered through the bio-digestion of agricultural biomass and cow dung by Eisenia fetida earthworms. Rich in bio-available Nitrogen, Phosphorus, Potassium, beneficial soil microbes, and humic acids, our vermicompost revitalizes depleted soils, promotes vigorous root systems, and improves moisture retention for sustainable organic farming.',
- image: '/images/vermicompost.jpg',
+ image: '/images/vermicompost.png',
category: 'organic-fertilizers',
accentColor: '#4A3B2C',
badge: '100% Organic Soil Conditioner',