fix errors and any bugs, Fix Functionality and responsiveness make it full stacked and miulti page. Add colors royal blue.
19ed353 verified | <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Investor Dashboard - PropTech Connect</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <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> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { font-family: 'Inter', sans-serif; } | |
| .sidebar { transition: all 0.3s ease; } | |
| .dashboard-card { transition: all 0.3s ease; } | |
| .dashboard-card:hover { transform: translateY(-2px); } | |
| .royal-blue-bg { background-color: #1e3a8a; } | |
| .royal-blue-text { color: #1e3a8a; } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100"> | |
| <div class="flex h-screen"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-white w-64 shadow-lg"> | |
| <div class="p-6 border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <i data-feather="home" class="h-6 w-6 text-blue-700"></i> | |
| <span class="ml-2 text-xl font-bold">PropTech Connect</span> | |
| </div> | |
| </div> | |
| <nav class="p-4"> | |
| <ul class="space-y-2"> | |
| <li><a href="dashboard.html" class="flex items-center p-3 bg-blue-50 text-blue-700 rounded-lg"> | |
| <i data-feather="grid" class="w-5 h-5 mr-3"></i> | |
| Dashboard | |
| </a></li> | |
| <li><a href="my-properties.html" class="flex items-center p-3 text-gray-600 hover:bg-gray-50 rounded-lg"> | |
| <i data-feather="home" class="w-5 h-5 mr-3"></i> | |
| My Properties | |
| </a></li> | |
| <li><a href="investments.html" class="flex items-center p-3 text-gray-600 hover:bg-gray-50 rounded-lg"> | |
| <i data-feather="trending-up" class="w-5 h-5 mr-3"></i> | |
| Investments | |
| </a></li> | |
| <li><a href="market.html" class="flex items-center p-3 text-gray-600 hover:bg-gray-50 rounded-lg"> | |
| <i data-feather="bar-chart-2" class="w-5 h-5 mr-3"></i> | |
| Market Analysis | |
| </a></li> | |
| <li><a href="documents.html" class="flex items-center p-3 text-gray-600 hover:bg-gray-50 rounded-lg"> | |
| <i data-feather="file-text" class="w-5 h-5 mr-3"></i> | |
| Documents | |
| </a></li> | |
| <li><a href="settings.html" class="flex items-center p-3 text-gray-600 hover:bg-gray-50 rounded-lg"> | |
| <i data-feather="settings" class="w-5 h-5 mr-3"></i> | |
| Settings | |
| </a></li> | |
| <li><a href="index.html" class="flex items-center p-3 text-gray-600 hover:bg-gray-50 rounded-lg"> | |
| <i data-feather="arrow-left" class="w-5 h-5 mr-3"></i> | |
| Back to Home | |
| </a></li> | |
| </ul> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 flex flex-col overflow-hidden"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm z-10"> | |
| <div class="flex items-center justify-between px-6 py-4"> | |
| <div class="flex items-center"> | |
| <h1 class="text-2xl font-semibold text-gray-900">Investor Dashboard</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <i data-feather="bell" class="w-6 h-6 text-gray-500"></i> | |
| </div> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/people/40x40/10" alt="Profile" class="w-8 h-8 rounded-full"> | |
| <span class="ml-2 text-sm font-medium text-gray-700">Ahmed Al-Mansoori</span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Dashboard Content --> | |
| <main class="flex-1 overflow-y-auto p-6"> | |
| <!-- Portfolio Overview --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-600">Total Portfolio Value</p> | |
| <p class="text-2xl font-bold text-gray-900">$4,750,000</p> | |
| <p class="text-sm text-green-600 mt-1">+12.5% this quarter</p> | |
| </div> | |
| <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center"> | |
| <i data-feather="dollar-sign" class="w-6 h-6 text-blue-700"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-600">Active Investments</p> | |
| <p class="text-2xl font-bold text-gray-900">8</div> | |
| <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center"> | |
| <i data-feather="briefcase" class="w-6 h-6 text-blue-700"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-600">ROI Average</p> | |
| <p class="text-2xl font-bold text-gray-900">18.2%</p> | |
| <p class="text-sm text-green-600 mt-1">+2.3% vs last period</p> | |
| </div> | |
| <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center"> | |
| <i data-feather="trending-up" class="w-6 h-6 text-blue-700"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-600">Properties Owned</p> | |
| <p class="text-2xl font-bold text-gray-900">12</p> | |
| <p class="text-sm text-gray-600 mt-1">Across 3 countries</p> | |
| </div> | |
| <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center"> | |
| <i data-feather="map-pin" class="w-6 h-6 text-blue-700"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts and Analytics --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> | |
| <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm"> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-4">Portfolio Performance</h3> | |
| <canvas id="performanceChart" class="w-full h-64"></canvas> | |
| </div> | |
| <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm"> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-4">Market Trends</h3> | |
| <canvas id="marketTrendsChart" class="w-full h-64"></canvas> | |
| </div> | |
| </div> | |
| <!-- Recent Activity --> | |
| <div class="dashboard-card bg-white p-6 rounded-xl shadow-sm"> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-4">Recent Activity</h3> | |
| <div class="space-y-4"> | |
| <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 bg-blue-100 rounded-lg flex items-center justify-center"> | |
| <i data-feather="home" class="w-4 h-4 text-blue-700"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Property Purchase Completed</p> | |
| <p class="text-xs text-gray-600">Luxury Apartment - Dubai Marina</div> | |
| <div class="text-right"> | |
| <p class="text-sm font-medium text-green-600">+$850,000</p> | |
| <p class="text-xs text-gray-600">2 hours ago</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 bg-blue-100 rounded-lg flex items-center justify-center"> | |
| <i data-feather="trending-up" class="w-4 h-4 text-blue-700"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Rental Income Received</p> | |
| <p class="text-xs text-gray-600">Commercial Office - Doha</div> | |
| <div class="text-right"> | |
| <p class="text-sm font-medium text-green-600">+$25,000</p> | |
| <p class="text-xs text-gray-600">1 day ago</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 bg-blue-100 rounded-lg flex items-center justify-center"> | |
| <i data-feather="file-text" class="w-4 h-4 text-blue-700"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Document Verification</p> | |
| <p class="text-xs text-gray-600">Property in Riyadh</div> | |
| <div class="text-right"> | |
| <p class="text-sm font-medium text-yellow-600">Pending</p> | |
| <p class="text-xs text-gray-600">3 days ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Quick Actions --> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <a href="properties.html" class="dashboard-card bg-white p-6 rounded-xl shadow-sm text-left hover:shadow-md transition duration-300 block"> | |
| <i data-feather="plus" class="w-8 h-8 text-blue-700 mb-3"></i> | |
| <h4 class="font-semibold text-gray-900 mb-2">Add New Investment</h4> | |
| <p class="text-sm text-gray-600">Explore new property opportunities</p> | |
| </a> | |
| <a href="market.html" class="dashboard-card bg-white p-6 rounded-xl shadow-sm text-left hover:shadow-md transition duration-300 block"> | |
| <i data-feather="search" class="w-8 h-8 text-blue-700 mb-3"></i> | |
| <h4 class="font-semibold text-gray-900 mb-2">Market Analysis</h4> | |
| <p class="text-sm text-gray-600">Get detailed market insights</p> | |
| </a> | |
| <button class="dashboard-card bg-white p-6 rounded-xl shadow-sm text-left hover:shadow-md transition duration-300" onclick="generateReport()"> | |
| <i data-feather="download" class="w-8 h-8 text-blue-700 mb-3"></i> | |
| <h4 class="font-semibold text-gray-900 mb-2">Generate Reports</h4> | |
| <p class="text-sm text-gray-600">Download portfolio performance</p> | |
| </button> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Performance Chart | |
| const performanceCtx = document.getElementById('performanceChart').getContext('2d'); | |
| // Check if user is logged in | |
| if (!localStorage.getItem('userLoggedIn')) { | |
| window.location.href = 'login.html'; | |
| } | |
| function generateReport() { | |
| alert('Portfolio report will be generated and downloaded shortly...'); | |
| // Simulate report generation | |
| setTimeout(() => { | |
| const link = document.createElement('a'); | |
| link.download = 'portfolio-report.pdf'; | |
| link.href = '#'; | |
| link.click(); | |
| }, 1000); | |
| } | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Performance Chart | |
| const performanceCtx = document.getElementById('performanceChart'); | |
| if (performanceCtx) { | |
| new Chart(performanceCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], | |
| datasets: [{ | |
| label: 'Portfolio Value ($)', | |
| data: [4200000, 4350000, 4500000, 4600000, 4700000, 4750000], | |
| borderColor: '#1e3a8a', | |
| backgroundColor: 'rgba(30, 58, 138, 0.1)', | |
| tension: 0.4, | |
| fill: true | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: false, | |
| ticks: { | |
| callback: function(value) { | |
| return '</script> | |
| </body> | |
| </html> | |
| + (value / 1000000).toFixed(1) + 'M' | |
| } | |
| } | |
| } | |
| }); | |
| // Market Trends Chart | |
| const marketTrendsCtx = document.getElementById('marketTrendsChart').getContext('2d'); | |
| new Chart(marketTrendsCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['UAE', 'Saudi', 'Qatar', 'Oman', 'Bahrain'], | |
| datasets: [{ | |
| label: 'Market Growth %', | |
| data: [12.5, 15.2, 8.7, 11.3, 9.8], | |
| backgroundColor: [ | |
| 'rgba(79, 70, 229, 0.8)', | |
| 'rgba(79, 70, 229, 0.6)', | |
| 'rgba(79, 70, 229, 0.4)', | |
| 'rgba(79, 70, 229, 0.6)', | |
| 'rgba(79, 70, 229, 0.8)' | |
| ], | |
| borderColor: '#4f46e5', | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| max: 20, | |
| ticks: { | |
| callback: function(value) { | |
| return value + '%'; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |
| + (value / 1000000).toFixed(1) + 'M'; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| } | |
| // Market Trends Chart | |
| const marketTrendsCtx = document.getElementById('marketTrendsChart'); | |
| if (marketTrendsCtx) { | |
| new Chart(marketTrendsCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['UAE', 'Saudi', 'Qatar', 'Oman', 'Bahrain'], | |
| datasets: [{ | |
| label: 'Market Growth %', | |
| data: [12.5, 15.2, 8.7, 11.3, 9.8], | |
| backgroundColor: [ | |
| 'rgba(30, 58, 138, 0.8)', | |
| 'rgba(30, 58, 138, 0.6)', | |
| 'rgba(30, 58, 138, 0.4)', | |
| 'rgba(30, 58, 138, 0.6)', | |
| 'rgba(30, 58, 138, 0.8)' | |
| ], | |
| borderColor: '#1e3a8a', | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| max: 20, | |
| ticks: { | |
| callback: function(value) { | |
| return value + '%'; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| } | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |
| + (value / 1000000).toFixed(1) + 'M' | |
| } | |
| } | |
| } | |
| }); | |
| // Market Trends Chart | |
| const marketTrendsCtx = document.getElementById('marketTrendsChart').getContext('2d'); | |
| new Chart(marketTrendsCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['UAE', 'Saudi', 'Qatar', 'Oman', 'Bahrain'], | |
| datasets: [{ | |
| label: 'Market Growth %', | |
| data: [12.5, 15.2, 8.7, 11.3, 9.8], | |
| backgroundColor: [ | |
| 'rgba(79, 70, 229, 0.8)', | |
| 'rgba(79, 70, 229, 0.6)', | |
| 'rgba(79, 70, 229, 0.4)', | |
| 'rgba(79, 70, 229, 0.6)', | |
| 'rgba(79, 70, 229, 0.8)' | |
| ], | |
| borderColor: '#4f46e5', | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| max: 20, | |
| ticks: { | |
| callback: function(value) { | |
| return value + '%'; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |