diff --git a/public/Digiev.png b/public/Digiev.png
new file mode 100644
index 0000000..2f11f05
Binary files /dev/null and b/public/Digiev.png differ
diff --git a/public/Publica Sans Round/PublicaSansRound-Bd.otf b/public/Publica Sans Round/PublicaSansRound-Bd.otf
new file mode 100644
index 0000000..9a05eaf
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-Bd.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-BdIt.otf b/public/Publica Sans Round/PublicaSansRound-BdIt.otf
new file mode 100644
index 0000000..38ccd1e
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-BdIt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-Lt.otf b/public/Publica Sans Round/PublicaSansRound-Lt.otf
new file mode 100644
index 0000000..b5e25da
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-Lt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-LtIt.otf b/public/Publica Sans Round/PublicaSansRound-LtIt.otf
new file mode 100644
index 0000000..deab355
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-LtIt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-Md.otf b/public/Publica Sans Round/PublicaSansRound-Md.otf
new file mode 100644
index 0000000..d9de45d
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-Md.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-MdIt.otf b/public/Publica Sans Round/PublicaSansRound-MdIt.otf
new file mode 100644
index 0000000..a81b340
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-MdIt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-Rg.otf b/public/Publica Sans Round/PublicaSansRound-Rg.otf
new file mode 100644
index 0000000..6488bef
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-Rg.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-RgIt.otf b/public/Publica Sans Round/PublicaSansRound-RgIt.otf
new file mode 100644
index 0000000..c2ec64c
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-RgIt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-ThIt.otf b/public/Publica Sans Round/PublicaSansRound-ThIt.otf
new file mode 100644
index 0000000..6eb6334
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-ThIt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-Thin.otf b/public/Publica Sans Round/PublicaSansRound-Thin.otf
new file mode 100644
index 0000000..3175231
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-Thin.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-UlLt.otf b/public/Publica Sans Round/PublicaSansRound-UlLt.otf
new file mode 100644
index 0000000..367a579
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-UlLt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-UlLtIt.otf b/public/Publica Sans Round/PublicaSansRound-UlLtIt.otf
new file mode 100644
index 0000000..653466a
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-UlLtIt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-XBd.otf b/public/Publica Sans Round/PublicaSansRound-XBd.otf
new file mode 100644
index 0000000..c35ff52
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-XBd.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-XBdIt.otf b/public/Publica Sans Round/PublicaSansRound-XBdIt.otf
new file mode 100644
index 0000000..9d00acf
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-XBdIt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-XLt.otf b/public/Publica Sans Round/PublicaSansRound-XLt.otf
new file mode 100644
index 0000000..09bf3e6
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-XLt.otf differ
diff --git a/public/Publica Sans Round/PublicaSansRound-XLtIt.otf b/public/Publica Sans Round/PublicaSansRound-XLtIt.otf
new file mode 100644
index 0000000..d9a0564
Binary files /dev/null and b/public/Publica Sans Round/PublicaSansRound-XLtIt.otf differ
diff --git a/public/fonts/PublicaSansRound-Md.otf b/public/fonts/PublicaSansRound-Md.otf
new file mode 100644
index 0000000..d9de45d
Binary files /dev/null and b/public/fonts/PublicaSansRound-Md.otf differ
diff --git a/src/App.css b/src/App.css
index a9f59a8..841a48f 100644
--- a/src/App.css
+++ b/src/App.css
@@ -22,6 +22,16 @@ html, body {
}
}
+
+@font-face {
+ font-family: 'Publica Sans Round Medium';
+
+ src: url('../public/fonts/PublicaSansRound-Md.otf') format('otf');
+
+ font-weight: 500;
+ font-display: swap;
+}
+
.App-header {
background-color: #282c34;
min-height: 100vh;
diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx
index 2fd372f..796e282 100644
--- a/src/components/Header/index.tsx
+++ b/src/components/Header/index.tsx
@@ -46,7 +46,7 @@ export default function Header() {
// height: "84px",
minHeight: "70px",
maxHeight: "84px",
- backgroundColor: "#1C1C1C",
+ // backgroundColor: "#1C1C1C",
padding: { xs: "20px 12px", sm: "20px 24px" },
display: {
xs: "none",
@@ -59,10 +59,10 @@ export default function Header() {
boxSizing: "border-box",
overflowX: "hidden",
flex: "0 0 84px",
- position: "fixed",
- top: "0",
- left: "0",
- zIndex: 1000,
+ // position: "fixed",
+ // top: "0",
+ // left: "0",
+ // zIndex: 1000,
}}
>
*/}
-
+
{/* Notification and Profile Section */}
{/* Username */}
-
+
{user?.name || "No Adminsss"}
diff --git a/src/components/LineChartCard/lineChartCard.tsx b/src/components/LineChartCard/lineChartCard.tsx
index 927c67a..7375d1c 100644
--- a/src/components/LineChartCard/lineChartCard.tsx
+++ b/src/components/LineChartCard/lineChartCard.tsx
@@ -12,6 +12,7 @@ import { AppDispatch, RootState } from "../../redux/store/store";
import { fetchDashboardData } from "../../redux/slices/dashboardSlice";
import { Box } from "@mui/material";
+
function AreaGradient({ color, id }: { color: string; id: string }) {
return (
@@ -22,7 +23,7 @@ function AreaGradient({ color, id }: { color: string; id: string }) {
);
}
-
+ const chartColor = " #111111";
export default function LineChartCard() {
const theme = useTheme();
const isXsScreen = useMediaQuery(theme.breakpoints.down("sm"));
@@ -32,7 +33,7 @@ export default function LineChartCard() {
const { totalBookings, loading } = useSelector(
(state: RootState) => state.dashboardReducer
);
-
+
// States for date range inputs
const [startDateBookings, setStartDateBookings] = React.useState("");
const [endDateBookings, setEndDateBookings] = React.useState("");
@@ -67,9 +68,7 @@ export default function LineChartCard() {
minHeight: { xs: "360px", sm: "400px", md: "444px" },
borderRadius: "16px",
border: "none",
- "*:where([data-mui-color-scheme='dark']) &": {
- backgroundColor: "#202020",
- },
+ background: "#D0E1E9",
}}
>
setStartDateBookings(e.target.value)}
sx={{
- backgroundColor: "#202020",
+ backgroundColor: "#DFECF1",
+ border: "1px solid rgba(87, 85, 85, 0.53)",
borderRadius: "8px",
- "& .MuiInputBase-input": {
- color: "#F2F2F2",
- },
}}
/>
setEndDateBookings(e.target.value)}
sx={{
- backgroundColor: "#202020",
+ backgroundColor: "#DFECF1",
+ border: "1px solid rgba(87, 85, 85, 0.53)",
borderRadius: "8px",
- "& .MuiInputBase-input": {
- color: "#F2F2F2",
- },
}}
/>
diff --git a/src/components/MainGrid/mainGrid.tsx b/src/components/MainGrid/mainGrid.tsx
index 1bcd4af..a1aefae 100644
--- a/src/components/MainGrid/mainGrid.tsx
+++ b/src/components/MainGrid/mainGrid.tsx
@@ -1,15 +1,16 @@
+import React, { useEffect } from "react";
import Grid from "@mui/material/Grid";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import SessionsChart from "../SessionsChart/sessionChart";
-import StatCard, { StatCardProps } from "../StatCard/statCard";
import ResourcesPieChart from "../ResourcePieChart/resourcePieChart";
import RoundedBarChart from "../barChartCard/barChartCard";
import LineChartCard from "../LineChartCard/lineChartCard";
import { AppDispatch, RootState } from "../../redux/store/store";
import { useDispatch, useSelector } from "react-redux";
import { fetchDashboardData } from "../../redux/slices/dashboardSlice";
-import { useEffect } from "react";
+import AppTheme from "../../shared-theme/AppTheme"; // Import the custom theme
+import StatCard from "../StatCard/statCard"; // Adjusted import for consistency
export default function MainGrid() {
const dispatch = useDispatch();
@@ -22,18 +23,17 @@ export default function MainGrid() {
error,
} = useSelector((state: RootState) => state.dashboardReducer);
- const staticData = {
- totalAdmins: 86,
- totalManagers: 12,
- totalUsers: 24,
- totalStations: 8,
- };
-
useEffect(() => {
dispatch(fetchDashboardData());
}, [dispatch]);
- const data = { totalAdmins, totalManagers, totalUsers, totalStations };
+ // Use fetched data if available, otherwise fall back to static data
+ const data = {
+ totalAdmins: totalAdmins || 86,
+ totalManagers: totalManagers || 12,
+ totalUsers: totalUsers || 24,
+ totalStations: totalStations || 8,
+ };
const statCards = [
{ title: "Total Admins", value: data.totalAdmins },
@@ -43,48 +43,53 @@ export default function MainGrid() {
];
return (
-
- {/* Dashboard Header */}
-
+ theme.palette.background.default, // #DFECF1 from theme
+ }}
>
- Dashboard
-
+ {/* Dashboard Header */}
+
+ Dashboard
+
- {/* Grid Layout */}
-
- {/* Statistic Cards */}
- {statCards.map((card, index) => (
-
-
+ {/* Grid Layout */}
+
+ {/* Statistic Cards */}
+ {statCards.map((card, index) => (
+
+
+
+ ))}
+
+ {/* Charts */}
+
+
+
+
+
+
+
+
+
+
+
- ))}
-
- {/* Charts */}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
);
}
diff --git a/src/components/MenuContent/index.tsx b/src/components/MenuContent/index.tsx
index d8e5fc4..6fc2f36 100644
--- a/src/components/MenuContent/index.tsx
+++ b/src/components/MenuContent/index.tsx
@@ -111,7 +111,7 @@ export default function MenuContent({ hidden }: PropType) {
flexGrow: 1,
// p: 1,
justifyContent: "space-between",
- backgroundColor: "#202020",
+ backgroundColor: "#000000",
}}
>
@@ -150,7 +150,7 @@ export default function MenuContent({ hidden }: PropType) {
letterSpacing: "0%",
lineHeight: "100%",
whiteSpace: "pre",
- color: "#FAFAFA",
+ color: "#FFFFFF",
// marginTop: "5px",
},
}}
diff --git a/src/components/OptionsMenu/index.tsx b/src/components/OptionsMenu/index.tsx
index 90cd9ec..29b6c01 100644
--- a/src/components/OptionsMenu/index.tsx
+++ b/src/components/OptionsMenu/index.tsx
@@ -53,7 +53,8 @@ export default function OptionsMenu({
mt: 1.5,
"& .MuiList-root": {
- background: "#272727",
+ background: "#D0E1E9",
+
},
"& .MuiMenuItem-root": {
borderBottom: "none", // Remove any divider under menu items
@@ -75,10 +76,7 @@ export default function OptionsMenu({
>
-