feat:Added piechart in Dashboard

This commit is contained in:
2025-02-22 15:35:48 +05:30
parent 357071b967
commit f7cb1af2c4
384 changed files with 112765 additions and 8 deletions
+8 -2
View File
@@ -1,11 +1,11 @@
import React from "react";
import Piechart from "../../components/Piechart";
const Dashboard = () => {
return (
<>
<div className="w-full bg-white rounded-lg shadow p-4">
<div className="flex flex-col justify-center items-center mb-4">
{/* <div className="flex flex-col justify-center items-center mb-4">
<h2 className="text-2xl font-bold font-sans border-b-2 py-2">
Upcoming Sessions{" "}
</h2>
@@ -45,6 +45,7 @@ const Dashboard = () => {
</div>
</div>
</div>
<div className="mb-4">
<h3 className="text-lg font-medium">Weekly Summary</h3>
<div className="grid grid-cols-8 gap-2 mt-4">
@@ -140,6 +141,7 @@ const Dashboard = () => {
</div>
</div>
</div>
<div className="mb-4">
<h3 className="text-lg font-medium">Notifications</h3>
<div className="grid grid-cols-1 gap-4 mt-4">
@@ -193,6 +195,10 @@ const Dashboard = () => {
</div>
</div>
</div>
</div> */}
<div className="mb-4">
<Piechart />
</div>
</div>
</>
@@ -36,7 +36,7 @@ const MainUserPanel = () => {
return (
<>
<div className="container mx-auto p-4 ">
<div className="flex items-center mb-4 md:hidden">
<div className="flex items-center mb-4 md:hidden ">
<img
src={`${user.avatar}`}
alt="Profile Picture"
@@ -45,7 +45,7 @@ const MainUserPanel = () => {
<span className="text-lg font-medium">Hello, {user.name}</span>
</div>
<div className="flex flex-row gap-4">
<div className="w-1.5/12 md:w-3/12 bg-white rounded-lg shadow p-4">
<div className="w-1.5/12 bg-white md:w-3/12 rounded-lg shadow p-4">
<div className="hidden md:flex items-center mb-4">
<img
src={`${user.avatar}`}