Download index.html from Allanug/hello: direct link, hf CLI and curl.
- Browser
- Download file 73.7 kB
-
https://huggingface.co/spaces/Allanug/hello/resolve/main/index.html
- Command line
-
hf download hf://spaces/Allanug/hello/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Allanug/hello/resolve/main/index.html
73.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ClassiFied - Uganda Classified Ads Platform</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%, #10b981 100%);
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.status-pending {
background-color: #f59e0b;
}
.status-approved {
background-color: #10b981;
}
.status-rejected {
background-color: #ef4444;
}
.sidebar-link.active {
background-color: #e0e7ff;
color: #4f46e5;
border-left: 4px solid #4f46e5;
}
.mobile-money-option:hover {
border-color: #4f46e5;
}
#imagePreviewContainer {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.preview-image {
width: 100px;
height: 100px;
object-fit: cover;
border-radius: 8px;
position: relative;
}
.remove-image {
position: absolute;
top: -8px;
right: -8px;
background: #ef4444;
color: white;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
cursor: pointer;
}
.selected-payment {
border-color: #4f46e5;
background-color: #e0e7ff;
}
</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-4">
<a href="#" class="text-2xl font-bold flex items-center">
<i class="fas fa-ad mr-2"></i>
ClassiFied
</a>
<div class="hidden md:flex space-x-6">
<a href="#" class="hover:text-gray-200">Home</a>
<a href="#" class="hover:text-gray-200">Categories</a>
<a href="#" class="hover:text-gray-200">How It Works</a>
<a href="#" class="hover:text-gray-200">Contact</a>
</div>
</div>
<div class="flex items-center space-x-4">
<button id="loginBtn" class="bg-white text-indigo-600 px-4 py-2 rounded-lg font-medium hover:bg-gray-100">
Login / Register
</button>
<button id="sellBtn" class="hidden md:block bg-yellow-400 text-gray-900 px-4 py-2 rounded-lg font-medium hover:bg-yellow-300">
<i class="fas fa-plus mr-1"></i> Sell Item
</button>
<button id="mobileMenuBtn" class="md:hidden text-white">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Mobile Menu (Hidden by default) -->
<div id="mobileMenu" class="hidden md:hidden bg-gray-800 text-white">
<div class="container mx-auto px-4 py-2">
<div class="flex flex-col space-y-3 py-3">
<a href="#" class="hover:text-gray-300">Home</a>
<a href="#" class="hover:text-gray-300">Categories</a>
<a href="#" class="hover:text-gray-300">How It Works</a>
<a href="#" class="hover:text-gray-300">Contact</a>
<button id="mobileSellBtn" class="bg-yellow-400 text-gray-900 px-4 py-2 rounded-lg font-medium hover:bg-yellow-300 w-full text-left">
<i class="fas fa-plus mr-1"></i> Sell Item
</button>
</div>
</div>
</div>
<!-- Hero Section -->
<section class="gradient-bg text-white py-16">
<div class="container mx-auto px-4 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6">Buy & Sell Locally in Uganda</h1>
<p class="text-xl mb-8 max-w-2xl mx-auto">Find great deals on used phones, furniture, electronics and more. Or list your items for sale in minutes!</p>
<div class="max-w-2xl mx-auto bg-white rounded-lg shadow-lg p-2 flex">
<input type="text" placeholder="Search for items..." class="flex-grow px-4 py-3 rounded-l-lg focus:outline-none text-gray-800">
<select class="border-l border-gray-200 px-3 py-3 bg-gray-100 text-gray-700 focus:outline-none">
<option>All Categories</option>
<option>Phones</option>
<option>Furniture</option>
<option>Electronics</option>
<option>Vehicles</option>
<option>Property</option>
</select>
<button class="bg-indigo-600 text-white px-6 py-3 rounded-r-lg hover:bg-indigo-700">
<i class="fas fa-search"></i>
</button>
</div>
</div>
</section>
<!-- Categories Section -->
<section class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Popular Categories</h2>
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-6">
<a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
<div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-mobile-alt text-indigo-600 text-2xl"></i>
</div>
<h3 class="font-medium">Phones</h3>
<p class="text-sm text-gray-500 mt-1">1,245 listings</p>
</a>
<a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
<div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-couch text-green-600 text-2xl"></i>
</div>
<h3 class="font-medium">Furniture</h3>
<p class="text-sm text-gray-500 mt-1">892 listings</p>
</a>
<a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-laptop text-blue-600 text-2xl"></i>
</div>
<h3 class="font-medium">Electronics</h3>
<p class="text-sm text-gray-500 mt-1">1,532 listings</p>
</a>
<a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
<div class="bg-red-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-car text-red-600 text-2xl"></i>
</div>
<h3 class="font-medium">Vehicles</h3>
<p class="text-sm text-gray-500 mt-1">456 listings</p>
</a>
<a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
<div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-home text-purple-600 text-2xl"></i>
</div>
<h3 class="font-medium">Property</h3>
<p class="text-sm text-gray-500 mt-1">321 listings</p>
</a>
<a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
<div class="bg-yellow-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-tshirt text-yellow-600 text-2xl"></i>
</div>
<h3 class="font-medium">Fashion</h3>
<p class="text-sm text-gray-500 mt-1">1,089 listings</p>
</a>
</div>
</div>
</section>
<!-- Featured Listings -->
<section class="py-12 bg-gray-50">
<div class="container mx-auto px-4">
<div class="flex justify-between items-center mb-8">
<h2 class="text-3xl font-bold">Featured Listings</h2>
<a href="#" class="text-indigo-600 hover:text-indigo-800 font-medium">View All <i class="fas fa-arrow-right ml-1"></i></a>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Product Card 1 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300">
<div class="relative">
<img src="https://images.unsplash.com/photo-1601784551446-20c9e07cdbdb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8aXBob25lfGVufDB8fDB8fHww&auto=format&fit=crop&w=500&q=60" alt="iPhone 12 Pro" class="w-full h-48 object-cover">
<div class="absolute top-2 right-2 bg-indigo-600 text-white text-xs px-2 py-1 rounded">New</div>
</div>
<div class="p-4">
<div class="flex justify-between items-start">
<div>
<h3 class="font-bold text-lg">iPhone 12 Pro</h3>
<p class="text-gray-500 text-sm">Kampala, Central</p>
</div>
<span class="text-indigo-600 font-bold">UGX 1,200,000</span>
</div>
<p class="text-gray-600 mt-2 text-sm">128GB, Space Gray, Excellent condition with box and accessories.</p>
<div class="mt-4 flex justify-between items-center">
<div class="flex items-center text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
<span class="text-gray-500 text-sm ml-1">(24)</span>
</div>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium contact-btn" data-item="iPhone 12 Pro">
<i class="fas fa-phone-alt mr-1"></i> Contact
</button>
</div>
</div>
</div>
<!-- Product Card 2 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300">
<div class="relative">
<img src="https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8ZnVybml0dXJlfGVufDB8fDB8fHww&auto=format&fit=crop&w=500&q=60" alt="Sofa Set" class="w-full h-48 object-cover">
</div>
<div class="p-4">
<div class="flex justify-between items-start">
<div>
<h3 class="font-bold text-lg">Leather Sofa Set</h3>
<p class="text-gray-500 text-sm">Entebbe, Central</p>
</div>
<span class="text-indigo-600 font-bold">UGX 850,000</span>
</div>
<p class="text-gray-600 mt-2 text-sm">3-seater + 2 armchairs, genuine leather, barely used. Great condition.</p>
<div class="mt-4 flex justify-between items-center">
<div class="flex items-center text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<span class="text-gray-500 text-sm ml-1">(12)</span>
</div>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium contact-btn" data-item="Leather Sofa Set">
<i class="fas fa-phone-alt mr-1"></i> Contact
</button>
</div>
</div>
</div>
<!-- Product Card 3 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300">
<div class="relative">
<img src="https://images.unsplash.com/photo-1560343090-f0409e92791a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8dHZ8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=500&q=60" alt="Smart TV" class="w-full h-48 object-cover">
<div class="absolute top-2 right-2 bg-red-500 text-white text-xs px-2 py-1 rounded">Discount</div>
</div>
<div class="p-4">
<div class="flex justify-between items-start">
<div>
<h3 class="font-bold text-lg">Samsung 55" Smart TV</h3>
<p class="text-gray-500 text-sm">Jinja, Eastern</p>
</div>
<span class="text-indigo-600 font-bold">UGX 1,500,000</span>
</div>
<p class="text-gray-600 mt-2 text-sm">4K UHD, HDR, Smart features. 1 year warranty remaining.</p>
<div class="mt-4 flex justify-between items-center">
<div class="flex items-center text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<span class="text-gray-500 text-sm ml-1">(8)</span>
</div>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium contact-btn" data-item="Samsung 55\" Smart TV">
<i class="fas fa-phone-alt mr-1"></i> Contact
</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- How It Works Section -->
<section class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">How It Works</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="text-center p-6 rounded-lg bg-gray-50">
<div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<span class="text-indigo-600 text-2xl font-bold">1</span>
</div>
<h3 class="text-xl font-semibold mb-2">Browse or List</h3>
<p class="text-gray-600">Find what you need or list items for sale in minutes. No registration needed to browse.</p>
</div>
<div class="text-center p-6 rounded-lg bg-gray-50">
<div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<span class="text-indigo-600 text-2xl font-bold">2</span>
</div>
<h3 class="text-xl font-semibold mb-2">Connect</h3>
<p class="text-gray-600">Contact sellers directly via call, SMS or email. Sellers get approved listings after payment.</p>
</div>
<div class="text-center p-6 rounded-lg bg-gray-50">
<div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<span class="text-indigo-600 text-2xl font-bold">3</span>
</div>
<h3 class="text-xl font-semibold mb-2">Complete Transaction</h3>
<p class="text-gray-600">Meet safely or arrange delivery. We recommend public meetups for safety.</p>
</div>
</div>
</div>
</section>
<!-- Mobile Money Payment Section -->
<section class="py-12 bg-indigo-50">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-8 md:mb-0 md:pr-8">
<h2 class="text-3xl font-bold mb-4">Easy Mobile Money Payments</h2>
<p class="text-gray-700 mb-6">Sellers can pay listing fees securely via MTN Mobile Money or Airtel Money. Our system verifies payments instantly before your listing goes live.</p>
<div class="flex space-x-4">
<div class="bg-white p-4 rounded-lg shadow-sm flex items-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Mtn-logo.svg/1200px-Mtn-logo.svg.png" alt="MTN" class="h-8">
</div>
<div class="bg-white p-4 rounded-lg shadow-sm flex items-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Airtel_Logo.svg/2560px-Airtel_Logo.svg.png" alt="Airtel" class="h-8">
</div>
</div>
</div>
<div class="md:w-1/2 bg-white p-8 rounded-lg shadow-lg">
<h3 class="text-xl font-semibold mb-4">Listing Fee Calculator</h3>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Select Category</label>
<select id="feeCategory" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="5000">Phones & Tablets</option>
<option value="5000">Furniture & Home</option>
<option value="6000">Electronics</option>
<option value="8000">Vehicles</option>
<option value="10000">Property</option>
<option value="4000">Fashion</option>
</select>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Item Price (UGX)</label>
<input type="number" id="itemPrice" placeholder="Enter item price" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="bg-indigo-50 p-4 rounded-lg">
<div class="flex justify-between mb-2">
<span class="text-gray-700">Listing Fee:</span>
<span id="listingFee" class="font-semibold">UGX 5,000</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-700">Service Fee (2%):</span>
<span id="serviceFee" class="font-semibold">UGX 0</span>
</div>
<div class="flex justify-between pt-2 border-t border-gray-200">
<span class="text-gray-700 font-medium">Total:</span>
<span id="totalFee" class="text-indigo-600 font-bold">UGX 5,000</span>
</div>
</div>
<button id="proceedPaymentBtn" class="w-full mt-4 bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
Proceed to Payment
</button>
</div>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">What Our Users Say</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-gray-50 p-6 rounded-lg">
<div class="flex items-center mb-4">
<div class="flex items-center text-yellow-400 mr-2">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<span class="text-gray-500 text-sm">2 days ago</span>
</div>
<p class="text-gray-700 mb-4">"Sold my old iPhone in just one day! The payment system was so easy to use with Mobile Money."</p>
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Sarah K." class="w-10 h-10 rounded-full mr-3">
<div>
<h4 class="font-medium">Sarah K.</h4>
<p class="text-gray-500 text-sm">Kampala</p>
</div>
</div>
</div>
<div class="bg-gray-50 p-6 rounded-lg">
<div class="flex items-center mb-4">
<div class="flex items-center text-yellow-400 mr-2">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
<span class="text-gray-500 text-sm">1 week ago</span>
</div>
<p class="text-gray-700 mb-4">"Found the perfect sofa for my new apartment at half the price of a new one. Seller was very professional."</p>
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="James M." class="w-10 h-10 rounded-full mr-3">
<div>
<h4 class="font-medium">James M.</h4>
<p class="text-gray-500 text-sm">Entebbe</p>
</div>
</div>
</div>
<div class="bg-gray-50 p-6 rounded-lg">
<div class="flex items-center mb-4">
<div class="flex items-center text-yellow-400 mr-2">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<span class="text-gray-500 text-sm">3 weeks ago</span>
</div>
<p class="text-gray-700 mb-4">"As a small business, this platform has helped me reach more customers than my shop alone. Worth every shilling!"</p>
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Grace N." class="w-10 h-10 rounded-full mr-3">
<div>
<h4 class="font-medium">Grace N.</h4>
<p class="text-gray-500 text-sm">Jinja</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Call to Action -->
<section class="py-16 gradient-bg text-white">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl md:text-4xl font-bold mb-6">Ready to Sell Your Items?</h2>
<p class="text-xl mb-8 max-w-2xl mx-auto">Join thousands of Ugandans buying and selling locally. List your first item today!</p>
<div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4">
<button id="ctaSellBtn" class="bg-white text-indigo-600 px-8 py-4 rounded-lg font-bold hover:bg-gray-100 text-lg">
<i class="fas fa-plus mr-2"></i> Start Selling
</button>
<button id="learnMoreBtn" class="bg-transparent border-2 border-white text-white px-8 py-4 rounded-lg font-bold hover:bg-white hover:text-indigo-600 text-lg">
<i class="fas fa-question-circle mr-2"></i> Learn More
</button>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white pt-12 pb-6">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
<div>
<h3 class="text-xl font-bold mb-4 flex items-center">
<i class="fas fa-ad mr-2"></i> ClassiFied
</h3>
<p class="text-gray-400">Uganda's premier classified ads platform connecting buyers and sellers nationwide.</p>
<div class="flex space-x-4 mt-4">
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a>
</div>
</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">About Us</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">How It Works</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Pricing</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Contact</a></li>
</ul>
</div>
<div>
<h4 class="font-bold text-lg mb-4">Categories</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Phones & Tablets</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Furniture</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Electronics</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Vehicles</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Property</a></li>
</ul>
</div>
<div>
<h4 class="font-bold text-lg mb-4">Contact Us</h4>
<ul class="space-y-2">
<li class="flex items-center text-gray-400">
<i class="fas fa-map-marker-alt mr-2"></i> Kampala, Uganda
</li>
<li class="flex items-center text-gray-400">
<i class="fas fa-phone-alt mr-2"></i> +256 700 123456
</li>
<li class="flex items-center text-gray-400">
<i class="fas fa-envelope mr-2"></i> info@classified.ug
</li>
</ul>
</div>
</div>
<div class="pt-6 border-t border-gray-800 text-center text-gray-400 text-sm">
<p>© 2023 ClassiFied Uganda. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Login Modal -->
<div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-md">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-2xl font-bold">Welcome Back</h3>
<button id="closeLoginModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="flex mb-6 border-b">
<button id="loginTabBtn" class="px-4 py-2 font-medium border-b-2 border-indigo-600 text-indigo-600">Login</button>
<button id="registerTabBtn" class="px-4 py-2 font-medium text-gray-500 hover:text-gray-700">Register</button>
</div>
<!-- Login Form -->
<div id="loginForm">
<div class="mb-4">
<label class="block text-gray-700 mb-2">Email or Phone</label>
<input type="text" placeholder="Enter your email or phone" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Password</label>
<input type="password" placeholder="Enter your password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="flex justify-between items-center mb-6">
<div class="flex items-center">
<input type="checkbox" id="remember" class="mr-2">
<label for="remember" class="text-gray-700">Remember me</label>
</div>
<a href="#" class="text-indigo-600 hover:text-indigo-800">Forgot password?</a>
</div>
<button id="loginSubmitBtn" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700 mb-4">
Login
</button>
<div class="text-center text-gray-500">
Or login with
</div>
<div class="flex justify-center space-x-4 mt-4">
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg flex items-center">
<i class="fab fa-facebook-f mr-2"></i> Facebook
</button>
<button class="bg-red-500 text-white px-4 py-2 rounded-lg flex items-center">
<i class="fab fa-google mr-2"></i> Google
</button>
</div>
</div>
<!-- Register Form -->
<div id="registerForm" class="hidden">
<div class="mb-4">
<label class="block text-gray-700 mb-2">Full Name</label>
<input type="text" placeholder="Enter your full name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Email</label>
<input type="email" placeholder="Enter your email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Phone Number</label>
<input type="tel" placeholder="Enter your phone number" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Password</label>
<input type="password" placeholder="Create a password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">Confirm Password</label>
<input type="password" placeholder="Confirm your password" 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 mb-6">
<input type="checkbox" id="terms" class="mr-2">
<label for="terms" class="text-gray-700">I agree to the <a href="#" class="text-indigo-600">Terms & Conditions</a></label>
</div>
<button id="registerSubmitBtn" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
Create Account
</button>
</div>
</div>
</div>
</div>
<!-- Sell Item Modal -->
<div id="sellModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden overflow-y-auto">
<div class="bg-white rounded-lg shadow-xl w-full max-w-4xl my-8">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-2xl font-bold">List Your Item for Sale</h3>
<button id="closeSellModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="md:col-span-2">
<div class="mb-6">
<h4 class="font-semibold text-lg mb-3">Item Details</h4>
<div class="space-y-4">
<div>
<label class="block text-gray-700 mb-1">Category</label>
<select id="sellCategory" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="">Select a category</option>
<option value="Phones & Tablets">Phones & Tablets</option>
<option value="Furniture & Home">Furniture & Home</option>
<option value="Electronics">Electronics</option>
<option value="Vehicles">Vehicles</option>
<option value="Property">Property</option>
<option value="Fashion">Fashion</option>
</select>
</div>
<div>
<label class="block text-gray-700 mb-1">Title</label>
<input type="text" id="sellTitle" placeholder="e.g. iPhone 12 Pro 128GB" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div>
<label class="block text-gray-700 mb-1">Description</label>
<textarea id="sellDescription" rows="4" placeholder="Describe your item in detail..." class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"></textarea>
</div>
<div>
<label class="block text-gray-700 mb-1">Price (UGX)</label>
<input type="number" id="sellPrice" placeholder="Enter price" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div>
<label class="block text-gray-700 mb-1">Location</label>
<select id="sellLocation" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="">Select location</option>
<option value="Kampala">Kampala</option>
<option value="Entebbe">Entebbe</option>
<option value="Jinja">Jinja</option>
<option value="Mbarara">Mbarara</option>
<option value="Gulu">Gulu</option>
<option value="Other">Other</option>
</select>
</div>
</div>
</div>
<div class="mb-6">
<h4 class="font-semibold text-lg mb-3">Upload Photos (Max 8)</h4>
<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center">
<input type="file" id="imageUpload" multiple accept="image/*" class="hidden">
<label for="imageUpload" class="cursor-pointer">
<div class="flex flex-col items-center justify-center">
<i class="fas fa-cloud-upload-alt text-4xl text-indigo-500 mb-2"></i>
<p class="text-gray-600">Drag & drop photos here or click to browse</p>
<p class="text-sm text-gray-500 mt-1">JPEG or PNG, at least 800x600px</p>
</div>
</label>
</div>
<div id="imagePreviewContainer" class="mt-4"></div>
</div>
</div>
<div class="md:col-span-1">
<div class="bg-gray-50 p-4 rounded-lg sticky top-4">
<h4 class="font-semibold text-lg mb-4">Pricing Summary</h4>
<div class="space-y-3">
<div class="flex justify-between">
<span class="text-gray-600">Listing Duration:</span>
<span class="font-medium">30 days</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">Category Fee:</span>
<span id="sellListingFee" class="font-medium">UGX 0</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">Service Fee (2%):</span>
<span id="sellServiceFee" class="font-medium">UGX 0</span>
</div>
<div class="pt-3 border-t border-gray-200 flex justify-between">
<span class="text-gray-700 font-medium">Total:</span>
<span id="sellTotalFee" class="text-indigo-600 font-bold">UGX 0</span>
</div>
</div>
<div class="mt-6">
<h4 class="font-semibold text-lg mb-3">Payment Method</h4>
<div class="space-y-3">
<div class="mobile-money-option payment-option flex items-center p-3 border rounded-lg cursor-pointer" data-method="MTN">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Mtn-logo.svg/1200px-Mtn-logo.svg.png" alt="MTN" class="h-6 mr-3">
<span>MTN Mobile Money</span>
</div>
<div class="mobile-money-option payment-option flex items-center p-3 border rounded-lg cursor-pointer" data-method="Airtel">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Airtel_Logo.svg/2560px-Airtel_Logo.svg.png" alt="Airtel" class="h-6 mr-3">
<span>Airtel Money</span>
</div>
</div>
</div>
<button id="submitListingBtn" class="w-full mt-6 bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
Pay & Publish Listing
</button>
<p class="text-xs text-gray-500 mt-3">
By clicking "Pay & Publish Listing", you agree to our <a href="#" class="text-indigo-600">Terms of Service</a> and confirm this item complies with our <a href="#" class="text-indigo-600">Listing Policies</a>.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Contact Seller Modal -->
<div id="contactModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-md">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-bold" id="contactItemTitle">Contact Seller</h3>
<button id="closeContactModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<p class="mb-4">You're contacting the seller about: <span class="font-semibold" id="contactItemName"></span></p>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Your Name</label>
<input type="text" id="contactName" placeholder="Enter your name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Your Phone Number</label>
<input type="tel" id="contactPhone" placeholder="Enter your phone number" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Message (Optional)</label>
<textarea id="contactMessage" rows="3" placeholder="Enter your message to the seller" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"></textarea>
</div>
<button id="sendContactBtn" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
Send Message
</button>
</div>
</div>
</div>
<!-- Payment Confirmation Modal -->
<div id="paymentModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-md">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-bold">Complete Payment</h3>
<button id="closePaymentModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="mb-6">
<div class="bg-indigo-50 p-4 rounded-lg mb-4">
<div class="flex justify-between mb-2">
<span class="text-gray-700">Item:</span>
<span class="font-semibold" id="paymentItemName">iPhone 12 Pro</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-700">Total Amount:</span>
<span class="font-semibold" id="paymentAmount">UGX 6,000</span>
</div>
<div class="flex justify-between">
<span class="text-gray-700">Payment Method:</span>
<span class="font-semibold" id="paymentMethod">MTN Mobile Money</span>
</div>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Mobile Money Number</label>
<input type="tel" id="mobileNumber" placeholder="Enter your mobile money number" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">PIN (For verification)</label>
<input type="password" id="mobilePin" placeholder="Enter your mobile money PIN" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
</div>
<button id="confirmPaymentBtn" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700 mb-2">
Confirm Payment
</button>
<p class="text-xs text-gray-500 text-center">
Your payment will be processed securely. We never store your PIN.
</p>
</div>
</div>
</div>
<!-- Success Modal -->
<div id="successModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-md text-center p-8">
<div class="mb-6">
<div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto">
<i class="fas fa-check text-green-600 text-3xl"></i>
</div>
</div>
<h3 class="text-2xl font-bold mb-4" id="successTitle">Success!</h3>
<p class="text-gray-600 mb-6" id="successMessage">Your listing has been submitted for approval. You'll receive a confirmation shortly.</p>
<button id="closeSuccessModal" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
Continue
</button>
</div>
</div>
<!-- Seller Dashboard (Hidden by default) -->
<div id="sellerDashboard" class="hidden">
<div class="flex h-screen bg-gray-100">
<!-- Sidebar -->
<div class="bg-white w-64 shadow-md">
<div class="p-4 border-b">
<h2 class="text-xl font-bold mb-4 flex items-center">
<i class="fas fa-user-circle mr-2 text-indigo-600"></i> Seller Dashboard
</h2>
</div>
<nav class="mt-4">
<a href="#" class="sidebar-link active flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i class="fas fa-tachometer-alt mr-3"></i> Dashboard
</a>
<a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i class="fas fa-plus-circle mr-3"></i> Add New Listing
</a>
<a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i class="fas fa-list mr-3"></i> My Listings
</a>
<a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i class="fas fa-money-bill-wave mr-3"></i> Payments
</a>
<a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i class="fas fa-chart-line mr-3"></i> Statistics
</a>
<a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i class="fas fa-cog mr-3"></i> Settings
</a>
<a href="#" id="logoutBtn" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i class="fas fa-sign-out-alt mr-3"></i> Logout
</a>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<header class="bg-white shadow-sm p-4">
<div class="flex justify-between items-center">
<h1 class="text-2xl font-semibold text-gray-800">Dashboard Overview</h1>
<div class="flex items-center space-x-4">
<button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700">
<i class="fas fa-plus mr-1"></i> New Listing
</button>
<div class="relative">
<button class="text-gray-600 hover:text-gray-900">
<i class="fas fa-bell text-xl"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
</div>
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-8 h-8 rounded-full mr-2">
<span class="font-medium">Sarah K.</span>
</div>
</div>
</div>
</header>
<main class="p-6">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
<div class="bg-white p-6 rounded-lg shadow-sm">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Total Listings</p>
<h3 class="text-2xl font-bold mt-1">24</h3>
</div>
<div class="bg-indigo-100 p-3 rounded-lg">
<i class="fas fa-list text-indigo-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Active Listings</p>
<h3 class="text-2xl font-bold mt-1">18</h3>
</div>
<div class="bg-green-100 p-3 rounded-lg">
<i class="fas fa-check-circle text-green-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Total Revenue</p>
<h3 class="text-2xl font-bold mt-1">UGX 1,240,000</h3>
</div>
<div class="bg-yellow-100 p-3 rounded-lg">
<i class="fas fa-money-bill-wave text-yellow-600 text-xl"></i>
</div>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm mb-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold">Recent Listings</h2>
<a href="#" class="text-indigo-600 hover:text-indigo-800">View All</a>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Item</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Views</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1601784551446-20c9e07cdbdb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8aXBob25lfGVufDB8fDB8fHww&auto=format&fit=crop&w=100&q=60" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">iPhone 12 Pro</div>
<div class="text-sm text-gray-500">Phones</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">UGX 1,200,000</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800 status-approved">
Approved
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
245
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">Edit</a>
<a href="#" class="text-red-600 hover:text-red-900">Delete</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8ZnVybml0dXJlfGVufDB8fDB8fHww&auto=format&fit=crop&w=100&q=60" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Leather Sofa Set</div>
<div class="text-sm text-gray-500">Furniture</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">UGX 850,000</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800 status-pending">
Pending
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
78
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">Edit</a>
<a href="#" class="text-red-600 hover:text-red-900">Delete</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1560343090-f0409e92791a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8dHZ8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=100&q=60" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Samsung 55" Smart TV</div>
<div class="text-sm text-gray-500">Electronics</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">UGX 1,500,000</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800 status-rejected">
Rejected
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
32
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">Edit</a>
<a href="#" class="text-red-600 hover:text-red-900">Delete</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold">Recent Payments</h2>
<a href="#" class="text-indigo-600 hover:text-indigo-800">View All</a>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Transaction ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Method</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
12 Oct 2023
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
#TX-78945612
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
UGX 6,000
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
MTN Mobile Money
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Completed
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
05 Oct 2023
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
#TX-32165498
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
UGX 12,000
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Airtel Money
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Completed
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
28 Sep 2023
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
#TX-98712365
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
UGX 8,000
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
MTN Mobile Money
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Completed
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</div>
</div>
</div>
<!-- Admin Panel (Hidden by default) -->
<div id="adminPanel" class="hidden">
<div class="flex h-screen bg-gray-100">
<!-- Sidebar -->
<div class="bg-gray-800 w-64 shadow-md">
<div class="p-4 border-b border-gray-700">
<h2 class="text-xl font-semibold text-white flex items-center">
<i class="fas fa-shield-alt mr-2 text-indigo-400"></i> Admin Panel
</h2>
</div>
<nav class="mt-4">
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
<i class="fas fa-tachometer-alt mr-3"></i> Dashboard
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
<i class="fas fa-check-circle mr-3"></i> Approve Listings
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
<i class="fas fa-users mr-3"></i> Manage Sellers
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
<i class="fas fa-tags mr-3"></i> Categories
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
<i class="fas fa-money-bill-wave mr-3"></i> Payments
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
<i class="fas fa-flag mr-3"></i> Reported Content
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
<i class="fas fa-cog mr-3"></i> Settings
</a>
<a href="#" id="adminLogoutBtn" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
<i class="fas fa-sign-out-alt mr-3"></i> Logout
</a>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<header class="bg-white shadow-sm p-4">
<div class="flex justify-between items-center">
<h1 class="text-2xl font-semibold text-gray-800">Pending Listings Approval</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="text-gray-600 hover:text-gray-900">
<i class="fas fa-bell text-xl"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
</div>
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-8 h-8 rounded-full mr-2">
<span class="font-medium">Admin User</span>
</div>
</div>
</div>
</header>
<main class="p-6">
<div class="bg-white p-6 rounded-lg shadow-sm mb-6">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Item</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Seller</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Category</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
<th class="px-6 py-
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ClassiFied - Uganda Classified Ads Platform</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%, #10b981 100%);
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.status-pending {
background-color: #f59e0b;
}
.status-approved {
background-color: #10b981;
}
.status-rejected {
background-color: #ef4444;
}
.sidebar-link.active {
background-color: #e0e7ff;
color: #4f46e5;
border-left: 4px solid #4f46e5;
}
.mobile-money-option:hover {
border-color: #4f46e5;
}
#imagePreviewContainer {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.preview-image {
width: 100px;
height: 100px;
object-fit: cover;
border-radius: 8px;
position: relative;
}
.remove-image {
position: absolute;
top: -8px;
right: -8px;
background: #ef4444;
color: white;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
cursor: pointer;
}
.selected-payment {
border-color: #4f46e5;
background-color: #e0e7ff;
}
</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-4">
<a href="#" class="text-2xl font-bold flex items-center">
<i class="fas fa-ad mr-2"></i>
ClassiFied
</a>
<div class="hidden md:flex space-x-6">
<a href="#" class="hover:text-gray-200">Home</a>
<a href="#" class="hover:text-gray-200">Categories</a>
<a href="#" class="hover:text-gray-200">How It Works</a>
<a href="#" class="hover:text-gray-200">Contact</a>
</div>
</div>
<div class="flex items-center space-x-4">
<button id="loginBtn" class="bg-white text-indigo-600 px-4 py-2 rounded-lg font-medium hover:bg-gray-100">
Login / Register
</button>
<button id="sellBtn" class="hidden md:block bg-yellow-400 text-gray-900 px-4 py-2 rounded-lg font-medium hover:bg-yellow-300">
<i class="fas fa-plus mr-1"></i> Sell Item
</button>
<button id="mobileMenuBtn" class="md:hidden text-white">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
</div>
</nav>