Here's an enhanced interactive banking app with the features you requested, all in a single HTML file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Monochrome Banking Pro</title>
<style>
:root {
--primary-color: #000;
--secondary-color: #fff;
--accent-color: #333;
--text-color: #000;
--background-color: #fff;
--shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: var(--background-color);
color: var(--text-color);
min-height: 100vh;
padding-bottom: 80px;
}
.app-container {
max-width: 480px;
margin: 0 auto;
padding: 20px;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
}
.logo {
font-weight: 800;
font-size: 24px;
letter-spacing: -1px;
}
.profile {
width: 40px;
height: 40px;
background-color: var(--accent-color);
border-radius: 50%;
cursor: pointer;
}
.balance-card {
background-color: var(--primary-color);
color: var(--secondary-color);
padding: 30px;
border-radius: 16px;
margin-bottom: 30px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
}
.balance-card::after {
content: '';
position: absolute;
top: 0;
right: 0;
width: 100px;
height: 100px;
background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1));
border-radius: 50%;
transform: translate(50%, -50%);
}
.balance-label {
font-size: 14px;
opacity: 0.8;
margin-bottom: 10px;
}
.balance-amount {
font-size: 36px;
font-weight: 700;
margin-bottom: 20px;
}
.card-number {
font-size: 14px;
letter-spacing: 2px;
opacity: 0.8;
}
.card-switcher {
display: flex;
gap: 10px;
margin-top: 15px;
}
.card-dot {
width: 8px;
height: 8px;
background-color: rgba(255,255,255,0.3);
border-radius: 50%;
cursor: pointer;
transition: 0.3s;
}
.card-dot.active {
background-color: var(--secondary-color);
transform: scale(1.3);
}
.actions {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
margin-bottom: 30px;
}
.action-btn {
display: flex;
flex-direction: column;
align-items: center;
background: none;
border: none;
cursor: pointer;
transition: 0.2s;
}
.action-btn:hover {
transform: translateY(-2px);
}
.action-icon {
width: 50px;
height: 50px;
background-color: var(--accent-color);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 8px;
color: var(--secondary-color);
font-size: 20px;
}
.action-label {
font-size: 12px;
color: var(--text-color);
}
.section {
margin: 30px 0;
}
.section-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 15px;
display: flex;
justify-content: space-between;
align-items: center;
}
.view-all {
font-size: 12px;
color: var(--primary-color);
opacity: 0.6;
cursor: pointer;
}
.shops-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.shop-item {
background: var(--secondary-color);
border: 1px solid rgba(0,0,0,0.1);
border-radius: 12px;
padding: 15px;
text-align: center;
cursor: pointer;
transition: 0.3s;
}
.shop-item:hover {
transform: translateY(-3px);
box-shadow: var(--shadow);
}
.shop-image {
width: 80px;
height: 80px;
background-color: var(--accent-color);
border-radius: 10px;
margin: 0 auto 10px;
display: flex;
align-items: center;
justify-content: center;
color: var(--secondary-color);
font-size: 24px;
}
.shop-title {
font-weight: 500;
margin-bottom: 5px;
}
.shop-price {
color: #34c759;
font-weight: 600;
}
.transaction {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.transaction-info {
display: flex;
align-items: center;
}
.transaction-icon {
width: 40px;
height: 40px;
background-color: var(--accent-color);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
color: var(--secondary-color);
}
.transaction-name {
font-weight: 500;
margin-bottom: 4px;
}
.transaction-date {
font-size: 12px;
opacity: 0.6;
}
.transaction-amount {
font-weight: 600;
}
.transaction-amount.negative {
color: #ff3b30;
}
.transaction-amount.positive {
color: #34c759;
}
nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: var(--secondary-color);
display: flex;
justify-content: space-around;
padding: 15px 0;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
color: var(--text-color);
transition: 0.3s;
}
.nav-item:hover {
transform: translateY(-2px);
}
.nav-icon {
font-size: 20px;
margin-bottom: 5px;
}
.nav-label {
font-size: 12px;
}
.active {
color: var(--primary-color);
font-weight: 600;
}
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
}
.modal-content {
background: var(--secondary-color);
padding: 30px;
border-radius: 16px;
max-width: 90%;
width: 400px;
max-height: 90vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.close-btn {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: var(--text-color);
}
.tax-report {
background: #f5f5f5;
padding: 15px;
border-radius: 10px;
margin: 15px 0;
}
.hidden {
display: none;
}
</style>
</head>
<body>
<div class="app-container">
<header>
<div class="logo">monochrome</div>
<div class="profile" onclick="showProfile()"></div>
</header>
<div class="balance-card">
<div class="balance-label">Total Balance</div>
<div class="balance-amount" id="current-balance">$4,250.75</div>
<div class="card-number" id="current-card">**** **** **** 5678</div>
<div class="card-switcher" id="card-switcher">
<div class="card-dot active" onclick="switchCard(0)"></div>
<div class="card-dot" onclick="switchCard(1)"></div>
<div class="card-dot" onclick="switchCard(2)"></div>
</div>
</div>
<div class="actions">
<button class="action-btn" onclick="showSendMoney()">
<div class="action-icon">↑</div>
<span class="action-label">Send</span>
</button>
<button class="action-btn" onclick="showReceiveMoney()">
<div class="action-icon">↓</div>
<span class="action-label">Receive</span>
</button>
<button class="action-btn" onclick="showTopUp()">
<div class="action-icon">+</div>
<span class="action-label">Top Up</span>
</button>
<button class="action-btn" onclick="showTaxReport()">
<div class="action-icon">📊</div>
<span class="action-label">Taxes</span>
</button>
</div>
<div class="section">
<div class="section-title">
<span>Online Shops</span>
<span class="view-all" onclick="showAllShops()">View All</span>
</div>
<div class="shops-grid" id="shops-grid">
<!-- Shops will be populated via JS -->
</div>
</div>
<div class="section">
<div class="section-title">
<span>Recent Transactions</span>
<span class="view-all" onclick="showAllTransactions()">View All</span>
</div>
<div id="transactions-container">
<!-- Transactions will be populated via JS -->
</div>
</div>
</div>
<nav>
<a href="#" class="nav-item active">
<div class="nav-icon">🏠</div>
<div class="nav-label">Home</div>
</a>
<a href="#" class="nav-item">
<div class="nav-icon">📊</div>
<div class="nav-label">Stats</div>
</a>
<a href="#" class="nav-item">
<div class="nav-icon">💳</div>
<div class="nav-label">Cards</div>
</a>
<a href="#" class="nav-item">
<div class="nav-icon">⚙️</div>
<div class="nav-label">Settings</div>
</a>
</nav>
<div id="send-money-modal" class="modal hidden">
<div class="modal-content">
<div class="modal-header">
<h2>Send Money</h2>
<button class="close-btn" onclick="closeModal('send-money-modal')">×</button>
</div>
<div>
<p>Select recipient and amount</p>
<!-- Add send money form here -->
</div>
</div>
</div>
<div id="tax-report-modal" class="modal hidden">
<div class="modal-content">
<div class="modal-header">
<h2>Tax Report</h2>
<button class="close-btn" onclick="closeModal('tax-report-modal')">×</button>
</div>
<div class="tax-report">
<h3>Annual Tax Summary</h3>
<p>Total Income: $45,000</p>
<p>Taxable Amount: $38,250</p>
<p>Estimated Tax: $9,562</p>
<button onclick="fileTaxes()" style="margin-top: 15px; padding: 10px; background: #000; color: white; border: none; border-radius: 8px; cursor: pointer;">
File Taxes Now
</button>
</div>
</div>
</div>
<script>
// Initial data
let cards = [
{ number: '**** **** **** 5678', balance: 4250.75, color: '#000' },
{ number: '**** **** **** 9012', balance: 1200.50, color: '#1a1a1a' },
{ number: '**** **** **** 3456', balance: 8000.00, color: '#333' }
];
let transactions = [
{ name: 'Coffee Shop', date: 'Today, 9:15 AM', amount: -4.50, icon: '☕' },
{ name: 'Grocery Store', date: 'Yesterday, 6:30 PM', amount: -32.75, icon: '🛒' },
{ name: 'Salary Deposit', date: 'Jul 15, 2025', amount: +2450.00, icon: '💼' },
{ name: 'Rent Payment', date: 'Jul 10, 2025', amount: -1200.00, icon: '🏠' }
];
// Shop items
const shopItems = [
{ name: 'Electronics', price: 499.99, icon: '📱' },
{ name: 'Clothing', price: 129.99, icon: '👕' },
{ name: 'Groceries', price: 89.99, icon: '🛒' },
{ name: 'Travel', price: 299.99, icon: '✈️' }
];
// Initialize
document.addEventListener('DOMContentLoaded', function() {
updateBalance();
renderShops();
renderTransactions();
});
// Card switching
function switchCard(index) {
cards.forEach((_, i) => {
document.querySelectorAll('.card-dot')[i].classList.toggle('active', i === index);
});
document.getElementById('current-card').textContent = cards[index].number;
updateBalance();
}
// Update balance display
function updateBalance() {
const currentCard = cards.find((_, i) =>
document.querySelectorAll('.card-dot')[i].classList.contains('active')
);
document.getElementById('current-balance').textContent = `$${currentCard.balance.toFixed(2)}`;
}
// Render shops
function renderShops() {
const container = document.getElementById('shops-grid');
container.innerHTML = shopItems.map(item => `
<div class="shop-item" onclick="buyItem('${item.name}', ${item.price})">
<div class="shop-image">${item.icon}</div>
<div class="shop-title">${item.name}</div>
<div class="shop-price">$${item.price.toFixed(2)}</div>
</div>
`).join('');
}
// Render transactions
function renderTransactions() {
const container = document.getElementById('transactions-container');
container.innerHTML = transactions.map(tx => `
<div class="transaction">
<div class="transaction-info">
<div class="transaction-icon">${tx.icon}</div>
<div>
<div class="transaction-name">${tx.name}</div>
<div class="transaction-date">${tx.date}</div>
</div>
</div>
<div class="transaction-amount ${tx.amount < 0 ? 'negative' : 'positive'}">
$${Math.abs(tx.amount).toFixed(2)}
</div>
</div>
`).join('');
}
// Buy item function
function buyItem(name, price) {
const currentCard = cards.find((_, i) =>
document.querySelectorAll('.card-dot')[i].classList.contains('active')
);
if (currentCard.balance >= price) {
currentCard.balance -= price;
transactions.unshift({
name: name,
date: new Date().toLocaleString('en-US', {
weekday: 'short',
hour: 'numeric',
minute: 'numeric',
hour12: true
}).replace('AM', '').replace('PM', ''),
amount: -price,
icon: shopItems.find(item => item.name === name).icon
});
updateBalance();
renderTransactions();
alert(`Purchase successful! New balance: $${currentCard.balance.toFixed(2)}`);
} else {
alert('Insufficient funds!');
}
}
// Show tax report
function showTaxReport() {
document.getElementById('tax-report-modal').classList.remove('hidden');
}
// File taxes
function fileTaxes() {
alert('Taxes filed successfully! You saved $1,200 this year.');
closeModal('tax-report-modal');
}
// Modal functions
function closeModal(id) {
document.getElementById(id).classList.add('hidden');
}
// Additional demo functions
function showSendMoney() { alert('Send money feature would be implemented here'); }
function showReceiveMoney() { alert('Receive money feature would be implemented here'); }
function showTopUp() { alert('Top up feature would be implemented here'); }
function showProfile() { alert('Profile management would be here'); }
function showAllShops() { alert('Full shop directory would open here'); }
function showAllTransactions() { alert('Full transaction history would show here'); }
</script>
</body>
</html>
Key features included:
- Multiple credit card support with balance tracking
- Interactive shop items that affect balance
- Transaction history updates in real-time
- Tax reporting system
- Responsive design with hover effects
- Modern UI with subtle animations
- Persistent balance tracking across interactions
- Modal system for features like tax filing
- Visual feedback for user actions
- Clean monochrome design with contrast
The app includes:
- Balance tracking across multiple cards
- Interactive shop purchases
- Transaction history updates
- Tax filing simulation
- Responsive grid layouts
- Hover animations
- Modern icon usage
- Card switching functionality
All features are contained in a single HTML file with embedded CSS and JavaScript. The design maintains the sleek black and white aesthetic while adding interactive elements and visual feedback.