Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AffableBPM | Grant Management System</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| :root { | |
| --primary-color: #2c97a7; | |
| --primary-dark: #0A829D; | |
| --primary-light: #afeeee; | |
| } | |
| body { | |
| font-family: 'Aptos', 'Calibri', sans-serif; | |
| background-color: #f8fafc; | |
| } | |
| .jazz-font { | |
| font-family: 'Aptos', 'Calibri', sans-serif; | |
| font-weight: bold; | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .workflow-step { | |
| position: relative; | |
| } | |
| .workflow-step:not(:last-child):after { | |
| content: ''; | |
| position: absolute; | |
| top: 24px; | |
| left: 50%; | |
| height: 40px; | |
| width: 2px; | |
| background-color: var(--primary-color); | |
| } | |
| .grant-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(64, 224, 208, 0.2); | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| transform: translateX(-100%); | |
| } | |
| .sidebar.active { | |
| transform: translateX(0); | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Mobile Menu Button --> | |
| <div class="md:hidden fixed top-4 left-4 z-50"> | |
| <button id="mobileMenuBtn" class="p-2 rounded-lg bg-[#0A829D] text-white"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| <!-- Sidebar --> | |
| <div class="sidebar fixed h-screen w-64 bg-white shadow-lg z-40"> | |
| <div class="p-4 bg-[#0A829D] flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-white flex items-center justify-center mr-3"> | |
| <i class="fas fa-gem text-[#0A829D] text-xl"></i> | |
| </div> | |
| <h1 class="text-white text-xl font-bold jazz-font">AffableBPM</h1> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex items-center mb-6"> | |
| <div class="w-12 h-12 rounded-full bg-[#E0F7FA] flex items-center justify-center mr-3"> | |
| <i class="fas fa-user text-[#0A829D]"></i> | |
| </div> | |
| <div> | |
| <p class="font-semibold">Admin User</p> | |
| <p class="text-xs text-gray-500">Administrator</p> | |
| </div> | |
| </div> | |
| <nav> | |
| <ul class="space-y-2"> | |
| <li> | |
| <a href="#" class="flex items-center p-3 rounded-lg bg-[#E0F7FA] text-[#0A829D]"> | |
| <i class="fas fa-tachometer-alt mr-3"></i> | |
| <span>Dashboard</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600"> | |
| <i class="fas fa-project-diagram mr-3"></i> | |
| <span>Workflows</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600"> | |
| <i class="fas fa-hand-holding-usd mr-3"></i> | |
| <span>Grants</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600"> | |
| <i class="fas fa-users mr-3"></i> | |
| <span>Applicants</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600"> | |
| <i class="fas fa-file-invoice-dollar mr-3"></i> | |
| <span>Reports</span> | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600"> | |
| <i class="fas fa-cog mr-3"></i> | |
| <span>Settings</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </nav> | |
| </div> | |
| <div class="absolute bottom-0 w-full p-4 border-t"> | |
| <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600"> | |
| <i class="fas fa-sign-out-alt mr-3"></i> | |
| <span>Logout</span> | |
| </a> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="ml-0 md:ml-64 transition-all duration-300"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm p-4 flex justify-between items-center"> | |
| <h2 class="text-2xl font-bold text-gray-800 jazz-font">Grant Management Dashboard</h2> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <button class="p-2 rounded-full hover:bg-teal-50"> | |
| <i class="fas fa-bell text-gray-600"></i> | |
| <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span> | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <button class="p-2 rounded-full hover:bg-teal-50"> | |
| <i class="fas fa-envelope text-gray-600"></i> | |
| <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span> | |
| </button> | |
| </div> | |
| <div class="w-8 h-8 rounded-full bg-[#0A829D] flex items-center justify-center text-white"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Dashboard Content --> | |
| <main class="p-6"> | |
| <!-- Stats Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-[#0A829D]"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="text-gray-500">Total Grants</p> | |
| <h3 class="text-3xl font-bold text-gray-800">142</h3> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-[#E0F7FA] flex items-center justify-center"> | |
| <i class="fas fa-hand-holding-usd text-[#0A829D]"></i> | |
| </div> | |
| </div> | |
| <p class="text-sm text-[#0A829D] mt-2"><i class="fas fa-arrow-up mr-1"></i> 12% from last month</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-blue-500"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="text-gray-500">Active Applications</p> | |
| <h3 class="text-3xl font-bold text-gray-800">87</h3> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center"> | |
| <i class="fas fa-file-alt text-blue-500"></i> | |
| </div> | |
| </div> | |
| <p class="text-sm text-blue-500 mt-2"><i class="fas fa-arrow-up mr-1"></i> 8% from last month</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-purple-500"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="text-gray-500">Approved Grants</p> | |
| <h3 class="text-3xl font-bold text-gray-800">64</h3> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center"> | |
| <i class="fas fa-check-circle text-purple-500"></i> | |
| </div> | |
| </div> | |
| <p class="text-sm text-purple-500 mt-2"><i class="fas fa-arrow-up mr-1"></i> 15% from last month</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-amber-500"> | |
| <div class="flex justify-between"> | |
| <div> | |
| <p class="text-gray-500">Pending Review</p> | |
| <h3 class="text-3xl font-bold text-gray-800">23</h3> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-amber-100 flex items-center justify-center"> | |
| <i class="fas fa-clock text-amber-500"></i> | |
| </div> | |
| </div> | |
| <p class="text-sm text-amber-500 mt-2"><i class="fas fa-arrow-down mr-1"></i> 5% from last month</p> | |
| </div> | |
| </div> | |
| <!-- Recent Grants and Workflow --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8"> | |
| <!-- Recent Grants --> | |
| <div class="lg:col-span-2 bg-white rounded-xl shadow-md p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h3 class="text-xl font-bold text-gray-800 jazz-font">Recent Grant Applications</h3> | |
| <button class="text-[#0A829D] hover:text-[#2c97a7]">View All</button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead> | |
| <tr> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Applicant</th> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr class="hover:bg-teal-50"> | |
| <td class="px-4 py-3 whitespace-nowrap">#GR-2023-001</td> | |
| <td class="px-4 py-3 whitespace-nowrap">Green Energy Solutions</td> | |
| <td class="px-4 py-3 whitespace-nowrap">$25,000</td> | |
| <td class="px-4 py-3 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-[#E0F7FA] text-[#0A829D]">Approved</span> | |
| </td> | |
| <td class="px-4 py-3 whitespace-nowrap">2023-06-15</td> | |
| </tr> | |
| <tr class="hover:bg-teal-50"> | |
| <td class="px-4 py-3 whitespace-nowrap">#GR-2023-002</td> | |
| <td class="px-4 py-3 whitespace-nowrap">Community Health Initiative</td> | |
| <td class="px-4 py-3 whitespace-nowrap">$50,000</td> | |
| <td class="px-4 py-3 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">In Review</span> | |
| </td> | |
| <td class="px-4 py-3 whitespace-nowrap">2023-06-18</td> | |
| </tr> | |
| <tr class="hover:bg-teal-50"> | |
| <td class="px-4 py-3 whitespace-nowrap">#GR-2023-003</td> | |
| <td class="px-4 py-3 whitespace-nowrap">Education for All</td> | |
| <td class="px-4 py-3 whitespace-nowrap">$15,000</td> | |
| <td class="px-4 py-3 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800">Pending</span> | |
| </td> | |
| <td class="px-4 py-3 whitespace-nowrap">2023-06-20</td> | |
| </tr> | |
| <tr class="hover:bg-teal-50"> | |
| <td class="px-4 py-3 whitespace-nowrap">#GR-2023-004</td> | |
| <td class="px-4 py-3 whitespace-nowrap">Tech Startups Inc.</td> | |
| <td class="px-4 py-3 whitespace-nowrap">$75,000</td> | |
| <td class="px-4 py-3 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Funded</span> | |
| </td> | |
| <td class="px-4 py-3 whitespace-nowrap">2023-06-22</td> | |
| </tr> | |
| <tr class="hover:bg-teal-50"> | |
| <td class="px-4 py-3 whitespace-nowrap">#GR-2023-005</td> | |
| <td class="px-4 py-3 whitespace-nowrap">Urban Farming Collective</td> | |
| <td class="px-4 py-3 whitespace-nowrap">$30,000</td> | |
| <td class="px-4 py-3 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Rejected</span> | |
| </td> | |
| <td class="px-4 py-3 whitespace-nowrap">2023-06-25</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <!-- Workflow Status --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h3 class="text-xl font-bold text-gray-800 jazz-font">Grant Approval Workflow</h3> | |
| <button class="text-teal-500 hover:text-teal-700">Configure</button> | |
| </div> | |
| <div class="space-y-8"> | |
| <div class="workflow-step"> | |
| <div class="flex flex-col items-center"> | |
| <div class="w-12 h-12 rounded-full bg-[#0A829D] flex items-center justify-center text-white mb-2"> | |
| <i class="fas fa-file-alt"></i> | |
| </div> | |
| <p class="font-semibold">Application</p> | |
| <p class="text-sm text-gray-500">Submitted</p> | |
| </div> | |
| </div> | |
| <div class="workflow-step"> | |
| <div class="flex flex-col items-center"> | |
| <div class="w-12 h-12 rounded-full bg-blue-500 flex items-center justify-center text-white mb-2"> | |
| <i class="fas fa-search"></i> | |
| </div> | |
| <p class="font-semibold">Review</p> | |
| <p class="text-sm text-gray-500">In Progress</p> | |
| </div> | |
| </div> | |
| <div class="workflow-step"> | |
| <div class="flex flex-col items-center"> | |
| <div class="w-12 h-12 rounded-full bg-gray-300 flex items-center justify-center text-white mb-2"> | |
| <i class="fas fa-check-double"></i> | |
| </div> | |
| <p class="font-semibold">Approval</p> | |
| <p class="text-sm text-gray-500">Pending</p> | |
| </div> | |
| </div> | |
| <div class="workflow-step"> | |
| <div class="flex flex-col items-center"> | |
| <div class="w-12 h-12 rounded-full bg-gray-300 flex items-center justify-center text-white mb-2"> | |
| <i class="fas fa-money-bill-wave"></i> | |
| </div> | |
| <p class="font-semibold">Funding</p> | |
| <p class="text-sm text-gray-500">Not Started</p> | |
| </div> | |
| </div> | |
| <div class="workflow-step"> | |
| <div class="flex flex-col items-center"> | |
| <div class="w-12 h-12 rounded-full bg-gray-300 flex items-center justify-center text-white mb-2"> | |
| <i class="fas fa-chart-line"></i> | |
| </div> | |
| <p class="font-semibold">Monitoring</p> | |
| <p class="text-sm text-gray-500">Not Started</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Grant Programs --> | |
| <div class="mb-8"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h3 class="text-xl font-bold text-gray-800 jazz-font">Active Grant Programs</h3> | |
| <button class="text-teal-500 hover:text-teal-700">Create New</button> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <div class="grant-card bg-white rounded-xl shadow-md p-6 border-t-4 border-[#0A829D] transition duration-300"> | |
| <div class="flex justify-between items-start mb-4"> | |
| <div> | |
| <h4 class="font-bold text-lg">Community Development</h4> | |
| <p class="text-sm text-gray-500">Deadline: 2023-08-15</p> | |
| </div> | |
| <span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Open</span> | |
| </div> | |
| <p class="text-gray-600 mb-4">Funding for projects that enhance community infrastructure and services.</p> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="text-sm text-gray-500">Total Funding</p> | |
| <p class="font-bold">$500,000</p> | |
| </div> | |
| <button class="px-4 py-2 bg-[#0A829D] text-white rounded-lg hover:bg-[#2c97a7]">View Details</button> | |
| </div> | |
| </div> | |
| <div class="grant-card bg-white rounded-xl shadow-md p-6 border-t-4 border-blue-500 transition duration-300"> | |
| <div class="flex justify-between items-start mb-4"> | |
| <div> | |
| <h4 class="font-bold text-lg">STEM Education</h4> | |
| <p class="text-sm text-gray-500">Deadline: 2023-09-01</p> | |
| </div> | |
| <span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Open</span> | |
| </div> | |
| <p class="text-gray-600 mb-4">Grants for schools and organizations promoting STEM education.</p> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="text-sm text-gray-500">Total Funding</p> | |
| <p class="font-bold">$350,000</p> | |
| </div> | |
| <button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600">View Details</button> | |
| </div> | |
| </div> | |
| <div class="grant-card bg-white rounded-xl shadow-md p-6 border-t-4 border-purple-500 transition duration-300"> | |
| <div class="flex justify-between items-start mb-4"> | |
| <div> | |
| <h4 class="font-bold text-lg">Green Innovation</h4> | |
| <p class="text-sm text-gray-500">Deadline: 2023-07-30</p> | |
| </div> | |
| <span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Closing Soon</span> | |
| </div> | |
| <p class="text-gray-600 mb-4">Support for innovative projects addressing environmental challenges.</p> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="text-sm text-gray-500">Total Funding</p> | |
| <p class="font-bold">$750,000</p> | |
| </div> | |
| <button class="px-4 py-2 bg-purple-500 text-white rounded-lg hover:bg-purple-600">View Details</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6"> | |
| <!-- Applications by Month --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h3 class="text-xl font-bold text-gray-800 jazz-font">Applications by Month</h3> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 text-xs bg-[#0A829D] text-white rounded">2023</button> | |
| <button class="px-3 py-1 text-xs bg-gray-200 text-gray-700 rounded">2022</button> | |
| </div> | |
| </div> | |
| <div class="h-64"> | |
| <canvas id="applicationsChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Grants by Category --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h3 class="text-xl font-bold text-gray-800 jazz-font">Grants by Category</h3> | |
| <button class="text-teal-500 hover:text-teal-700">View All</button> | |
| </div> | |
| <div class="h-64"> | |
| <canvas id="categoriesChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <!-- Scripts --> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script> | |
| // Mobile menu toggle | |
| document.getElementById('mobileMenuBtn').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.toggle('active'); | |
| }); | |
| // Applications by Month Chart | |
| const applicationsCtx = document.getElementById('applicationsChart').getContext('2d'); | |
| const applicationsChart = new Chart(applicationsCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], | |
| datasets: [{ | |
| label: 'Applications', | |
| data: [12, 19, 15, 21, 18, 25, 22, 30, 28, 24, 20, 17], | |
| backgroundColor: '#2c97a7', | |
| borderColor: '#0A829D', | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| scales: { | |
| y: { | |
| beginAtZero: true | |
| } | |
| }, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| } | |
| } | |
| }); | |
| // Grants by Category Chart | |
| const categoriesCtx = document.getElementById('categoriesChart').getContext('2d'); | |
| const categoriesChart = new Chart(categoriesCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Education', 'Health', 'Environment', 'Community', 'Arts', 'Technology'], | |
| datasets: [{ | |
| data: [25, 20, 15, 18, 12, 10], | |
| backgroundColor: [ | |
| '#2c97a7', | |
| '#4682b4', | |
| '#9370db', | |
| '#ff7f50', | |
| '#ff69b4', | |
| '#0A829D' | |
| ], | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'right', | |
| } | |
| } | |
| } | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=SamABFlow/compliance-3" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |