| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>Dashboard | AdvisorMatch Connect Pro</title> |
| <link rel="stylesheet" href="style.css"> |
| <script src="https://cdn.tailwindcss.com"></script> |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
| <script src="https://unpkg.com/feather-icons"></script> |
| </head> |
| <body class="bg-gray-50"> |
| <custom-navbar></custom-navbar> |
| |
| <main class="py-12"> |
| <div class="container mx-auto px-4"> |
| <div class="flex flex-col md:flex-row gap-8"> |
| |
| <aside class="w-full md:w-64 flex-shrink-0"> |
| <div class="bg-white rounded-xl shadow-sm p-6 sticky top-6"> |
| <div class="flex items-center space-x-4 mb-6"> |
| <img src="http://static.photos/people/200x200/3" alt="User" class="w-12 h-12 rounded-full"> |
| <div> |
| <h2 class="font-bold" id="dashboardUsername">User</h2> |
| <p class="text-sm text-gray-500" id="dashboardRole">Role</p> |
| </div> |
| </div> |
| <nav class="space-y-2"> |
| <a href="/dashboard.html" class="flex items-center space-x-2 text-blue-600 font-medium"> |
| <i data-feather="home"></i> |
| <span>Dashboard</span> |
| </a> |
| <a href="/matches.html" class="flex items-center space-x-2 text-gray-600 hover:text-blue-600"> |
| <i data-feather="users"></i> |
| <span>Matches</span> |
| </a> |
| <a href="/messages.html" class="flex items-center space-x-2 text-gray-600 hover:text-blue-600"> |
| <i data-feather="message-square"></i> |
| <span>Messages</span> |
| </a> |
| <a href="/profile.html" class="flex items-center space-x-2 text-gray-600 hover:text-blue-600"> |
| <i data-feather="user"></i> |
| <span>Profile</span> |
| </a> |
| <a href="/settings.html" class="flex items-center space-x-2 text-gray-600 hover:text-blue-600"> |
| <i data-feather="settings"></i> |
| <span>Settings</span> |
| </a> |
| </nav> |
| </div> |
| </aside> |
|
|
| |
| <div class="flex-1"> |
| <div class="bg-white rounded-xl shadow-sm p-6 mb-6"> |
| <h1 class="text-2xl font-bold mb-6">Welcome to Your Dashboard</h1> |
| |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"> |
| <div class="bg-blue-50 p-6 rounded-lg"> |
| <div class="flex items-center justify-between"> |
| <div> |
| <h3 class="text-sm font-medium text-blue-800">Pending Matches</h3> |
| <p class="text-2xl font-bold mt-1">3</p> |
| </div> |
| <i data-feather="clock" class="text-blue-600"></i> |
| </div> |
| </div> |
| <div class="bg-purple-50 p-6 rounded-lg"> |
| <div class="flex items-center justify-between"> |
| <div> |
| <h3 class="text-sm font-medium text-purple-800">Active Connections</h3> |
| <p class="text-2xl font-bold mt-1">5</p> |
| </div> |
| <i data-feather="users" class="text-purple-600"></i> |
| </div> |
| </div> |
| <div class="bg-green-50 p-6 rounded-lg"> |
| <div class="flex items-center justify-between"> |
| <div> |
| <h3 class="text-sm font-medium text-green-800">Messages</h3> |
| <p class="text-2xl font-bold mt-1">2</p> |
| </div> |
| <i data-feather="message-square" class="text-green-600"></i> |
| </div> |
| </div> |
| </div> |
|
|
| <div class="mb-8"> |
| <h2 class="text-xl font-semibold mb-4">Recent Activity</h2> |
| <div class="space-y-4"> |
| <div class="flex items-start space-x-4 p-4 border border-gray-100 rounded-lg"> |
| <div class="bg-blue-100 p-2 rounded-full"> |
| <i data-feather="user-plus" class="text-blue-600"></i> |
| </div> |
| <div> |
| <p class="font-medium">New match request</p> |
| <p class="text-sm text-gray-600">From Sarah K. - AgriTech Startup</p> |
| <p class="text-xs text-gray-500 mt-1">2 hours ago</p> |
| </div> |
| </div> |
| <div class="flex items-start space-x-4 p-4 border border-gray-100 rounded-lg"> |
| <div class="bg-green-100 p-2 rounded-full"> |
| <i data-feather="message-square" class="text-green-600"></i> |
| </div> |
| <div> |
| <p class="font-medium">New message</p> |
| <p class="text-sm text-gray-600">From Dr. James M.</p> |
| <p class="text-xs text-gray-500 mt-1">1 day ago</p> |
| </div> |
| </div> |
| </div> |
| </div> |
|
|
| <div> |
| <h2 class="text-xl font-semibold mb-4">Suggested Matches</h2> |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> |
| <div class="border border-gray-100 rounded-lg p-4"> |
| <div class="flex items-center space-x-4 mb-3"> |
| <img src="http://static.photos/people/200x200/4" alt="Match" class="w-12 h-12 rounded-full"> |
| <div> |
| <h3 class="font-semibold">John D.</h3> |
| <p class="text-sm text-gray-600">Finance Advisor</p> |
| </div> |
| </div> |
| <p class="text-sm text-gray-700 mb-3">Specializes in startup funding with 10+ years experience in Zambian market.</p> |
| <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded transition">Connect</button> |
| </div> |
| <div class="border border-gray-100 rounded-lg p-4"> |
| <div class="flex items-center space-x-4 mb-3"> |
| <img src="http://static.photos/people/200x200/5" alt="Match" class="w-12 h-12 rounded-full"> |
| <div> |
| <h3 class="font-semibold">Mary W.</h3> |
| <p class="text-sm text-gray-600">Marketing Expert</p> |
| </div> |
| </div> |
| <p class="text-sm text-gray-700 mb-3">Helps startups build brand awareness and customer acquisition strategies.</p> |
| <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded transition">Connect</button> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
| </main> |
|
|
| <custom-footer></custom-footer> |
| <script src="components/navbar.js"></script> |
| <script src="components/footer.js"></script> |
| <script src="components/notification-bell.js"></script> |
| <script src="script.js"></script> |
| <script> |
| feather.replace(); |
| |
| |
| document.addEventListener('DOMContentLoaded', function() { |
| const userData = JSON.parse(localStorage.getItem('currentUser')); |
| if (userData) { |
| document.getElementById('dashboardUsername').textContent = userData.fullName || 'User'; |
| const role = userData.businessName ? 'Founder' : 'Advisor'; |
| document.getElementById('dashboardRole').textContent = role; |
| } else { |
| window.location.href = '/'; |
| } |
| }); |
| </script> |
| </body> |
| </html> |