data-app / index.html
Sanhaj's picture
undefined - Initial Deployment
fe30f5c verified
Raw History Blame Contribute Delete
23.5 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QuickDataPay - VTU Services</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>
/* Custom CSS for elements that need more styling */
.gradient-bg {
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.drawer {
transition: transform 0.3s ease-in-out;
}
.drawer.closed {
transform: translateX(-100%);
}
.drawer.open {
transform: translateX(0);
}
@media (min-width: 768px) {
.drawer {
transform: translateX(0);
}
}
</style>
</head>
<body class="bg-gray-50">
<!-- Mobile Header -->
<header class="md:hidden gradient-bg text-white p-4 flex justify-between items-center">
<button id="menuBtn" class="text-white focus:outline-none">
<i class="fas fa-bars text-xl"></i>
</button>
<h1 class="text-xl font-bold">QuickDataPay</h1>
<div class="w-6"></div> <!-- Spacer for balance -->
</header>
<!-- Desktop Header -->
<header class="hidden md:flex gradient-bg text-white p-4 justify-between items-center">
<div class="flex items-center space-x-4">
<h1 class="text-2xl font-bold">QuickDataPay</h1>
<nav class="hidden md:flex space-x-6">
<a href="#" class="hover:text-purple-200">Home</a>
<a href="#" class="hover:text-purple-200">Services</a>
<a href="#" class="hover:text-purple-200">Transactions</a>
<a href="#" class="hover:text-purple-200">Profile</a>
</nav>
</div>
<div class="flex items-center space-x-4">
<div class="bg-white text-purple-600 px-3 py-1 rounded-full font-semibold">
₦5,000.00
</div>
<button class="bg-white text-purple-600 px-4 py-1 rounded-full font-semibold">
Fund Wallet
</button>
<div class="w-10 h-10 rounded-full bg-purple-200 flex items-center justify-center">
<i class="fas fa-user text-purple-600"></i>
</div>
</div>
</header>
<!-- Mobile Drawer -->
<div id="mobileDrawer" class="drawer closed fixed inset-y-0 left-0 z-50 w-64 bg-white shadow-lg">
<div class="p-4 border-b">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center">
<i class="fas fa-user text-purple-600"></i>
</div>
<div>
<p class="font-semibold">John Doe</p>
<p class="text-xs text-gray-500">john@example.com</p>
</div>
</div>
</div>
<nav class="p-4">
<a href="#" class="block py-2 px-3 rounded hover:bg-purple-50 text-gray-700">
<i class="fas fa-home mr-3 text-purple-600"></i> Dashboard
</a>
<a href="#" class="block py-2 px-3 rounded hover:bg-purple-50 text-gray-700">
<i class="fas fa-wallet mr-3 text-purple-600"></i> Wallet
</a>
<a href="#" class="block py-2 px-3 rounded hover:bg-purple-50 text-gray-700">
<i class="fas fa-mobile-alt mr-3 text-purple-600"></i> Buy Data
</a>
<a href="#" class="block py-2 px-3 rounded hover:bg-purple-50 text-gray-700">
<i class="fas fa-phone-alt mr-3 text-purple-600"></i> Buy Airtime
</a>
<a href="#" class="block py-2 px-3 rounded hover:bg-purple-50 text-gray-700">
<i class="fas fa-bolt mr-3 text-purple-600"></i> Electricity
</a>
<a href="#" class="block py-2 px-3 rounded hover:bg-purple-50 text-gray-700">
<i class="fas fa-tv mr-3 text-purple-600"></i> Cable TV
</a>
<a href="#" class="block py-2 px-3 rounded hover:bg-purple-50 text-gray-700">
<i class="fas fa-history mr-3 text-purple-600"></i> Transactions
</a>
<a href="#" class="block py-2 px-3 rounded hover:bg-purple-50 text-gray-700">
<i class="fas fa-cog mr-3 text-purple-600"></i> Settings
</a>
<a href="#" class="block py-2 px-3 rounded hover:bg-purple-50 text-gray-700">
<i class="fas fa-sign-out-alt mr-3 text-purple-600"></i> Logout
</a>
</nav>
</div>
<!-- Overlay for mobile drawer -->
<div id="overlay" class="hidden fixed inset-0 bg-black bg-opacity-50 z-40"></div>
<!-- Main Content -->
<div class="md:ml-64">
<div class="p-4 md:p-6">
<!-- Wallet Balance Card -->
<div class="gradient-bg text-white rounded-xl p-6 mb-6 shadow-lg">
<div class="flex justify-between items-center">
<div>
<p class="text-sm opacity-80">Wallet Balance</p>
<p class="text-3xl font-bold mt-1">₦5,000.00</p>
<p class="text-xs opacity-80 mt-2">Last funded: Today, 10:45 AM</p>
</div>
<div class="flex space-x-3">
<button class="bg-white text-purple-600 px-4 py-2 rounded-lg font-semibold text-sm">
Fund Wallet
</button>
<button class="bg-purple-700 text-white px-4 py-2 rounded-lg font-semibold text-sm">
Withdraw
</button>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="grid grid-cols-4 gap-3 mb-6">
<button class="bg-white rounded-lg p-3 shadow-sm text-center hover:shadow-md transition-all">
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i class="fas fa-mobile-alt text-purple-600"></i>
</div>
<p class="text-xs font-medium">Buy Data</p>
</button>
<button class="bg-white rounded-lg p-3 shadow-sm text-center hover:shadow-md transition-all">
<div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i class="fas fa-phone-alt text-blue-600"></i>
</div>
<p class="text-xs font-medium">Buy Airtime</p>
</button>
<button class="bg-white rounded-lg p-3 shadow-sm text-center hover:shadow-md transition-all">
<div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i class="fas fa-bolt text-yellow-600"></i>
</div>
<p class="text-xs font-medium">Electricity</p>
</button>
<button class="bg-white rounded-lg p-3 shadow-sm text-center hover:shadow-md transition-all">
<div class="w-10 h-10 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i class="fas fa-tv text-red-600"></i>
</div>
<p class="text-xs font-medium">Cable TV</p>
</button>
</div>
<!-- Data Plans Section -->
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Data Plans</h2>
<select class="border rounded-lg px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-purple-200">
<option>MTN</option>
<option>Glo</option>
<option>Airtel</option>
<option>9mobile</option>
</select>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<!-- Data Plan Card -->
<div class="service-card bg-white border border-gray-100 rounded-lg p-4 hover:border-purple-200 transition-all cursor-pointer">
<div class="flex justify-between items-start">
<div>
<p class="font-semibold">1GB</p>
<p class="text-xs text-gray-500">30 days</p>
</div>
<div class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">
MTN
</div>
</div>
<p class="text-xl font-bold mt-3">₦1,200</p>
<button class="w-full mt-3 bg-purple-600 text-white py-2 rounded-lg text-sm font-medium hover:bg-purple-700 transition-colors">
Buy Now
</button>
</div>
<!-- Data Plan Card -->
<div class="service-card bg-white border border-gray-100 rounded-lg p-4 hover:border-purple-200 transition-all cursor-pointer">
<div class="flex justify-between items-start">
<div>
<p class="font-semibold">2.5GB</p>
<p class="text-xs text-gray-500">30 days</p>
</div>
<div class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">
MTN
</div>
</div>
<p class="text-xl font-bold mt-3">₦2,500</p>
<button class="w-full mt-3 bg-purple-600 text-white py-2 rounded-lg text-sm font-medium hover:bg-purple-700 transition-colors">
Buy Now
</button>
</div>
<!-- Data Plan Card -->
<div class="service-card bg-white border border-gray-100 rounded-lg p-4 hover:border-purple-200 transition-all cursor-pointer">
<div class="flex justify-between items-start">
<div>
<p class="font-semibold">5GB</p>
<p class="text-xs text-gray-500">30 days</p>
</div>
<div class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">
MTN
</div>
</div>
<p class="text-xl font-bold mt-3">₦4,000</p>
<button class="w-full mt-3 bg-purple-600 text-white py-2 rounded-lg text-sm font-medium hover:bg-purple-700 transition-colors">
Buy Now
</button>
</div>
<!-- Data Plan Card -->
<div class="service-card bg-white border border-gray-100 rounded-lg p-4 hover:border-purple-200 transition-all cursor-pointer">
<div class="flex justify-between items-start">
<div>
<p class="font-semibold">10GB</p>
<p class="text-xs text-gray-500">30 days</p>
</div>
<div class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">
MTN
</div>
</div>
<p class="text-xl font-bold mt-3">₦7,500</p>
<button class="w-full mt-3 bg-purple-600 text-white py-2 rounded-lg text-sm font-medium hover:bg-purple-700 transition-colors">
Buy Now
</button>
</div>
</div>
</div>
<!-- Recent Transactions -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Recent Transactions</h2>
<a href="#" class="text-purple-600 text-sm font-medium">View All</a>
</div>
<div class="space-y-4">
<!-- Transaction Item -->
<div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center">
<i class="fas fa-check text-green-600"></i>
</div>
<div>
<p class="font-medium">MTN 1GB Data</p>
<p class="text-xs text-gray-500">Today, 10:45 AM</p>
</div>
</div>
<div class="text-right">
<p class="font-semibold">-₦1,200</p>
<p class="text-xs text-gray-500">Completed</p>
</div>
</div>
<!-- Transaction Item -->
<div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-phone-alt text-blue-600"></i>
</div>
<div>
<p class="font-medium">Airtel Airtime</p>
<p class="text-xs text-gray-500">Yesterday, 4:30 PM</p>
</div>
</div>
<div class="text-right">
<p class="font-semibold">-₦500</p>
<p class="text-xs text-gray-500">Completed</p>
</div>
</div>
<!-- Transaction Item -->
<div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center">
<i class="fas fa-bolt text-yellow-600"></i>
</div>
<div>
<p class="font-medium">IKEDC Electricity</p>
<p class="text-xs text-gray-500">Yesterday, 11:20 AM</p>
</div>
</div>
<div class="text-right">
<p class="font-semibold">-₦3,750</p>
<p class="text-xs text-gray-500">Completed</p>
</div>
</div>
<!-- Transaction Item -->
<div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center">
<i class="fas fa-plus text-purple-600"></i>
</div>
<div>
<p class="font-medium">Wallet Funding</p>
<p class="text-xs text-gray-500">2 days ago</p>
</div>
</div>
<div class="text-right">
<p class="font-semibold text-green-600">+₦10,000</p>
<p class="text-xs text-gray-500">Successful</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Mobile Bottom Navigation -->
<div class="md:hidden fixed bottom-0 left-0 right-0 bg-white border-t shadow-lg">
<div class="flex justify-around items-center p-2">
<a href="#" class="text-center p-2 text-purple-600">
<i class="fas fa-home block text-xl mb-1"></i>
<span class="text-xs">Home</span>
</a>
<a href="#" class="text-center p-2 text-gray-500">
<i class="fas fa-wallet block text-xl mb-1"></i>
<span class="text-xs">Wallet</span>
</a>
<a href="#" class="text-center p-2 text-gray-500">
<i class="fas fa-exchange-alt block text-xl mb-1"></i>
<span class="text-xs">Transactions</span>
</a>
<a href="#" class="text-center p-2 text-gray-500">
<i class="fas fa-user block text-xl mb-1"></i>
<span class="text-xs">Profile</span>
</a>
</div>
</div>
<!-- Fund Wallet Modal -->
<div id="fundModal" class="hidden fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4">
<div class="bg-white rounded-xl w-full max-w-md">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Fund Wallet</h3>
<button id="closeFundModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Amount</label>
<div class="relative">
<span class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500">₦</span>
<input type="number" placeholder="Enter amount" class="w-full pl-8 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-200">
</div>
</div>
<div class="mb-6">
<label class="block text-sm font-medium text-gray-700 mb-2">Payment Method</label>
<div class="space-y-2">
<label class="flex items-center space-x-3 p-3 border rounded-lg cursor-pointer hover:bg-gray-50">
<input type="radio" name="payment" checked class="text-purple-600 focus:ring-purple-500">
<div class="flex-1">
<p class="font-medium">Paystack</p>
<p class="text-xs text-gray-500">Card, Bank Transfer, USSD</p>
</div>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Paystack_Logo.png/800px-Paystack_Logo.png" alt="Paystack" class="h-6">
</label>
<label class="flex items-center space-x-3 p-3 border rounded-lg cursor-pointer hover:bg-gray-50">
<input type="radio" name="payment" class="text-purple-600 focus:ring-purple-500">
<div class="flex-1">
<p class="font-medium">Flutterwave</p>
<p class="text-xs text-gray-500">Card, Bank Transfer, Mobile Money</p>
</div>
<img src="https://flutterwave.com/images/logo/full.svg" alt="Flutterwave" class="h-6">
</label>
</div>
</div>
<button class="w-full bg-purple-600 text-white py-3 rounded-lg font-medium hover:bg-purple-700 transition-colors">
Proceed to Payment
</button>
</div>
</div>
</div>
<script>
// Mobile drawer toggle
const menuBtn = document.getElementById('menuBtn');
const mobileDrawer = document.getElementById('mobileDrawer');
const overlay = document.getElementById('overlay');
menuBtn.addEventListener('click', () => {
mobileDrawer.classList.toggle('closed');
mobileDrawer.classList.toggle('open');
overlay.classList.toggle('hidden');
});
overlay.addEventListener('click', () => {
mobileDrawer.classList.add('closed');
mobileDrawer.classList.remove('open');
overlay.classList.add('hidden');
});
// Fund wallet modal
const fundButtons = document.querySelectorAll('button:contains("Fund Wallet")');
const fundModal = document.getElementById('fundModal');
const closeFundModal = document.getElementById('closeFundModal');
// This is a simplified version - in a real app you'd need to properly select the buttons
document.querySelectorAll('button').forEach(button => {
if (button.textContent.includes('Fund Wallet')) {
button.addEventListener('click', () => {
fundModal.classList.remove('hidden');
});
}
});
closeFundModal.addEventListener('click', () => {
fundModal.classList.add('hidden');
});
// Network selector functionality
const networkSelector = document.querySelector('select');
if (networkSelector) {
networkSelector.addEventListener('change', (e) => {
// In a real app, this would fetch data plans for the selected network
console.log('Selected network:', e.target.value);
});
}
</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=Sanhaj/data-app" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>