undefined / dashboard.html
markngr's picture
Add a home button on the dashboard page. Also make the sections total properties, occupied, vacant and monthly revenue smaller, put them in small box sections next to each other. Make those boxes clickable , with each taking to a page with the details of the section clicked. Add any necessary pages from clickable buttons from the buttons within the page and website and populate with the necessary and needed details. Also, in mobile view. Remove the texts in the header and place the necessary icons such as home and account and add the associating and necessary pages and add details based on the requirements.
ff9f230 verified
Raw History Blame Contribute Delete
13.7 kB
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Property Dashboard - EstateEase</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>
<style>
.stat-card:hover {
transform: translateY(-3px);
}
.property-status-rented {
border-left: 4px solid #38a169;
}
.property-status-vacant {
border-left: 4px solid #ecc94b;
}
.property-status-maintenance {
border-left: 4px solid #ed8936;
}
.property-status-sold {
border-left: 4px solid #e53e3e;
}
</style>
</head>
<body class="bg-gray-50 font-sans antialiased">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<!-- Dashboard Header -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-8">
<div class="flex items-center">
<a href="index.html" class="mr-4 p-2 rounded-md hover:bg-gray-100">
<i data-feather="home" class="text-primary w-5 h-5"></i>
</a>
<div>
<h1 class="text-2xl font-bold text-dark">Property Dashboard</h1>
<p class="text-gray-600 mt-1">Overview of your property portfolio</p>
</div>
</div>
<div class="mt-4 md:mt-0 flex space-x-3">
<button class="bg-white border border-gray-200 hover:bg-gray-50 text-dark py-2 px-4 rounded-md transition flex items-center">
<i data-feather="download" class="w-4 h-4 mr-2"></i>
Export
</button>
<button class="bg-primary hover:bg-opacity-90 text-white py-2 px-4 rounded-md transition flex items-center">
<i data-feather="refresh-cw" class="w-4 h-4 mr-2"></i>
Refresh
</button>
</div>
</div>
<!-- Stats Overview -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-8">
<a href="properties.html" class="stat-card bg-white rounded-lg shadow p-4 transition hover:shadow-md">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-xs md:text-sm">Total Properties</p>
<h3 class="text-lg md:text-xl font-bold text-dark">24</h3>
</div>
<div class="bg-primary bg-opacity-10 p-2 rounded-full">
<i data-feather="home" class="text-primary w-4 h-4"></i>
</div>
</div>
</a>
<a href="properties.html?filter=occupied" class="stat-card bg-white rounded-lg shadow p-4 transition hover:shadow-md">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-xs md:text-sm">Occupied</p>
<h3 class="text-lg md:text-xl font-bold text-dark">18</h3>
</div>
<div class="bg-green-100 p-2 rounded-full">
<i data-feather="check-circle" class="text-green-600 w-4 h-4"></i>
</div>
</div>
</a>
<a href="properties.html?filter=vacant" class="stat-card bg-white rounded-lg shadow p-4 transition hover:shadow-md">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-xs md:text-sm">Vacant</p>
<h3 class="text-lg md:text-xl font-bold text-dark">6</h3>
</div>
<div class="bg-yellow-100 p-2 rounded-full">
<i data-feather="alert-circle" class="text-yellow-600 w-4 h-4"></i>
</div>
</div>
</a>
<a href="payments.html" class="stat-card bg-white rounded-lg shadow p-4 transition hover:shadow-md">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-xs md:text-sm">Monthly Revenue</p>
<h3 class="text-lg md:text-xl font-bold text-dark">$24,500</h3>
</div>
<div class="bg-blue-100 p-2 rounded-full">
<i data-feather="dollar-sign" class="text-blue-600 w-4 h-4"></i>
</div>
</div>
</a>
</div>
<!-- Property Status -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<!-- Property List -->
<div class="lg:col-span-2">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="px-6 py-4 border-b border-gray-100 flex justify-between items-center">
<h2 class="text-lg font-semibold text-dark">Property Status</h2>
<a href="properties.html" class="text-primary text-sm font-medium">View All</a>
</div>
<div class="divide-y divide-gray-100">
<div class="p-4 property-status-rented hover:bg-gray-50 transition">
<div class="flex justify-between items-center">
<div>
<h3 class="font-medium text-dark">Downtown Loft</h3>
<p class="text-gray-500 text-sm">123 Main St, Property City</p>
</div>
<div class="text-right">
<span class="text-green-600 text-sm font-medium">Rented</span>
<p class="text-sm font-medium">$2,500/mo</p>
</div>
</div>
</div>
<div class="p-4 property-status-vacant hover:bg-gray-50 transition">
<div class="flex justify-between items-center">
<div>
<h3 class="font-medium text-dark">Lakeside Villa</h3>
<p class="text-gray-500 text-sm">456 Lakeview Dr, Property City</p>
</div>
<div class="text-right">
<span class="text-yellow-600 text-sm font-medium">Vacant</span>
<p class="text-sm font-medium">$4,200/mo</p>
</div>
</div>
</div>
<div class="p-4 property-status-maintenance hover:bg-gray-50 transition">
<div class="flex justify-between items-center">
<div>
<h3 class="font-medium text-dark">Urban Office</h3>
<p class="text-gray-500 text-sm">789 Business Ave, Property City</p>
</div>
<div class="text-right">
<span class="text-orange-500 text-sm font-medium">Maintenance</span>
<p class="text-sm font-medium">$3,800/mo</p>
</div>
</div>
</div>
<div class="p-4 property-status-sold hover:bg-gray-50 transition">
<div class="flex justify-between items-center">
<div>
<h3 class="font-medium text-dark">Garden View</h3>
<p class="text-gray-500 text-sm">321 Park Lane, Property City</p>
</div>
<div class="text-right">
<span class="text-red-600 text-sm font-medium">Sold</span>
<p class="text-sm font-medium">$525,000</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Financial Overview -->
<div>
<div class="bg-white rounded-lg shadow overflow-hidden mb-8">
<div class="px-6 py-4 border-b border-gray-100">
<h2 class="text-lg font-semibold text-dark">Financial Overview</h2>
</div>
<div class="p-6">
<div class="mb-6">
<p class="text-gray-500 text-sm mb-2">Total Portfolio Value</p>
<h3 class="text-2xl font-bold text-dark">$3,250,000</h3>
</div>
<div class="space-y-4">
<div>
<p class="text-gray-500 text-sm">Monthly Income</p>
<div class="flex justify-between items-center">
<p class="font-medium">$24,500</p>
<span class="text-green-600 text-sm">+12%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2 mt-1">
<div class="bg-green-600 h-2 rounded-full" style="width: 75%"></div>
</div>
</div>
<div>
<p class="text-gray-500 text-sm">Monthly Expenses</p>
<div class="flex justify-between items-center">
<p class="font-medium">$8,200</p>
<span class="text-red-600 text-sm">-5%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2 mt-1">
<div class="bg-red-600 h-2 rounded-full" style="width: 25%"></div>
</div>
</div>
<div>
<p class="text-gray-500 text-sm">Net Profit</p>
<div class="flex justify-between items-center">
<p class="font-medium">$16,300</p>
<span class="text-green-600 text-sm">+18%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2 mt-1">
<div class="bg-blue-600 h-2 rounded-full" style="width: 50%"></div>
</div>
</div>
</div>
<button class="w-full mt-6 bg-primary hover:bg-opacity-90 text-white py-2 px-4 rounded-md transition">
View Financial Report
</button>
</div>
</div>
<!-- Maintenance Alerts -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="px-6 py-4 border-b border-gray-100 flex justify-between items-center">
<h2 class="text-lg font-semibold text-dark">Maintenance Alerts</h2>
<a href="#" class="text-primary text-sm font-medium">View All</a>
</div>
<div class="p-6">
<div class="space-y-4">
<div class="flex items-start">
<div class="bg-red-100 p-2 rounded-full mr-3">
<i data-feather="alert-triangle" class="text-red-600 w-4 h-4"></i>
</div>
<div>
<h3 class="font-medium text-dark">Urgent: Plumbing Issue</h3>
<p class="text-gray-500 text-sm">Downtown Loft - Reported 2 days ago</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-yellow-100 p-2 rounded-full mr-3">
<i data-feather="tool" class="text-yellow-600 w-4 h-4"></i>
</div>
<div>
<h3 class="font-medium text-dark">AC Maintenance</h3>
<p class="text-gray-500 text-sm">Lakeside Villa - Scheduled for tomorrow</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue