mani-agro-frontend/src/components/home/HeroSection/HeroStats.tsx

68 lines
2.0 KiB
TypeScript

import React from 'react';
import { Box, Grid, Typography, Paper } from '@mui/material';
import { COMPANY_STATS } from '../../../data/companyData';
export const HeroStats: React.FC = () => {
return (
<Box sx={{ mt: { xs: 4, md: 6 } }}>
<Grid container spacing={2}>
{COMPANY_STATS.map((stat, idx) => (
<Grid key={idx} size={{ xs: 6, sm: 3 }}>
<Paper
elevation={0}
sx={{
p: { xs: 2, sm: 2.5 },
textAlign: 'center',
bgcolor: 'rgba(255, 255, 255, 0.07)',
backdropFilter: 'blur(10px)',
border: '1px solid rgba(255, 255, 255, 0.12)',
borderRadius: 3,
transition: 'transform 0.2s',
'&:hover': {
transform: 'translateY(-3px)',
bgcolor: 'rgba(255, 255, 255, 0.12)',
},
}}
>
<Typography
variant="h4"
sx={{
fontWeight: 800,
color: '#D49B24',
fontSize: { xs: '1.6rem', md: '2.1rem' },
lineHeight: 1,
mb: 0.5,
}}
>
{stat.value}
</Typography>
<Typography
variant="subtitle2"
sx={{
color: '#FFFFFF',
fontWeight: 700,
fontSize: { xs: '0.82rem', md: '0.92rem' },
mb: 0.3,
}}
>
{stat.label}
</Typography>
<Typography
variant="caption"
sx={{
color: 'rgba(255, 255, 255, 0.65)',
fontSize: { xs: '0.7rem', md: '0.76rem' },
display: 'block',
lineHeight: 1.3,
}}
>
{stat.subtext}
</Typography>
</Paper>
</Grid>
))}
</Grid>
</Box>
);
};