style(dashboard): unify all widgets to cyan and purple/plum color theme

This commit is contained in:
adithiyan 2026-10-12 22:34:50 +05:30
parent c1ee908cde
commit f5180d4cf0

View file

@ -172,7 +172,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
}, [productRevenueData]); }, [productRevenueData]);
const productChartColors = [ const productChartColors = [
"#22C55E", "#EF4444", "#F59E0B", "#D946EF", "#2563EB", "#9333EA", "#0EA5E9", "#14B8A6", "#38BDF8", "#A855F7", "#69235B", "#0284C7", "#C084FC", "#0EA5E9", "#7C3AED", "#67E8F9",
]; ];
const headcountChartOptions: ApexOptions = { const headcountChartOptions: ApexOptions = {
@ -228,12 +228,14 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
}; };
}, [dealSourceData]); }, [dealSourceData]);
const sourceChartColors = ["#38BDF8", "#A855F7", "#69235B", "#0284C7", "#C084FC"];
const diversityChartOptions: ApexOptions = { const diversityChartOptions: ApexOptions = {
chart: { chart: {
type: "donut", type: "donut",
height: 220, height: 220,
}, },
colors: ["#10B981", "#EC4899", "#69235B", "#F59E0B", "#38BDF8"], colors: sourceChartColors,
labels: sourceChartData.labels, labels: sourceChartData.labels,
dataLabels: { enabled: false }, dataLabels: { enabled: false },
stroke: { width: 3, colors: ["#FFFFFF"] }, stroke: { width: 3, colors: ["#FFFFFF"] },
@ -306,7 +308,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
}, },
}, },
}, },
colors: ["#10B981", "#F59E0B", "#EF4444"], colors: ["#38BDF8", "#A855F7", "#69235B"],
labels: ["Won Value"], labels: ["Won Value"],
stroke: { lineCap: "round" }, stroke: { lineCap: "round" },
}; };
@ -318,10 +320,10 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
if (stages && stages.length > 0) { if (stages && stages.length > 0) {
const palette = [ const palette = [
{ bg: "#F8EBF6", color: "#69235B", icon: "ti ti-phone-call" }, { bg: "#F8EBF6", color: "#69235B", icon: "ti ti-phone-call" },
{ bg: "#E4F6FC", color: "#0284C7", icon: "ti ti-certificate" }, { bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-certificate" },
{ bg: "#FEF6E8", color: "#D97706", icon: "ti ti-file-text" }, { bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" },
{ bg: "#EAF7EE", color: "#16A34A", icon: "ti ti-circle-check" }, { bg: "#E0F7FA", color: "#0891B2", icon: "ti ti-scale" },
{ bg: "#FDEBEC", color: "#E11D48", icon: "ti ti-circle-x" }, { bg: "#F8EBF6", color: "#A855F7", icon: "ti ti-trophy" },
]; ];
return stages.slice(0, 5).map((s, idx) => ({ return stages.slice(0, 5).map((s, idx) => ({
label: s.stage_name || s.name || `Stage ${idx + 1}`, label: s.stage_name || s.name || `Stage ${idx + 1}`,
@ -330,11 +332,11 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
})); }));
} }
return [ return [
{ label: "Contacted", count: contactedLeads || 42, bg: "#FEF6E8", color: "#D97706", icon: "ti ti-phone-call" }, { label: "Contacted", count: contactedLeads || 42, bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-phone-call" },
{ label: "Qualified", count: 28, bg: "#E4F6FC", color: "#0284C7", icon: "ti ti-certificate" }, { label: "Qualified", count: 28, bg: "#F8EBF6", color: "#69235B", icon: "ti ti-certificate" },
{ label: "Proposal Sent", count: 19, bg: "#F8EBF6", color: "#69235B", icon: "ti ti-file-text" }, { label: "Proposal Sent", count: 19, bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" },
{ label: "Negotiation", count: 12, bg: "#EAF7EE", color: "#16A34A", icon: "ti ti-scale" }, { label: "Negotiation", count: 12, bg: "#E0F7FA", color: "#0891B2", icon: "ti ti-scale" },
{ label: "Closed Won", count: effectiveWonDeals || 15, bg: "#EAF7EE", color: "#16A34A", icon: "ti ti-trophy" }, { label: "Closed Won", count: effectiveWonDeals || 15, bg: "#F8EBF6", color: "#A855F7", icon: "ti ti-trophy" },
]; ];
}, [stages, contactedLeads, effectiveWonDeals]); }, [stages, contactedLeads, effectiveWonDeals]);
@ -460,7 +462,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
</div> </div>
<div <div
className="rounded-3 d-flex align-items-center justify-content-center" className="rounded-3 d-flex align-items-center justify-content-center"
style={{ width: "42px", height: "42px", backgroundColor: "#EAF7EE", color: "#16A34A" }} style={{ width: "42px", height: "42px", backgroundColor: "#F8EBF6", color: "#69235B" }}
> >
<i className="ti ti-users fs-20" /> <i className="ti ti-users fs-20" />
</div> </div>
@ -482,7 +484,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
</div> </div>
<div <div
className="rounded-3 d-flex align-items-center justify-content-center" className="rounded-3 d-flex align-items-center justify-content-center"
style={{ width: "42px", height: "42px", backgroundColor: "#E4F6FC", color: "#0284C7" }} style={{ width: "42px", height: "42px", backgroundColor: "#E0F2FE", color: "#0284C7" }}
> >
<i className="ti ti-trophy fs-20" /> <i className="ti ti-trophy fs-20" />
</div> </div>
@ -504,7 +506,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
</div> </div>
<div <div
className="rounded-3 d-flex align-items-center justify-content-center" className="rounded-3 d-flex align-items-center justify-content-center"
style={{ width: "42px", height: "42px", backgroundColor: "#FDEBEC", color: "#E11D48" }} style={{ width: "42px", height: "42px", backgroundColor: "#F3E8FF", color: "#9333EA" }}
> >
<i className="ti ti-arrow-down-right fs-20" /> <i className="ti ti-arrow-down-right fs-20" />
</div> </div>
@ -526,7 +528,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
</div> </div>
<div <div
className="rounded-3 d-flex align-items-center justify-content-center" className="rounded-3 d-flex align-items-center justify-content-center"
style={{ width: "42px", height: "42px", backgroundColor: "#FEF6E8", color: "#D97706" }} style={{ width: "42px", height: "42px", backgroundColor: "#E0F7FA", color: "#0891B2" }}
> >
<i className="ti ti-phone-call fs-20" /> <i className="ti ti-phone-call fs-20" />
</div> </div>
@ -548,7 +550,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
</div> </div>
<div <div
className="rounded-3 d-flex align-items-center justify-content-center" className="rounded-3 d-flex align-items-center justify-content-center"
style={{ width: "42px", height: "42px", backgroundColor: "#FDEFEA", color: "#EA580C" }} style={{ width: "42px", height: "42px", backgroundColor: "#F8EBF6", color: "#69235B" }}
> >
<i className="ti ti-coin fs-20" /> <i className="ti ti-coin fs-20" />
</div> </div>
@ -570,7 +572,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
</div> </div>
<div <div
className="rounded-3 d-flex align-items-center justify-content-center" className="rounded-3 d-flex align-items-center justify-content-center"
style={{ width: "42px", height: "42px", backgroundColor: "#FDEFEA", color: "#EA580C" }} style={{ width: "42px", height: "42px", backgroundColor: "#E0F2FE", color: "#0284C7" }}
> >
<i className="ti ti-percentage fs-20" /> <i className="ti ti-percentage fs-20" />
</div> </div>
@ -707,14 +709,14 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
/> />
</div> </div>
<div className="d-flex justify-content-center flex-wrap gap-2 pt-2 f-11 text-muted"> <div className="d-flex justify-content-center flex-wrap gap-2 pt-2 f-11 text-muted">
{sourceChartData.labels.slice(0, 3).map((label, idx) => ( {sourceChartData.labels.slice(0, 4).map((label, idx) => (
<span key={idx} className="d-flex align-items-center gap-1"> <span key={idx} className="d-flex align-items-center gap-1">
<span <span
className="rounded-circle" className="rounded-circle"
style={{ style={{
width: "8px", width: "8px",
height: "8px", height: "8px",
backgroundColor: ["#10B981", "#EC4899", "#69235B", "#F59E0B"][idx % 4], backgroundColor: sourceChartColors[idx % sourceChartColors.length],
}} }}
/> />
{label.toUpperCase()} {label.toUpperCase()}
@ -754,19 +756,19 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
<div className="d-flex flex-column gap-2"> <div className="d-flex flex-column gap-2">
<div className="d-flex align-items-center gap-3"> <div className="d-flex align-items-center gap-3">
<span className="f-13 text-muted" style={{ width: "65px" }}>Won</span> <span className="f-13 text-muted" style={{ width: "65px" }}>Won</span>
<span className="badge rounded-pill" style={{ backgroundColor: "#EAF7EE", color: "#16A34A" }}> <span className="badge rounded-pill" style={{ backgroundColor: "#E0F2FE", color: "#0284C7" }}>
{wonRatio}% {wonRatio}%
</span> </span>
</div> </div>
<div className="d-flex align-items-center gap-3"> <div className="d-flex align-items-center gap-3">
<span className="f-13 text-muted" style={{ width: "65px" }}>Open</span> <span className="f-13 text-muted" style={{ width: "65px" }}>Open</span>
<span className="badge rounded-pill" style={{ backgroundColor: "#EBF4FE", color: "#2563EB" }}> <span className="badge rounded-pill" style={{ backgroundColor: "#F3E8FF", color: "#A855F7" }}>
{openRatio}% {openRatio}%
</span> </span>
</div> </div>
<div className="d-flex align-items-center gap-3"> <div className="d-flex align-items-center gap-3">
<span className="f-13 text-muted" style={{ width: "65px" }}>Lost</span> <span className="f-13 text-muted" style={{ width: "65px" }}>Lost</span>
<span className="badge rounded-pill" style={{ backgroundColor: "#FDEBEC", color: "#E11D48" }}> <span className="badge rounded-pill" style={{ backgroundColor: "#F8EBF6", color: "#69235B" }}>
{lostRatio}% {lostRatio}%
</span> </span>
</div> </div>
@ -825,7 +827,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
<span className="fw-medium">{contactedLeads}/{effectiveTotalLeads}</span> <span className="fw-medium">{contactedLeads}/{effectiveTotalLeads}</span>
</div> </div>
<div className="progress" style={{ height: "4px" }}> <div className="progress" style={{ height: "4px" }}>
<div className="progress-bar bg-success" style={{ width: `${contactedPercent}%` }} /> <div className="progress-bar" style={{ width: `${contactedPercent}%`, backgroundColor: "#38BDF8" }} />
</div> </div>
</div> </div>
@ -842,7 +844,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
<span className="fw-medium">{effectiveWonDeals}/{effectiveTotalDeals}</span> <span className="fw-medium">{effectiveWonDeals}/{effectiveTotalDeals}</span>
</div> </div>
<div className="progress" style={{ height: "4px" }}> <div className="progress" style={{ height: "4px" }}>
<div className="progress-bar bg-primary" style={{ width: `${wonDealsPercent}%`, backgroundColor: "#69235B" }} /> <div className="progress-bar" style={{ width: `${wonDealsPercent}%`, backgroundColor: "#69235B" }} />
</div> </div>
</div> </div>
@ -859,7 +861,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
<span className="fw-medium">{completedTodosCount}/{totalTodosCount}</span> <span className="fw-medium">{completedTodosCount}/{totalTodosCount}</span>
</div> </div>
<div className="progress" style={{ height: "4px" }}> <div className="progress" style={{ height: "4px" }}>
<div className="progress-bar bg-danger" style={{ width: `${todosPercent}%` }} /> <div className="progress-bar" style={{ width: `${todosPercent}%`, backgroundColor: "#A855F7" }} />
</div> </div>
</div> </div>
</div> </div>
@ -895,7 +897,15 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
<i className="ti ti-calendar-event fs-18" /> <i className="ti ti-calendar-event fs-18" />
</div> </div>
<div className="text-truncate"> <div className="text-truncate">
<span className="badge bg-soft-success text-success f-10 mb-1">{ev.date}</span> <span
className="badge rounded-pill f-10 mb-1 fw-semibold"
style={{
backgroundColor: i === 0 ? "#F8EBF6" : "#E0F2FE",
color: i === 0 ? "#69235B" : "#0284C7",
}}
>
{ev.date}
</span>
<h6 className="fw-bold mb-0 f-13 text-truncate" style={{ color: "#1E2638" }}> <h6 className="fw-bold mb-0 f-13 text-truncate" style={{ color: "#1E2638" }}>
{ev.title} {ev.title}
</h6> </h6>
@ -927,8 +937,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
style={{ style={{
width: "38px", width: "38px",
height: "38px", height: "38px",
backgroundColor: "#F8EBF6", backgroundColor: i % 2 === 0 ? "#F8EBF6" : "#E0F2FE",
color: "#69235B", color: i % 2 === 0 ? "#69235B" : "#0284C7",
fontSize: "13px", fontSize: "13px",
}} }}
> >
@ -944,8 +954,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
<span <span
className="badge rounded-pill px-2 py-1 f-11 fw-semibold flex-shrink-0" className="badge rounded-pill px-2 py-1 f-11 fw-semibold flex-shrink-0"
style={{ style={{
backgroundColor: i === 0 ? "#FDEBEC" : i === 1 ? "#FEF6E8" : "#E4F6FC", backgroundColor: i % 2 === 0 ? "#F8EBF6" : "#E0F2FE",
color: i === 0 ? "#E11D48" : i === 1 ? "#D97706" : "#0284C7", color: i % 2 === 0 ? "#69235B" : "#0284C7",
}} }}
> >
{emp.status} {emp.status}
@ -976,8 +986,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
style={{ style={{
width: "38px", width: "38px",
height: "38px", height: "38px",
backgroundColor: "#E4F6FC", backgroundColor: i % 2 === 0 ? "#E0F2FE" : "#F8EBF6",
color: "#0284C7", color: i % 2 === 0 ? "#0284C7" : "#69235B",
fontSize: "13px", fontSize: "13px",
}} }}
> >
@ -990,7 +1000,13 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
<span className="text-muted f-11 text-truncate d-block">{deal.client}</span> <span className="text-muted f-11 text-truncate d-block">{deal.client}</span>
</div> </div>
</div> </div>
<span className="badge rounded-pill px-2 py-1 f-11 fw-semibold bg-light text-dark flex-shrink-0"> <span
className="badge rounded-pill px-2 py-1 f-11 fw-semibold flex-shrink-0"
style={{
backgroundColor: "#F8EBF6",
color: "#69235B",
}}
>
{deal.value} {deal.value}
</span> </span>
</div> </div>