-
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
1 parent
0619db5
commit a31444e
Showing
10 changed files
with
2,311 additions
and
510 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": false | ||
} |
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,58 @@ | ||
import { useState } from "react"; | ||
import { Block, Card, ColGrid, Tab, TabList, Text, Title } from "@tremor/react"; | ||
|
||
export default function KpiCardGrid() { | ||
const [selectedView, setSelectedView] = useState(1); | ||
return ( | ||
<main className="bg-slate-50 p-6 sm:p-10"> | ||
<Title>Dashboard</Title> | ||
<Text>Lorem ipsum dolor sit amet, consetetur sadipscing elitr.</Text> | ||
|
||
<TabList | ||
defaultValue={1} | ||
handleSelect={(value) => setSelectedView(value)} | ||
marginTop="mt-6" | ||
> | ||
<Tab value={1} text="Overview" /> | ||
<Tab value={2} text="Detail" /> | ||
</TabList> | ||
|
||
{selectedView === 1 ? ( | ||
<> | ||
<ColGrid | ||
numColsMd={2} | ||
numColsLg={3} | ||
gapX="gap-x-6" | ||
gapY="gap-y-6" | ||
marginTop="mt-6" | ||
> | ||
<Card> | ||
{/* Placeholder to set height */} | ||
<div className="h-28" /> | ||
</Card> | ||
<Card> | ||
{/* Placeholder to set height */} | ||
<div className="h-28" /> | ||
</Card> | ||
<Card> | ||
{/* Placeholder to set height */} | ||
<div className="h-28" /> | ||
</Card> | ||
</ColGrid> | ||
|
||
<Block marginTop="mt-6"> | ||
<Card> | ||
<div className="h-80" /> | ||
</Card> | ||
</Block> | ||
</> | ||
) : ( | ||
<Block marginTop="mt-6"> | ||
<Card> | ||
<div className="h-96" /> | ||
</Card> | ||
</Block> | ||
)} | ||
</main> | ||
); | ||
} |
Oops, something went wrong.
a31444e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
githubanalytics – ./
githubanalytics-ashen.vercel.app
githubanalytics-copple.vercel.app
githubanalytics-git-main-copple.vercel.app