minvestus / index.html
ZAMINVEST's picture
add wallet , profile and more investment plans , give clear option for adim to add money in the wallet hence deposided, substract hence withdrawn and approve or reject - Follow Up Deployment
8a51c37 verified
Raw
History Blame Contribute Delete
47.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vvmm - Zambian Investment Platform</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.transaction-card:nth-child(odd) {
background-color: #f8fafc;
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-3">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="trending-up" class="w-8 h-8"></i>
<span class="text-xl font-bold">vvmm</span>
</div>
<div class="hidden md:flex space-x-6">
<a href="#home" class="hover:text-blue-200 font-medium">Home</a>
<a href="#invest" class="hover:text-blue-200 font-medium">Invest</a>
<a href="#withdraw" class="hover:text-blue-200 font-medium">Withdraw</a>
<a href="#team" class="hover:text-blue-200 font-medium">My Team</a>
<a href="#transactions" class="hover:text-blue-200 font-medium">Transactions</a>
<a href="#proof" class="hover:text-blue-200 font-medium">Payment Proof</a>
<a href="#wallet" class="hover:text-blue-200 font-medium">My Wallet</a>
<a href="#profile" class="hover:text-blue-200 font-medium">My Profile</a>
<a href="admin.html" class="hidden hover:text-blue-200 font-medium" id="adminLink">Admin Dashboard</a>
</div>
<div class="flex items-center space-x-4">
<button id="loginBtn" class="bg-white text-blue-800 px-4 py-2 rounded-lg font-medium hover:bg-blue-100 transition">
Login
</button>
<button id="signupBtn" class="hidden md:block bg-blue-500 text-white px-4 py-2 rounded-lg font-medium hover:bg-blue-600 transition" onclick="showSignupModal()">
Sign Up
</button>
<button id="logoutBtn" class="hidden bg-red-500 text-white px-4 py-2 rounded-lg font-medium hover:bg-red-600 transition">
Logout
</button>
<button class="md:hidden">
<i data-feather="menu" class="w-6 h-6"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="gradient-bg text-white py-16 md:py-24">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-10 md:mb-0" data-aos="fade-right">
<img src="http://static.photos/finance/640x360/1" alt="Investment Growth" class="rounded-lg shadow-xl mb-6 w-full">
<h1 class="text-4xl md:text-5xl font-bold mb-4">Grow Your Money with vvmm</h1>
<p class="text-xl mb-8 text-blue-100">Zambia's trusted investment platform with Airtel Money payments</p>
<div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
<button class="bg-white text-blue-800 px-6 py-3 rounded-lg font-bold hover:bg-blue-100 transition">
Start Investing
</button>
<button class="border-2 border-white text-white px-6 py-3 rounded-lg font-bold hover:bg-white hover:text-blue-800 transition">
Learn More
</button>
</div>
</div>
<div class="md:w-1/2" data-aos="fade-left">
<img src="http://static.photos/people/640x360/2" alt="Happy Investor" class="rounded-lg shadow-xl mb-6 w-full">
<div class="bg-white rounded-xl shadow-2xl p-6 text-gray-800">
<div class="bg-blue-100 p-4 rounded-lg mb-4">
<h4 class="font-bold mb-2">Official Payment Details:</h4>
<p class="text-sm"><span class="font-semibold">Name:</span> Martin Mutale</p>
<p class="text-sm"><span class="font-semibold">Number:</span> +260978310594 (Airtel Money)</p>
<p class="text-sm"><span class="font-semibold">Minimum:</span> K280</p>
</div>
<h3 class="text-xl font-bold mb-4">Investment Calculator</h3>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Amount (ZMW)</label>
<input type="number" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="280">
<p class="text-sm text-gray-500 mt-1">Minimum: K280</p>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Duration</label>
<select class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>7 days</option>
<option>14 days</option>
<option>30 days</option>
</select>
</div>
<div class="bg-blue-50 p-4 rounded-lg mb-4">
<p class="text-gray-700">Estimated Return: <span class="font-bold">K315</span></p>
</div>
<button class="w-full gradient-bg text-white py-3 rounded-lg font-bold hover:bg-blue-700 transition mb-4"
onclick="processPayment(280, '+260978310594')">
Pay via Airtel Money
</button>
<button onclick="showWalletHistory()" class="w-full bg-gray-200 text-gray-800 py-3 rounded-lg font-bold hover:bg-gray-300 transition">
View Wallet History
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Profile Section -->
<section class="py-16 bg-white" id="profile">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">My Profile</h2>
<div class="max-w-2xl mx-auto bg-gray-50 rounded-xl shadow-lg p-8">
<div class="flex items-center mb-8">
<img src="http://static.photos/people/200x200/8" alt="Profile" class="w-20 h-20 rounded-full mr-6">
<div>
<h3 class="text-xl font-bold" id="profileName">User Name</h3>
<p class="text-gray-600" id="profileEmail">user@example.com</p>
<p class="text-gray-600" id="profilePhone">Phone: Not set</p>
</div>
</div>
<div class="mb-6">
<h4 class="font-bold mb-4">Account Information</h4>
<div class="bg-white p-4 rounded-lg shadow">
<div class="flex justify-between mb-2">
<span class="text-gray-600">Referral Code:</span>
<span class="font-medium" id="referralCode">VVMM1234</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-600">Joined Date:</span>
<span class="font-medium" id="joinDate">2023-10-01</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-600">KYC Status:</span>
<span class="font-medium text-red-600" id="kycStatus">Not Verified</span>
</div>
</div>
</div>
<button onclick="editProfile()" class="w-full bg-blue-600 text-white py-3 rounded-lg font-bold hover:bg-blue-700 transition mb-4">
Edit Profile
</button>
<button onclick="showKYCForm()" class="w-full bg-green-600 text-white py-3 rounded-lg font-bold hover:bg-green-700 transition">
Verify KYC
</button>
</div>
</div>
</section>
<!-- Additional Investment Plans -->
<section class="py-16 bg-gray-100" id="investments">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Investment Plans</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white p-6 rounded-xl shadow-md border-2 border-yellow-400" data-aos="fade-up">
<div class="flex justify-between items-start mb-4">
<div class="bg-yellow-100 px-3 py-1 rounded-full text-sm font-medium text-yellow-800">Premium</div>
</div>
<img src="http://static.photos/finance/320x240/7" alt="Gold Plan" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-bold mb-2">Gold Plan</h3>
<p class="text-gray-600 mb-4">150% return in 90 days with daily interest payouts.</p>
<div class="mb-4">
<div class="flex justify-between mb-1">
<span>Min. Investment:</span>
<span class="font-bold">K5,000</span>
</div>
<div class="flex justify-between">
<span>Daily Profit:</span>
<span class="font-bold">5%</span>
</div>
</div>
<button class="w-full bg-yellow-500 text-white py-3 rounded-lg font-bold hover:bg-yellow-600 transition">
Invest Now
</button>
</div>
<div class="bg-white p-6 rounded-xl shadow-md border-2 border-purple-500" data-aos="fade-up" data-aos-delay="100">
<div class="flex justify-between items-start mb-4">
<div class="bg-purple-100 px-3 py-1 rounded-full text-sm font-medium text-purple-800">VIP</div>
</div>
<img src="http://static.photos/finance/320x240/8" alt="Diamond Plan" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-bold mb-2">Diamond Plan</h3>
<p class="text-gray-600 mb-4">200% return in 120 days with weekly compounding.</p>
<div class="mb-4">
<div class="flex justify-between mb-1">
<span>Min. Investment:</span>
<span class="font-bold">K15,000</span>
</div>
<div class="flex justify-between">
<span>Weekly Profit:</span>
<span class="font-bold">7.5%</span>
</div>
</div>
<button class="w-full bg-purple-600 text-white py-3 rounded-lg font-bold hover:bg-purple-700 transition">
Invest Now
</button>
</div>
<div class="bg-white p-6 rounded-xl shadow-md border-2 border-blue-600" data-aos="fade-up" data-aos-delay="200">
<div class="flex justify-between items-start mb-4">
<div class="bg-blue-100 px-3 py-1 rounded-full text-sm font-medium text-blue-800">Standard</div>
</div>
<img src="http://static.photos/finance/320x240/9" alt="Silver Plan" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-bold mb-2">Silver Plan</h3>
<p class="text-gray-600 mb-4">120% return in 60 days with bi-weekly payouts.</p>
<div class="mb-4">
<div class="flex justify-between mb-1">
<span>Min. Investment:</span>
<span class="font-bold">K2,500</span>
</div>
<div class="flex justify-between">
<span>Bi-Weekly Profit:</span>
<span class="font-bold">15%</span>
</div>
</div>
<button class="w-full bg-blue-600 text-white py-3 rounded-lg font-bold hover:bg-blue-700 transition">
Invest Now
</button>
</div>
</div>
</div>
</section>
<!-- Deposit Section -->
<section class="py-16 bg-gray-50" id="deposit">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12" data-aos="fade-up">Make a Deposit</h2>
<div class="max-w-2xl mx-auto bg-white rounded-xl shadow-lg p-8" data-aos="fade-up">
<div class="mb-6">
<h3 class="text-xl font-bold mb-4">Payment Details</h3>
<div class="bg-blue-50 p-4 rounded-lg mb-4">
<p class="font-semibold">Name: vvmm Official</p>
<p class="font-semibold">Airtel Money: +260978310594</p>
<p class="text-sm text-gray-600">Minimum: K280 (includes 1% processing fee)</p>
</div>
</div>
<form id="depositForm">
<div class="mb-4">
<label class="block text-gray-700 mb-2">Amount (ZMW)</label>
<input type="number" id="depositAmount" class="w-full px-4 py-2 border rounded-lg" min="280" required>
<p class="text-sm text-gray-500 mt-1">Amount after 1% fee: <span id="netAmount">K0</span></p>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Payment Proof (Screenshot)</label>
<input type="file" id="paymentProof" accept="image/*" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<button type="submit" class="w-full bg-blue-600 text-white py-3 rounded-lg font-bold hover:bg-blue-700 transition">
Submit Deposit
</button>
</form>
</div>
</div>
</section>
<!-- Products Section -->
<section class="py-16 bg-white" id="products">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12" data-aos="fade-up">Verified Investment Products</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-gray-50 p-6 rounded-xl shadow-md border border-green-200" data-aos="fade-up">
<div class="flex justify-between items-start mb-4">
<div class="bg-green-100 px-3 py-1 rounded-full text-sm font-medium text-green-800">Verified</div>
<div class="text-yellow-400 flex">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4"></i>
</div>
</div>
<img src="http://static.photos/finance/320x240/4" alt="Agriculture" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-bold mb-2">Agriculture Fund</h3>
<p class="text-gray-600 mb-4">Invest in Zambian agricultural projects with 15-20% annual returns.</p>
<div class="flex justify-between items-center">
<span class="font-bold text-green-600">Min: K500</span>
<button class="text-blue-600 font-medium">Details</button>
</div>
</div>
<div class="bg-gray-50 p-6 rounded-xl shadow-md border border-green-200" data-aos="fade-up" data-aos-delay="100">
<div class="flex justify-between items-start mb-4">
<div class="bg-green-100 px-3 py-1 rounded-full text-sm font-medium text-green-800">Verified</div>
<div class="text-yellow-400 flex">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
</div>
</div>
<img src="http://static.photos/finance/320x240/5" alt="Real Estate" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-bold mb-2">Real Estate Trust</h3>
<p class="text-gray-600 mb-4">Property investments in Lusaka with monthly rental income.</p>
<div class="flex justify-between items-center">
<span class="font-bold text-green-600">Min: K1000</span>
<button class="text-blue-600 font-medium">Details</button>
</div>
</div>
<div class="bg-gray-50 p-6 rounded-xl shadow-md border border-green-200" data-aos="fade-up" data-aos-delay="200">
<div class="flex justify-between items-start mb-4">
<div class="bg-green-100 px-3 py-1 rounded-full text-sm font-medium text-green-800">Verified</div>
<div class="text-yellow-400 flex">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4"></i>
<i data-feather="star" class="w-4 h-4"></i>
</div>
</div>
<img src="http://static.photos/finance/320x240/6" alt="Tech" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-bold mb-2">Tech Startups</h3>
<p class="text-gray-600 mb-4">High-growth Zambian technology companies with equity stakes.</p>
<div class="flex justify-between items-center">
<span class="font-bold text-green-600">Min: K2000</span>
<button class="text-blue-600 font-medium">Details</button>
</div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12" data-aos="fade-up">Why Choose vvmm?</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-gray-50 p-6 rounded-xl shadow-md transition duration-300 card-hover" data-aos="fade-up" data-aos-delay="100">
<div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
<i data-feather="zap" class="w-6 h-6 text-blue-600"></i>
</div>
<h3 class="text-xl font-bold mb-2">Fast Withdrawals</h3>
<p class="text-gray-600">Get your money within 12 hours directly to your Airtel Money account.</p>
</div>
<div class="bg-gray-50 p-6 rounded-xl shadow-md transition duration-300 card-hover" data-aos="fade-up" data-aos-delay="200">
<div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
<i data-feather="users" class="w-6 h-6 text-blue-600"></i>
</div>
<h3 class="text-xl font-bold mb-2">Referral Program</h3>
<p class="text-gray-600">Earn 5% on Level 1, 3% on Level 2, and 1% on Level 3 referrals.</p>
</div>
<div class="bg-gray-50 p-6 rounded-xl shadow-md transition duration-300 card-hover" data-aos="fade-up" data-aos-delay="300">
<div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
<i data-feather="shield" class="w-6 h-6 text-blue-600"></i>
</div>
<h3 class="text-xl font-bold mb-2">Secure Platform</h3>
<p class="text-gray-600">Your investments and personal information are always protected.</p>
</div>
</div>
</div>
</section>
<!-- How It Works -->
<section class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12" data-aos="fade-up">How It Works</h2>
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div class="text-center" data-aos="fade-up" data-aos-delay="100">
<div class="bg-white w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md">
<span class="text-2xl font-bold text-blue-600">1</span>
</div>
<h3 class="font-bold mb-2">Create Account</h3>
<p class="text-gray-600">Sign up in minutes with your email or Google account.</p>
</div>
<div class="text-center" data-aos="fade-up" data-aos-delay="200">
<div class="bg-white w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md">
<span class="text-2xl font-bold text-blue-600">2</span>
</div>
<h3 class="font-bold mb-2">Deposit Funds</h3>
<p class="text-gray-600">Send money via Airtel Money to our secure account.</p>
</div>
<div class="text-center" data-aos="fade-up" data-aos-delay="300">
<div class="bg-white w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md">
<span class="text-2xl font-bold text-blue-600">3</span>
</div>
<h3 class="font-bold mb-2">Start Earning</h3>
<p class="text-gray-600">Watch your investment grow with daily returns.</p>
</div>
<div class="text-center" data-aos="fade-up" data-aos-delay="400">
<div class="bg-white w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md">
<span class="text-2xl font-bold text-blue-600">4</span>
</div>
<h3 class="font-bold mb-2">Withdraw Profits</h3>
<p class="text-gray-600">Get your money back to your Airtel account anytime.</p>
</div>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12" data-aos="fade-up">What Our Users Say</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="bg-gray-50 p-6 rounded-xl" data-aos="fade-up" data-aos-delay="100">
<div class="flex items-center mb-4">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-16 h-16 rounded-full mr-4 object-cover">
<div>
<h4 class="font-bold">Martin Mutale</h4>
<div class="flex text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
</div>
</div>
</div>
<p class="text-gray-600">"I started with K500 and within a month I've made K150 in profit. The withdrawals are fast and reliable. Highly recommend!"</p>
</div>
<div class="bg-gray-50 p-6 rounded-xl" data-aos="fade-up" data-aos-delay="200">
<div class="flex items-center mb-4">
<img src="http://static.photos/people/200x200/2" alt="User" class="w-16 h-16 rounded-full mr-4 object-cover">
<div>
<h4 class="font-bold">Sarah Chanda</h4>
<div class="flex text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4"></i>
</div>
</div>
</div>
<p class="text-gray-600">"The referral program is amazing. I've earned over K200 just from inviting friends. Customer support is very responsive too."</p>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="gradient-bg text-white py-16">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl font-bold mb-6" data-aos="fade-up">Ready to Start Growing Your Money?</h2>
<p class="text-xl mb-8 max-w-2xl mx-auto text-blue-100" data-aos="fade-up" data-aos-delay="100">Join thousands of Zambians who are already earning with vvmm. Minimum deposit of just K280.</p>
<button class="bg-white text-blue-800 px-8 py-3 rounded-lg font-bold hover:bg-blue-100 transition" data-aos="fade-up" data-aos-delay="200">
Sign Up Now
</button>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 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 data-feather="trending-up" class="w-8 h-8"></i>
<span class="text-xl font-bold">vvmm</span>
</div>
<p class="text-gray-400">Zambia's trusted investment platform with Airtel Money payments.</p>
</div>
<div>
<h4 class="font-bold text-lg mb-4">Quick Links</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Home</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Invest</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Withdraw</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Referrals</a></li>
</ul>
</div>
<div>
<h4 class="font-bold text-lg mb-4">Legal</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Terms of Service</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Privacy Policy</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">KYC Policy</a></li>
</ul>
</div>
<div>
<h4 class="font-bold text-lg mb-4">Contact</h4>
<ul class="space-y-2">
<li class="flex items-center">
<i data-feather="mail" class="w-4 h-4 mr-2"></i>
<span class="text-gray-400">support@vvmm.com</span>
</li>
<li class="flex items-center">
<i data-feather="phone" class="w-4 h-4 mr-2"></i>
<span class="text-gray-400">Support Line</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 vvmm. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Wallet functions
function showWalletHistory() {
const modal = `
<div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div class="bg-white rounded-lg p-6 w-full max-w-2xl max-h-[80vh] overflow-y-auto">
<h3 class="text-xl font-bold mb-4">Wallet History</h3>
<div class="divide-y">
<div class="py-4">
<div class="flex justify-between">
<div>
<p class="font-bold">Deposit</p>
<p class="text-sm text-gray-500">Today, 10:30 AM</p>
</div>
<div class="text-right">
<p class="text-green-600 font-bold">+K280</p>
<p class="text-sm">Status: <span class="text-green-600">Completed</span></p>
</div>
</div>
</div>
<div class="py-4">
<div class="flex justify-between">
<div>
<p class="font-bold">Withdrawal Request</p>
<p class="text-sm text-gray-500">Yesterday, 02:30 PM</p>
</div>
<div class="text-right">
<p class="text-red-600 font-bold">-K150</p>
<p class="text-sm">Status: <span class="text-yellow-600">Pending</span></p>
</div>
</div>
</div>
<div class="py-4">
<div class="flex justify-between">
<div>
<p class="font-bold">Referral Bonus</p>
<p class="text-sm text-gray-500">Oct 15, 2023, 11:45 AM</p>
</div>
<div class="text-right">
<p class="text-green-600 font-bold">+K25</p>
<p class="text-sm">From: Level 1 referral</p>
</div>
</div>
</div>
</div>
<div class="mt-4">
<button onclick="document.querySelector('.fixed').remove()" class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
Close
</button>
</div>
</div>
</div>
`;
document.body.insertAdjacentHTML('beforeend', modal);
}
// Profile functions
function editProfile() {
const modal = `
<div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div class="bg-white rounded-lg p-6 w-full max-w-md">
<h3 class="text-xl font-bold mb-4">Edit Profile</h3>
<form id="profileForm">
<div class="mb-4">
<label class="block text-gray-700 mb-2">Full Name</label>
<input type="text" id="editName" class="w-full px-4 py-2 border rounded-lg" value="User Name" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Phone Number</label>
<input type="tel" id="editPhone" class="w-full px-4 py-2 border rounded-lg" value="" required>
</div>
<div class="flex justify-end space-x-3">
<button type="button" onclick="document.querySelector('.fixed').remove()" class="px-4 py-2 border rounded-lg">
Cancel
</button>
<button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
Save
</button>
</div>
</form>
</div>
</div>
`;
document.body.insertAdjacentHTML('beforeend', modal);
}
function showKYCForm() {
const modal = `
<div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div class="bg-white rounded-lg p-6 w-full max-w-md">
<h3 class="text-xl font-bold mb-4">KYC Verification</h3>
<form id="kycForm">
<div class="mb-4">
<label class="block text-gray-700 mb-2">ID Type</label>
<select class="w-full px-4 py-2 border rounded-lg">
<option>NRC</option>
<option>Passport</option>
<option>Driver's License</option>
</select>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">ID Number</label>
<input type="text" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">ID Front Photo</label>
<input type="file" accept="image/*" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">ID Back Photo</label>
<input type="file" accept="image/*" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Selfie with ID</label>
<input type="file" accept="image/*" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="flex justify-end space-x-3">
<button type="button" onclick="document.querySelector('.fixed').remove()" class="px-4 py-2 border rounded-lg">
Cancel
</button>
<button type="submit" class="bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700">
Submit
</button>
</div>
</form>
</div>
</div>
`;
document.body.insertAdjacentHTML('beforeend', modal);
}
AOS.init();
feather.replace();
// Signup Modal
function showSignupModal() {
const modal = `
<div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div class="bg-white rounded-lg p-6 w-full max-w-md">
<h3 class="text-xl font-bold mb-4">Create Account</h3>
<form id="signupForm">
<div class="mb-4">
<label class="block text-gray-700 mb-2">Full Name</label>
<input type="text" id="signupName" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Email</label>
<input type="email" id="signupEmail" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Phone Number</label>
<input type="tel" id="signupPhone" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Password</label>
<input type="password" id="signupPassword" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Referral Code (optional)</label>
<input type="text" id="signupReferral" class="w-full px-4 py-2 border rounded-lg">
</div>
<div class="flex justify-end space-x-3">
<button type="button" onclick="document.querySelector('.fixed').remove()" class="px-4 py-2 border rounded-lg">
Cancel
</button>
<button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
Sign Up
</button>
</div>
</form>
</div>
</div>
`;
document.body.insertAdjacentHTML('beforeend', modal);
document.getElementById('signupForm').addEventListener('submit', function(e) {
e.preventDefault();
const email = document.getElementById('signupEmail').value;
if(email === "newearningsyiyn2025@gmail.com") {
localStorage.setItem('isAdmin', 'true');
}
alert("Account created successfully!");
document.querySelector('.fixed').remove();
});
}
// Admin control functionality
const adminPhone = "+260978310594";
const paymentDetails = {
name: "vvmm Official",
number: "+260978310594",
network: "Airtel Money",
minDeposit: 280,
minWithdrawal: 100
};
// Check admin status on page load
document.addEventListener('DOMContentLoaded', function() {
if(localStorage.getItem('isAdmin') === 'true') {
document.getElementById('adminLink').classList.remove('hidden');
}
});
// Login simulation
document.getElementById('loginBtn').addEventListener('click', function() {
const modal = `
<div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div class="bg-white rounded-lg p-6 w-full max-w-md">
<h3 class="text-xl font-bold mb-4">Login</h3>
<form id="loginForm">
<div class="mb-4">
<label class="block text-gray-700 mb-2">Email</label>
<input type="email" id="loginEmail" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Password</label>
<input type="password" id="loginPassword" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="flex justify-end space-x-3">
<button type="button" onclick="document.querySelector('.fixed').remove()" class="px-4 py-2 border rounded-lg">
Cancel
</button>
<button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
Login
</button>
</div>
</form>
</div>
</div>
`;
document.body.insertAdjacentHTML('beforeend', modal);
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();
const email = document.getElementById('loginEmail').value;
if(email === "newearningsyiyn2025@gmail.com") {
localStorage.setItem('isAdmin', 'true');
document.getElementById('adminLink').classList.remove('hidden');
}
document.getElementById('loginBtn').classList.add('hidden');
document.getElementById('signupBtn').classList.add('hidden');
document.getElementById('logoutBtn').classList.remove('hidden');
document.querySelector('.fixed').remove();
alert("Logged in successfully!");
});
});
function copyReferralLink() {
const link = document.getElementById('referralLink').textContent;
navigator.clipboard.writeText(link);
alert("Referral link copied to clipboard!");
}
// Logout
document.getElementById('logoutBtn').addEventListener('click', function() {
localStorage.removeItem('isAdmin');
document.getElementById('adminLink').classList.add('hidden');
document.getElementById('loginBtn').classList.remove('hidden');
document.getElementById('signupBtn').classList.remove('hidden');
document.getElementById('logoutBtn').classList.add('hidden');
alert("Logged out successfully!");
});
// Deposit form handling
document.getElementById('depositAmount').addEventListener('input', function() {
const amount = parseFloat(this.value) || 0;
const fee = amount * 0.01;
const net = amount - fee;
document.getElementById('netAmount').textContent = `K${net.toFixed(2)}`;
});
document.getElementById('depositForm').addEventListener('submit', function(e) {
e.preventDefault();
const amount = parseFloat(document.getElementById('depositAmount').value);
const proof = document.getElementById('paymentProof').files[0];
if(amount < 280) {
alert("Minimum deposit is K280");
return;
}
if(!proof) {
alert("Please upload payment proof");
return;
}
// Process deposit with 1% fee
const fee = amount * 0.01;
const netAmount = amount - fee;
alert(`Deposit of K${amount} submitted (K${fee.toFixed(2)} fee). Net amount: K${netAmount.toFixed(2)}`);
this.reset();
document.getElementById('netAmount').textContent = 'K0';
});
// Payment integration
function processPayment(amount, phone) {
if(phone !== adminPhone) {
alert("Payment failed: Only payments to "+adminPhone+" are accepted");
return false;
}
return true;
}
// Admin dashboard functions
function adminApproveTransaction(id, type) {
alert(`Admin approved ${type} transaction #${id}`);
}
function adminRejectTransaction(id, type) {
alert(`Admin rejected ${type} transaction #${id}`);
}
// Referral system
function generateReferralLink(userId) {
return window.location.href + `?ref=${userId}`;
}
// Track referrals
function trackReferral(referrerId, refereeId) {
console.log(`User ${refereeId} was referred by ${referrerId}`);
}
</script>
</body>
</html>