Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwicopple committed Jan 3, 2023
1 parent 0619db5 commit a31444e
Show file tree
Hide file tree
Showing 10 changed files with 2,311 additions and 510 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": false
}
58 changes: 58 additions & 0 deletions components/Layout.tsx
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>
);
}
Loading

1 comment on commit a31444e

@vercel
Copy link

@vercel vercel bot commented on a31444e Jan 6, 2023

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

Please sign in to comment.