diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx deleted file mode 100644 index c8952dd..0000000 --- a/src/app/dashboard/page.tsx +++ /dev/null @@ -1,288 +0,0 @@ -'use client'; - -import { useState } from 'react'; -import { ThemeProvider } from '@/components/theme/ThemeProvider'; -import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple'; -import { LogOut, Package, Clock, User, Mail, Phone } from 'lucide-react'; - -const navItems = [ - { name: 'Home', id: '/' }, - { name: 'Register', id: '/register' }, - { name: 'Login', id: '/login' }, - { name: 'Dashboard', id: '/dashboard' }, - { name: 'Orders', id: '/orders' }, -]; - -export default function DashboardPage() { - const [activeTab, setActiveTab] = useState('overview'); - const [isEditing, setIsEditing] = useState(false); - - const customerData = { - name: 'John Doe', - email: 'john@example.com', - phone: '+1 (555) 123-4567', - address: '123 Main St, New York, NY 10001', - joinDate: 'January 15, 2024', - }; - - const recentOrders = [ - { - id: 'ORD-001', - date: '2024-01-20', - status: 'Delivered', - total: '$89.99', - items: 2, - }, - { - id: 'ORD-002', - date: '2024-01-15', - status: 'In Transit', - total: '$145.50', - items: 3, - }, - { - id: 'ORD-003', - date: '2024-01-10', - status: 'Processing', - total: '$62.25', - items: 1, - }, - ]; - - const getStatusColor = (status: string) => { - switch (status) { - case 'Delivered': - return 'text-green-600 bg-green-50'; - case 'In Transit': - return 'text-blue-600 bg-blue-50'; - case 'Processing': - return 'text-yellow-600 bg-yellow-50'; - default: - return 'text-gray-600 bg-gray-50'; - } - }; - - const handleLogout = () => { - window.location.href = '/'; - }; - - return ( - - -
-
- {/* Header */} -
-
-

Welcome back, {customerData.name}!

-

Manage your account and view your orders

-
- -
- - {/* Tabs */} -
- - -
- - {/* Overview Tab */} - {activeTab === 'overview' && ( -
- {/* Stats */} -
-
-
-
-

Total Orders

-

12

-
- -
-
-
-
-
-

In Transit

-

2

-
- -
-
-
-
-
-

Total Spent

-

$1,284

-
-
- 💳 -
-
-
-
- - {/* Recent Orders */} -
-

- Recent Orders -

-
- {recentOrders.map((order) => ( -
-
-

{order.id}

-

{order.date} • {order.items} item(s)

-
-
-

{order.total}

- - {order.status} - -
-
- ))} -
- - View All Orders - -
-
- )} - - {/* Account Settings Tab */} - {activeTab === 'profile' && ( -
-
-

Account Information

- - {!isEditing ? ( -
-
-
- -
-

Name

-

{customerData.name}

-
-
-
- -
-

Email

-

{customerData.email}

-
-
-
-
- -
-

Phone

-

{customerData.phone}

-
-
-
-

Address

-

{customerData.address}

-
-
-

Member Since

-

{customerData.joinDate}

-
- -
- ) : ( -
-
- - -
- - -
- - -
-
- )} -
-
- )} -
-
-
- ); -}