diff --git a/app/manage/page.tsx b/app/manage/page.tsx index abe1b55..db98097 100644 --- a/app/manage/page.tsx +++ b/app/manage/page.tsx @@ -231,10 +231,10 @@ const AdminPage = () => { // Loading state if (authState.isLoading) { return ( -
+
- -

Loading...

+ +

Loading...

); @@ -243,17 +243,19 @@ const AdminPage = () => { // Lockout state if (authState.isLocked) { return ( -
+
- -

Account Locked

-

Too many failed attempts. Please try again in 15 minutes.

+
+ +
+

Account Locked

+

Too many failed attempts. Please try again in 15 minutes.

@@ -265,22 +267,25 @@ const AdminPage = () => { // Login form if (authState.showLogin || !authState.isAuthenticated) { return ( -
+
+ {/* Animated Background */} +
+ -
+
-
- +
+
-

Admin Access

-

Enter your password to continue

+

Admin Access

+

Enter your password to continue

-
+
{ value={authState.password} onChange={(e) => setAuthState(prev => ({ ...prev, password: e.target.value }))} placeholder="Enter password" - className="w-full px-4 py-3 bg-white/10 border border-white/20 rounded-xl text-white placeholder-white/50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" + className="w-full px-4 py-3.5 bg-white border border-stone-200 rounded-xl text-stone-900 placeholder:text-stone-400 focus:outline-none focus:ring-2 focus:ring-stone-200 focus:border-stone-400 transition-all shadow-sm" disabled={authState.isLoading} />
{authState.error && ( -

{authState.error}

+ + + {authState.error} + )}
diff --git a/components/ModernAdminDashboard.tsx b/components/ModernAdminDashboard.tsx index cc86c77..dc30849 100644 --- a/components/ModernAdminDashboard.tsx +++ b/components/ModernAdminDashboard.tsx @@ -194,15 +194,15 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic
- - Portfolio + + Portfolio -
+
- - Admin Panel + + Admin Panel
@@ -214,20 +214,20 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic onClick={() => setActiveTab(item.id as 'overview' | 'projects' | 'emails' | 'analytics' | 'settings')} className={`flex items-center space-x-2 px-4 py-2 rounded-lg transition-all duration-200 ${ activeTab === item.id - ? 'admin-glass-light border border-blue-500/40 text-blue-300 shadow-lg' - : 'text-white/80 hover:text-white hover:admin-glass-light' + ? 'bg-stone-100 text-stone-900 font-medium shadow-sm border border-stone-200' + : 'text-stone-500 hover:text-stone-800 hover:bg-stone-50' }`} > - - {item.label} + + {item.label} ))}
{/* Right side - User info and Logout */}
-
- Welcome, Dennis +
+ Welcome, Dennis
@@ -268,7 +268,7 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic initial={{ opacity: 0, height: 0 }} animate={{ opacity: 1, height: 'auto' }} exit={{ opacity: 0, height: 0 }} - className="md:hidden border-t border-white/20 admin-glass-light" + className="md:hidden border-t border-stone-200 bg-white" >
{navigation.map((item) => ( @@ -280,11 +280,11 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic }} className={`w-full flex items-center space-x-3 px-4 py-3 rounded-lg transition-all duration-200 ${ activeTab === item.id - ? 'admin-glass-light border border-blue-500/40 text-blue-300 shadow-lg' - : 'text-white/80 hover:text-white hover:admin-glass-light' + ? 'bg-stone-100 text-stone-900 shadow-sm border border-stone-200' + : 'text-stone-500 hover:text-stone-800 hover:bg-stone-50' }`} > - +
{item.label}
{item.description}
@@ -312,96 +312,96 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic
-

Admin Dashboard

-

Manage your portfolio and monitor performance

+

Admin Dashboard

+

Manage your portfolio and monitor performance

{/* Stats Grid - Mobile: 2x3, Desktop: 6x1 horizontal */}
setActiveTab('projects')} >
-

Projects

- +

Projects

+
-

{stats.totalProjects}

-

{stats.publishedProjects} published

+

{stats.totalProjects}

+

{stats.publishedProjects} published

setActiveTab('analytics')} >
-

Page Views

- +

Page Views

+
-

{stats.totalViews.toLocaleString()}

-

{stats.totalUsers} users

+

{stats.totalViews.toLocaleString()}

+

{stats.totalUsers} users

setActiveTab('emails')} >
-

Messages

- +

Messages

+
-

{emails.length}

-

{stats.unreadEmails} unread

+

{emails.length}

+

{stats.unreadEmails} unread

setActiveTab('analytics')} >
-

Performance

- +

Performance

+
-

{stats.avgPerformance}

-

Lighthouse Score

+

{stats.avgPerformance}

+

Lighthouse Score

setActiveTab('analytics')} >
-

Bounce Rate

- +

Bounce Rate

+
-

{stats.bounceRate}%

-

Exit rate

+

{stats.bounceRate}%

+

Exit rate

setActiveTab('settings')} >
-

System

- +

System

+
-

Online

+

Online

-
-

All systems operational

+
+

Operational

@@ -412,10 +412,10 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic {/* Recent Activity */}
-

Recent Activity

+

Recent Activity

@@ -424,19 +424,19 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic {/* Mobile: vertical stack, Desktop: horizontal columns */}
-

Projects

+

Projects

{projects.slice(0, 3).map((project) => ( -
setActiveTab('projects')}> +
setActiveTab('projects')}>
-

{project.title}

-

{project.published ? 'Published' : 'Draft'} • {project.analytics?.views || 0} views

+

{project.title}

+

{project.published ? 'Published' : 'Draft'} • {project.analytics?.views || 0} views

- + {project.published ? 'Live' : 'Draft'} {project.featured && ( - Featured + Featured )}
@@ -446,19 +446,19 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic
-

Messages

+

Messages

{emails.slice(0, 3).map((email, index) => ( -
setActiveTab('emails')}> -
- +
setActiveTab('emails')}> +
+
-

From {email.name as string}

-

{(email.subject as string) || 'No subject'}

+

From {email.name as string}

+

{(email.subject as string) || 'No subject'}

{!(email.read as boolean) && ( -
+
)}
))} @@ -469,70 +469,70 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic {/* Quick Actions */}
-

Quick Actions

+

Quick Actions

@@ -545,8 +545,8 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic
-

Project Management

-

Manage your portfolio projects

+

Project Management

+

Manage your portfolio projects

@@ -565,39 +565,39 @@ const ModernAdminDashboard: React.FC = ({ isAuthentic {activeTab === 'settings' && (
-

System Settings

-

Manage system configuration and preferences

+

System Settings

+

Manage system configuration and preferences

-

Import / Export

-

Backup and restore your portfolio data

+

Import / Export

+

Backup and restore your portfolio data

-

System Status

+

System Status

-
- Database +
+ Database
-
- Online +
+ Online
-
- Redis Cache +
+ Redis Cache
-
- Online +
+ Online
-
- API Services +
+ API Services
-
- Online +
+ Online