22import Navbar from "@/components/dashboard/navbar"
33import Sidebar from "@/components/dashboard/sidebar"
44import { useSidebar } from "@/context/userSidebar" ;
5- import { motion , AnimatePresence } from "framer-motion" ;
65import { LogOut , LayoutDashboard } from "lucide-react"
76import Page from "@/components/dashboard/page" ;
87import ChartAreaDefault from "@/components/dashboard/chart-area" ;
@@ -43,45 +42,19 @@ export default function Dashboard() {
4342 < Page >
4443
4544 < div className = "flex flex-col md:flex-row md:items-center gap-1 md:gap-4 mb-4" >
46- < motion . div
47- initial = { { opacity : 0 , scale : 0.95 } }
48- animate = { { opacity : 1 , scale : 1 } }
49- transition = { { duration : 0.6 , delay : 1 * 0.1 } } >
5045 < h2 className = "text-white flex space-x-2 font-medium text-lg md:text-xl" >
5146 < LayoutDashboard className = "h-6 w-6" />
5247 < span > Overview</ span >
5348 </ h2 >
54- </ motion . div >
55- < motion . div
56- initial = { { opacity : 0 , scale : 0.95 } }
57- animate = { { opacity : 1 , scale : 1 } }
58- transition = { { duration : 0.6 , delay : 2 * 0.1 } } >
5949 < span className = "hidden md:block w-px h-4 bg-[#5b5683]" > </ span >
60- </ motion . div >
61- < motion . div
62- initial = { { opacity : 0 , scale : 0.95 } }
63- animate = { { opacity : 1 , scale : 1 } }
64- transition = { { duration : 0.6 , delay : 3 * 0.1 } } >
6550 < span className = "text-md text-zinc-400" >
66- The Overview page gives you a quick glance at your most important information and activities, all in one place. It’ s designed to help you stay on top of your account without needing to jump between different sections.
51+ The Overview page gives you a quick glance at your most important information and activities, all in one place. It' s designed to help you stay on top of your account without needing to jump between different sections.
6752 </ span >
68- </ motion . div >
6953 </ div >
70- < motion . div
71- initial = { { opacity : 0 , scale : 0.95 } }
72- animate = { { opacity : 1 , scale : 1 } }
73- transition = { { duration : 0.6 , delay : 4 * 0.1 } }
74- >
7554 < hr className = "border-[#302e46] mb-4" />
76- </ motion . div >
7755
7856 < div className = "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4" >
79- < motion . div
80- initial = { { opacity : 0 , scale : 0.95 } }
81- animate = { { opacity : 1 , scale : 1 } }
82- transition = { { duration : 0.6 , delay : 5 * 0.1 } }
83- className = "bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]"
84- >
57+ < div className = "bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]" >
8558 < div className = "flex items-center gap-2 justify-between sm:gap-3" >
8659
8760 < div className = "flex flex-col mt-0.5" >
@@ -97,15 +70,10 @@ export default function Dashboard() {
9770 < p className = " text-xl sm:text-2xl font-semibold break-words" >
9871 { formatted }
9972 </ p >
100- </ motion . div >
73+ </ div >
10174
10275
103- < motion . div
104- initial = { { opacity : 0 , scale : 0.95 } }
105- animate = { { opacity : 1 , scale : 1 } }
106- transition = { { duration : 0.6 , delay : 6 * 0.1 } }
107- className = "bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]"
108- >
76+ < div className = "bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]" >
10977 < div className = "flex items-center gap-2 justify-between sm:gap-3" >
11078
11179 < div className = "flex flex-col mt-0.5" >
@@ -121,14 +89,9 @@ export default function Dashboard() {
12189 < p className = " text-xl sm:text-2xl font-semibold break-words" >
12290 45
12391 </ p >
124- </ motion . div >
125-
126- < motion . div
127- initial = { { opacity : 0 , scale : 0.95 } }
128- animate = { { opacity : 1 , scale : 1 } }
129- transition = { { duration : 0.6 , delay : 7 * 0.1 } }
130- className = "bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]"
131- >
92+ </ div >
93+
94+ < div className = "bg-[#191822]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]" >
13295 < div className = "flex items-center gap-2 justify-between sm:gap-3" >
13396
13497 < div className = "flex flex-col mt-0.5" >
@@ -144,14 +107,9 @@ export default function Dashboard() {
144107 < p className = " text-xl sm:text-2xl font-semibold break-words" >
145108 99
146109 </ p >
147- </ motion . div >
148-
149- < motion . div
150- initial = { { opacity : 0 , scale : 0.95 } }
151- animate = { { opacity : 1 , scale : 1 } }
152- transition = { { duration : 0.6 , delay : 8 * 0.1 } }
153- className = "bg-[#1b1922]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]"
154- >
110+ </ div >
111+
112+ < div className = "bg-[#1b1922]/50 backdrop-blur p-3 sm:p-4 sm:py-2 rounded-md border border-[#2e2b41]" >
155113 < div className = "flex items-center gap-2 justify-between sm:gap-3" >
156114
157115 < div className = "flex flex-col mt-0.5" >
@@ -167,25 +125,15 @@ export default function Dashboard() {
167125 < p className = " text-xl sm:text-2xl font-semibold break-words" >
168126 #1
169127 </ p >
170- </ motion . div >
128+ </ div >
171129 </ div >
172130
173131 < div className = "mt-[2rem] flex flex-col lg:flex-row items-stretch w-full gap-6" >
174- < motion . div
175- initial = { { opacity : 0 , scale : 0.95 } }
176- animate = { { opacity : 1 , scale : 1 } }
177- transition = { { duration : 0.6 , delay : 9 * 0.1 } }
178- className = "flex-1 min-w-0"
179- >
132+ < div className = "flex-1 min-w-0" >
180133 < ChartAreaDefault />
181- </ motion . div >
182-
183- < motion . div
184- initial = { { opacity : 0 , scale : 0.95 } }
185- animate = { { opacity : 1 , scale : 1 } }
186- transition = { { duration : 0.6 , delay : 10 * 0.1 } }
187- className = "flex-shrink-0 w-full lg:w-[420px] xl:w-[500px] h-full"
188- >
134+ </ div >
135+
136+ < div className = "flex-shrink-0 w-full lg:w-[420px] xl:w-[500px] h-full" >
189137 < div className = "bg-[#191822]/50 border border-[#2e2b41] p-6 rounded-lg flex flex-col md:h-[34.5rem]" >
190138 < div className = "flex justify-between" >
191139 < h3 className = "text-xl text-gray-200 font-semibold mb-6" > Profile</ h3 >
@@ -210,7 +158,7 @@ export default function Dashboard() {
210158 ) }
211159
212160 </ div >
213- </ motion . div >
161+ </ div >
214162 </ div >
215163
216164
0 commit comments