mani-agro-frontend/src/components/contact/ContactInfoCards/ContactInfoCards.tsx

105 lines
4.0 KiB
TypeScript

import React from 'react';
import { Box, Grid, Typography, Paper, Stack, Button, Link } from '@mui/material';
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 = () => {
return (
<Grid container spacing={3} sx={{ mb: 6 }}>
{/* Contact Person */}
<Grid size={{ xs: 12, sm: 6, md: 4 }}>
<Paper
elevation={0}
sx={{
p: 3.5,
height: '100%',
borderRadius: 3,
bgcolor: '#FFFFFF',
border: '1px solid rgba(27, 77, 62, 0.08)',
}}
>
<Box sx={{ width: 46, height: 46, borderRadius: 2, bgcolor: 'rgba(212, 155, 36, 0.15)', color: '#1B4D3E', display: 'flex', alignItems: 'center', justifyContent: 'center', mb: 2 }}>
<User size={24} />
</Box>
<Typography variant="caption" sx={{ color: '#D49B24', fontWeight: 700, textTransform: 'uppercase' }}>
Direct Contact Person
</Typography>
<Typography variant="h5" sx={{ fontWeight: 800, color: '#13201A', mb: 0.5, mt: 0.2 }}>
{COMPANY_INFO.person}
</Typography>
<Typography variant="body2" sx={{ color: '#556960' }}>
{COMPANY_INFO.title}
</Typography>
</Paper>
</Grid>
{/* Phone & WhatsApp */}
<Grid size={{ xs: 12, sm: 6, md: 4 }}>
<Paper
elevation={0}
sx={{
p: 3.5,
height: '100%',
borderRadius: 3,
bgcolor: '#FFFFFF',
border: '1px solid rgba(27, 77, 62, 0.08)',
}}
>
<Box sx={{ width: 46, height: 46, borderRadius: 2, bgcolor: 'rgba(37, 211, 102, 0.15)', color: '#25D366', display: 'flex', alignItems: 'center', justifyContent: 'center', mb: 2 }}>
<Phone size={24} />
</Box>
<Typography variant="caption" sx={{ color: '#25D366', fontWeight: 700, textTransform: 'uppercase' }}>
Phone / WhatsApp
</Typography>
<Typography variant="h5" sx={{ fontWeight: 800, color: '#13201A', mb: 1, mt: 0.2 }}>
<Link href={`tel:${COMPANY_INFO.phone}`} underline="none" sx={{ color: '#13201A' }}>
{COMPANY_INFO.phoneDisplay}
</Link>
</Typography>
<Button
size="small"
variant="outlined"
href={COMPANY_INFO.whatsappUrl}
target="_blank"
rel="noopener noreferrer"
startIcon={<MessageCircle size={15} color="#25D366" />}
sx={{ borderColor: 'rgba(37, 211, 102, 0.5)', color: '#1B4D3E', fontWeight: 600 }}
>
Start WhatsApp Chat
</Button>
</Paper>
</Grid>
{/* Email */}
<Grid size={{ xs: 12, sm: 6, md: 4 }}>
<Paper
elevation={0}
sx={{
p: 3.5,
height: '100%',
borderRadius: 3,
bgcolor: '#FFFFFF',
border: '1px solid rgba(27, 77, 62, 0.08)',
}}
>
<Box sx={{ width: 46, height: 46, borderRadius: 2, bgcolor: 'rgba(27, 77, 62, 0.1)', color: '#1B4D3E', display: 'flex', alignItems: 'center', justifyContent: 'center', mb: 2 }}>
<Mail size={24} />
</Box>
<Typography variant="caption" sx={{ color: '#1B4D3E', fontWeight: 700, textTransform: 'uppercase' }}>
Official Email
</Typography>
<Typography variant="h6" sx={{ fontWeight: 800, color: '#13201A', mb: 0.5, mt: 0.2, wordBreak: 'break-all' }}>
<Link href={`mailto:${COMPANY_INFO.email}`} underline="none" sx={{ color: '#13201A' }}>
{COMPANY_INFO.email}
</Link>
</Typography>
<Typography variant="caption" sx={{ color: '#556960' }}>
Prompt responses to official RFQs and tender requests.
</Typography>
</Paper>
</Grid>
</Grid>
);
};