diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx new file mode 100644 index 0000000..9bcdd8d --- /dev/null +++ b/src/app/dashboard/page.tsx @@ -0,0 +1,209 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import { useState } from "react"; +import { + BarChart3, + Wallet, + Home, + TrendingUp, + PieChart, + Settings, + ShoppingCart, + Zap, + Send, + LogOut, + Menu, + X, +} from "lucide-react"; + +export default function DashboardPage() { + const [sidebarOpen, setSidebarOpen] = useState(true); + const [activeTab, setActiveTab] = useState("overview"); + + const dashboardStats = [ + { + title: "Total Spent", values: [2450, 3120, 2890], + valuePrefix: "$", description: "This month"}, + { + title: "Saved", values: [890, 1250, 1580], + valuePrefix: "$", description: "This month"}, + { + title: "Categories", values: [12, 14, 16], + description: "Tracked"}, + ]; + + const recentTransactions = [ + { icon: ShoppingCart, title: "Grocery Store", status: "Categorized", amount: "-$45.99" }, + { icon: Zap, title: "Electricity Bill", status: "Confirmed", amount: "-$120.00" }, + { icon: Send, title: "Restaurant Charge", status: "Categorized", amount: "-$62.50" }, + ]; + + return ( + +
+ {/* Sidebar */} + + + {/* Main Content */} +
+ {/* Top Navigation */} +
+
+

+ Financial Dashboard +

+

Welcome back! Here's your financial overview.

+
+
+ +
+
+ + {/* Content Area */} +
+ {/* Stats Grid */} +
+ {dashboardStats.map((stat, index) => ( +
+

+ {stat.title} +

+
+ + {stat.valuePrefix}{stat.values[stat.values.length - 1]} + + {stat.description} +
+
+ {stat.values.map((v, i) => ( +
+
+
+ ))} +
+
+ ))} +
+ + {/* Charts and Transactions */} +
+ {/* Chart */} +
+

Spending Trend

+
+ {[65, 45, 78, 52, 88, 72, 55].map((value, i) => ( +
+ ))} +
+
+ + {/* Recent Transactions */} +
+

Recent Transactions

+
+ {recentTransactions.map((tx, i) => { + const Icon = tx.icon; + return ( +
+
+ +
+
+

+ {tx.title} +

+

{tx.status}

+
+

{tx.amount}

+
+ ); + })} +
+
+
+
+
+
+
+ ); +} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index de97e23..211c5fa 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,17 +1,14 @@ import type { Metadata } from "next"; -import { Geist, Geist_Mono } from "next/font/google"; +import { Inter } from "next/font/google"; import "./globals.css"; -const geist = Geist({ - variable: "--font-geist-sans", subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", subsets: ["latin"], +const inter = Inter({ + variable: "--font-inter", subsets: ["latin"], }); export const metadata: Metadata = { - title: "FinTracker", description: "Track your spending instantly with AI-powered categorization"}; + title: "FinTracker", description: "Track your spending instantly with AI-powered categorization" +}; export default function RootLayout({ children, @@ -20,7 +17,7 @@ export default function RootLayout({ }) { return ( - + {children}