Spaces:
Running

pif2template / index.html
GuyRoger's picture
Creation of a Power BI Application
45d1cd4 verified
Raw History Blame Contribute Delete
18.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forest Maintenance Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.sidebar-item.active {
background-color: #f0fdf4;
border-left: 4px solid #16a34a;
}
.sidebar-item:hover:not(.active) {
background-color: #f0fdf4;
}
.kpi-card {
transition: all 0.3s ease;
}
.kpi-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.chart-container {
min-height: 300px;
}
</style>
</head>
<body class="bg-white font-sans">
<!-- Sidebar Navigation -->
<div class="flex h-screen overflow-hidden">
<div class="hidden md:flex md:flex-shrink-0">
<div class="flex flex-col w-64 border-r border-gray-200 bg-white">
<!-- Logo -->
<div class="flex items-center justify-center h-16 px-4 border-b border-gray-200">
<img src="https://pif2.ci/assets/images/resources/logo.png" alt="Logo" class="h-12">
</div>
<!-- Navigation Menu -->
<nav class="flex-1 px-2 py-4 space-y-1">
<a href="#" class="sidebar-item active flex items-center px-4 py-2 text-sm font-medium text-gray-900 rounded-md group">
<i data-feather="home" class="mr-3 text-emerald-600"></i>
Overview
</a>
<a href="#" class="sidebar-item flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-md group hover:text-gray-900">
<i data-feather="activity" class="mr-3 text-emerald-600"></i>
Tree Health
</a>
<a href="#" class="sidebar-item flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-md group hover:text-gray-900">
<i data-feather="check-circle" class="mr-3 text-emerald-600"></i>
Work Completed
</a>
<a href="#" class="sidebar-item flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-md group hover:text-gray-900">
<i data-feather="globe" class="mr-3 text-emerald-600"></i>
Environmental Status
</a>
<a href="#" class="sidebar-item flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-md group hover:text-gray-900">
<i data-feather="alert-triangle" class="mr-3 text-emerald-600"></i>
Alerts & Monitoring
</a>
</nav>
</div>
</div>
<!-- Main Content -->
<div class="flex flex-col flex-1 overflow-hidden">
<!-- Top Navigation -->
<div class="flex items-center justify-between h-16 px-4 border-b border-gray-200 bg-white">
<div class="flex items-center md:hidden">
<button type="button" class="inline-flex items-center justify-center p-2 text-gray-500 rounded-md hover:text-gray-900 focus:outline-none">
<i data-feather="menu"></i>
</button>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<button class="p-2 text-gray-500 rounded-full hover:bg-gray-100">
<i data-feather="bell"></i>
</button>
<div class="flex items-center">
<img class="w-8 h-8 rounded-full" src="http://static.photos/people/200x200/1" alt="User">
</div>
</div>
</div>
<!-- Dashboard Content -->
<main class="flex-1 overflow-y-auto p-4 bg-gray-50">
<!-- Page Header -->
<div class="mb-6">
<h1 class="text-2xl font-bold text-gray-800">Forest Maintenance Dashboard</h1>
<p class="text-gray-600">Key indicators for forest maintenance project</p>
</div>
<!-- Filters -->
<div class="mb-6 p-4 bg-white rounded-lg shadow-sm">
<div class="flex flex-wrap items-center gap-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Region</label>
<select class="border border-gray-300 rounded-md px-3 py-2 focus:ring-emerald-500 focus:border-emerald-500">
<option>All Regions</option>
<option>North Forest</option>
<option>South Forest</option>
<option>East Reserve</option>
<option>West Reserve</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Time Period</label>
<select class="border border-gray-300 rounded-md px-3 py-2 focus:ring-emerald-500 focus:border-emerald-500">
<option>Last 30 Days</option>
<option>Last 90 Days</option>
<option>This Year</option>
<option>All Time</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Project</label>
<select class="border border-gray-300 rounded-md px-3 py-2 focus:ring-emerald-500 focus:border-emerald-500">
<option>All Projects</option>
<option>Reforestation</option>
<option>Maintenance</option>
<option>Conservation</option>
</select>
</div>
<button class="mt-6 px-4 py-2 bg-emerald-600 text-white rounded-md hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2">
Apply Filters
</button>
</div>
</div>
<!-- KPI Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="kpi-card bg-white p-6 rounded-lg shadow-sm border-l-4 border-emerald-500">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Project Progress</p>
<p class="text-2xl font-bold text-gray-800">78%</p>
</div>
<div class="p-3 rounded-full bg-emerald-100 text-emerald-600">
<i data-feather="trending-up"></i>
</div>
</div>
<div class="mt-4">
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-emerald-600 h-2.5 rounded-full" style="width: 78%"></div>
</div>
</div>
</div>
<div class="kpi-card bg-white p-6 rounded-lg shadow-sm border-l-4 border-emerald-500">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Forest Health</p>
<p class="text-2xl font-bold text-gray-800">85%</p>
</div>
<div class="p-3 rounded-full bg-emerald-100 text-emerald-600">
<i data-feather="heart"></i>
</div>
</div>
<div class="mt-4">
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-emerald-600 h-2.5 rounded-full" style="width: 85%"></div>
</div>
</div>
</div>
<div class="kpi-card bg-white p-6 rounded-lg shadow-sm border-l-4 border-emerald-500">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Budget Utilization</p>
<p class="text-2xl font-bold text-gray-800">62%</p>
</div>
<div class="p-3 rounded-full bg-emerald-100 text-emerald-600">
<i data-feather="dollar-sign"></i>
</div>
</div>
<div class="mt-4">
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-emerald-600 h-2.5 rounded-full" style="width: 62%"></div>
</div>
</div>
</div>
<div class="kpi-card bg-white p-6 rounded-lg shadow-sm border-l-4 border-emerald-500">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Trees Planted</p>
<p class="text-2xl font-bold text-gray-800">12,458</p>
</div>
<div class="p-3 rounded-full bg-emerald-100 text-emerald-600">
<i data-feather="tree"></i>
</div>
</div>
<div class="mt-4">
<p class="text-sm text-gray-500">+1,240 this month</p>
</div>
</div>
</div>
<!-- Charts Row 1 -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<div class="bg-white p-6 rounded-lg shadow-sm">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-800">Forest Area by Type</h3>
<div class="flex space-x-2">
<button class="p-1 text-gray-500 hover:text-emerald-600">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
<button class="p-1 text-gray-500 hover:text-emerald-600">
<i data-feather="maximize-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="chart-container">
<!-- Placeholder for pie chart -->
<img src="http://static.photos/nature/640x360/1" alt="Pie Chart" class="w-full h-64 object-cover rounded">
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-800">Maintenance Activities</h3>
<div class="flex space-x-2">
<button class="p-1 text-gray-500 hover:text-emerald-600">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
<button class="p-1 text-gray-500 hover:text-emerald-600">
<i data-feather="maximize-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="chart-container">
<!-- Placeholder for bar chart -->
<img src="http://static.photos/nature/640x360/2" alt="Bar Chart" class="w-full h-64 object-cover rounded">
</div>
</div>
</div>
<!-- Charts Row 2 -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<div class="bg-white p-6 rounded-lg shadow-sm">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-800">Biodiversity Index</h3>
<div class="flex space-x-2">
<button class="p-1 text-gray-500 hover:text-emerald-600">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="chart-container">
<!-- Placeholder for line chart -->
<img src="http://static.photos/nature/320x240/3" alt="Line Chart" class="w-full h-48 object-cover rounded">
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-800">Region Distribution</h3>
<div class="flex space-x-2">
<button class="p-1 text-gray-500 hover:text-emerald-600">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="chart-container">
<!-- Placeholder for map -->
<img src="http://static.photos/nature/320x240/4" alt="Map" class="w-full h-48 object-cover rounded">
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-800">Recent Alerts</h3>
<div class="flex space-x-2">
<button class="p-1 text-gray-500 hover:text-emerald-600">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="space-y-3">
<div class="flex items-start">
<div class="flex-shrink-0 mt-1">
<span class="flex items-center justify-center w-6 h-6 rounded-full bg-red-100 text-red-600">
<i data-feather="alert-triangle" class="w-4 h-4"></i>
</span>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-800">Pest infestation detected</p>
<p class="text-xs text-gray-500">North Forest • 2 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 mt-1">
<span class="flex items-center justify-center w-6 h-6 rounded-full bg-yellow-100 text-yellow-600">
<i data-feather="alert-circle" class="w-4 h-4"></i>
</span>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-800">Maintenance overdue</p>
<p class="text-xs text-gray-500">East Reserve • 1 day ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 mt-1">
<span class="flex items-center justify-center w-6 h-6 rounded-full bg-blue-100 text-blue-600">
<i data-feather="info" class="w-4 h-4"></i>
</span>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-800">New planting scheduled</p>
<p class="text-xs text-gray-500">South Forest • 2 days ago</p>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
AOS.init();
feather.replace();
// Mobile menu toggle
document.querySelector('[aria-controls="mobile-menu"]').addEventListener('click', function() {
document.getElementById('mobile-menu').classList.toggle('hidden');
});
</script>
</body>
</html>