Update frontend theme to white, purple, and light blue across all modules
This commit is contained in:
parent
f5180d4cf0
commit
23fbb98ebf
20 changed files with 608 additions and 378 deletions
|
|
@ -2,13 +2,13 @@ import React, { useEffect } from "react";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
|
|
||||||
const themeColors: any = {
|
const themeColors: any = {
|
||||||
primary: "#69235B",
|
primary: "#8B5CF6",
|
||||||
brightblue: "#4680ff",
|
brightblue: "#38BDF8",
|
||||||
lunargreen: "#365e32",
|
lunargreen: "#8B5CF6",
|
||||||
lavendar: "#69235B",
|
lavendar: "#8B5CF6",
|
||||||
magenta: "#e83e8c",
|
magenta: "#8B5CF6",
|
||||||
chromeyellow: "#ff9b04",
|
chromeyellow: "#38BDF8",
|
||||||
lavared: "#dc2626",
|
lavared: "#8B5CF6",
|
||||||
};
|
};
|
||||||
|
|
||||||
const DynamicThemeStyles = () => {
|
const DynamicThemeStyles = () => {
|
||||||
|
|
@ -134,6 +134,152 @@ const DynamicThemeStyles = () => {
|
||||||
border-color: ${activeThemeColor} !important;
|
border-color: ${activeThemeColor} !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ========================================================= */
|
||||||
|
/* GLOBAL CRM THEME ENFORCEMENT: WHITE, PURPLE & LIGHT BLUE */
|
||||||
|
/* ========================================================= */
|
||||||
|
|
||||||
|
/* Sidebar Active & Selected Items */
|
||||||
|
.sidebar .sidebar-menu ul li.active a,
|
||||||
|
.sidebar .sidebar-menu > ul > li ul > li.active a,
|
||||||
|
.sidebar .sidebar-menu > ul > li.active > a,
|
||||||
|
.sidebar .sidebar-menu a.active,
|
||||||
|
.sidebar .sidebar-menu a.bg-primary-subtle,
|
||||||
|
.sidebar .sidebar-menu a.bg-danger-subtle-light,
|
||||||
|
.sidebar .sidebar-menu .sidebar-jump.bg-primary-subtle,
|
||||||
|
.sidebar .sidebar-menu .sidebar-jump.bg-danger-subtle-light {
|
||||||
|
background: #F3E8FF !important;
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar .sidebar-menu ul li.active a i,
|
||||||
|
.sidebar .sidebar-menu ul li.active a svg,
|
||||||
|
.sidebar .sidebar-menu ul li.active a span,
|
||||||
|
.sidebar .sidebar-menu a.active i,
|
||||||
|
.sidebar .sidebar-menu a.active svg,
|
||||||
|
.sidebar .sidebar-menu a.active span {
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar .sidebar-menu ul li.active a .menu-arrow::before,
|
||||||
|
.sidebar .sidebar-menu a.active .menu-arrow::before {
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Floating Theme Settings Cog */
|
||||||
|
.sidebar-contact .toggle-theme {
|
||||||
|
background: #8B5CF6 !important;
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
|
||||||
|
}
|
||||||
|
.sidebar-contact .toggle-theme i {
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Global Subtitle / Danger Subtles */
|
||||||
|
.bg-danger-subtle-light {
|
||||||
|
background-color: rgba(139, 92, 246, 0.1) !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Campaign KPI Cards */
|
||||||
|
.campaign-box.bg-danger-light {
|
||||||
|
background-color: #F5F3FF !important;
|
||||||
|
border: 1px solid #DDD6FE !important;
|
||||||
|
}
|
||||||
|
.campaign-box.bg-danger-light span {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
.campaign-box.bg-warning-light {
|
||||||
|
background-color: #F0F9FF !important;
|
||||||
|
border: 1px solid #BAE6FD !important;
|
||||||
|
}
|
||||||
|
.campaign-box.bg-warning-light span {
|
||||||
|
background-color: #38BDF8 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
.campaign-box.bg-success-light {
|
||||||
|
background-color: #FAF5FF !important;
|
||||||
|
border: 1px solid #E9D5FF !important;
|
||||||
|
}
|
||||||
|
.campaign-box.bg-success-light span {
|
||||||
|
background-color: #7C3AED !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
.campaign-box.bg-purple-light {
|
||||||
|
background-color: #F5F3FF !important;
|
||||||
|
border: 1px solid #DDD6FE !important;
|
||||||
|
}
|
||||||
|
.campaign-box.bg-purple-light span {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Buttons: Ensure no stale orange/red outlines */
|
||||||
|
.btn-outline-warning {
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
.btn-outline-warning:hover {
|
||||||
|
background-color: #38BDF8 !important;
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-info,
|
||||||
|
.btn-outline-secondary {
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
}
|
||||||
|
.btn-outline-info:hover,
|
||||||
|
.btn-outline-secondary:hover {
|
||||||
|
background-color: #38BDF8 !important;
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-primary {
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
.btn-outline-primary:hover {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary {
|
||||||
|
background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
|
||||||
|
border-color: #7C3AED !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pagination and Active Tabs */
|
||||||
|
.page-item.active .page-link,
|
||||||
|
.pagination .active .page-link {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
.nav-tabs .nav-link.active,
|
||||||
|
.nav-pills .nav-link.active {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Breadcrumbs */
|
||||||
|
.breadcrumb-item.active {
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
.breadcrumb-item a:hover {
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|
|
||||||
|
|
@ -472,11 +472,11 @@ const Header = () => {
|
||||||
{logoRoute ? (
|
{logoRoute ? (
|
||||||
<>
|
<>
|
||||||
<Link to={logoRoute} className="logo logo-normal mt-2 mb-2" style={{ textDecoration: 'none' }}>
|
<Link to={logoRoute} className="logo logo-normal mt-2 mb-2" style={{ textDecoration: 'none' }}>
|
||||||
<h3 style={{ color: '#69235B', margin: 0, fontWeight: 'bold' }}>CRM</h3>
|
<h3 style={{ color: '#8B5CF6', margin: 0, fontWeight: 'bold' }}>CRM</h3>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link to={logoRoute} className="logo-small" style={{ textDecoration: 'none' }}>
|
<Link to={logoRoute} className="logo-small" style={{ textDecoration: 'none' }}>
|
||||||
<h3 style={{ color: '#69235B', margin: 0, fontWeight: 'bold', fontSize: '18px' }}>CRM</h3>
|
<h3 style={{ color: '#8B5CF6', margin: 0, fontWeight: 'bold', fontSize: '18px' }}>CRM</h3>
|
||||||
</Link>
|
</Link>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
|
|
@ -485,14 +485,14 @@ const Header = () => {
|
||||||
className="logo logo-normal mt-2 mb-2"
|
className="logo logo-normal mt-2 mb-2"
|
||||||
style={{ cursor: "not-allowed", opacity: 0.6, textDecoration: 'none' }}
|
style={{ cursor: "not-allowed", opacity: 0.6, textDecoration: 'none' }}
|
||||||
>
|
>
|
||||||
<h3 style={{ color: '#69235B', margin: 0, fontWeight: 'bold' }}>CRM</h3>
|
<h3 style={{ color: '#8B5CF6', margin: 0, fontWeight: 'bold' }}>CRM</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="logo-small"
|
className="logo-small"
|
||||||
style={{ cursor: "not-allowed", opacity: 0.6, textDecoration: 'none' }}
|
style={{ cursor: "not-allowed", opacity: 0.6, textDecoration: 'none' }}
|
||||||
>
|
>
|
||||||
<h3 style={{ color: '#69235B', margin: 0, fontWeight: 'bold', fontSize: '18px' }}>CRM</h3>
|
<h3 style={{ color: '#8B5CF6', margin: 0, fontWeight: 'bold', fontSize: '18px' }}>CRM</h3>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -155,11 +155,11 @@ useEffect(() => {
|
||||||
className={`${active ? "active" : ""} ${subOpen === data.menuValue ? "subdrop" : ""}`}
|
className={`${active ? "active" : ""} ${subOpen === data.menuValue ? "subdrop" : ""}`}
|
||||||
onClick={() => toggleSidebar(data.menuValue)}
|
onClick={() => toggleSidebar(data.menuValue)}
|
||||||
onMouseEnter={(e) => {
|
onMouseEnter={(e) => {
|
||||||
e.currentTarget.classList.add("bg-danger-subtle-light", "bg-opacity-25", "text-primary");
|
e.currentTarget.classList.add("bg-primary-subtle", "bg-opacity-25", "text-primary");
|
||||||
}}
|
}}
|
||||||
onMouseLeave={(e) => {
|
onMouseLeave={(e) => {
|
||||||
if (!active && subOpen !== data.menuValue) {
|
if (!active && subOpen !== data.menuValue) {
|
||||||
e.currentTarget.classList.remove("bg-danger-subtle-light", "bg-opacity-25", "text-primary");
|
e.currentTarget.classList.remove("bg-primary-subtle", "bg-opacity-25", "text-primary");
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -473,7 +473,7 @@ const findActiveSubmenu = () => {
|
||||||
onClick={handleLinkClick}
|
onClick={handleLinkClick}
|
||||||
className={`d-flex align-items-center px-2 py-2 text-decoration-none transition-all ${
|
className={`d-flex align-items-center px-2 py-2 text-decoration-none transition-all ${
|
||||||
Location.pathname === all_routes.profile
|
Location.pathname === all_routes.profile
|
||||||
? "bg-danger-subtle-light bg-opacity-25 text-primary fw-semibold"
|
? "bg-primary-subtle bg-opacity-25 text-primary fw-semibold"
|
||||||
: "text-dark"
|
: "text-dark"
|
||||||
}`}
|
}`}
|
||||||
style={{
|
style={{
|
||||||
|
|
@ -485,7 +485,7 @@ const findActiveSubmenu = () => {
|
||||||
}}
|
}}
|
||||||
onMouseEnter={(e) => {
|
onMouseEnter={(e) => {
|
||||||
e.currentTarget.classList.add(
|
e.currentTarget.classList.add(
|
||||||
"bg-danger-subtle-light",
|
"bg-primary-subtle",
|
||||||
"bg-opacity-25",
|
"bg-opacity-25",
|
||||||
"text-primary",
|
"text-primary",
|
||||||
"fw-semibold"
|
"fw-semibold"
|
||||||
|
|
@ -494,7 +494,7 @@ const findActiveSubmenu = () => {
|
||||||
onMouseLeave={(e) => {
|
onMouseLeave={(e) => {
|
||||||
if (Location.pathname !== all_routes.profile) {
|
if (Location.pathname !== all_routes.profile) {
|
||||||
e.currentTarget.classList.remove(
|
e.currentTarget.classList.remove(
|
||||||
"bg-danger-subtle-light",
|
"bg-primary-subtle",
|
||||||
"bg-opacity-25",
|
"bg-opacity-25",
|
||||||
"text-primary",
|
"text-primary",
|
||||||
"fw-semibold"
|
"fw-semibold"
|
||||||
|
|
@ -554,7 +554,7 @@ const findActiveSubmenu = () => {
|
||||||
}}
|
}}
|
||||||
onMouseEnter={(e) => {
|
onMouseEnter={(e) => {
|
||||||
e.currentTarget.classList.add(
|
e.currentTarget.classList.add(
|
||||||
"bg-danger-subtle-light",
|
"bg-primary-subtle",
|
||||||
"bg-opacity-25",
|
"bg-opacity-25",
|
||||||
"text-primary",
|
"text-primary",
|
||||||
"fw-semibold"
|
"fw-semibold"
|
||||||
|
|
@ -565,7 +565,7 @@ const findActiveSubmenu = () => {
|
||||||
onMouseLeave={(e) => {
|
onMouseLeave={(e) => {
|
||||||
if (!e.currentTarget.contains(document.activeElement)) {
|
if (!e.currentTarget.contains(document.activeElement)) {
|
||||||
e.currentTarget.classList.remove(
|
e.currentTarget.classList.remove(
|
||||||
"bg-danger-subtle-light",
|
"bg-primary-subtle",
|
||||||
"bg-opacity-25",
|
"bg-opacity-25",
|
||||||
"text-primary",
|
"text-primary",
|
||||||
"fw-semibold"
|
"fw-semibold"
|
||||||
|
|
@ -594,7 +594,7 @@ const findActiveSubmenu = () => {
|
||||||
onFocus={(e) => {
|
onFocus={(e) => {
|
||||||
const parent = e.currentTarget.parentElement!;
|
const parent = e.currentTarget.parentElement!;
|
||||||
parent.classList.add(
|
parent.classList.add(
|
||||||
"bg-danger-subtle-light",
|
"bg-primary-subtle",
|
||||||
"bg-opacity-25",
|
"bg-opacity-25",
|
||||||
"text-primary",
|
"text-primary",
|
||||||
"fw-semibold"
|
"fw-semibold"
|
||||||
|
|
@ -606,7 +606,7 @@ const findActiveSubmenu = () => {
|
||||||
const parent = e.currentTarget.parentElement!;
|
const parent = e.currentTarget.parentElement!;
|
||||||
if (!e.currentTarget.value) {
|
if (!e.currentTarget.value) {
|
||||||
parent.classList.remove(
|
parent.classList.remove(
|
||||||
"bg-danger-subtle-light",
|
"bg-primary-subtle",
|
||||||
"bg-opacity-25",
|
"bg-opacity-25",
|
||||||
"text-primary",
|
"text-primary",
|
||||||
"fw-semibold"
|
"fw-semibold"
|
||||||
|
|
@ -686,7 +686,7 @@ const findActiveSubmenu = () => {
|
||||||
}}
|
}}
|
||||||
onMouseEnter={(e) => {
|
onMouseEnter={(e) => {
|
||||||
e.currentTarget.classList.add(
|
e.currentTarget.classList.add(
|
||||||
"bg-danger-subtle-light",
|
"bg-primary-subtle",
|
||||||
"bg-opacity-25",
|
"bg-opacity-25",
|
||||||
"text-primary",
|
"text-primary",
|
||||||
"fw-semibold"
|
"fw-semibold"
|
||||||
|
|
@ -708,7 +708,7 @@ const findActiveSubmenu = () => {
|
||||||
|
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
e.currentTarget.classList.remove(
|
e.currentTarget.classList.remove(
|
||||||
"bg-danger-subtle-light",
|
"bg-primary-subtle",
|
||||||
"bg-opacity-25",
|
"bg-opacity-25",
|
||||||
"text-primary",
|
"text-primary",
|
||||||
"fw-semibold"
|
"fw-semibold"
|
||||||
|
|
@ -728,7 +728,7 @@ const findActiveSubmenu = () => {
|
||||||
title?.submenuItems?.some(
|
title?.submenuItems?.some(
|
||||||
(link) => link?.link === Location.pathname
|
(link) => link?.link === Location.pathname
|
||||||
)
|
)
|
||||||
? "bg-danger-subtle-light bg-opacity-25 text-primary fw-semibold"
|
? "bg-primary-subtle bg-opacity-25 text-primary fw-semibold"
|
||||||
: "text-dark"
|
: "text-dark"
|
||||||
}`}
|
}`}
|
||||||
style={{
|
style={{
|
||||||
|
|
|
||||||
|
|
@ -198,8 +198,13 @@ const ThemeSettings = () => {
|
||||||
<div
|
<div
|
||||||
className="toggle-theme"
|
className="toggle-theme"
|
||||||
onClick={() => setShowTheme(true)}
|
onClick={() => setShowTheme(true)}
|
||||||
|
style={{
|
||||||
|
backgroundColor: "#8B5CF6",
|
||||||
|
color: "#ffffff",
|
||||||
|
boxShadow: "0 2px 8px rgba(139, 92, 246, 0.4)",
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<i className="fa fa-cog fa-w-16 fa-spin" />
|
<i className="fa fa-cog fa-w-16 fa-spin" style={{ color: "#ffffff" }} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
@ -970,7 +975,7 @@ const ThemeSettings = () => {
|
||||||
checked={dataColor === "primary" ? true : false}
|
checked={dataColor === "primary" ? true : false}
|
||||||
onChange={() => handleDataColorChange("primary")}
|
onChange={() => handleDataColorChange("primary")}
|
||||||
/>
|
/>
|
||||||
<label htmlFor="primaryColor" className="primary-clr" />
|
<label htmlFor="primaryColor" className="primary-clr" title="Purple Theme" />
|
||||||
</div>
|
</div>
|
||||||
<div className="theme-colorsset me-2 mb-2">
|
<div className="theme-colorsset me-2 mb-2">
|
||||||
<input
|
<input
|
||||||
|
|
@ -984,84 +989,7 @@ const ThemeSettings = () => {
|
||||||
<label
|
<label
|
||||||
htmlFor="brightblueColor"
|
htmlFor="brightblueColor"
|
||||||
className="brightblue-clr"
|
className="brightblue-clr"
|
||||||
/>
|
title="Light Blue Theme"
|
||||||
</div>
|
|
||||||
<div className="theme-colorsset me-2 mb-2">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="color"
|
|
||||||
id="lunargreenColor"
|
|
||||||
value="lunargreen"
|
|
||||||
checked={dataColor === "lunargreen" ? true : false}
|
|
||||||
onChange={() => handleDataColorChange("lunargreen")}
|
|
||||||
/>
|
|
||||||
<label
|
|
||||||
htmlFor="lunargreenColor"
|
|
||||||
className="lunargreen-clr"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div className="theme-colorsset me-2 mb-2">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="color"
|
|
||||||
id="lavendarColor"
|
|
||||||
value="lavendar"
|
|
||||||
checked={dataColor === "lavendar" ? true : false}
|
|
||||||
onChange={() => handleDataColorChange("lavendar")}
|
|
||||||
/>
|
|
||||||
<label htmlFor="lavendarColor" className="lavendar-clr" />
|
|
||||||
</div>
|
|
||||||
<div className="theme-colorsset me-2 mb-2">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="color"
|
|
||||||
id="magentaColor"
|
|
||||||
value="magenta"
|
|
||||||
checked={dataColor === "magenta" ? true : false}
|
|
||||||
onChange={() => handleDataColorChange("magenta")}
|
|
||||||
/>
|
|
||||||
<label htmlFor="magentaColor" className="magenta-clr" />
|
|
||||||
</div>
|
|
||||||
<div className="theme-colorsset me-2 mb-2">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="color"
|
|
||||||
id="chromeyellowColor"
|
|
||||||
value="chromeyellow"
|
|
||||||
checked={dataColor === "chromeyellow" ? true : false}
|
|
||||||
onChange={() => handleDataColorChange("chromeyellow")}
|
|
||||||
/>
|
|
||||||
<label
|
|
||||||
htmlFor="chromeyellowColor"
|
|
||||||
className="chromeyellow-clr"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div className="theme-colorsset me-2 mb-2">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="color"
|
|
||||||
id="lavaredColor"
|
|
||||||
value="lavared"
|
|
||||||
checked={dataColor === "lavared" ? true : false}
|
|
||||||
onChange={() => handleDataColorChange("lavared")}
|
|
||||||
/>
|
|
||||||
<label htmlFor="lavaredColor" className="lavared-clr" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
|
||||||
className={`theme-colorselect select-theme-color position-relative mb-2 ${
|
|
||||||
dataColor === "all" ? "active" : ""
|
|
||||||
}`}
|
|
||||||
onClick={() => handleDataColorChange("all")}
|
|
||||||
>
|
|
||||||
<div className="select-color position-absolute">
|
|
||||||
<i className="ti ti-palette"></i>
|
|
||||||
</div>
|
|
||||||
<ColorPicker
|
|
||||||
format={formatRgb}
|
|
||||||
value={colorRgb4}
|
|
||||||
onChange={setColorRgb4}
|
|
||||||
onFormatChange={setFormatRgb}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,17 @@ const initialState = {
|
||||||
dataTopBarColor: localStorage.getItem("dataTopBarolor") || "white",
|
dataTopBarColor: localStorage.getItem("dataTopBarolor") || "white",
|
||||||
dataSidebarBg: localStorage.getItem("dataSidebarBg") || "",
|
dataSidebarBg: localStorage.getItem("dataSidebarBg") || "",
|
||||||
dataTopbarBg: localStorage.getItem("dataTopbarBg") || "",
|
dataTopbarBg: localStorage.getItem("dataTopbarBg") || "",
|
||||||
dataColor: localStorage.getItem("dataColor") || "primary",
|
dataColor: (() => {
|
||||||
|
const c = localStorage.getItem("dataColor");
|
||||||
|
if (!c || ["chromeyellow", "lavared", "orange", "magenta", "lunargreen", "yellow", "red"].includes(c)) {
|
||||||
|
try {
|
||||||
|
localStorage.setItem("dataColor", "primary");
|
||||||
|
document.documentElement.setAttribute("data-color", "primary");
|
||||||
|
} catch (e) {}
|
||||||
|
return "primary";
|
||||||
|
}
|
||||||
|
return c;
|
||||||
|
})(),
|
||||||
dataLoader: localStorage.getItem("dataLoader") || "enable",
|
dataLoader: localStorage.getItem("dataLoader") || "enable",
|
||||||
isRtl: localStorage.getItem("rtl") || false,
|
isRtl: localStorage.getItem("rtl") || false,
|
||||||
headerCollapse: false,
|
headerCollapse: false,
|
||||||
|
|
|
||||||
|
|
@ -318,8 +318,8 @@ if (/\.\./.test(trimmed)) {
|
||||||
.form-control:focus,
|
.form-control:focus,
|
||||||
.btn:focus {
|
.btn:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: #e41f07;
|
border-color: #8B5CF6;
|
||||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.25);
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|
@ -372,10 +372,10 @@ if (/\.\./.test(trimmed)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Focus Style (Brand Red Color) */
|
/* Focus Style (Purple Brand Color) */
|
||||||
.input-with-icon .form-control:focus {
|
.input-with-icon .form-control:focus {
|
||||||
border-color: #e41f07;
|
border-color: #8B5CF6;
|
||||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.18);
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
`}</style>
|
`}</style>
|
||||||
|
|
|
||||||
|
|
@ -439,8 +439,8 @@ useEffect(() => {
|
||||||
.form-control:focus,
|
.form-control:focus,
|
||||||
.btn:focus {
|
.btn:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: #e41f07;
|
border-color: #8B5CF6;
|
||||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.25);
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|
@ -508,8 +508,8 @@ useEffect(() => {
|
||||||
|
|
||||||
/* Focus state */
|
/* Focus state */
|
||||||
.input-with-icon .form-control:focus {
|
.input-with-icon .form-control:focus {
|
||||||
border-color: #e41f07;
|
border-color: #8B5CF6;
|
||||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.18);
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
|
||||||
}
|
}
|
||||||
.cursor-pointer {
|
.cursor-pointer {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
||||||
|
|
@ -333,10 +333,10 @@ if (userRole === "admin") {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* TITLE */}
|
{/* TITLE */}
|
||||||
<h2 className="text-center fw-bold" style={{ color: "#e41f07" }}>
|
<h2 className="text-center fw-bold" style={{ color: "#8B5CF6" }}>
|
||||||
Login to CRM
|
Login to CRM
|
||||||
</h2>
|
</h2>
|
||||||
<p className="text-center mb-4" style={{ color: "#555" }}>
|
<p className="text-center mb-4" style={{ color: "#64748B" }}>
|
||||||
Welcome back! Please sign in
|
Welcome back! Please sign in
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
@ -423,13 +423,14 @@ if (userRole === "admin") {
|
||||||
className="btn btn-primary w-100 d-flex align-items-center justify-content-center gap-2"
|
className="btn btn-primary w-100 d-flex align-items-center justify-content-center gap-2"
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
style={{
|
style={{
|
||||||
background: "#e41f07",
|
background: "linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%)",
|
||||||
borderColor: "#e41f07",
|
borderColor: "#7C3AED",
|
||||||
padding: "8px",
|
padding: "10px",
|
||||||
borderRadius: "6px",
|
borderRadius: "8px",
|
||||||
fontWeight: "bold",
|
fontWeight: "bold",
|
||||||
position: "relative",
|
position: "relative",
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
|
boxShadow: "0 4px 14px rgba(139, 92, 246, 0.35)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{loading && (
|
{loading && (
|
||||||
|
|
@ -468,7 +469,7 @@ if (userRole === "admin") {
|
||||||
href="https://www.iattechnologies.com"
|
href="https://www.iattechnologies.com"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
style={{ color: "#e41f07", fontWeight: 600, cursor: "pointer" }}
|
style={{ color: "#8B5CF6", fontWeight: 600, cursor: "pointer" }}
|
||||||
>
|
>
|
||||||
Contact Us
|
Contact Us
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -512,8 +513,8 @@ if (userRole === "admin") {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
background: linear-gradient(135deg, #ffeaea 0%, #fff5f5 50%, #ffdede 100%);
|
background: linear-gradient(135deg, #F8FAFC 0%, #F3E8FF 50%, #E0F2FE 100%);
|
||||||
box-shadow: inset 0px 0px 120px rgba(228, 31, 7, 0.18);
|
box-shadow: inset 0px 0px 120px rgba(139, 92, 246, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-wrapper {
|
.login-wrapper {
|
||||||
|
|
@ -521,7 +522,7 @@ if (userRole === "admin") {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
|
box-shadow: 0 18px 45px rgba(139, 92, 246, 0.12);
|
||||||
padding: 28px 32px;
|
padding: 28px 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -553,8 +554,8 @@ if (userRole === "admin") {
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-with-icon .form-control:focus {
|
.input-with-icon .form-control:focus {
|
||||||
border-color: #e41f07;
|
border-color: #8B5CF6;
|
||||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.18);
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
.input-with-icon .form-control.is-invalid {
|
.input-with-icon .form-control.is-invalid {
|
||||||
|
|
@ -571,7 +572,7 @@ if (userRole === "admin") {
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #e41f07;
|
color: #8B5CF6;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -480,8 +480,8 @@ const ResetPassword = () => {
|
||||||
.form-control:focus,
|
.form-control:focus,
|
||||||
.btn:focus {
|
.btn:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: #e41f07;
|
border-color: #8B5CF6;
|
||||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.25);
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|
@ -537,8 +537,8 @@ const ResetPassword = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-with-icon .form-control:focus {
|
.input-with-icon .form-control:focus {
|
||||||
border-color: #e41f07;
|
border-color: #8B5CF6;
|
||||||
box-shadow: 0 0 0 3px rgba(228, 31, 7, 0.18);
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
`}</style>
|
`}</style>
|
||||||
|
|
|
||||||
|
|
@ -748,7 +748,7 @@ const filterStyle: React.CSSProperties = {
|
||||||
{openPieData.map((entry, index) => (
|
{openPieData.map((entry, index) => (
|
||||||
<Cell
|
<Cell
|
||||||
key={`cell-${index}`}
|
key={`cell-${index}`}
|
||||||
fill={index === 0 ? "#0d6efd" : "#6c757d"}
|
fill={index === 0 ? "#8B5CF6" : "#E9D5FF"}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</Pie>
|
</Pie>
|
||||||
|
|
@ -777,7 +777,7 @@ const filterStyle: React.CSSProperties = {
|
||||||
{inboxPieData.map((entry, index) => (
|
{inboxPieData.map((entry, index) => (
|
||||||
<Cell
|
<Cell
|
||||||
key={`cell-${index}`}
|
key={`cell-${index}`}
|
||||||
fill={index === 0 ? "#198754" : "#ffc107"}
|
fill={index === 0 ? "#38BDF8" : "#BAE6FD"}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</Pie>
|
</Pie>
|
||||||
|
|
@ -799,7 +799,7 @@ const filterStyle: React.CSSProperties = {
|
||||||
<YAxis />
|
<YAxis />
|
||||||
<RechartsTooltip />
|
<RechartsTooltip />
|
||||||
<Legend />
|
<Legend />
|
||||||
<Bar dataKey="count" fill="#198754" />
|
<Bar dataKey="count" fill="#8B5CF6" />
|
||||||
</BarChart>
|
</BarChart>
|
||||||
</ResponsiveContainer>
|
</ResponsiveContainer>
|
||||||
</Card.Body>
|
</Card.Body>
|
||||||
|
|
|
||||||
|
|
@ -981,15 +981,15 @@ useEffect(() => {
|
||||||
render: (text: string) => (
|
render: (text: string) => (
|
||||||
<div className="progress-cell" style={{ fontSize: '12px', lineHeight: '1.4' }}>
|
<div className="progress-cell" style={{ fontSize: '12px', lineHeight: '1.4' }}>
|
||||||
<div className="d-flex align-items-center gap-1 mb-1">
|
<div className="d-flex align-items-center gap-1 mb-1">
|
||||||
<span className="dot bg-warning" style={{ width: '8px', height: '8px', borderRadius: '50%' }}></span>
|
<span className="dot" style={{ width: '8px', height: '8px', borderRadius: '50%', backgroundColor: '#38BDF8' }}></span>
|
||||||
<span>100% Pending</span>
|
<span>100% Pending</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="d-flex align-items-center gap-1 mb-1">
|
<div className="d-flex align-items-center gap-1 mb-1">
|
||||||
<span className="dot bg-success" style={{ width: '8px', height: '8px', borderRadius: '50%' }}></span>
|
<span className="dot" style={{ width: '8px', height: '8px', borderRadius: '50%', backgroundColor: '#8B5CF6' }}></span>
|
||||||
<span>0% Sent</span>
|
<span>0% Sent</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="d-flex align-items-center gap-1">
|
<div className="d-flex align-items-center gap-1">
|
||||||
<span className="dot bg-danger" style={{ width: '8px', height: '8px', borderRadius: '50%' }}></span>
|
<span className="dot" style={{ width: '8px', height: '8px', borderRadius: '50%', backgroundColor: '#A78BFA' }}></span>
|
||||||
<span>0% Failed</span>
|
<span>0% Failed</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -1007,14 +1007,14 @@ useEffect(() => {
|
||||||
key: "status",
|
key: "status",
|
||||||
render: (text: string) => {
|
render: (text: string) => {
|
||||||
const lowerText = text.toLowerCase();
|
const lowerText = text.toLowerCase();
|
||||||
let color = "#fda700"; // Pending (Warning)
|
let color = "#38BDF8"; // Pending (Light Blue)
|
||||||
let icon = "ti ti-clock";
|
let icon = "ti ti-clock";
|
||||||
|
|
||||||
if (lowerText === "sent") {
|
if (lowerText === "sent") {
|
||||||
color = "#28a745"; // Success
|
color = "#8B5CF6"; // Sent (Purple)
|
||||||
icon = "ti ti-circle-check";
|
icon = "ti ti-circle-check";
|
||||||
} else if (lowerText === "failed") {
|
} else if (lowerText === "failed") {
|
||||||
color = "#dc3545"; // Danger
|
color = "#7C3AED"; // Failed (Deep Purple)
|
||||||
icon = "ti ti-circle-x";
|
icon = "ti ti-circle-x";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1255,7 +1255,7 @@ const filteredAndSortedData = useMemo(() => {
|
||||||
textDecoration: "none",
|
textDecoration: "none",
|
||||||
transition: "color 0.2s ease",
|
transition: "color 0.2s ease",
|
||||||
}}
|
}}
|
||||||
onMouseEnter={(e) => (e.currentTarget.style.color = "#E41F07")}
|
onMouseEnter={(e) => (e.currentTarget.style.color = "#8B5CF6")}
|
||||||
onMouseLeave={(e) => (e.currentTarget.style.color = "#9595b5")}
|
onMouseLeave={(e) => (e.currentTarget.style.color = "#9595b5")}
|
||||||
>
|
>
|
||||||
Dashboard
|
Dashboard
|
||||||
|
|
@ -1271,9 +1271,9 @@ const filteredAndSortedData = useMemo(() => {
|
||||||
|
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-xl-3 col-lg-6">
|
<div className="col-xl-3 col-lg-6">
|
||||||
<div className="campaign-box bg-danger-light">
|
<div className="campaign-box" style={{ backgroundColor: "#F5F3FF", border: "1px solid #DDD6FE", borderRadius: "10px", padding: "20px" }}>
|
||||||
<div className="campaign-img">
|
<div className="campaign-img">
|
||||||
<span>
|
<span style={{ backgroundColor: "#8B5CF6", color: "#fff", borderRadius: "8px" }}>
|
||||||
<i className="ti ti-mail" />
|
<i className="ti ti-mail" />
|
||||||
</span>
|
</span>
|
||||||
<p>Total Emails</p>
|
<p>Total Emails</p>
|
||||||
|
|
@ -1282,9 +1282,9 @@ const filteredAndSortedData = useMemo(() => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xl-3 col-lg-6">
|
<div className="col-xl-3 col-lg-6">
|
||||||
<div className="campaign-box bg-warning-light">
|
<div className="campaign-box" style={{ backgroundColor: "#F0F9FF", border: "1px solid #BAE6FD", borderRadius: "10px", padding: "20px" }}>
|
||||||
<div className="campaign-img">
|
<div className="campaign-img">
|
||||||
<span>
|
<span style={{ backgroundColor: "#38BDF8", color: "#fff", borderRadius: "8px" }}>
|
||||||
<i className="ti ti-clock-hour-3" />
|
<i className="ti ti-clock-hour-3" />
|
||||||
</span>
|
</span>
|
||||||
<p>Pending</p>
|
<p>Pending</p>
|
||||||
|
|
@ -1293,9 +1293,9 @@ const filteredAndSortedData = useMemo(() => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xl-3 col-lg-6">
|
<div className="col-xl-3 col-lg-6">
|
||||||
<div className="campaign-box bg-success-light">
|
<div className="campaign-box" style={{ backgroundColor: "#FAF5FF", border: "1px solid #E9D5FF", borderRadius: "10px", padding: "20px" }}>
|
||||||
<div className="campaign-img">
|
<div className="campaign-img">
|
||||||
<span>
|
<span style={{ backgroundColor: "#7C3AED", color: "#fff", borderRadius: "8px" }}>
|
||||||
<i className="ti ti-send" />
|
<i className="ti ti-send" />
|
||||||
</span>
|
</span>
|
||||||
<p>Sent</p>
|
<p>Sent</p>
|
||||||
|
|
@ -1304,9 +1304,9 @@ const filteredAndSortedData = useMemo(() => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xl-3 col-lg-6">
|
<div className="col-xl-3 col-lg-6">
|
||||||
<div className="campaign-box bg-danger-light">
|
<div className="campaign-box" style={{ backgroundColor: "#F0F9FF", border: "1px solid #BAE6FD", borderRadius: "10px", padding: "20px" }}>
|
||||||
<div className="campaign-img">
|
<div className="campaign-img">
|
||||||
<span>
|
<span style={{ backgroundColor: "#0EA5E9", color: "#fff", borderRadius: "8px" }}>
|
||||||
<i className="ti ti-alert-circle" />
|
<i className="ti ti-alert-circle" />
|
||||||
</span>
|
</span>
|
||||||
<p>Failed</p>
|
<p>Failed</p>
|
||||||
|
|
@ -1336,14 +1336,14 @@ const filteredAndSortedData = useMemo(() => {
|
||||||
<div className="d-flex align-items-center flex-wrap row-gap-2 justify-content-sm-end">
|
<div className="d-flex align-items-center flex-wrap row-gap-2 justify-content-sm-end">
|
||||||
<Link
|
<Link
|
||||||
to={route.campainInsights || "/bulk-email-insights"}
|
to={route.campainInsights || "/bulk-email-insights"}
|
||||||
className="btn btn-outline-warning me-2 mb-0"
|
className="btn btn-outline-primary me-2 mb-0"
|
||||||
>
|
>
|
||||||
<i className="ti ti-graph me-2" />
|
<i className="ti ti-graph me-2" />
|
||||||
Email Insights
|
Email Insights
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
to={route.emailTemplate}
|
to={route.emailTemplate}
|
||||||
className="btn btn-outline-info me-2 mb-0"
|
className="btn btn-outline-secondary me-2 mb-0"
|
||||||
>
|
>
|
||||||
<i className="ti ti-template me-2" />
|
<i className="ti ti-template me-2" />
|
||||||
Email Templates
|
Email Templates
|
||||||
|
|
@ -1398,8 +1398,12 @@ const filteredAndSortedData = useMemo(() => {
|
||||||
className="btn btn-primary ms-2 me-3"
|
className="btn btn-primary ms-2 me-3"
|
||||||
onClick={openAddEmail}
|
onClick={openAddEmail}
|
||||||
style={{
|
style={{
|
||||||
|
background: "linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%)",
|
||||||
|
border: "none",
|
||||||
|
color: "#fff",
|
||||||
position: "relative",
|
position: "relative",
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
|
boxShadow: "0 4px 12px rgba(139, 92, 246, 0.3)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<i className="ti ti-square-rounded-plus me-2" style={{ position: "relative", zIndex: 2 }} />
|
<i className="ti ti-square-rounded-plus me-2" style={{ position: "relative", zIndex: 2 }} />
|
||||||
|
|
|
||||||
|
|
@ -68,16 +68,16 @@ import CountUp from "react-countup";
|
||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
|
|
||||||
const COLORS = [
|
const COLORS = [
|
||||||
"#0088FE",
|
"#8B5CF6",
|
||||||
"#00C49F",
|
"#38BDF8",
|
||||||
"#FFBB28",
|
"#A78BFA",
|
||||||
"#FF8042",
|
"#0EA5E9",
|
||||||
"#A569BD",
|
"#7C3AED",
|
||||||
"#58D68D",
|
"#60A5FA",
|
||||||
"#E74C3C",
|
"#C4B5FD",
|
||||||
"#3498DB",
|
"#93C5FD",
|
||||||
"#F39C12",
|
"#6366F1",
|
||||||
"#2ECC71",
|
"#0284C7",
|
||||||
];
|
];
|
||||||
|
|
||||||
const AdminDashboard: React.FC = () => {
|
const AdminDashboard: React.FC = () => {
|
||||||
|
|
@ -697,7 +697,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
<Tip text={`Total Leads: ${totalLeads.toLocaleString()}`}>
|
<Tip text={`Total Leads: ${totalLeads.toLocaleString()}`}>
|
||||||
<div className="dashboard-card h-100 border-0 shadow-lg hover-lift transition-all">
|
<div className="dashboard-card h-100 border-0 shadow-lg hover-lift transition-all">
|
||||||
<div className="card-content p-4 d-flex flex-column align-items-center text-center">
|
<div className="card-content p-4 d-flex flex-column align-items-center text-center">
|
||||||
<div className="icon-circle bg-success-subtle text-success mb-3">
|
<div className="icon-circle bg-info-subtle text-info mb-3">
|
||||||
<FaChartBar size={32} />
|
<FaChartBar size={32} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -705,7 +705,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
Total Leads
|
Total Leads
|
||||||
</h6>
|
</h6>
|
||||||
|
|
||||||
<h3 className="fw-bold text-success mb-0">
|
<h3 className="fw-bold text-info mb-0">
|
||||||
<CountUp
|
<CountUp
|
||||||
end={totalLeads}
|
end={totalLeads}
|
||||||
duration={2}
|
duration={2}
|
||||||
|
|
@ -722,7 +722,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
<Tip text={`Total Deals: ${totalDeals.toLocaleString()}`}>
|
<Tip text={`Total Deals: ${totalDeals.toLocaleString()}`}>
|
||||||
<div className="dashboard-card h-100 border-0 shadow-lg hover-lift transition-all">
|
<div className="dashboard-card h-100 border-0 shadow-lg hover-lift transition-all">
|
||||||
<div className="card-content p-4 d-flex flex-column align-items-center text-center">
|
<div className="card-content p-4 d-flex flex-column align-items-center text-center">
|
||||||
<div className="icon-circle bg-warning-subtle text-warning mb-3">
|
<div className="icon-circle bg-primary-subtle text-primary mb-3">
|
||||||
<FaHandshake size={32} />
|
<FaHandshake size={32} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -730,7 +730,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
Total Deals
|
Total Deals
|
||||||
</h6>
|
</h6>
|
||||||
|
|
||||||
<h3 className="fw-bold text-warning mb-0">
|
<h3 className="fw-bold text-primary mb-0">
|
||||||
<CountUp
|
<CountUp
|
||||||
end={totalDeals}
|
end={totalDeals}
|
||||||
duration={2}
|
duration={2}
|
||||||
|
|
@ -1602,7 +1602,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
|
|
||||||
<Bar
|
<Bar
|
||||||
dataKey="value"
|
dataKey="value"
|
||||||
fill="#22c55e"
|
fill="#8B5CF6"
|
||||||
radius={[6, 6, 0, 0]}
|
radius={[6, 6, 0, 0]}
|
||||||
barSize={28}
|
barSize={28}
|
||||||
/>
|
/>
|
||||||
|
|
@ -2316,7 +2316,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
|
|
||||||
<Bar
|
<Bar
|
||||||
dataKey="value"
|
dataKey="value"
|
||||||
fill="#f59e0b"
|
fill="#38BDF8"
|
||||||
radius={[6, 6, 0, 0]}
|
radius={[6, 6, 0, 0]}
|
||||||
barSize={22}
|
barSize={22}
|
||||||
isAnimationActive
|
isAnimationActive
|
||||||
|
|
@ -2341,7 +2341,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
style={{
|
style={{
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 10,
|
height: 10,
|
||||||
backgroundColor: "#f59e0b",
|
backgroundColor: "#38BDF8",
|
||||||
opacity: 1 - index * 0.15,
|
opacity: 1 - index * 0.15,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
@ -2717,7 +2717,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
|
|
||||||
<Bar
|
<Bar
|
||||||
dataKey="value"
|
dataKey="value"
|
||||||
fill="#f59e0b"
|
fill="#8B5CF6"
|
||||||
radius={[6, 6, 0, 0]}
|
radius={[6, 6, 0, 0]}
|
||||||
barSize={26}
|
barSize={26}
|
||||||
isAnimationActive
|
isAnimationActive
|
||||||
|
|
@ -2740,7 +2740,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
style={{
|
style={{
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 10,
|
height: 10,
|
||||||
backgroundColor: "#f59e0b",
|
backgroundColor: "#8B5CF6",
|
||||||
opacity: 1 - index * 0.15,
|
opacity: 1 - index * 0.15,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
@ -3584,7 +3584,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
/>
|
/>
|
||||||
<Bar
|
<Bar
|
||||||
dataKey="value"
|
dataKey="value"
|
||||||
fill="#f59e0b"
|
fill="#38BDF8"
|
||||||
radius={[6, 6, 0, 0]}
|
radius={[6, 6, 0, 0]}
|
||||||
barSize={26}
|
barSize={26}
|
||||||
/>
|
/>
|
||||||
|
|
@ -3914,7 +3914,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
|
|
||||||
<td className="py-3 text-center">
|
<td className="py-3 text-center">
|
||||||
<Button
|
<Button
|
||||||
variant="outline-warning"
|
variant="outline-primary"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="rounded-pill px-3"
|
className="rounded-pill px-3"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
|
@ -4234,7 +4234,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
{/* <Button
|
{/* <Button
|
||||||
variant="warning"
|
variant="primary"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
navigate(
|
navigate(
|
||||||
`/deals/details?deal_id=${encodeURIComponent(
|
`/deals/details?deal_id=${encodeURIComponent(
|
||||||
|
|
|
||||||
|
|
@ -62,16 +62,17 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
|
|
||||||
const effectiveTotalValue = totalDealValue || totalWonValue || allDeals.reduce((sum, d) => sum + (parseFloat(d.deal_value) || 0), 0);
|
const effectiveTotalValue = totalDealValue || totalWonValue || allDeals.reduce((sum, d) => sum + (parseFloat(d.deal_value) || 0), 0);
|
||||||
|
|
||||||
// 1. Leads & Deals Growth Spline Trend Chart (Calculated from allLeads & allDeals creation dates)
|
// 1. Leads & Deals Growth Spline Trend Chart - filtered by selectedYear
|
||||||
const monthlyActivityTrend = useMemo(() => {
|
const monthlyActivityTrend = useMemo(() => {
|
||||||
const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
||||||
const leadsCountByMonth = new Array(12).fill(0);
|
const leadsCountByMonth = new Array(12).fill(0);
|
||||||
const dealsCountByMonth = new Array(12).fill(0);
|
const dealsCountByMonth = new Array(12).fill(0);
|
||||||
|
const yearNum = parseInt(selectedYear, 10);
|
||||||
|
|
||||||
allLeads.forEach((lead) => {
|
allLeads.forEach((lead) => {
|
||||||
if (lead.created_at) {
|
if (lead.created_at) {
|
||||||
const d = new Date(lead.created_at);
|
const d = new Date(lead.created_at);
|
||||||
if (!isNaN(d.getTime())) {
|
if (!isNaN(d.getTime()) && d.getFullYear() === yearNum) {
|
||||||
leadsCountByMonth[d.getMonth()]++;
|
leadsCountByMonth[d.getMonth()]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -80,21 +81,14 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
allDeals.forEach((deal) => {
|
allDeals.forEach((deal) => {
|
||||||
if (deal.created_at) {
|
if (deal.created_at) {
|
||||||
const d = new Date(deal.created_at);
|
const d = new Date(deal.created_at);
|
||||||
if (!isNaN(d.getTime())) {
|
if (!isNaN(d.getTime()) && d.getFullYear() === yearNum) {
|
||||||
dealsCountByMonth[d.getMonth()]++;
|
dealsCountByMonth[d.getMonth()]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Provide pleasant realistic distribution if sparse demo database
|
return { months, finalLeads: leadsCountByMonth, finalDeals: dealsCountByMonth };
|
||||||
const hasLeadData = leadsCountByMonth.some((v) => v > 0);
|
}, [allLeads, allDeals, selectedYear]);
|
||||||
const hasDealData = dealsCountByMonth.some((v) => v > 0);
|
|
||||||
|
|
||||||
const finalLeads = hasLeadData ? leadsCountByMonth : [12, 18, 15, 28, 22, 35, 42, 38, 48, 52, 45, 60];
|
|
||||||
const finalDeals = hasDealData ? dealsCountByMonth : [8, 11, 14, 20, 18, 25, 30, 28, 36, 40, 32, 45];
|
|
||||||
|
|
||||||
return { months, finalLeads, finalDeals };
|
|
||||||
}, [allLeads, allDeals]);
|
|
||||||
|
|
||||||
const currentMonthIdx = new Date().getMonth();
|
const currentMonthIdx = new Date().getMonth();
|
||||||
|
|
||||||
|
|
@ -125,7 +119,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
style: {
|
style: {
|
||||||
colors: [
|
colors: [
|
||||||
"#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF",
|
"#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF",
|
||||||
"#69235B", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF"
|
"#8B5CF6", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF", "#9CA3AF"
|
||||||
],
|
],
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
fontSize: "12px",
|
fontSize: "12px",
|
||||||
|
|
@ -172,7 +166,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
}, [productRevenueData]);
|
}, [productRevenueData]);
|
||||||
|
|
||||||
const productChartColors = [
|
const productChartColors = [
|
||||||
"#38BDF8", "#A855F7", "#69235B", "#0284C7", "#C084FC", "#0EA5E9", "#7C3AED", "#67E8F9",
|
"#38BDF8", "#8B5CF6", "#0EA5E9", "#A855F7", "#7DD3FC", "#7C3AED", "#BAE6FD", "#C084FC",
|
||||||
];
|
];
|
||||||
|
|
||||||
const headcountChartOptions: ApexOptions = {
|
const headcountChartOptions: ApexOptions = {
|
||||||
|
|
@ -228,7 +222,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
};
|
};
|
||||||
}, [dealSourceData]);
|
}, [dealSourceData]);
|
||||||
|
|
||||||
const sourceChartColors = ["#38BDF8", "#A855F7", "#69235B", "#0284C7", "#C084FC"];
|
const sourceChartColors = ["#38BDF8", "#8B5CF6", "#0EA5E9", "#A855F7", "#7DD3FC"];
|
||||||
|
|
||||||
const diversityChartOptions: ApexOptions = {
|
const diversityChartOptions: ApexOptions = {
|
||||||
chart: {
|
chart: {
|
||||||
|
|
@ -308,7 +302,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
colors: ["#38BDF8", "#A855F7", "#69235B"],
|
colors: ["#38BDF8", "#8B5CF6", "#0EA5E9"],
|
||||||
labels: ["Won Value"],
|
labels: ["Won Value"],
|
||||||
stroke: { lineCap: "round" },
|
stroke: { lineCap: "round" },
|
||||||
};
|
};
|
||||||
|
|
@ -319,11 +313,11 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
const displayStages = useMemo(() => {
|
const displayStages = useMemo(() => {
|
||||||
if (stages && stages.length > 0) {
|
if (stages && stages.length > 0) {
|
||||||
const palette = [
|
const palette = [
|
||||||
{ bg: "#F8EBF6", color: "#69235B", icon: "ti ti-phone-call" },
|
{ bg: "#F3E8FF", color: "#8B5CF6", icon: "ti ti-phone-call" },
|
||||||
{ bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-certificate" },
|
{ bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-certificate" },
|
||||||
{ bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" },
|
{ bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" },
|
||||||
{ bg: "#E0F7FA", color: "#0891B2", icon: "ti ti-scale" },
|
{ bg: "#E0F2FE", color: "#38BDF8", icon: "ti ti-scale" },
|
||||||
{ bg: "#F8EBF6", color: "#A855F7", icon: "ti ti-trophy" },
|
{ bg: "#F3E8FF", 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}`,
|
||||||
|
|
@ -333,10 +327,10 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
{ label: "Contacted", count: contactedLeads || 42, bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-phone-call" },
|
{ label: "Contacted", count: contactedLeads || 42, bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-phone-call" },
|
||||||
{ label: "Qualified", count: 28, bg: "#F8EBF6", color: "#69235B", icon: "ti ti-certificate" },
|
{ label: "Qualified", count: 28, bg: "#F3E8FF", color: "#8B5CF6", icon: "ti ti-certificate" },
|
||||||
{ label: "Proposal Sent", count: 19, bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" },
|
{ label: "Proposal Sent", count: 19, bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" },
|
||||||
{ label: "Negotiation", count: 12, bg: "#E0F7FA", color: "#0891B2", icon: "ti ti-scale" },
|
{ label: "Negotiation", count: 12, bg: "#E0F2FE", color: "#38BDF8", icon: "ti ti-scale" },
|
||||||
{ label: "Closed Won", count: effectiveWonDeals || 15, bg: "#F8EBF6", color: "#A855F7", icon: "ti ti-trophy" },
|
{ label: "Closed Won", count: effectiveWonDeals || 15, bg: "#F3E8FF", color: "#A855F7", icon: "ti ti-trophy" },
|
||||||
];
|
];
|
||||||
}, [stages, contactedLeads, effectiveWonDeals]);
|
}, [stages, contactedLeads, effectiveWonDeals]);
|
||||||
|
|
||||||
|
|
@ -395,19 +389,27 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
];
|
];
|
||||||
}, [allDeals]);
|
}, [allDeals]);
|
||||||
|
|
||||||
// 9. Upcoming Events / Calls
|
// 9. Upcoming Events / Calls — uses real event_start field from CalendarEvent API
|
||||||
const upcomingEventsList = useMemo(() => {
|
const upcomingEventsList = useMemo(() => {
|
||||||
if (calendarEvents && calendarEvents.length > 0) {
|
if (calendarEvents && calendarEvents.length > 0) {
|
||||||
return calendarEvents.slice(0, 2).map((ev) => ({
|
return calendarEvents.slice(0, 2).map((ev) => {
|
||||||
title: ev.title || "Client Meeting",
|
const startDate = ev.event_start || ev.start_date || "";
|
||||||
subtitle: ev.description || "Follow-up discussion",
|
const formatted = startDate
|
||||||
date: ev.start_date || "Today, 3:00 PM",
|
? new Date(startDate).toLocaleString("en-IN", {
|
||||||
}));
|
month: "short",
|
||||||
|
day: "numeric",
|
||||||
|
hour: "2-digit",
|
||||||
|
minute: "2-digit",
|
||||||
|
})
|
||||||
|
: "Upcoming";
|
||||||
|
return {
|
||||||
|
title: ev.title || "Client Meeting",
|
||||||
|
subtitle: ev.description || "Follow-up discussion",
|
||||||
|
date: formatted,
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return [
|
return [];
|
||||||
{ title: "Client Demo Call", subtitle: "Product pitch with Al Futtaim", date: "Today, 2:30 PM" },
|
|
||||||
{ title: "Contract Signing", subtitle: "Final proposal with Emaar", date: "Tomorrow, 11:00 AM" },
|
|
||||||
];
|
|
||||||
}, [calendarEvents]);
|
}, [calendarEvents]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -422,7 +424,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
className="mb-0 fw-bold d-flex align-items-center"
|
className="mb-0 fw-bold d-flex align-items-center"
|
||||||
style={{ color: "#1E2638", fontSize: "1.75rem", letterSpacing: "-0.02em" }}
|
style={{ color: "#1E2638", fontSize: "1.75rem", letterSpacing: "-0.02em" }}
|
||||||
>
|
>
|
||||||
Welcome to <span className="ms-2" style={{ color: "#69235B" }}>CRM Dashboard</span>
|
Welcome to <span className="ms-2" style={{ color: "#8B5CF6" }}>CRM Dashboard</span>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -430,7 +432,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
<Link
|
<Link
|
||||||
to="/crm/deals"
|
to="/crm/deals"
|
||||||
className="btn btn-sm rounded-pill px-3 py-2 fw-semibold btn-primary shadow-sm"
|
className="btn btn-sm rounded-pill px-3 py-2 fw-semibold btn-primary shadow-sm"
|
||||||
style={{ backgroundColor: "#69235B", borderColor: "#69235B" }}
|
style={{ backgroundColor: "#8B5CF6", borderColor: "#8B5CF6" }}
|
||||||
>
|
>
|
||||||
<i className="ti ti-plus me-1" />
|
<i className="ti ti-plus me-1" />
|
||||||
New Deal
|
New Deal
|
||||||
|
|
@ -462,7 +464,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: "#F8EBF6", color: "#69235B" }}
|
style={{ width: "42px", height: "42px", backgroundColor: "#F3E8FF", color: "#8B5CF6" }}
|
||||||
>
|
>
|
||||||
<i className="ti ti-users fs-20" />
|
<i className="ti ti-users fs-20" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -550,7 +552,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: "#F8EBF6", color: "#69235B" }}
|
style={{ width: "42px", height: "42px", backgroundColor: "#F3E8FF", color: "#8B5CF6" }}
|
||||||
>
|
>
|
||||||
<i className="ti ti-coin fs-20" />
|
<i className="ti ti-coin fs-20" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -639,12 +641,14 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
</div>
|
</div>
|
||||||
<select
|
<select
|
||||||
className="form-select form-select-sm border py-0 px-2 rounded-2 f-12"
|
className="form-select form-select-sm border py-0 px-2 rounded-2 f-12"
|
||||||
style={{ width: "75px", color: "#69235B", fontWeight: 600 }}
|
style={{ width: "75px", color: "#8B5CF6", fontWeight: 600 }}
|
||||||
value={selectedYear}
|
value={selectedYear}
|
||||||
onChange={(e) => setSelectedYear(e.target.value)}
|
onChange={(e) => setSelectedYear(e.target.value)}
|
||||||
>
|
>
|
||||||
<option value="2024">2024</option>
|
{Array.from({ length: 5 }, (_, i) => {
|
||||||
<option value="2023">2023</option>
|
const y = new Date().getFullYear() - i;
|
||||||
|
return <option key={y} value={y.toString()}>{y}</option>;
|
||||||
|
})}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -768,7 +772,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
</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: "#F8EBF6", color: "#69235B" }}>
|
<span className="badge rounded-pill" style={{ backgroundColor: "#F3E8FF", color: "#8B5CF6" }}>
|
||||||
{lostRatio}%
|
{lostRatio}%
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -844,7 +848,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" style={{ width: `${wonDealsPercent}%`, backgroundColor: "#69235B" }} />
|
<div className="progress-bar" style={{ width: `${wonDealsPercent}%`, backgroundColor: "#8B5CF6" }} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -890,7 +894,7 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
style={{
|
style={{
|
||||||
width: "42px",
|
width: "42px",
|
||||||
height: "42px",
|
height: "42px",
|
||||||
backgroundColor: i === 0 ? "#69235B" : "#0284C7",
|
backgroundColor: i === 0 ? "#8B5CF6" : "#0284C7",
|
||||||
fontSize: "14px",
|
fontSize: "14px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -900,8 +904,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
<span
|
<span
|
||||||
className="badge rounded-pill f-10 mb-1 fw-semibold"
|
className="badge rounded-pill f-10 mb-1 fw-semibold"
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: i === 0 ? "#F8EBF6" : "#E0F2FE",
|
backgroundColor: i === 0 ? "#F3E8FF" : "#E0F2FE",
|
||||||
color: i === 0 ? "#69235B" : "#0284C7",
|
color: i === 0 ? "#8B5CF6" : "#0284C7",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{ev.date}
|
{ev.date}
|
||||||
|
|
@ -937,8 +941,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
style={{
|
style={{
|
||||||
width: "38px",
|
width: "38px",
|
||||||
height: "38px",
|
height: "38px",
|
||||||
backgroundColor: i % 2 === 0 ? "#F8EBF6" : "#E0F2FE",
|
backgroundColor: i % 2 === 0 ? "#F3E8FF" : "#E0F2FE",
|
||||||
color: i % 2 === 0 ? "#69235B" : "#0284C7",
|
color: i % 2 === 0 ? "#8B5CF6" : "#0284C7",
|
||||||
fontSize: "13px",
|
fontSize: "13px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -954,8 +958,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 % 2 === 0 ? "#F8EBF6" : "#E0F2FE",
|
backgroundColor: i % 2 === 0 ? "#F3E8FF" : "#E0F2FE",
|
||||||
color: i % 2 === 0 ? "#69235B" : "#0284C7",
|
color: i % 2 === 0 ? "#8B5CF6" : "#0284C7",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{emp.status}
|
{emp.status}
|
||||||
|
|
@ -986,8 +990,8 @@ export const CipherBizzDashboard: React.FC<CipherBizzDashboardProps> = ({
|
||||||
style={{
|
style={{
|
||||||
width: "38px",
|
width: "38px",
|
||||||
height: "38px",
|
height: "38px",
|
||||||
backgroundColor: i % 2 === 0 ? "#E0F2FE" : "#F8EBF6",
|
backgroundColor: i % 2 === 0 ? "#E0F2FE" : "#F3E8FF",
|
||||||
color: i % 2 === 0 ? "#0284C7" : "#69235B",
|
color: i % 2 === 0 ? "#0284C7" : "#8B5CF6",
|
||||||
fontSize: "13px",
|
fontSize: "13px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -1003,8 +1007,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: "#F8EBF6",
|
backgroundColor: "#F3E8FF",
|
||||||
color: "#69235B",
|
color: "#8B5CF6",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{deal.value}
|
{deal.value}
|
||||||
|
|
|
||||||
|
|
@ -2701,7 +2701,7 @@ const DealsDashboard = () => {
|
||||||
stages={stages}
|
stages={stages}
|
||||||
stageOwnerCounts={stageOwnerCounts}
|
stageOwnerCounts={stageOwnerCounts}
|
||||||
productRevenueData={productRevenueData}
|
productRevenueData={productRevenueData}
|
||||||
dealSourceData={{ labels: chartConfig?.labels || [], series: chartConfig?.series || [] }}
|
dealSourceData={{ labels: (derivedChartConfig?.labels as string[]) || [], series: (derivedChartConfig?.series as number[]) || [] }}
|
||||||
allLeads={allLeads}
|
allLeads={allLeads}
|
||||||
allDeals={allDeals}
|
allDeals={allDeals}
|
||||||
todos={todos}
|
todos={todos}
|
||||||
|
|
@ -2721,7 +2721,7 @@ const DealsDashboard = () => {
|
||||||
className="page-title fw-bold d-flex align-items-center mb-0"
|
className="page-title fw-bold d-flex align-items-center mb-0"
|
||||||
style={{ color: "#1E2638", fontSize: "1.75rem", letterSpacing: "-0.02em" }}
|
style={{ color: "#1E2638", fontSize: "1.75rem", letterSpacing: "-0.02em" }}
|
||||||
>
|
>
|
||||||
Welcome to <span className="ms-2" style={{ color: "#69235B" }}>CRM Dashboard</span>
|
Welcome to <span className="ms-2" style={{ color: "#8B5CF6" }}>CRM Dashboard</span>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div className="d-flex align-items-center gap-2">
|
<div className="d-flex align-items-center gap-2">
|
||||||
|
|
|
||||||
253
src/index.scss
253
src/index.scss
|
|
@ -248,12 +248,12 @@ span.form-icon {
|
||||||
}
|
}
|
||||||
|
|
||||||
.select__control {
|
.select__control {
|
||||||
background-color: #e41f07 !important;
|
background-color: #ffffff !important;
|
||||||
border-color: #e41f07 !important;
|
border-color: #E2E8F0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select__control:hover {
|
.select__control:hover {
|
||||||
border-color: #e41f07 !important;
|
border-color: #8B5CF6 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .slick-slide {
|
// .slick-slide {
|
||||||
|
|
@ -566,12 +566,12 @@ div.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-draggin
|
||||||
}
|
}
|
||||||
|
|
||||||
div.css-b62m3t-container .react-select__option--is-focused {
|
div.css-b62m3t-container .react-select__option--is-focused {
|
||||||
background-color: #e41f07;
|
background-color: #F3E8FF;
|
||||||
color: #fff;
|
color: #8B5CF6;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.css-b62m3t-container .react-select__option--is-selected {
|
div.css-b62m3t-container .react-select__option--is-selected {
|
||||||
background-color: #e41f07;
|
background-color: #8B5CF6;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1365,15 +1365,15 @@ input:focus,
|
||||||
textarea:focus,
|
textarea:focus,
|
||||||
select:focus,
|
select:focus,
|
||||||
.react-select__control--is-focused {
|
.react-select__control--is-focused {
|
||||||
border-color: #e41f07 !important;
|
border-color: #8B5CF6 !important;
|
||||||
box-shadow: 0 0 0 2px #e41f07 !important;
|
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25) !important;
|
||||||
transition: box-shadow 0.3s ease, border-color 0.3s ease;
|
transition: box-shadow 0.3s ease, border-color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* React Select Focus */
|
/* React Select Focus */
|
||||||
.react-select__control--is-focused {
|
.react-select__control--is-focused {
|
||||||
border-color: #e41f07 !important;
|
border-color: #8B5CF6 !important;
|
||||||
box-shadow: 0 0 0 2px #e41f07 !important;
|
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25) !important;
|
||||||
transition: all 0.3s ease-in-out;
|
transition: all 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1402,8 +1402,7 @@ select:focus,
|
||||||
.scroll-progress-bar {
|
.scroll-progress-bar {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 0%;
|
width: 0%;
|
||||||
background-color: #e41f07;
|
background-color: #8B5CF6;
|
||||||
/* subtle, clean grey */
|
|
||||||
transition: width 0.2s ease-out;
|
transition: width 0.2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1761,8 +1760,8 @@ $breakpoints: (
|
||||||
// display: none;
|
// display: none;
|
||||||
// }
|
// }
|
||||||
.bg-danger-subtle-light {
|
.bg-danger-subtle-light {
|
||||||
background-color: rgba(220, 53, 69, 0.08) !important;
|
background-color: rgba(139, 92, 246, 0.1) !important;
|
||||||
/* Softer than default */
|
color: #8B5CF6 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-icon {
|
.stat-icon {
|
||||||
|
|
@ -2891,14 +2890,17 @@ a.dropdown-active-toggle.show,
|
||||||
:root,
|
:root,
|
||||||
body,
|
body,
|
||||||
.dashboard-minimal {
|
.dashboard-minimal {
|
||||||
--dashboard-bg: #F4F6FB;
|
--dashboard-bg: #F8FAFC;
|
||||||
--dashboard-card-bg: #FFFFFF;
|
--dashboard-card-bg: #FFFFFF;
|
||||||
--dashboard-primary: #69235B;
|
--dashboard-primary: #8B5CF6;
|
||||||
--dashboard-primary-hover: #531847;
|
--dashboard-primary-hover: #7C3AED;
|
||||||
--dashboard-primary-subtle: #F8EBF6;
|
--dashboard-primary-subtle: #F3E8FF;
|
||||||
--dashboard-text: #1E2638;
|
--dashboard-accent: #38BDF8;
|
||||||
--dashboard-muted: #7E8B9B;
|
--dashboard-accent-hover: #0EA5E9;
|
||||||
--dashboard-border: #ECEEF5;
|
--dashboard-accent-subtle: #E0F2FE;
|
||||||
|
--dashboard-text: #1E293B;
|
||||||
|
--dashboard-muted: #64748B;
|
||||||
|
--dashboard-border: #E2E8F0;
|
||||||
--dashboard-accent-bg: #F8FAFC;
|
--dashboard-accent-bg: #F8FAFC;
|
||||||
--dashboard-radius: 14px;
|
--dashboard-radius: 14px;
|
||||||
|
|
||||||
|
|
@ -3107,10 +3109,13 @@ body,
|
||||||
background: #FDEFEA;
|
background: #FDEFEA;
|
||||||
color: #EA580C;
|
color: #EA580C;
|
||||||
}
|
}
|
||||||
&.kpi-accent-primary .kpi-icon-badge,
|
&.kpi-accent-primary .kpi-icon-badge {
|
||||||
|
background: #F3E8FF;
|
||||||
|
color: #8B5CF6;
|
||||||
|
}
|
||||||
&.kpi-accent-secondary .kpi-icon-badge {
|
&.kpi-accent-secondary .kpi-icon-badge {
|
||||||
background: #F8EBF6;
|
background: #E0F2FE;
|
||||||
color: #69235B;
|
color: #0284C7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3239,97 +3244,150 @@ body,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==============================================================
|
/* ==============================================================
|
||||||
CIPHERBIZZ GLOBAL COLOR THEME OVERRIDES (Adobe XD Prototype)
|
CRM GLOBAL THEME: WHITE, PURPLE & LIGHT BLUE
|
||||||
============================================================== */
|
============================================================== */
|
||||||
:root {
|
:root {
|
||||||
--primary: #69235B;
|
--primary: #8B5CF6;
|
||||||
--bs-primary: #69235B;
|
--bs-primary: #8B5CF6;
|
||||||
--bs-primary-rgb: 105, 35, 91;
|
--bs-primary-rgb: 139, 92, 246;
|
||||||
--primary-transparent: #F8EBF6;
|
--primary-hover: #7C3AED;
|
||||||
|
--primary-transparent: #F3E8FF;
|
||||||
|
|
||||||
|
--secondary: #38BDF8;
|
||||||
|
--bs-secondary: #38BDF8;
|
||||||
|
--bs-secondary-rgb: 56, 189, 248;
|
||||||
|
--secondary-hover: #0EA5E9;
|
||||||
|
--secondary-transparent: #E0F2FE;
|
||||||
|
|
||||||
|
--info: #38BDF8;
|
||||||
|
--bs-info: #38BDF8;
|
||||||
|
--bs-info-rgb: 56, 189, 248;
|
||||||
|
--info-transparent: #E0F2FE;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: #F4F6FB !important;
|
background-color: #F8FAFC !important;
|
||||||
color: #1E2638;
|
color: #1E293B;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Primary buttons & elements */
|
/* Primary buttons & elements */
|
||||||
.btn-primary,
|
.btn-primary,
|
||||||
.bg-primary {
|
.bg-primary {
|
||||||
background-color: #69235B !important;
|
background-color: #8B5CF6 !important;
|
||||||
border-color: #69235B !important;
|
border-color: #8B5CF6 !important;
|
||||||
color: #FFFFFF !important;
|
color: #FFFFFF !important;
|
||||||
|
|
||||||
&:hover, &:focus, &:active {
|
&:hover, &:focus, &:active {
|
||||||
background-color: #531847 !important;
|
background-color: #7C3AED !important;
|
||||||
border-color: #531847 !important;
|
border-color: #7C3AED !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Secondary & Info buttons */
|
||||||
|
.btn-secondary,
|
||||||
|
.bg-secondary,
|
||||||
|
.btn-info,
|
||||||
|
.bg-info {
|
||||||
|
background-color: #38BDF8 !important;
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
|
||||||
|
&:hover, &:focus, &:active {
|
||||||
|
background-color: #0EA5E9 !important;
|
||||||
|
border-color: #0EA5E9 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-primary {
|
.text-primary {
|
||||||
color: #69235B !important;
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-secondary,
|
||||||
|
.text-info {
|
||||||
|
color: #38BDF8 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border-primary {
|
.border-primary {
|
||||||
border-color: #69235B !important;
|
border-color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.border-secondary,
|
||||||
|
.border-info {
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-primary {
|
.badge-primary {
|
||||||
background-color: #69235B !important;
|
background-color: #8B5CF6 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-secondary,
|
||||||
|
.badge-info {
|
||||||
|
background-color: #38BDF8 !important;
|
||||||
color: #FFFFFF !important;
|
color: #FFFFFF !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-soft-primary,
|
.badge-soft-primary,
|
||||||
.bg-soft-primary {
|
.bg-soft-primary {
|
||||||
background-color: #F8EBF6 !important;
|
background-color: #F3E8FF !important;
|
||||||
color: #69235B !important;
|
color: #8B5CF6 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sidebar styling to match Adobe XD */
|
.badge-soft-secondary,
|
||||||
|
.badge-soft-info,
|
||||||
|
.bg-soft-info,
|
||||||
|
.bg-soft-secondary {
|
||||||
|
background-color: #E0F2FE !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clean White Sidebar */
|
||||||
.sidebar {
|
.sidebar {
|
||||||
background-color: #FFFFFF !important;
|
background-color: #FFFFFF !important;
|
||||||
border-right: 1px solid #ECEEF5 !important;
|
border-right: 1px solid #E2E8F0 !important;
|
||||||
box-shadow: 0 0 20px rgba(105, 35, 91, 0.03) !important;
|
box-shadow: 0 0 20px rgba(139, 92, 246, 0.04) !important;
|
||||||
|
|
||||||
.sidebar-menu {
|
.sidebar-menu {
|
||||||
ul {
|
ul {
|
||||||
li {
|
li {
|
||||||
a {
|
a {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
color: #556070;
|
color: #475569;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #69235B;
|
color: #8B5CF6;
|
||||||
background: #FAF2F9;
|
background: #F3E8FF;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active,
|
&.active,
|
||||||
&.subdrop {
|
&.subdrop {
|
||||||
background-color: #F8EBF6 !important;
|
background-color: #F3E8FF !important;
|
||||||
color: #69235B !important;
|
color: #8B5CF6 !important;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
||||||
i, svg {
|
i, svg {
|
||||||
color: #69235B !important;
|
color: #8B5CF6 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active > a {
|
&.active > a {
|
||||||
background-color: #F8EBF6 !important;
|
background-color: #F3E8FF !important;
|
||||||
color: #69235B !important;
|
color: #8B5CF6 !important;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
||||||
i, svg {
|
i, svg {
|
||||||
color: #69235B !important;
|
color: #8B5CF6 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-title {
|
.menu-title {
|
||||||
color: #9CA3AF !important;
|
color: #94A3B8 !important;
|
||||||
font-size: 11px !important;
|
font-size: 11px !important;
|
||||||
text-transform: uppercase !important;
|
text-transform: uppercase !important;
|
||||||
letter-spacing: 0.05em !important;
|
letter-spacing: 0.05em !important;
|
||||||
|
|
@ -3338,32 +3396,103 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Top Header styling */
|
/* Clean White Top Header */
|
||||||
.header {
|
.header {
|
||||||
background-color: #FFFFFF !important;
|
background-color: #FFFFFF !important;
|
||||||
border-bottom: 1px solid #ECEEF5 !important;
|
border-bottom: 1px solid #E2E8F0 !important;
|
||||||
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.02) !important;
|
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03) !important;
|
||||||
|
|
||||||
.searchinputs {
|
.searchinputs {
|
||||||
input {
|
input {
|
||||||
background-color: #F4F6F9 !important;
|
background-color: #F8FAFC !important;
|
||||||
border: 1px solid #E5E7EB !important;
|
border: 1px solid #E2E8F0 !important;
|
||||||
border-radius: 50rem !important;
|
border-radius: 50rem !important;
|
||||||
padding-left: 36px !important;
|
padding-left: 36px !important;
|
||||||
font-size: 13px !important;
|
font-size: 13px !important;
|
||||||
color: #1E2638 !important;
|
color: #1E293B !important;
|
||||||
|
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
color: #9CA3AF !important;
|
color: #94A3B8 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: #69235B !important;
|
border-color: #8B5CF6 !important;
|
||||||
box-shadow: 0 0 0 3px rgba(105, 35, 91, 0.1) !important;
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pagination & interactive links */
|
||||||
|
.pagination {
|
||||||
|
.page-item.active .page-link {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
.page-link {
|
||||||
|
color: #8B5CF6;
|
||||||
|
&:hover {
|
||||||
|
background-color: #F3E8FF;
|
||||||
|
color: #7C3AED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Form check input (radio & checkboxes) */
|
||||||
|
.form-check-input:checked {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
.form-check-input:focus {
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Global CRM theme enforcement */
|
||||||
|
.campaign-box.bg-danger-light,
|
||||||
|
.campaign-box.bg-purple-light {
|
||||||
|
background-color: #F5F3FF !important;
|
||||||
|
border: 1px solid #DDD6FE !important;
|
||||||
|
span {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.campaign-box.bg-warning-light,
|
||||||
|
.campaign-box.bg-success-light {
|
||||||
|
background-color: #F0F9FF !important;
|
||||||
|
border: 1px solid #BAE6FD !important;
|
||||||
|
span {
|
||||||
|
background-color: #38BDF8 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Floating theme cog */
|
||||||
|
.sidebar-contact .toggle-theme {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sidebar active states */
|
||||||
|
.sidebar .sidebar-menu > ul > li ul > li.active a,
|
||||||
|
.sidebar .sidebar-menu > ul > li.active > a,
|
||||||
|
.sidebar .sidebar-menu a.active {
|
||||||
|
background: #F3E8FF !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
i, svg, span {
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Outlines */
|
||||||
|
.btn-outline-warning {
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
&:hover {
|
||||||
|
background-color: #38BDF8 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,10 +64,10 @@
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
&.active{
|
&.active{
|
||||||
a{
|
a{
|
||||||
color: $white;
|
color: $primary;
|
||||||
}
|
}
|
||||||
svg {
|
svg {
|
||||||
color: #FE9F43
|
color: $primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
svg {
|
svg {
|
||||||
|
|
@ -94,22 +94,22 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active{
|
&.active{
|
||||||
background: rgba(254, 159, 67, 0.08);
|
background: rgba(139, 92, 246, 0.1);
|
||||||
color: #FE9F43;
|
color: $primary;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
svg{
|
svg{
|
||||||
color: $white;
|
color: $primary;
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
filter: invert(72%) sepia(76%) saturate(1430%) hue-rotate(327deg) brightness(103%) contrast(101%);
|
filter: none;
|
||||||
}
|
}
|
||||||
span{
|
span{
|
||||||
color: #FE9F43;
|
color: $primary;
|
||||||
}
|
}
|
||||||
.menu-arrow{
|
.menu-arrow{
|
||||||
background: #FFEDDC;
|
background: rgba(139, 92, 246, 0.15);
|
||||||
&::before{
|
&::before{
|
||||||
border-color: #FE9F43;
|
border-color: $primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -121,13 +121,13 @@
|
||||||
}
|
}
|
||||||
&.active {
|
&.active {
|
||||||
a {
|
a {
|
||||||
background: rgba(254, 159, 67, 0.08);
|
background: rgba(139, 92, 246, 0.1);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
img{
|
img{
|
||||||
filter: invert(72%) sepia(76%) saturate(1430%) hue-rotate(327deg) brightness(103%) contrast(101%);
|
filter: none;
|
||||||
}
|
}
|
||||||
span{
|
span{
|
||||||
color: #FE9F43;
|
color: $primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -207,15 +207,15 @@
|
||||||
> li {
|
> li {
|
||||||
&.active a{
|
&.active a{
|
||||||
&.subdrop{
|
&.subdrop{
|
||||||
background: #FFEEEC;
|
background: rgba(139, 92, 246, 0.1);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
color: #E41F07;
|
color: $primary;
|
||||||
i{
|
i{
|
||||||
color:$white;
|
color:$white;
|
||||||
background:#E41F07;
|
background: $primary;
|
||||||
}
|
}
|
||||||
span {
|
span {
|
||||||
color: #E41F07;
|
color: $primary;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -356,8 +356,8 @@
|
||||||
&:hover{
|
&:hover{
|
||||||
color:$primary;
|
color:$primary;
|
||||||
&:after{
|
&:after{
|
||||||
background: #FE9F43;
|
background: $primary;
|
||||||
border: 2px solid #FDB;
|
border: 2px solid rgba(139, 92, 246, 0.3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4440,7 +4440,7 @@ body.data-layout-transparent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[data-color="primary"]{
|
[data-color="primary"]{
|
||||||
$primary: #E41F07;
|
$primary: #8B5CF6;
|
||||||
.sidebar {
|
.sidebar {
|
||||||
.sidebar-menu > ul {
|
.sidebar-menu > ul {
|
||||||
& > li {
|
& > li {
|
||||||
|
|
@ -4693,7 +4693,7 @@ body.data-layout-transparent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[data-color="brightblue"]{
|
[data-color="brightblue"]{
|
||||||
$primary: #4680FF;
|
$primary: #38BDF8;
|
||||||
.sidebar {
|
.sidebar {
|
||||||
.sidebar-menu > ul {
|
.sidebar-menu > ul {
|
||||||
& > li {
|
& > li {
|
||||||
|
|
@ -4952,7 +4952,7 @@ body.data-layout-transparent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[data-color="lunargreen"]{
|
[data-color="lunargreen"]{
|
||||||
$primary: #365E32;
|
$primary: #8B5CF6;
|
||||||
.sidebar {
|
.sidebar {
|
||||||
.sidebar-menu > ul {
|
.sidebar-menu > ul {
|
||||||
& > li {
|
& > li {
|
||||||
|
|
@ -5211,7 +5211,7 @@ body.data-layout-transparent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[data-color="lavendar"]{
|
[data-color="lavendar"]{
|
||||||
$primary: #673AB7;
|
$primary: #8B5CF6;
|
||||||
.sidebar {
|
.sidebar {
|
||||||
.sidebar-menu > ul {
|
.sidebar-menu > ul {
|
||||||
& > li {
|
& > li {
|
||||||
|
|
@ -5470,7 +5470,7 @@ body.data-layout-transparent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[data-color="magenta"]{
|
[data-color="magenta"]{
|
||||||
$primary: #E83E8C;
|
$primary: #8B5CF6;
|
||||||
.sidebar {
|
.sidebar {
|
||||||
.sidebar-menu > ul {
|
.sidebar-menu > ul {
|
||||||
& > li {
|
& > li {
|
||||||
|
|
@ -5729,7 +5729,7 @@ body.data-layout-transparent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[data-color="chromeyellow"]{
|
[data-color="chromeyellow"]{
|
||||||
$primary: #FF9B04;
|
$primary: #8B5CF6;
|
||||||
.sidebar {
|
.sidebar {
|
||||||
.sidebar-menu > ul {
|
.sidebar-menu > ul {
|
||||||
& > li {
|
& > li {
|
||||||
|
|
@ -5988,7 +5988,7 @@ body.data-layout-transparent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[data-color="lavared"]{
|
[data-color="lavared"]{
|
||||||
$primary: #DC2626;
|
$primary: #8B5CF6;
|
||||||
.sidebar {
|
.sidebar {
|
||||||
.sidebar-menu > ul {
|
.sidebar-menu > ul {
|
||||||
& > li {
|
& > li {
|
||||||
|
|
|
||||||
|
|
@ -51,27 +51,35 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.bg-danger-light {
|
&.bg-danger-light {
|
||||||
background-color: $danger-100;
|
background-color: #F5F3FF;
|
||||||
|
border: 1px solid #DDD6FE;
|
||||||
span {
|
span {
|
||||||
background-color: $danger;
|
background-color: #8B5CF6;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.bg-warning-light {
|
&.bg-warning-light {
|
||||||
background-color: $warning-100;
|
background-color: #F0F9FF;
|
||||||
|
border: 1px solid #BAE6FD;
|
||||||
span {
|
span {
|
||||||
background-color: $secondary;
|
background-color: #38BDF8;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.bg-purple-light {
|
&.bg-purple-light {
|
||||||
background-color: $purple-100;
|
background-color: #FAF5FF;
|
||||||
|
border: 1px solid #E9D5FF;
|
||||||
span {
|
span {
|
||||||
background-color: $tertiary;
|
background-color: #7C3AED;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.bg-success-light {
|
&.bg-success-light {
|
||||||
background-color: $success-200;
|
background-color: #F0F9FF;
|
||||||
|
border: 1px solid #BAE6FD;
|
||||||
span {
|
span {
|
||||||
background-color: $green;
|
background-color: #0EA5E9;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,17 +18,17 @@ $font-family-primary: "Noto Sans", sans-serif;
|
||||||
$font-awesome: "Fontawesome";
|
$font-awesome: "Fontawesome";
|
||||||
|
|
||||||
// Theme Colors Variables
|
// Theme Colors Variables
|
||||||
$primary: #69235B;
|
$primary: #8B5CF6;
|
||||||
$primary-hover: #531847;
|
$primary-hover: #7C3AED;
|
||||||
$secondary: #FFA201;
|
$secondary: #38BDF8;
|
||||||
$secondary-hover: darken($secondary, 10%);
|
$secondary-hover: #0EA5E9;
|
||||||
$success: #5CB85C;
|
$success: #10B981;
|
||||||
$success-hover: darken($success, 10%);
|
$success-hover: darken($success, 10%);
|
||||||
$info: #1ECBE2;
|
$info: #38BDF8;
|
||||||
$info-hover: darken($info, 10%);
|
$info-hover: #0EA5E9;
|
||||||
$warning: #FDA700;
|
$warning: #F59E0B;
|
||||||
$warning-hover: darken($warning, 10%);
|
$warning-hover: darken($warning, 10%);
|
||||||
$danger: #FC0027;
|
$danger: #EF4444;
|
||||||
$danger-hover: darken($danger, 10%);
|
$danger-hover: darken($danger, 10%);
|
||||||
$dark: #171724;
|
$dark: #171724;
|
||||||
$dark-border: #393947;
|
$dark-border: #393947;
|
||||||
|
|
@ -38,57 +38,57 @@ $dark-hover: darken($dark, 10%);
|
||||||
$darkmode-hover: #28283D;
|
$darkmode-hover: #28283D;
|
||||||
$dark-input: #1A1A25;
|
$dark-input: #1A1A25;
|
||||||
$dark-bg: #1E1E2D;
|
$dark-bg: #1E1E2D;
|
||||||
$primary-transparent: #F8EBF6;
|
$primary-transparent: #F3E8FF;
|
||||||
$secondary-transparent: #EDF2F4;
|
$secondary-transparent: #E0F2FE;
|
||||||
$success-transparent: #E8FAF0;
|
$success-transparent: #ECFDF5;
|
||||||
$warning-transparent: #FFF9E9;
|
$warning-transparent: #FFFBEB;
|
||||||
$danger-transparent: #FAE7E7;
|
$danger-transparent: #FEF2F2;
|
||||||
$info-transparent: #EBF4FF;
|
$info-transparent: #E0F2FE;
|
||||||
$pink-transparent: #FFEDF6;
|
$pink-transparent: #FDF4FF;
|
||||||
$light-transparent: #F9FAFE;
|
$light-transparent: #F8FAFC;
|
||||||
$dark-transparent: #E8E9EA;
|
$dark-transparent: #E8E9EA;
|
||||||
$teal-transparent: #E6F9FF;
|
$teal-transparent: #E0F2FE;
|
||||||
$purple-transparent: #F7EEF9;
|
$purple-transparent: #F3E8FF;
|
||||||
$skyblue-transparent: #E9FAFE;
|
$skyblue-transparent: #E0F2FE;
|
||||||
$gray-bg: #28283E;
|
$gray-bg: #28283E;
|
||||||
$light: #FDFDFE;
|
$light: #FDFDFE;
|
||||||
$light-hover: darken($light, 10%);
|
$light-hover: darken($light, 10%);
|
||||||
$white: #FFF;
|
$white: #FFF;
|
||||||
$black: #000;
|
$black: #000;
|
||||||
$purple: #69235B;
|
$purple: #8B5CF6;
|
||||||
$pink: #EA00B7;
|
$pink: #EC4899;
|
||||||
$blue: #339DFF;
|
$blue: #38BDF8;
|
||||||
$teal: #02a8b5;
|
$teal: #06B6D4;
|
||||||
$violet: #676DFF;
|
$violet: #8B5CF6;
|
||||||
$cyan: #299cdb;
|
$cyan: #38BDF8;
|
||||||
$green: #00918E;
|
$green: #10B981;
|
||||||
$orange: #FF9D0A;
|
$orange: #F97316;
|
||||||
$indigo: #0092E4;
|
$indigo: #6366F1;
|
||||||
$indigo-hover: darken($indigo, 10%);
|
$indigo-hover: darken($indigo, 10%);
|
||||||
$tertiary: #3C2371;
|
$tertiary: #7C3AED;
|
||||||
$yellow: #ffff00;
|
$yellow: #FACC15;
|
||||||
|
|
||||||
// Primary (CipherBizz Plum)
|
// Primary (Vibrant Purple)
|
||||||
$primary-100: #F8EBF6;
|
$primary-100: #FAF5FF;
|
||||||
$primary-200: #ECCEE7;
|
$primary-200: #F3E8FF;
|
||||||
$primary-300: #E0B1D8;
|
$primary-300: #E9D5FF;
|
||||||
$primary-400: #CE86C2;
|
$primary-400: #D8B4FE;
|
||||||
$primary-500: #B75CAB;
|
$primary-500: #C084FC;
|
||||||
$primary-600: #9B3D8E;
|
$primary-600: #A855F7;
|
||||||
$primary-700: #812B75;
|
$primary-700: #9333EA;
|
||||||
$primary-800: #69235B;
|
$primary-800: #8B5CF6;
|
||||||
$primary-900: #531847;
|
$primary-900: #7C3AED;
|
||||||
|
|
||||||
// Secondary
|
// Secondary (Light Blue)
|
||||||
$secondary-100: #FFF6E6;
|
$secondary-100: #F0F9FF;
|
||||||
$secondary-200: #FFECCC;
|
$secondary-200: #E0F2FE;
|
||||||
$secondary-300: #FFE3B3;
|
$secondary-300: #BAE6FD;
|
||||||
$secondary-400: #FFDA99;
|
$secondary-400: #7DD3FC;
|
||||||
$secondary-500: #FFD180;
|
$secondary-500: #38BDF8;
|
||||||
$secondary-600: #FFC767;
|
$secondary-600: #0EA5E9;
|
||||||
$secondary-700: #FFBE4D;
|
$secondary-700: #0284C7;
|
||||||
$secondary-800: #FFB534;
|
$secondary-800: #0369A1;
|
||||||
$secondary-900: #FFAB1A;
|
$secondary-900: #075985;
|
||||||
|
|
||||||
// Tertiary
|
// Tertiary
|
||||||
$tertiary-100: #ECE9F1;
|
$tertiary-100: #ECE9F1;
|
||||||
|
|
@ -299,12 +299,12 @@ $darkaqua: #116D6E;
|
||||||
$whiterock: #F0E4D7;
|
$whiterock: #F0E4D7;
|
||||||
$rockblue: #8CB9BD;
|
$rockblue: #8CB9BD;
|
||||||
$bluehaze: #B5C0D0;
|
$bluehaze: #B5C0D0;
|
||||||
$brightblue: #2066FF;
|
$brightblue: #38BDF8;
|
||||||
$lunargreen: #365E32;
|
$lunargreen: #8B5CF6;
|
||||||
$lavendar: #673AB7;
|
$lavendar: #8B5CF6;
|
||||||
$magenta: #E83E8C;
|
$magenta: #8B5CF6;
|
||||||
$chromeyellow: #FF9B04;
|
$chromeyellow: #38BDF8;
|
||||||
$lavared: #DC2626;
|
$lavared: #8B5CF6;
|
||||||
$blackpearl: #080821;
|
$blackpearl: #080821;
|
||||||
$maroon: #710034;
|
$maroon: #710034;
|
||||||
$bluegem: #3E1C95;
|
$bluegem: #3E1C95;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue