-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
a49ebb5
commit 4534add
Showing
10 changed files
with
281 additions
and
23 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 |
---|---|---|
@@ -1,3 +1,125 @@ | ||
"use client"; | ||
import { IconCoins, IconInfoSquareRounded } from "@tabler/icons-react"; | ||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; | ||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; | ||
|
||
export default function Home() { | ||
return <div>Hii</div>; | ||
return ( | ||
<div className="flex flex-col h-full w-full items-start overflow-hidden px-5 md:px-2"> | ||
<Tabs defaultValue="overview" className="space-y-5"> | ||
<TabsList> | ||
<TabsTrigger value="overview">Overview</TabsTrigger> | ||
<TabsTrigger value="analytics">Analytics</TabsTrigger> | ||
<TabsTrigger value="reports">Reports</TabsTrigger> | ||
<TabsTrigger value="notifications">Notifications</TabsTrigger> | ||
</TabsList> | ||
<TabsContent value="overview" className="space-y-4"> | ||
<div className="grid gap-4 md:grid-cols-3 lg:grid-cols-5"> | ||
<Card> | ||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2"> | ||
<CardTitle className="text-sm font-medium"> | ||
Queries Resolved | ||
</CardTitle> | ||
<IconInfoSquareRounded className="size-5 text-muted-foreground" /> | ||
</CardHeader> | ||
<CardContent> | ||
<div className="text-2xl font-bold">45,321</div> | ||
<p className="text-xs text-muted-foreground"> | ||
+20.1% from last month | ||
</p> | ||
</CardContent> | ||
</Card> | ||
<Card> | ||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2"> | ||
<CardTitle className="text-sm font-medium">Mails</CardTitle> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
className="h-4 w-4 text-muted-foreground" | ||
> | ||
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" /> | ||
<circle cx="9" cy="7" r="4" /> | ||
<path d="M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75" /> | ||
</svg> | ||
</CardHeader> | ||
<CardContent> | ||
<div className="text-2xl font-bold">+2350</div> | ||
<p className="text-xs text-muted-foreground"> | ||
+180.1% from last month | ||
</p> | ||
</CardContent> | ||
</Card> | ||
<Card> | ||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2"> | ||
<CardTitle className="text-sm font-medium">Sales</CardTitle> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
className="h-4 w-4 text-muted-foreground" | ||
> | ||
<rect width="20" height="14" x="2" y="5" rx="2" /> | ||
<path d="M2 10h20" /> | ||
</svg> | ||
</CardHeader> | ||
<CardContent> | ||
<div className="text-2xl font-bold">+12,234</div> | ||
<p className="text-xs text-muted-foreground"> | ||
+19% from last month | ||
</p> | ||
</CardContent> | ||
</Card> | ||
<Card> | ||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2"> | ||
<CardTitle className="text-sm font-medium"> | ||
Events Logged | ||
</CardTitle> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
className="h-4 w-4 text-muted-foreground" | ||
> | ||
<path d="M22 12h-4l-3 9L9 3l-3 9H2" /> | ||
</svg> | ||
</CardHeader> | ||
<CardContent> | ||
<div className="text-2xl font-bold">+573</div> | ||
<p className="text-xs text-muted-foreground"> | ||
+201 since last hour | ||
</p> | ||
</CardContent> | ||
</Card> | ||
<Card> | ||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2"> | ||
<CardTitle className="text-sm font-medium"> | ||
Credits Left | ||
</CardTitle> | ||
<IconCoins className="size-5 text-muted-foreground" /> | ||
</CardHeader> | ||
<CardContent> | ||
<div className="text-2xl font-bold">2346</div> | ||
<p className="text-xs text-muted-foreground"> | ||
+201 since last hour | ||
</p> | ||
</CardContent> | ||
</Card> | ||
</div> | ||
</TabsContent> | ||
</Tabs> | ||
</div> | ||
); | ||
} |
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
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 @@ | ||
import React from "react"; | ||
|
||
export default function DashboardStats() { | ||
return <div className="grid grid-cols-1 lg:grid-cols-5 gap-10"></div>; | ||
} |
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,46 @@ | ||
import React from "react"; | ||
import { motion, Variants } from "framer-motion"; | ||
|
||
const containerVariants: Variants = { | ||
animate: { | ||
transition: { | ||
staggerChildren: 0.25, | ||
}, | ||
}, | ||
}; | ||
|
||
const itemVariants: Variants = { | ||
initial: { | ||
scaleY: 0.5, | ||
opacity: 0, | ||
}, | ||
animate: { | ||
scaleY: 1, | ||
opacity: 1, | ||
transition: { | ||
repeat: Infinity, | ||
repeatType: "mirror", | ||
duration: 1, | ||
ease: "circIn", | ||
}, | ||
}, | ||
}; | ||
|
||
export default function LoaderAnim() { | ||
return ( | ||
<motion.div | ||
variants={containerVariants} | ||
initial="initial" | ||
animate="animate" | ||
className="flex gap-1" | ||
> | ||
{[...Array(5)].map((_, index) => ( | ||
<motion.div | ||
key={index} | ||
variants={itemVariants} | ||
className="h-12 w-2 bg-primary rounded-md" | ||
/> | ||
))} | ||
</motion.div> | ||
); | ||
} |
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
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
Oops, something went wrong.