From f62fb8929772c43a5ad30b655321de434e6c49c0 Mon Sep 17 00:00:00 2001 From: Suman Mondal Date: Sun, 19 Jun 2022 02:33:47 +0530 Subject: [PATCH] Create dummy dashboard in Home Page Fixes #79 --- src/App.tsx | 2 +- src/pages/dashboard/HomePage.tsx | 74 +++++++++++++++++++++++++++++--- 2 files changed, 68 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 624348f..805d470 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,7 +5,7 @@ import { PostsPage } from './pages/dashboard/collage/PostsPage'; import { ReportsPage } from './pages/dashboard/collage/ReportsPage'; import { StudentsPage } from './pages/dashboard/collage/StudentsPage'; import { DashboardPage } from './pages/dashboard/DashboardPage'; -import { HomePage } from './pages/dashboard/HomePage'; +import HomePage from './pages/dashboard/HomePage'; import { JobFeedPage } from './pages/dashboard/JobFeedPage'; import { MessagesPage } from './pages/dashboard/MessagesPage'; import { NotificationPage } from './pages/dashboard/NotificationPage'; diff --git a/src/pages/dashboard/HomePage.tsx b/src/pages/dashboard/HomePage.tsx index b65dbb1..75e6cb8 100644 --- a/src/pages/dashboard/HomePage.tsx +++ b/src/pages/dashboard/HomePage.tsx @@ -1,12 +1,72 @@ -import { Box, Heading, Text } from '@chakra-ui/react'; +import { + Box, + chakra, + Flex, + SimpleGrid, + Stat, + StatLabel, + StatNumber, + useColorModeValue, +} from '@chakra-ui/react'; +import { Icon } from '@/components/Icon'; -export function HomePage() { +interface StatsCardProps { + title: string; + stat: string; + icon: React.ReactNode; +} +function StatsCard(props: StatsCardProps) { + const { title, stat, icon } = props; + return ( + + + + {title} + + {stat} + + + + {icon} + + + + ); +} + +export default function HomePage() { return ( - - Home Page - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Expedita, ab. - + + + Home Page + + + } + /> + } + /> + ); }