| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>FinTrack - Smart Financial Management</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"> |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> |
| <style> |
| .gradient-bg { |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| } |
| .dashboard-card { |
| transition: all 0.3s ease; |
| } |
| .dashboard-card:hover { |
| transform: translateY(-5px); |
| box-shadow: 0 10px 20px rgba(0,0,0,0.1); |
| } |
| .progress-bar { |
| height: 8px; |
| border-radius: 4px; |
| background-color: #e0e0e0; |
| } |
| .progress-fill { |
| height: 100%; |
| border-radius: 4px; |
| background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); |
| transition: width 0.5s ease; |
| } |
| .tab-active { |
| border-bottom: 3px solid #4f46e5; |
| color: #4f46e5; |
| font-weight: 600; |
| } |
| .input-highlight { |
| border-color: #4f46e5; |
| box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2); |
| } |
| </style> |
| </head> |
| <body class="bg-gray-50 font-sans"> |
| |
| <header class="gradient-bg text-white"> |
| <div class="container mx-auto px-4 py-6"> |
| <div class="flex justify-between items-center"> |
| <div class="flex items-center space-x-2"> |
| <i class="fas fa-wallet text-2xl"></i> |
| <h1 class="text-2xl font-bold">FinTrack</h1> |
| </div> |
| <nav class="hidden md:flex space-x-8"> |
| <a href="#features" class="hover:text-indigo-200 transition">Features</a> |
| <a href="#pricing" class="hover:text-indigo-200 transition">Pricing</a> |
| <a href="#testimonials" class="hover:text-indigo-200 transition">Testimonials</a> |
| </nav> |
| <div class="flex space-x-4"> |
| <button onclick="toggleAuthModal()" class="px-4 py-2 rounded-lg bg-white text-indigo-600 font-medium hover:bg-indigo-50 transition">Sign In</button> |
| <button class="md:hidden" onclick="toggleMobileMenu()"> |
| <i class="fas fa-bars text-2xl"></i> |
| </button> |
| </div> |
| </div> |
| </div> |
| </header> |
|
|
| |
| <div id="mobileMenu" class="hidden bg-white shadow-lg rounded-b-lg"> |
| <div class="container mx-auto px-4 py-3 flex flex-col space-y-3"> |
| <a href="#features" class="py-2 hover:text-indigo-600 transition">Features</a> |
| <a href="#pricing" class="py-2 hover:text-indigo-600 transition">Pricing</a> |
| <a href="#testimonials" class="py-2 hover:text-indigo-600 transition">Testimonials</a> |
| </div> |
| </div> |
|
|
| |
| <section class="gradient-bg text-white py-16"> |
| <div class="container mx-auto px-4 flex flex-col md:flex-row items-center"> |
| <div class="md:w-1/2 mb-10 md:mb-0"> |
| <h2 class="text-4xl md:text-5xl font-bold mb-6">Take Control of Your Finances</h2> |
| <p class="text-xl mb-8 text-indigo-100">Track income, expenses, set savings goals, and achieve financial freedom with our intuitive platform.</p> |
| <div class="flex flex-col sm:flex-row space-y-3 sm:space-y-0 sm:space-x-4"> |
| <button onclick="toggleAuthModal('signup')" class="px-6 py-3 bg-white text-indigo-600 rounded-lg font-medium hover:bg-indigo-50 transition">Start Free Trial</button> |
| <button class="px-6 py-3 border border-white rounded-lg font-medium hover:bg-white hover:bg-opacity-10 transition">Learn More</button> |
| </div> |
| </div> |
| <div class="md:w-1/2 flex justify-center"> |
| <div class="bg-white rounded-xl shadow-2xl p-4 w-full max-w-md"> |
| <img src="https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Dashboard Preview" class="rounded-lg w-full"> |
| </div> |
| </div> |
| </div> |
| </section> |
|
|
| |
| <section id="features" class="py-16 bg-white"> |
| <div class="container mx-auto px-4"> |
| <h2 class="text-3xl font-bold text-center mb-12">Powerful Features</h2> |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> |
| <div class="dashboard-card bg-gray-50 p-6 rounded-xl shadow-sm"> |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mb-4"> |
| <i class="fas fa-chart-line text-indigo-600 text-xl"></i> |
| </div> |
| <h3 class="text-xl font-semibold mb-3">Income & Expense Tracking</h3> |
| <p class="text-gray-600">Easily record all your financial transactions and get real-time insights with beautiful visualizations.</p> |
| </div> |
| <div class="dashboard-card bg-gray-50 p-6 rounded-xl shadow-sm"> |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mb-4"> |
| <i class="fas fa-bullseye text-indigo-600 text-xl"></i> |
| </div> |
| <h3 class="text-xl font-semibold mb-3">Savings Goals</h3> |
| <p class="text-gray-600">Set financial goals and track your progress with automatic reminders and visual progress indicators.</p> |
| </div> |
| <div class="dashboard-card bg-gray-50 p-6 rounded-xl shadow-sm"> |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mb-4"> |
| <i class="fas fa-piggy-bank text-indigo-600 text-xl"></i> |
| </div> |
| <h3 class="text-xl font-semibold mb-3">Auto-Saving</h3> |
| <p class="text-gray-600">Automatically save a percentage of your income with our smart auto-save feature.</p> |
| </div> |
| <div class="dashboard-card bg-gray-50 p-6 rounded-xl shadow-sm"> |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mb-4"> |
| <i class="fas fa-mobile-alt text-indigo-600 text-xl"></i> |
| </div> |
| <h3 class="text-xl font-semibold mb-3">Bank Integration</h3> |
| <p class="text-gray-600">Optional integration with your mobile banking to track transactions automatically.</p> |
| </div> |
| <div class="dashboard-card bg-gray-50 p-6 rounded-xl shadow-sm"> |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mb-4"> |
| <i class="fas fa-calendar-alt text-indigo-600 text-xl"></i> |
| </div> |
| <h3 class="text-xl font-semibold mb-3">Future Planning</h3> |
| <p class="text-gray-600">Plan for future expenses like clothing, subscriptions, and other needs with our forecasting tools.</p> |
| </div> |
| <div class="dashboard-card bg-gray-50 p-6 rounded-xl shadow-sm"> |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mb-4"> |
| <i class="fas fa-chart-pie text-indigo-600 text-xl"></i> |
| </div> |
| <h3 class="text-xl font-semibold mb-3">Profit Analysis</h3> |
| <p class="text-gray-600">Get clear percentage-based insights into your profit margins and financial health.</p> |
| </div> |
| </div> |
| </div> |
| </section> |
|
|
| |
| <section id="pricing" class="py-16 bg-gray-50"> |
| <div class="container mx-auto px-4"> |
| <h2 class="text-3xl font-bold text-center mb-4">Simple, Transparent Pricing</h2> |
| <p class="text-center text-gray-600 max-w-2xl mx-auto mb-12">Start with a 7-day free trial. No credit card required.</p> |
| |
| <div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden"> |
| <div class="gradient-bg p-6 text-white"> |
| <h3 class="text-xl font-semibold">Monthly Membership</h3> |
| <p class="text-indigo-200">Perfect for individuals who want full financial control</p> |
| </div> |
| <div class="p-6"> |
| <div class="flex items-baseline mb-4"> |
| <span class="text-4xl font-bold">$9.99</span> |
| <span class="ml-2 text-gray-600">/month</span> |
| </div> |
| <ul class="space-y-3 mb-6"> |
| <li class="flex items-center"> |
| <i class="fas fa-check-circle text-green-500 mr-2"></i> |
| <span>Unlimited income & expense tracking</span> |
| </li> |
| <li class="flex items-center"> |
| <i class="fas fa-check-circle text-green-500 mr-2"></i> |
| <span>Interactive financial charts</span> |
| </li> |
| <li class="flex items-center"> |
| <i class="fas fa-check-circle text-green-500 mr-2"></i> |
| <span>Savings goals & auto-saving</span> |
| </li> |
| <li class="flex items-center"> |
| <i class="fas fa-check-circle text-green-500 mr-2"></i> |
| <span>Optional bank integration</span> |
| </li> |
| <li class="flex items-center"> |
| <i class="fas fa-check-circle text-green-500 mr-2"></i> |
| <span>Future expense planning</span> |
| </li> |
| </ul> |
| <button onclick="toggleAuthModal('signup')" class="w-full gradient-bg text-white py-3 rounded-lg font-medium hover:opacity-90 transition">Start 7-Day Free Trial</button> |
| </div> |
| </div> |
| </div> |
| </section> |
|
|
| |
| <section id="testimonials" class="py-16 bg-white"> |
| <div class="container mx-auto px-4"> |
| <h2 class="text-3xl font-bold text-center mb-12">What Our Members Say</h2> |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> |
| <div class="bg-gray-50 p-6 rounded-xl shadow-sm"> |
| <div class="flex items-center mb-4"> |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mr-4"> |
| <span class="text-indigo-600 font-bold">JD</span> |
| </div> |
| <div> |
| <h4 class="font-semibold">John Doe</h4> |
| <p class="text-gray-500 text-sm">Small Business Owner</p> |
| </div> |
| </div> |
| <p class="text-gray-600">"FinTrack has completely transformed how I manage my business finances. The profit percentage feature is incredibly insightful."</p> |
| </div> |
| <div class="bg-gray-50 p-6 rounded-xl shadow-sm"> |
| <div class="flex items-center mb-4"> |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mr-4"> |
| <span class="text-indigo-600 font-bold">AS</span> |
| </div> |
| <div> |
| <h4 class="font-semibold">Alice Smith</h4> |
| <p class="text-gray-500 text-sm">Freelancer</p> |
| </div> |
| </div> |
| <p class="text-gray-600">"The auto-saving feature helped me build my emergency fund without even thinking about it. Highly recommended!"</p> |
| </div> |
| <div class="bg-gray-50 p-6 rounded-xl shadow-sm"> |
| <div class="flex items-center mb-4"> |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mr-4"> |
| <span class="text-indigo-600 font-bold">RJ</span> |
| </div> |
| <div> |
| <h4 class="font-semibold">Robert Johnson</h4> |
| <p class="text-gray-500 text-sm">Financial Advisor</p> |
| </div> |
| </div> |
| <p class="text-gray-600">"I recommend FinTrack to all my clients. The bank integration makes tracking transactions effortless."</p> |
| </div> |
| </div> |
| </div> |
| </section> |
|
|
| |
| <div id="authModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> |
| <div class="bg-white rounded-xl shadow-2xl w-full max-w-md overflow-hidden"> |
| <div class="flex justify-between items-center border-b p-4"> |
| <h3 class="text-xl font-semibold" id="modalTitle">Sign In</h3> |
| <button onclick="toggleAuthModal()" class="text-gray-500 hover:text-gray-700"> |
| <i class="fas fa-times"></i> |
| </button> |
| </div> |
| <div class="p-6"> |
| <div class="flex border-b mb-6"> |
| <button id="signinTab" class="px-4 py-2 tab-active" onclick="switchAuthTab('signin')">Sign In</button> |
| <button id="signupTab" class="px-4 py-2 text-gray-600" onclick="switchAuthTab('signup')">Sign Up</button> |
| </div> |
| |
| |
| <form id="signinForm" class="space-y-4"> |
| <div> |
| <label for="loginEmail" class="block text-sm font-medium text-gray-700 mb-1">Email</label> |
| <input type="email" id="loginEmail" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| </div> |
| <div> |
| <label for="loginPassword" class="block text-sm font-medium text-gray-700 mb-1">Password</label> |
| <input type="password" id="loginPassword" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| </div> |
| <div class="flex items-center justify-between"> |
| <div class="flex items-center"> |
| <input type="checkbox" id="rememberMe" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> |
| <label for="rememberMe" class="ml-2 block text-sm text-gray-700">Remember me</label> |
| </div> |
| <a href="#" class="text-sm text-indigo-600 hover:text-indigo-500">Forgot password?</a> |
| </div> |
| <button type="button" onclick="login()" class="w-full gradient-bg text-white py-2 rounded-lg font-medium hover:opacity-90 transition">Sign In</button> |
| </form> |
| |
| |
| <form id="signupForm" class="space-y-4 hidden"> |
| <div> |
| <label for="signupName" class="block text-sm font-medium text-gray-700 mb-1">Full Name</label> |
| <input type="text" id="signupName" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| </div> |
| <div> |
| <label for="signupEmail" class="block text-sm font-medium text-gray-700 mb-1">Email</label> |
| <input type="email" id="signupEmail" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| </div> |
| <div> |
| <label for="signupPassword" class="block text-sm font-medium text-gray-700 mb-1">Password</label> |
| <input type="password" id="signupPassword" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| </div> |
| <div> |
| <label for="signupConfirmPassword" class="block text-sm font-medium text-gray-700 mb-1">Confirm Password</label> |
| <input type="password" id="signupConfirmPassword" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| </div> |
| <div class="flex items-center"> |
| <input type="checkbox" id="acceptTerms" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> |
| <label for="acceptTerms" class="ml-2 block text-sm text-gray-700">I agree to the <a href="#" class="text-indigo-600 hover:text-indigo-500">Terms of Service</a> and <a href="#" class="text-indigo-600 hover:text-indigo-500">Privacy Policy</a></label> |
| </div> |
| <button type="button" onclick="signup()" class="w-full gradient-bg text-white py-2 rounded-lg font-medium hover:opacity-90 transition">Start Free Trial</button> |
| </form> |
| |
| <div class="mt-6 text-center"> |
| <p class="text-sm text-gray-600">Or continue with</p> |
| <div class="mt-4 flex justify-center space-x-4"> |
| <button class="w-10 h-10 rounded-full border flex items-center justify-center hover:bg-gray-50"> |
| <i class="fab fa-google text-red-500"></i> |
| </button> |
| <button class="w-10 h-10 rounded-full border flex items-center justify-center hover:bg-gray-50"> |
| <i class="fab fa-apple text-gray-800"></i> |
| </button> |
| <button class="w-10 h-10 rounded-full border flex items-center justify-center hover:bg-gray-50"> |
| <i class="fab fa-facebook-f text-blue-600"></i> |
| </button> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
|
|
| |
| <div id="dashboard" class="hidden"> |
| |
| <header class="bg-white shadow-sm"> |
| <div class="container mx-auto px-4 py-4 flex justify-between items-center"> |
| <div class="flex items-center space-x-2"> |
| <i class="fas fa-wallet text-2xl text-indigo-600"></i> |
| <h1 class="text-xl font-bold">FinTrack</h1> |
| </div> |
| <div class="flex items-center space-x-4"> |
| <div class="relative"> |
| <button id="notificationsBtn" class="p-2 rounded-full hover:bg-gray-100"> |
| <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 id="notificationsDropdown" class="hidden absolute right-0 mt-2 w-64 bg-white rounded-md shadow-lg z-10"> |
| <div class="p-4 border-b"> |
| <h4 class="font-semibold">Notifications</h4> |
| </div> |
| <div class="max-h-60 overflow-y-auto"> |
| <a href="#" class="block px-4 py-3 hover:bg-gray-50 border-b"> |
| <p class="text-sm">Your savings goal is 75% complete!</p> |
| <p class="text-xs text-gray-500 mt-1">2 hours ago</p> |
| </a> |
| <a href="#" class="block px-4 py-3 hover:bg-gray-50 border-b"> |
| <p class="text-sm">Auto-save transferred $50 to your savings</p> |
| <p class="text-xs text-gray-500 mt-1">Yesterday</p> |
| </a> |
| <a href="#" class="block px-4 py-3 hover:bg-gray-50"> |
| <p class="text-sm">Subscription renewal in 3 days</p> |
| <p class="text-xs text-gray-500 mt-1">2 days ago</p> |
| </a> |
| </div> |
| </div> |
| </div> |
| <div class="relative"> |
| <button id="profileBtn" class="flex items-center space-x-2"> |
| <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center"> |
| <span class="text-indigo-600 font-medium">U</span> |
| </div> |
| <span class="hidden md:inline">User</span> |
| </button> |
| <div id="profileDropdown" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg z-10"> |
| <a href="#" class="block px-4 py-2 hover:bg-gray-50">Profile</a> |
| <a href="#" class="block px-4 py-2 hover:bg-gray-50">Settings</a> |
| <a href="#" class="block px-4 py-2 hover:bg-gray-50 border-t" onclick="logout()">Sign Out</a> |
| </div> |
| </div> |
| </div> |
| </div> |
| </header> |
|
|
| |
| <main class="container mx-auto px-4 py-6"> |
| <div class="flex flex-col md:flex-row space-y-6 md:space-y-0 md:space-x-6"> |
| |
| <aside class="md:w-1/4"> |
| <div class="bg-white rounded-lg shadow-sm p-4 sticky top-6"> |
| <nav class="space-y-2"> |
| <a href="#" class="block px-4 py-2 rounded-lg bg-indigo-50 text-indigo-600 font-medium"> |
| <i class="fas fa-home mr-2"></i> Dashboard |
| </a> |
| <a href="#" class="block px-4 py-2 rounded-lg hover:bg-gray-50"> |
| <i class="fas fa-chart-pie mr-2"></i> Analytics |
| </a> |
| <a href="#" class="block px-4 py-2 rounded-lg hover:bg-gray-50"> |
| <i class="fas fa-exchange-alt mr-2"></i> Transactions |
| </a> |
| <a href="#" class="block px-4 py-2 rounded-lg hover:bg-gray-50"> |
| <i class="fas fa-bullseye mr-2"></i> Goals |
| </a> |
| <a href="#" class="block px-4 py-2 rounded-lg hover:bg-gray-50"> |
| <i class="fas fa-piggy-bank mr-2"></i> Savings |
| </a> |
| <a href="#" class="block px-4 py-2 rounded-lg hover:bg-gray-50"> |
| <i class="fas fa-cog mr-2"></i> Settings |
| </a> |
| </nav> |
| |
| <div class="mt-8 pt-4 border-t"> |
| <h3 class="font-medium mb-2">Quick Actions</h3> |
| <button onclick="toggleTransactionModal()" class="w-full flex items-center justify-center px-4 py-2 gradient-bg text-white rounded-lg mb-2"> |
| <i class="fas fa-plus mr-2"></i> Add Transaction |
| </button> |
| <button onclick="toggleGoalModal()" class="w-full flex items-center justify-center px-4 py-2 border border-indigo-600 text-indigo-600 rounded-lg"> |
| <i class="fas fa-bullseye mr-2"></i> Create Goal |
| </button> |
| </div> |
| </div> |
| </aside> |
| |
| |
| <div class="md:w-3/4 space-y-6"> |
| |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> |
| <div class="dashboard-card bg-white p-4 rounded-lg shadow-sm"> |
| <div class="flex justify-between items-start"> |
| <div> |
| <p class="text-gray-500">Total Balance</p> |
| <h3 class="text-2xl font-bold mt-1">$5,280.50</h3> |
| </div> |
| <div class="p-2 rounded-full bg-green-100 text-green-600"> |
| <i class="fas fa-wallet"></i> |
| </div> |
| </div> |
| <div class="mt-4"> |
| <div class="flex justify-between text-sm"> |
| <span class="text-gray-500">Income</span> |
| <span class="font-medium">$3,500.00</span> |
| </div> |
| <div class="flex justify-between text-sm mt-1"> |
| <span class="text-gray-500">Expenses</span> |
| <span class="font-medium">$1,219.50</span> |
| </div> |
| </div> |
| </div> |
| <div class="dashboard-card bg-white p-4 rounded-lg shadow-sm"> |
| <div class="flex justify-between items-start"> |
| <div> |
| <p class="text-gray-500">Savings</p> |
| <h3 class="text-2xl font-bold mt-1">$1,750.25</h3> |
| </div> |
| <div class="p-2 rounded-full bg-blue-100 text-blue-600"> |
| <i class="fas fa-piggy-bank"></i> |
| </div> |
| </div> |
| <div class="mt-4"> |
| <p class="text-sm text-gray-500 mb-1">Auto-save: 10% of income</p> |
| <div class="progress-bar"> |
| <div class="progress-fill" style="width: 65%"></div> |
| </div> |
| </div> |
| </div> |
| <div class="dashboard-card bg-white p-4 rounded-lg shadow-sm"> |
| <div class="flex justify-between items-start"> |
| <div> |
| <p class="text-gray-500">Net Profit</p> |
| <h3 class="text-2xl font-bold mt-1">$2,280.50</h3> |
| </div> |
| <div class="p-2 rounded-full bg-purple-100 text-purple-600"> |
| <i class="fas fa-chart-line"></i> |
| </div> |
| </div> |
| <div class="mt-4"> |
| <p class="text-sm text-gray-500">Profit margin: <span class="font-medium text-green-600">65.2%</span></p> |
| <div class="progress-bar mt-1"> |
| <div class="progress-fill" style="width: 65%"></div> |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-4"> |
| <div class="dashboard-card bg-white p-4 rounded-lg shadow-sm"> |
| <div class="flex justify-between items-center mb-4"> |
| <h3 class="font-medium">Income vs Expenses</h3> |
| <select class="text-sm border rounded px-2 py-1"> |
| <option>This Month</option> |
| <option>Last Month</option> |
| <option>Last 3 Months</option> |
| </select> |
| </div> |
| <canvas id="incomeExpenseChart" height="250"></canvas> |
| </div> |
| <div class="dashboard-card bg-white p-4 rounded-lg shadow-sm"> |
| <div class="flex justify-between items-center mb-4"> |
| <h3 class="font-medium">Expense Categories</h3> |
| <select class="text-sm border rounded px-2 py-1"> |
| <option>This Month</option> |
| <option>Last Month</option> |
| <option>Last 3 Months</option> |
| </select> |
| </div> |
| <canvas id="expenseCategoryChart" height="250"></canvas> |
| </div> |
| </div> |
| |
| |
| <div class="dashboard-card bg-white rounded-lg shadow-sm overflow-hidden"> |
| <div class="p-4 border-b flex justify-between items-center"> |
| <h3 class="font-medium">Recent Transactions</h3> |
| <button onclick="toggleTransactionModal()" class="text-sm gradient-bg text-white px-3 py-1 rounded hover:opacity-90"> |
| <i class="fas fa-plus mr-1"></i> Add New |
| </button> |
| </div> |
| <div class="divide-y"> |
| <div class="p-4 flex justify-between items-center hover:bg-gray-50"> |
| <div class="flex items-center"> |
| <div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3"> |
| <i class="fas fa-shopping-bag text-red-500"></i> |
| </div> |
| <div> |
| <p class="font-medium">Grocery Shopping</p> |
| <p class="text-sm text-gray-500">May 15, 2023</p> |
| </div> |
| </div> |
| <div class="text-right"> |
| <p class="font-medium text-red-500">-$85.75</p> |
| <p class="text-sm text-gray-500">Food & Dining</p> |
| </div> |
| </div> |
| <div class="p-4 flex justify-between items-center hover:bg-gray-50"> |
| <div class="flex items-center"> |
| <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3"> |
| <i class="fas fa-money-bill-wave text-green-500"></i> |
| </div> |
| <div> |
| <p class="font-medium">Freelance Payment</p> |
| <p class="text-sm text-gray-500">May 14, 2023</p> |
| </div> |
| </div> |
| <div class="text-right"> |
| <p class="font-medium text-green-500">+$1,200.00</p> |
| <p class="text-sm text-gray-500">Income</p> |
| </div> |
| </div> |
| <div class="p-4 flex justify-between items-center hover:bg-gray-50"> |
| <div class="flex items-center"> |
| <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3"> |
| <i class="fas fa-subway text-blue-500"></i> |
| </div> |
| <div> |
| <p class="font-medium">Transportation</p> |
| <p class="text-sm text-gray-500">May 14, 2023</p> |
| </div> |
| </div> |
| <div class="text-right"> |
| <p class="font-medium text-red-500">-$45.50</p> |
| <p class="text-sm text-gray-500">Transport</p> |
| </div> |
| </div> |
| <div class="p-4 flex justify-between items-center hover:bg-gray-50"> |
| <div class="flex items-center"> |
| <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3"> |
| <i class="fas fa-film text-purple-500"></i> |
| </div> |
| <div> |
| <p class="font-medium">Netflix Subscription</p> |
| <p class="text-sm text-gray-500">May 10, 2023</p> |
| </div> |
| </div> |
| <div class="text-right"> |
| <p class="font-medium text-red-500">-$14.99</p> |
| <p class="text-sm text-gray-500">Entertainment</p> |
| </div> |
| </div> |
| </div> |
| <div class="p-4 border-t text-center"> |
| <a href="#" class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View All Transactions</a> |
| </div> |
| </div> |
| |
| |
| <div class="dashboard-card bg-white rounded-lg shadow-sm overflow-hidden"> |
| <div class="p-4 border-b flex justify-between items-center"> |
| <h3 class="font-medium">Your Goals</h3> |
| <button onclick="toggleGoalModal()" class="text-sm gradient-bg text-white px-3 py-1 rounded hover:opacity-90"> |
| <i class="fas fa-plus mr-1"></i> New Goal |
| </button> |
| </div> |
| <div class="divide-y"> |
| <div class="p-4 hover:bg-gray-50"> |
| <div class="flex justify-between items-center mb-2"> |
| <h4 class="font-medium">Emergency Fund</h4> |
| <span class="text-sm font-medium">$3,500 / $5,000</span> |
| </div> |
| <div class="progress-bar"> |
| <div class="progress-fill" style="width: 70%"></div> |
| </div> |
| <div class="flex justify-between text-xs text-gray-500 mt-1"> |
| <span>70% complete</span> |
| <span>Target: June 2023</span> |
| </div> |
| </div> |
| <div class="p-4 hover:bg-gray-50"> |
| <div class="flex justify-between items-center mb-2"> |
| <h4 class="font-medium">New Laptop</h4> |
| <span class="text-sm font-medium">$800 / $1,200</span> |
| </div> |
| <div class="progress-bar"> |
| <div class="progress-fill" style="width: 66%"></div> |
| </div> |
| <div class="flex justify-between text-xs text-gray-500 mt-1"> |
| <span>66% complete</span> |
| <span>Target: August 2023</span> |
| </div> |
| </div> |
| <div class="p-4 hover:bg-gray-50"> |
| <div class="flex justify-between items-center mb-2"> |
| <h4 class="font-medium">Vacation Fund</h4> |
| <span class="text-sm font-medium">$1,200 / $2,500</span> |
| </div> |
| <div class="progress-bar"> |
| <div class="progress-fill" style="width: 48%"></div> |
| </div> |
| <div class="flex justify-between text-xs text-gray-500 mt-1"> |
| <span>48% complete</span> |
| <span>Target: December 2023</span> |
| </div> |
| </div> |
| </div> |
| <div class="p-4 border-t text-center"> |
| <a href="#" class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View All Goals</a> |
| </div> |
| </div> |
| </div> |
| </div> |
| </main> |
| </div> |
|
|
| |
| <div id="transactionModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> |
| <div class="bg-white rounded-xl shadow-2xl w-full max-w-md"> |
| <div class="flex justify-between items-center border-b p-4"> |
| <h3 class="text-xl font-semibold">Add Transaction</h3> |
| <button onclick="toggleTransactionModal()" class="text-gray-500 hover:text-gray-700"> |
| <i class="fas fa-times"></i> |
| </button> |
| </div> |
| <div class="p-6"> |
| <form id="transactionForm" class="space-y-4"> |
| <div> |
| <label class="block text-sm font-medium text-gray-700 mb-1">Transaction Type</label> |
| <div class="flex space-x-4"> |
| <label class="flex items-center"> |
| <input type="radio" name="transactionType" value="income" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500" checked> |
| <span class="ml-2 text-gray-700">Income</span> |
| </label> |
| <label class="flex items-center"> |
| <input type="radio" name="transactionType" value="expense" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500"> |
| <span class="ml-2 text-gray-700">Expense</span> |
| </label> |
| </div> |
| </div> |
| <div> |
| <label for="transactionAmount" class="block text-sm font-medium text-gray-700 mb-1">Amount</label> |
| <div class="relative rounded-md shadow-sm"> |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> |
| <span class="text-gray-500 sm:text-sm">$</span> |
| </div> |
| <input type="number" id="transactionAmount" class="focus:ring-indigo-500 focus:border-indigo-500 block w-full pl-7 pr-12 sm:text-sm border-gray-300 rounded-md" placeholder="0.00"> |
| </div> |
| </div> |
| <div> |
| <label for="transactionCategory" class="block text-sm font-medium text-gray-700 mb-1">Category</label> |
| <select id="transactionCategory" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"> |
| <option>Select a category</option> |
| <optgroup label="Income"> |
| <option>Salary</option> |
| <option>Freelance</option> |
| <option>Investment</option> |
| <option>Gift</option> |
| </optgroup> |
| <optgroup label="Expenses"> |
| <option>Food & Dining</option> |
| <option>Transportation</option> |
| <option>Housing</option> |
| <option>Entertainment</option> |
| <option>Shopping</option> |
| <option>Utilities</option> |
| <option>Healthcare</option> |
| </optgroup> |
| </select> |
| </div> |
| <div> |
| <label for="transactionDate" class="block text-sm font-medium text-gray-700 mb-1">Date</label> |
| <input type="date" id="transactionDate" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"> |
| </div> |
| <div> |
| <label for="transactionDescription" class="block text-sm font-medium text-gray-700 mb-1">Description</label> |
| <input type="text" id="transactionDescription" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md" placeholder="Optional"> |
| </div> |
| <div class="flex items-center"> |
| <input type="checkbox" id="autoSaveTransaction" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> |
| <label for="autoSaveTransaction" class="ml-2 block text-sm text-gray-700">Auto-save 10% of this income</label> |
| </div> |
| <div class="pt-4"> |
| <button type="button" onclick="addTransaction()" class="w-full gradient-bg text-white py-2 rounded-lg font-medium hover:opacity-90 transition">Add Transaction</button> |
| </div> |
| </form> |
| </div> |
| </div> |
| </div> |
|
|
| |
| <div id="goalModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> |
| <div class="bg-white rounded-xl shadow-2xl w-full max-w-md"> |
| <div class="flex justify-between items-center border-b p-4"> |
| <h3 class="text-xl font-semibold">Create New Goal</h3> |
| <button onclick="toggleGoalModal()" class="text-gray-500 hover:text-gray-700"> |
| <i class="fas fa-times"></i> |
| </button> |
| </div> |
| <div class="p-6"> |
| <form id="goalForm" class="space-y-4"> |
| <div> |
| <label for="goalName" class="block text-sm font-medium text-gray-700 mb-1">Goal Name</label> |
| <input type="text" id="goalName" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md" placeholder="e.g. Vacation Fund"> |
| </div> |
| <div> |
| <label for="goalTarget" class="block text-sm font-medium text-gray-700 mb-1">Target Amount</label> |
| <div class="relative rounded-md shadow-sm"> |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> |
| <span class="text-gray-500 sm:text-sm">$</span> |
| </div> |
| <input type="number" id="goalTarget" class="focus:ring-indigo-500 focus:border-indigo-500 block w-full pl-7 pr-12 sm:text-sm border-gray-300 rounded-md" placeholder="0.00"> |
| </div> |
| </div> |
| <div> |
| <label for="goalCurrent" class="block text-sm font-medium text-gray-700 mb-1">Current Amount</label> |
| <div class="relative rounded-md shadow-sm"> |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> |
| <span class="text-gray-500 sm:text-sm">$</span> |
| </div> |
| <input type="number" id="goalCurrent" class="focus:ring-indigo-500 focus:border-indigo-500 block w-full pl-7 pr-12 sm:text-sm border-gray-300 rounded-md" placeholder="0.00"> |
| </div> |
| </div> |
| <div> |
| <label for="goalDate" class="block text-sm font-medium text-gray-700 mb-1">Target Date</label> |
| <input type="date" id="goalDate" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"> |
| </div> |
| <div class="flex items-center"> |
| <input type="checkbox" id="autoSaveGoal" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> |
| <label for="autoSaveGoal" class="ml-2 block text-sm text-gray-700">Set up auto-saving for this goal</label> |
| </div> |
| <div id="autoSaveOptions" class="hidden pl-6 space-y-2"> |
| <div> |
| <label for="autoSavePercentage" class="block text-sm font-medium text-gray-700 mb-1">Percentage of income</label> |
| <div class="flex items-center"> |
| <input type="range" id="autoSavePercentage" min="1" max="50" value="10" class="w-full"> |
| <span id="percentageValue" class="ml-2 text-sm font-medium">10%</span> |
| </div> |
| </div> |
| <div> |
| <label for="autoSaveFrequency" class="block text-sm font-medium text-gray-700 mb-1">Frequency</label> |
| <select id="autoSaveFrequency" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"> |
| <option>Every income transaction</option> |
| <option>Weekly</option> |
| <option>Monthly</option> |
| </select> |
| </div> |
| </div> |
| <div class="pt-4"> |
| <button type="button" onclick="addGoal()" class="w-full gradient-bg text-white py-2 rounded-lg font-medium hover:opacity-90 transition">Create Goal</button> |
| </div> |
| </form> |
| </div> |
| </div> |
| </div> |
|
|
| |
| <div id="bankModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> |
| <div class="bg-white rounded-xl shadow-2xl w-full max-w-md"> |
| <div class="flex justify-between items-center border-b p-4"> |
| <h3 class="text-xl font-semibold">Connect Your Bank</h3> |
| <button onclick="toggleBankModal()" class="text-gray-500 hover:text-gray-700"> |
| <i class="fas fa-times"></i> |
| </button> |
| </div> |
| <div class="p-6"> |
| <div class="mb-6"> |
| <p class="text-gray-600 mb-4">Securely connect your bank account to automatically track transactions.</p> |
| <div class="flex items-center p-3 border rounded-lg mb-3 hover:border-indigo-500 cursor-pointer"> |
| <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3"> |
| <i class="fas fa-university text-blue-500"></i> |
| </div> |
| <div> |
| <p class="font-medium">Bank Account</p> |
| <p class="text-sm text-gray-500">Connect directly to your bank</p> |
| </div> |
| </div> |
| <div class="flex items-center p-3 border rounded-lg hover:border-indigo-500 cursor-pointer"> |
| <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3"> |
| <i class="fas fa-mobile-alt text-green-500"></i> |
| </div> |
| <div> |
| <p class="font-medium">Mobile Banking</p> |
| <p class="text-sm text-gray-500">Link with your m-banking app</p> |
| </div> |
| </div> |
| </div> |
| <div class="border-t pt-4"> |
| <p class="text-sm text-gray-500 mb-4">We use bank-level security to protect your data. Your login details are never stored.</p> |
| <button class="w-full border border-indigo-600 text-indigo-600 py-2 rounded-lg font-medium hover:bg-indigo-50 transition">Continue</button> |
| </div> |
| </div> |
| </div> |
| </div> |
|
|
| |
| <footer class="bg-gray-800 text-white py-12"> |
| <div class="container mx-auto px-4"> |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> |
| <div> |
| <div class="flex items-center space-x-2 mb-4"> |
| <i class="fas fa-wallet text-2xl text-indigo-400"></i> |
| <h3 class="text-xl font-bold">FinTrack</h3> |
| </div> |
| <p class="text-gray-400">Take control of your finances with our intuitive money management platform.</p> |
| </div> |
| <div> |
| <h4 class="text-lg font-semibold mb-4">Product</h4> |
| <ul class="space-y-2"> |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Features</a></li> |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Pricing</a></li> |
| <li><a href="#" class="text-gray-400 hover:text-white transition">FAQ</a></li> |
| </ul> |
| </div> |
| <div> |
| <h4 class="text-lg font-semibold mb-4">Company</h4> |
| <ul class="space-y-2"> |
| <li><a href="#" class="text-gray-400 hover:text-white transition">About Us</a></li> |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Careers</a></li> |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li> |
| </ul> |
| </div> |
| <div> |
| <h4 class="text-lg font-semibold mb-4">Legal</h4> |
| <ul class="space-y-2"> |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Privacy Policy</a></li> |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Terms of Service</a></li> |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Security</a></li> |
| </ul> |
| </div> |
| </div> |
| <div class="border-t border-gray-700 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center"> |
| <p class="text-gray-400 mb-4 md:mb-0">© 2023 FinTrack. All rights reserved.</p> |
| <div class="flex space-x-6"> |
| <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-facebook-f"></i></a> |
| <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter"></i></a> |
| <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-instagram"></i></a> |
| <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-linkedin-in"></i></a> |
| </div> |
| </div> |
| </div> |
| </footer> |
|
|
| <script> |
| |
| function toggleMobileMenu() { |
| const menu = document.getElementById('mobileMenu'); |
| menu.classList.toggle('hidden'); |
| } |
| |
| |
| function toggleAuthModal(tab = 'signin') { |
| const modal = document.getElementById('authModal'); |
| modal.classList.toggle('hidden'); |
| |
| if (tab === 'signup') { |
| switchAuthTab('signup'); |
| } |
| } |
| |
| function switchAuthTab(tab) { |
| const signinForm = document.getElementById('signinForm'); |
| const signupForm = document.getElementById('signupForm'); |
| const signinTab = document.getElementById('signinTab'); |
| const signupTab = document.getElementById('signupTab'); |
| const modalTitle = document.getElementById('modalTitle'); |
| |
| if (tab === 'signin') { |
| signinForm.classList.remove('hidden'); |
| signupForm.classList.add('hidden'); |
| signinTab.classList.add('tab-active'); |
| signinTab.classList.remove('text-gray-600'); |
| signupTab.classList.remove('tab-active'); |
| signupTab.classList.add('text-gray-600'); |
| modalTitle.textContent = 'Sign In'; |
| } else { |
| signinForm.classList.add('hidden'); |
| signupForm.classList.remove('hidden'); |
| signinTab.classList.remove('tab-active'); |
| signinTab.classList.add('text-gray-600'); |
| signupTab.classList.add('tab-active'); |
| signupTab.classList.remove('text-gray-600'); |
| modalTitle.textContent = 'Sign Up'; |
| } |
| } |
| |
| |
| function login() { |
| const email = document.getElementById('loginEmail').value; |
| const password = document.getElementById('loginPassword').value; |
| |
| if (email && password) { |
| |
| toggleAuthModal(); |
| document.getElementById('dashboard').classList.remove('hidden'); |
| document.querySelector('body > section').classList.add('hidden'); |
| document.querySelector('footer').classList.add('hidden'); |
| |
| |
| initCharts(); |
| } else { |
| alert('Please enter both email and password'); |
| } |
| } |
| |
| |
| function signup() { |
| const name = document.getElementById('signupName').value; |
| const email = document.getElementById('signupEmail').value; |
| const password = document.getElementById('signupPassword').value; |
| const confirmPassword = document.getElementById('signupConfirmPassword').value; |
| const acceptTerms = document.getElementById('acceptTerms').checked; |
| |
| if (!name || !email || !password || !confirmPassword) { |
| alert('Please fill in all fields'); |
| return; |
| } |
| |
| if (password !== confirmPassword) { |
| alert('Passwords do not match'); |
| return; |
| } |
| |
| if (!acceptTerms) { |
| alert('You must accept the terms and conditions'); |
| return; |
| } |
| |
| |
| toggleAuthModal(); |
| document.getElementById('dashboard').classList.remove('hidden'); |
| document.querySelector('body > section').classList.add('hidden'); |
| document.querySelector('footer').classList.add('hidden'); |
| |
| |
| initCharts(); |
| } |
| |
| |
| function logout() { |
| document.getElementById('dashboard').classList.add('hidden'); |
| document.querySelector('body > section').classList.remove('hidden'); |
| document.querySelector('footer').classList.remove('hidden'); |
| } |
| |
| |
| function toggleTransactionModal() { |
| const modal = document.getElementById('transactionModal'); |
| modal.classList.toggle('hidden'); |
| } |
| |
| function addTransaction() { |
| |
| toggleTransactionModal(); |
| alert('Transaction added successfully!'); |
| |
| } |
| |
| |
| function toggleGoalModal() { |
| const modal = document.getElementById('goalModal'); |
| modal.classList.toggle('hidden'); |
| } |
| |
| function addGoal() { |
| |
| toggleGoalModal(); |
| alert('Goal created successfully!'); |
| |
| } |
| |
| |
| function toggleBankModal() { |
| const modal = document.getElementById('bankModal'); |
| modal.classList.toggle('hidden'); |
| } |
| |
| |
| document.getElementById('autoSaveGoal').addEventListener('change', function() { |
| const options = document.getElementById('autoSaveOptions'); |
| if (this.checked) { |
| options.classList.remove('hidden'); |
| } else { |
| options.classList.add('hidden'); |
| } |
| }); |
| |
| |
| document.getElementById('autoSavePercentage').addEventListener('input', function() { |
| document.getElementById('percentageValue').textContent = this.value + '%'; |
| }); |
| |
| |
| document.getElementById('notificationsBtn').addEventListener('click', function(e) { |
| e.stopPropagation(); |
| document.getElementById('notificationsDropdown').classList.toggle('hidden'); |
| document.getElementById('profileDropdown').classList.add('hidden'); |
| }); |
| |
| |
| document.getElementById('profileBtn').addEventListener('click', function(e) { |
| e.stopPropagation(); |
| document.getElementById('profileDropdown').classList.toggle('hidden'); |
| document.getElementById('notificationsDropdown').classList.add('hidden'); |
| }); |
| |
| |
| document.addEventListener('click', function() { |
| document.getElementById('notificationsDropdown').classList.add('hidden'); |
| document.getElementById('profileDropdown').classList.add('hidden'); |
| }); |
| |
| |
| function initCharts() { |
| |
| const incomeExpenseCtx = document.getElementById('incomeExpenseChart').getContext('2d'); |
| const incomeExpenseChart = new Chart(incomeExpenseCtx, { |
| type: 'bar', |
| data: { |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], |
| datasets: [ |
| { |
| label: 'Income', |
| data: [2500, 2800, 3200, 2900, 3500, 3800], |
| backgroundColor: '#4ade80', |
| borderRadius: 4 |
| }, |
| { |
| label: 'Expenses', |
| data: [1800, 2100, 2400, 2200, 2500, 2700], |
| backgroundColor: '#f87171', |
| borderRadius: 4 |
| } |
| ] |
| }, |
| options: { |
| responsive: true, |
| plugins: { |
| legend: { |
| position: 'top', |
| }, |
| tooltip: { |
| mode: 'index', |
| intersect: false, |
| } |
| }, |
| scales: { |
| x: { |
| grid: { |
| display: false |
| } |
| }, |
| y: { |
| beginAtZero: true, |
| grid: { |
| drawBorder: false |
| } |
| } |
| } |
| } |
| }); |
| |
| |
| const expenseCategoryCtx = document.getElementById('expenseCategoryChart').getContext('2d'); |
| const expenseCategoryChart = new Chart(expenseCategoryCtx, { |
| type: 'doughnut', |
| data: { |
| labels: ['Housing', 'Food', 'Transport', 'Entertainment', 'Utilities', 'Others'], |
| datasets: [{ |
| data: [35, 25, 15, 10, 10, 5], |
| backgroundColor: [ |
| '#6366f1', |
| '#8b5cf6', |
| '#ec4899', |
| '#f43f5e', |
| '#f97316', |
| '#f59e0b' |
| ], |
| borderWidth: 0 |
| }] |
| }, |
| options: { |
| responsive: true, |
| plugins: { |
| legend: { |
| position: 'right', |
| } |
| }, |
| cutout: '70%' |
| } |
| }); |
| } |
| |
| |
| document.querySelectorAll('input, select, textarea').forEach(input => { |
| input.addEventListener('focus', function() { |
| this.classList.add('input-highlight'); |
| }); |
| input.addEventListener('blur', function() { |
| this.classList.remove('input-highlight'); |
| }); |
| }); |
| </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=Triovance/finance" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> |
| </html> |