forked from I-TECH-UW/OpenELIS-Global-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* src/components/Dashboard.css */ | ||
.dashboard-container { | ||
display: grid; | ||
grid-template-columns: repeat(4, 1fr); | ||
gap: 50px; | ||
padding: 50px; | ||
} | ||
|
||
.dashboard-tile { | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
background-color: #f4f4f4; | ||
} | ||
|
||
.tile-title { | ||
margin: 0; | ||
font-size: 1.2rem; | ||
} | ||
|
||
.tile-subtitle { | ||
margin-top: 5px; | ||
color: #666; | ||
} | ||
|
||
.tile-value { | ||
margin-top: 10px; | ||
font-size: 1.5rem; | ||
font-weight: bold; | ||
} | ||
|
||
.tile-icon { | ||
position: absolute; | ||
top: 10px; | ||
right: 10px; | ||
} | ||
|
||
.clickable-icon { | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React from "react"; | ||
import { Icon, Link, Grid, Tile, ClickableTile, Column, ExpandableTile, TileAboveTheFoldContent, TileBelowTheFoldContent } from '@carbon/react'; | ||
import './Dashboard.css'; | ||
import { ArrowUpRight } from '@carbon/react/icons'; | ||
interface DashBoardProps { | ||
} | ||
|
||
const HomeDashBoard: React.FC<DashBoardProps> = () => { | ||
|
||
const tilesData = [ | ||
{ title: 'In Progress', subtitle: 'Awaiting Result Entry', value: '0' }, | ||
{ title: 'Ready For Validation', subtitle: 'Awaiting Review', value: '0' }, | ||
{ title: 'Orders Completed Today', subtitle: 'Total Orders Completed Today', value: '0' }, | ||
{ title: 'Patiallly Completed Today', subtitle: 'Total Orders Completed Today', value: '0' }, | ||
{ title: 'Orders Entered By User', subtitle: 'Entered by user Today', value: '0' }, | ||
{ title: 'Orders Rejected', subtitle: 'Rejected By Lab Today', value: '0' }, | ||
{ title: 'Un Printed Results', subtitle: 'Un Prited Results Today', value: '0' }, | ||
{ title: 'Incoming Orders', subtitle: 'Electronic Orders', value: '0' }, | ||
{ title: 'Average Turn Around time', subtitle: 'Reception to Validation', value: '0' }, | ||
{ title: 'Delayed Turn Around', subtitle: 'More Than 96 hours', value: '0' }, | ||
// { title: 'Tile 11', subtitle: 'Subtitle 1', value: '0' }, | ||
// { title: 'Tile 12', subtitle: 'Subtitle 1', value: '100' }, | ||
// ... add data for other tiles | ||
]; | ||
|
||
return ( | ||
<> | ||
<div className="dashboard-container"> | ||
{tilesData.map((tile, index) => ( | ||
<Tile key={index} className="dashboard-tile"> | ||
<h3 className="tile-title">{tile.title}</h3> | ||
<p className="tile-subtitle">{tile.subtitle}</p> | ||
<p className="tile-value">{tile.value}</p> | ||
<div className="tile-icon"> | ||
<Link href="#"> | ||
<ArrowUpRight | ||
className="clickable-icon" | ||
/> | ||
</Link> | ||
</div> | ||
</Tile> | ||
))} | ||
</div> | ||
|
||
</> | ||
); | ||
|
||
} | ||
export default HomeDashBoard; |