import * as React from 'react'; import { Box, Grid, Paper, Typography, Divider } from '@mui/material'; import { BarChart, LineChart, PieChart } from '@mui/x-charts'; const paperSx = { p: 2, borderRadius: 2, boxShadow: '0 2px 8px rgba(0,0,0,0.06)', backgroundColor: '#fff', }; const brand = { primary: '#40120E', // espresso primary70: '#6A3A34', // lighter espresso sand: '#DFCCBC', // light sand sand70: '#CDB7A4', // mid sand sand50: '#BCA693', // darker sand text: '#40120E', subtle: 'rgba(0,0,0,0.38)', divider: 'rgba(0,0,0,0.08)', }; export default function Dashboard() { const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']; const revenue = [42, 55, 48, 61, 70, 78]; // $k const orders = [180, 210, 195, 240, 260, 300]; const categories = [ { label: 'Furniture', value: 38 }, { label: 'Lighting', value: 18 }, { label: 'Textiles', value: 14 }, { label: 'Decorative', value: 12 }, { label: 'Kitchen & Dining', value: 10 }, { label: 'Outdoor', value: 8 }, ]; const topProducts = [ { label: 'Sofa Roma', value: 24 }, { label: 'Lamp Venezia', value: 18 }, { label: 'Rug Milano', value: 15 }, { label: 'Table Firenze', value: 12 }, { label: 'Chair Torino', value: 9 }, ]; return ( Revenue (Last 30d) $ 312k +8.4% vs prev. Orders 1,385 +6.1% vs prev. Avg. Order Value $ 225 stable Returning Customers 42% +2.0 pts Revenue & Orders Sales by Category ({ id: i, value: c.value, label: c.label, color: [ brand.primary, brand.primary70, brand.sand50, brand.sand70, '#8E6E5E', // complementary brown '#A68979', // warm accent ][i], })), innerRadius: 30, paddingAngle: 2, }, ]} height={300} /> Top Products p.label) }]} series={[ { data: topProducts.map(p => p.value), label: 'Units', color: brand.primary, }, ]} height={300} grid={{ horizontal: true, vertical: false }} sx={{ '& .MuiChartsAxis-line': { stroke: brand.divider }, '& .MuiChartsAxis-tick': { stroke: brand.divider }, '& .MuiChartsLegend-root': { display: 'none' }, }} /> ); }