expensemaster-pro / index.html
ByxmoriCOM's picture
import React, { useMemo, useState } from "react";
43db5aa verified
Raw History Blame Contribute Delete
19.4 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ExpenseMaster Pro</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.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;
}
.byx-blue {
color: #0B0F2C;
}
.byx-gold {
color: #B38A4D;
}
.bg-byx-blue {
background-color: #0B0F2C;
}
.bg-byx-gold {
background-color: #B38A4D;
}
.gradient-bg {
background: linear-gradient(135deg, #0B0F2C 0%, #1A237E 100%);
}
.sidebar-item:hover {
background-color: rgba(11, 15, 44, 0.05);
}
.sidebar-item.active {
background-color: rgba(11, 15, 44, 0.1);
}
.animate-float {
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
</style>
</head>
<body class="bg-gray-50">
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<!-- Main Container -->
<div class="relative z-10 min-h-screen">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-6 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="credit-card" class="w-6 h-6"></i>
<h1 class="text-xl font-bold">ExpenseMaster Pro</h1>
</div>
<div class="flex items-center space-x-4">
<button class="flex items-center space-x-1 text-sm bg-white bg-opacity-20 hover:bg-opacity-30 px-3 py-1 rounded-full">
<i data-feather="bell" class="w-4 h-4"></i>
</button>
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-white flex items-center justify-center">
<i data-feather="user" class="w-4 h-4 byx-blue"></i>
</div>
<span class="text-sm font-medium">Admin</span>
</div>
</div>
</div>
</header>
<!-- Breadcrumb -->
<div class="bg-white shadow-sm">
<div class="container mx-auto px-6 py-3">
<div class="flex items-center text-sm text-gray-600">
<span>Finance</span>
<i data-feather="chevron-right" class="w-4 h-4 mx-2"></i>
<span class="font-medium byx-blue">Settings</span>
</div>
</div>
</div>
<!-- Main Content -->
<main class="container mx-auto px-6 py-8">
<div class="flex flex-col md:flex-row gap-6">
<!-- Sidebar -->
<aside class="w-full md:w-64 bg-white rounded-xl shadow-md">
<div class="p-4 border-b">
<h2 class="font-semibold byx-blue flex items-center">
<i data-feather="settings" class="w-5 h-5 mr-2"></i>
Financial Settings
</h2>
</div>
<nav class="p-2">
<a href="#" class="sidebar-item active flex items-center px-3 py-2 rounded-lg text-sm font-medium byx-blue">
<i data-feather="sliders" class="w-4 h-4 mr-2"></i>
Expense Policies
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-sm font-medium byx-blue">
<i data-feather="file-text" class="w-4 h-4 mr-2"></i>
Expense Types
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-sm font-medium byx-blue">
<i data-feather="building" class="w-4 h-4 mr-2"></i>
Cost Centers
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-sm font-medium byx-blue">
<i data-feather="film" class="w-4 h-4 mr-2"></i>
Projects
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-sm font-medium byx-blue">
<i data-feather="factory" class="w-4 h-4 mr-2"></i>
Establishments
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-sm font-medium byx-blue">
<i data-feather="fuel" class="w-4 h-4 mr-2"></i>
Vehicles
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-sm font-medium byx-blue">
<i data-feather="file-cog" class="w-4 h-4 mr-2"></i>
Accounting Integrations
</a>
</nav>
</aside>
<!-- Main Panel -->
<div class="flex-1">
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<!-- Panel Header -->
<div class="p-4 border-b flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3">
<div>
<h2 class="text-lg font-semibold byx-blue">Expense Types</h2>
<p class="text-xs text-gray-500">Manage expense types used in the Finance module</p>
</div>
<div class="flex items-center gap-2">
<div class="relative">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400 w-4 h-4"></i>
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 rounded-lg border text-sm focus:outline-none focus:ring-1 focus:ring-blue-500">
</div>
<button class="bg-byx-blue hover:bg-opacity-90 text-white px-4 py-2 rounded-lg flex items-center gap-2 text-sm">
<i data-feather="plus" class="w-4 h-4"></i>
New Type
</button>
</div>
</div>
<!-- Table -->
<div class="overflow-x-auto">
<table class="w-full text-sm">
<thead>
<tr class="text-left text-gray-500 border-b">
<th class="py-3 px-4">Name</th>
<th class="py-3 px-4">Description</th>
<th class="py-3 px-4">Receipt</th>
<th class="py-3 px-4">Approval</th>
<th class="py-3 px-4">Fuel</th>
<th class="py-3 px-4">Default CC</th>
<th class="py-3 px-4">Account</th>
<th class="py-3 px-4">Status</th>
<th class="py-3 px-4 text-right">Actions</th>
</tr>
</thead>
<tbody>
<tr class="border-b hover:bg-gray-50">
<td class="py-3 px-4 font-medium byx-blue">Meals</td>
<td class="py-3 px-4 text-gray-600">Business meals</td>
<td class="py-3 px-4">Yes</td>
<td class="py-3 px-4">No</td>
<td class="py-3 px-4">No</td>
<td class="py-3 px-4">Commercial</td>
<td class="py-3 px-4">3.1.1.05</td>
<td class="py-3 px-4">
<span class="px-2 py-1 rounded-full text-xs bg-green-100 text-green-700">Active</span>
</td>
<td class="py-3 px-4">
<div class="flex justify-end gap-2">
<button class="p-1 text-blue-500 hover:text-blue-700">
<i data-feather="edit" class="w-4 h-4"></i>
</button>
<button class="p-1 text-gray-500 hover:text-gray-700">
<i data-feather="toggle-right" class="w-4 h-4"></i>
</button>
<button class="p-1 text-red-500 hover:text-red-700">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
<tr class="border-b hover:bg-gray-50">
<td class="py-3 px-4 font-medium byx-blue">Accommodation</td>
<td class="py-3 px-4 text-gray-600">Hotels and lodging</td>
<td class="py-3 px-4">Yes</td>
<td class="py-3 px-4">Yes</td>
<td class="py-3 px-4">No</td>
<td class="py-3 px-4">Commercial</td>
<td class="py-3 px-4">3.1.1.06</td>
<td class="py-3 px-4">
<span class="px-2 py-1 rounded-full text-xs bg-green-100 text-green-700">Active</span>
</td>
<td class="py-3 px-4">
<div class="flex justify-end gap-2">
<button class="p-1 text-blue-500 hover:text-blue-700">
<i data-feather="edit" class="w-4 h-4"></i>
</button>
<button class="p-1 text-gray-500 hover:text-gray-700">
<i data-feather="toggle-right" class="w-4 h-4"></i>
</button>
<button class="p-1 text-red-500 hover:text-red-700">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
<tr class="border-b hover:bg-gray-50">
<td class="py-3 px-4 font-medium byx-blue">Fuel</td>
<td class="py-3 px-4 text-gray-600">Vehicle fuel</td>
<td class="py-3 px-4">Yes</td>
<td class="py-3 px-4">No</td>
<td class="py-3 px-4">Yes</td>
<td class="py-3 px-4">Implementation</td>
<td class="py-3 px-4">3.1.1.07</td>
<td class="py-3 px-4">
<span class="px-2 py-1 rounded-full text-xs bg-green-100 text-green-700">Active</span>
</td>
<td class="py-3 px-4">
<div class="flex justify-end gap-2">
<button class="p-1 text-blue-500 hover:text-blue-700">
<i data-feather="edit" class="w-4 h-4"></i>
</button>
<button class="p-1 text-gray-500 hover:text-gray-700">
<i data-feather="toggle-right" class="w-4 h-4"></i>
</button>
<button class="p-1 text-red-500 hover:text-red-700">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Panel Footer -->
<div class="p-4 border-t text-sm text-gray-500 flex justify-between items-center">
<div>Showing 1 to 3 of 3 entries</div>
<div class="flex gap-2">
<button class="px-3 py-1 border rounded hover:bg-gray-50">Previous</button>
<button class="px-3 py-1 border rounded bg-byx-blue text-white">1</button>
<button class="px-3 py-1 border rounded hover:bg-gray-50">Next</button>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<!-- Modal -->
<div class="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50 hidden">
<div class="bg-white rounded-xl shadow-xl w-full max-w-2xl">
<div class="p-4 border-b flex items-center justify-between">
<div class="flex items-center gap-2">
<i data-feather="file-text" class="w-5 h-5 byx-blue"></i>
<h3 class="font-semibold byx-blue">New Expense Type</h3>
</div>
<button class="p-1 rounded-lg hover:bg-gray-100">
<i data-feather="x" class="w-5 h-5 text-gray-500"></i>
</button>
</div>
<div class="p-4 grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label class="text-sm text-gray-600 mb-1 block">Name</label>
<input type="text" class="w-full rounded-lg border px-3 py-2 focus:outline-none focus:ring-1 focus:ring-blue-500">
</div>
<div>
<label class="text-sm text-gray-600 mb-1 block">Account Code</label>
<input type="text" class="w-full rounded-lg border px-3 py-2 focus:outline-none focus:ring-1 focus:ring-blue-500">
</div>
<div class="md:col-span-2">
<label class="text-sm text-gray-600 mb-1 block">Description</label>
<textarea rows="3" class="w-full rounded-lg border px-3 py-2 focus:outline-none focus:ring-1 focus:ring-blue-500"></textarea>
</div>
<div>
<label class="text-sm text-gray-600 mb-1 block">Default Cost Center</label>
<select class="w-full rounded-lg border px-3 py-2 focus:outline-none focus:ring-1 focus:ring-blue-500">
<option value="">Select</option>
<option value="1">Commercial</option>
<option value="2">Implementation</option>
<option value="3">R&D</option>
</select>
</div>
<div class="flex items-center gap-4">
<label class="flex items-center gap-2 text-sm">
<input type="checkbox" class="rounded text-blue-500">
Requires receipt
</label>
<label class="flex items-center gap-2 text-sm">
<input type="checkbox" class="rounded text-blue-500">
Requires approval
</label>
</div>
<div class="flex items-center gap-4">
<label class="flex items-center gap-2 text-sm">
<input type="checkbox" class="rounded text-blue-500">
Is fuel
</label>
<label class="flex items-center gap-2 text-sm">
<input type="checkbox" checked class="rounded text-blue-500">
Active
</label>
</div>
</div>
<div class="p-4 border-t flex justify-end gap-2">
<button class="px-4 py-2 rounded-lg border hover:bg-gray-50">Cancel</button>
<button class="px-4 py-2 rounded-lg bg-byx-blue text-white hover:bg-opacity-90">Save</button>
</div>
</div>
</div>
<script>
// Initialize Vanta.js background
VANTA.WAVES({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x1a237e,
shininess: 74.00,
waveHeight: 20.00,
waveSpeed: 0.50,
zoom: 0.65
});
// Initialize Feather Icons
feather.replace();
// Simple modal toggle for demo
document.querySelectorAll('[data-modal-toggle]').forEach(button => {
button.addEventListener('click', () => {
document.querySelector('.fixed.inset-0').classList.toggle('hidden');
});
});
</script>
</body>
</html>