Spaces:
Running
Running
Make an Ecommerce website for tech accessories like chargers, airpods, cables etc. Make the frontend and backend, Make it fully work. Make a full complete website for pakistani audience. Use modern languages and techniques. Also allow the admin to add products and update things as well
625a56c verified | <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>TechBazaar.pk - Tech Accessories for Pakistan</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script> | |
| <script> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 500: '#8B5CF6', | |
| }, | |
| secondary: { | |
| 500: '#10B981', | |
| }, | |
| dark: { | |
| 900: '#0F172A', | |
| 800: '#1E293B', | |
| 700: '#334155', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background-color: #0F172A; | |
| color: #F1F5F9; | |
| } | |
| .product-card:hover { | |
| transform: translateY(-5px); | |
| transition: all 0.3s ease; | |
| } | |
| .category-card { | |
| background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%); | |
| border: 1px solid #334155; | |
| } | |
| .hero-gradient { | |
| background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%); | |
| } | |
| .cart-badge { | |
| background-color: #EF4444; | |
| color: white; | |
| border-radius: 50%; | |
| width: 20px; | |
| height: 20px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 0.75rem; | |
| position: absolute; | |
| top: -5px; | |
| right: -5px; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-dark-900 text-slate-100"> | |
| <!-- Navigation --> | |
| <nav class="bg-dark-800 border-b border-dark-700 sticky top-0 z-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex items-center justify-between h-16"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <i data-feather="smartphone" class="text-primary-500 mr-2"></i> | |
| <span class="font-bold text-xl">TechBazaar<span class="text-primary-500">.pk</span></span> | |
| </div> | |
| <div class="hidden md:block"> | |
| <div class="ml-10 flex items-baseline space-x-4"> | |
| <a href="#" class="bg-dark-700 text-white px-3 py-2 rounded-md text-sm font-medium">Home</a> | |
| <a href="#" class="text-slate-300 hover:bg-dark-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Categories</a> | |
| <a href="#" class="text-slate-300 hover:bg-dark-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Deals</a> | |
| <a href="#" class="text-slate-300 hover:bg-dark-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">New Arrivals</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="hidden md:block"> | |
| <div class="ml-4 flex items-center md:ml-6"> | |
| <div class="relative mr-4"> | |
| <input type="text" placeholder="Search products..." class="bg-dark-700 border border-dark-700 rounded-full py-2 px-4 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 w-64"> | |
| <i data-feather="search" class="absolute right-3 top-2.5 text-slate-400"></i> | |
| </div> | |
| <button class="bg-dark-700 p-1 rounded-full text-slate-400 hover:text-white focus:outline-none relative"> | |
| <i data-feather="shopping-cart"></i> | |
| <span class="cart-badge">3</span> | |
| </button> | |
| <div class="ml-3 relative"> | |
| <div> | |
| <button class="max-w-xs flex items-center text-sm rounded-full focus:outline-none"> | |
| <span class="sr-only">Open user menu</span> | |
| <div class="h-8 w-8 rounded-full bg-primary-500 flex items-center justify-center"> | |
| <span class="text-white font-medium">U</span> | |
| </div> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="-mr-2 flex md:hidden"> | |
| <button class="bg-dark-800 inline-flex items-center justify-center p-2 rounded-md text-slate-400 hover:text-white hover:bg-dark-700 focus:outline-none"> | |
| <i data-feather="menu" class="block h-6 w-6"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <div class="relative overflow-hidden"> | |
| <div id="hero-bg" class="absolute inset-0 z-0"></div> | |
| <div class="relative max-w-7xl mx-auto py-24 px-4 sm:py-32 sm:px-6 lg:px-8 z-10"> | |
| <div class="text-center hero-gradient rounded-2xl p-8 md:p-16"> | |
| <h1 class="text-4xl tracking-tight font-extrabold sm:text-5xl md:text-6xl"> | |
| <span class="block">Premium Tech Accessories</span> | |
| <span class="block text-primary-500 mt-2">For Pakistani Consumers</span> | |
| </h1> | |
| <p class="mt-6 max-w-lg mx-auto text-xl text-slate-300"> | |
| Discover the latest tech accessories at unbeatable prices. Fast shipping across Pakistan. | |
| </p> | |
| <div class="mt-10 flex justify-center"> | |
| <div class="rounded-md shadow"> | |
| <a href="#" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-primary-500 hover:bg-primary-600 md:py-4 md:text-lg md:px-10"> | |
| Shop Now | |
| </a> | |
| </div> | |
| <div class="ml-3 rounded-md shadow"> | |
| <a href="#" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-primary-500 bg-white hover:bg-slate-50 md:py-4 md:text-lg md:px-10"> | |
| View Deals | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Categories Section --> | |
| <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center"> | |
| <h2 class="text-3xl font-extrabold">Shop by Category</h2> | |
| <p class="mt-4 max-w-2xl text-xl text-slate-300 mx-auto"> | |
| Find exactly what you need for your devices | |
| </p> | |
| </div> | |
| <div class="mt-10"> | |
| <div class="grid grid-cols-2 gap-4 md:grid-cols-4"> | |
| <div class="category-card rounded-lg p-6 text-center"> | |
| <div class="mx-auto flex items-center justify-center h-16 w-16 rounded-md bg-primary-500 text-white"> | |
| <i data-feather="battery-charging"></i> | |
| </div> | |
| <h3 class="mt-4 text-lg font-medium">Power Banks</h3> | |
| <p class="mt-2 text-slate-400">High capacity portable chargers</p> | |
| </div> | |
| <div class="category-card rounded-lg p-6 text-center"> | |
| <div class="mx-auto flex items-center justify-center h-16 w-16 rounded-md bg-secondary-500 text-white"> | |
| <i data-feather="headphones"></i> | |
| </div> | |
| <h3 class="mt-4 text-lg font-medium">AirPods & Earbuds</h3> | |
| <p class="mt-2 text-slate-400">Wireless audio solutions</p> | |
| </div> | |
| <div class="category-card rounded-lg p-6 text-center"> | |
| <div class="mx-auto flex items-center justify-center h-16 w-16 rounded-md bg-primary-500 text-white"> | |
| <i data-feather="smartphone"></i> | |
| </div> | |
| <h3 class="mt-4 text-lg font-medium">Phone Cases</h3> | |
| <p class="mt-2 text-slate-400">Protection for all devices</p> | |
| </div> | |
| <div class="category-card rounded-lg p-6 text-center"> | |
| <div class="mx-auto flex items-center justify-center h-16 w-16 rounded-md bg-secondary-500 text-white"> | |
| <i data-feather="cpu"></i> | |
| </div> | |
| <h3 class="mt-4 text-lg font-medium">Cables & Chargers</h3> | |
| <p class="mt-2 text-slate-400">Fast charging solutions</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Featured Products --> | |
| <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between items-center"> | |
| <h2 class="text-3xl font-extrabold">Featured Products</h2> | |
| <a href="#" class="text-primary-500 hover:text-primary-400 font-medium">View All →</a> | |
| </div> | |
| <div class="mt-6 grid grid-cols-1 gap-y-10 gap-x-6 sm:grid-cols-2 lg:grid-cols-4 xl:gap-x-8"> | |
| <!-- Product 1 --> | |
| <div class="group product-card relative bg-dark-800 rounded-lg border border-dark-700 overflow-hidden"> | |
| <div class="w-full min-h-80 bg-gray-200 aspect-w-1 aspect-h-1 rounded-md overflow-hidden lg:h-80 lg:aspect-none"> | |
| <img src="http://static.photos/technology/320x240/1" alt="Wireless Charger" class="w-full h-full object-center object-cover lg:w-full lg:h-full"> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between"> | |
| <h3 class="text-sm text-slate-300"> | |
| <a href="#"> | |
| <span aria-hidden="true" class="absolute inset-0"></span> | |
| Fast Wireless Charger | |
| </a> | |
| </h3> | |
| <p class="text-sm font-medium text-secondary-500">₨4,999</p> | |
| </div> | |
| <p class="mt-1 text-sm text-slate-500">15W Fast Charging for All Devices</p> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <button class="flex items-center text-sm text-primary-500 hover:text-primary-400"> | |
| <i data-feather="shopping-cart" class="mr-1"></i> Add to Cart | |
| </button> | |
| <div class="flex items-center"> | |
| <i data-feather="star" class="text-yellow-400 fill-current"></i> | |
| <span class="ml-1 text-sm text-slate-400">4.8</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 2 --> | |
| <div class="group product-card relative bg-dark-800 rounded-lg border border-dark-700 overflow-hidden"> | |
| <div class="w-full min-h-80 bg-gray-200 aspect-w-1 aspect-h-1 rounded-md overflow-hidden lg:h-80 lg:aspect-none"> | |
| <img src="http://static.photos/technology/320x240/2" alt="Power Bank" class="w-full h-full object-center object-cover lg:w-full lg:h-full"> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between"> | |
| <h3 class="text-sm text-slate-300"> | |
| <a href="#"> | |
| <span aria-hidden="true" class="absolute inset-0"></span> | |
| 20000mAh Power Bank | |
| </a> | |
| </h3> | |
| <p class="text-sm font-medium text-secondary-500">₨8,499</p> | |
| </div> | |
| <p class="mt-1 text-sm text-slate-500">Triple Output Ports, Fast Charging</p> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <button class="flex items-center text-sm text-primary-500 hover:text-primary-400"> | |
| <i data-feather="shopping-cart" class="mr-1"></i> Add to Cart | |
| </button> | |
| <div class="flex items-center"> | |
| <i data-feather="star" class="text-yellow-400 fill-current"></i> | |
| <span class="ml-1 text-sm text-slate-400">4.6</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 3 --> | |
| <div class="group product-card relative bg-dark-800 rounded-lg border border-dark-700 overflow-hidden"> | |
| <div class="w-full min-h-80 bg-gray-200 aspect-w-1 aspect-h-1 rounded-md overflow-hidden lg:h-80 lg:aspect-none"> | |
| <img src="http://static.photos/technology/320x240/3" alt="AirPods" class="w-full h-full object-center object-cover lg:w-full lg:h-full"> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between"> | |
| <h3 class="text-sm text-slate-300"> | |
| <a href="#"> | |
| <span aria-hidden="true" class="absolute inset-0"></span> | |
| Wireless Earbuds Pro | |
| </a> | |
| </h3> | |
| <p class="text-sm font-medium text-secondary-500">₨12,999</p> | |
| </div> | |
| <p class="mt-1 text-sm text-slate-500">Active Noise Cancellation, 30hr Battery</p> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <button class="flex items-center text-sm text-primary-500 hover:text-primary-400"> | |
| <i data-feather="shopping-cart" class="mr-1"></i> Add to Cart | |
| </button> | |
| <div class="flex items-center"> | |
| <i data-feather="star" class="text-yellow-400 fill-current"></i> | |
| <span class="ml-1 text-sm text-slate-400">4.9</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 4 --> | |
| <div class="group product-card relative bg-dark-800 rounded-lg border border-dark-700 overflow-hidden"> | |
| <div class="w-full min-h-80 bg-gray-200 aspect-w-1 aspect-h-1 rounded-md overflow-hidden lg:h-80 lg:aspect-none"> | |
| <img src="http://static.photos/technology/320x240/4" alt="Phone Case" class="w-full h-full object-center object-cover lg:w-full lg:h-full"> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between"> | |
| <h3 class="text-sm text-slate-300"> | |
| <a href="#"> | |
| <span aria-hidden="true" class="absolute inset-0"></span> | |
| Ultra-Slim Phone Case | |
| </a> | |
| </h3> | |
| <p class="text-sm font-medium text-secondary-500">₨2,499</p> | |
| </div> | |
| <p class="mt-1 text-sm text-slate-500">Military Grade Protection, Slim Design</p> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <button class="flex items-center text-sm text-primary-500 hover:text-primary-400"> | |
| <i data-feather="shopping-cart" class="mr-1"></i> Add to Cart | |
| </button> | |
| <div class="flex items-center"> | |
| <i data-feather="star" class="text-yellow-400 fill-current"></i> | |
| <span class="ml-1 text-sm text-slate-400">4.7</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Special Offers --> | |
| <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8"> | |
| <div class="bg-gradient-to-r from-primary-500 to-secondary-500 rounded-2xl p-8 md:p-12"> | |
| <div class="md:flex md:items-center md:justify-between"> | |
| <div class="md:w-2/3"> | |
| <h2 class="text-3xl font-extrabold text-white">Special Eid Offers</h2> | |
| <p class="mt-4 max-w-2xl text-xl text-slate-100"> | |
| Celebrate Eid with exclusive discounts on top tech accessories. Limited time offer! | |
| </p> | |
| </div> | |
| <div class="mt-8 md:mt-0 md:w-1/3 flex justify-center"> | |
| <div class="text-center"> | |
| <div class="text-5xl font-extrabold text-white">50%</div> | |
| <div class="mt-2 text-xl font-medium text-slate-100">OFF</div> | |
| <a href="#" class="mt-6 inline-block bg-white border border-transparent rounded-md py-3 px-8 text-base font-medium text-primary-600 hover:bg-slate-50"> | |
| Shop Now | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-dark-800 border-t border-dark-700"> | |
| <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8"> | |
| <div class="grid grid-cols-2 md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="text-sm font-semibold text-slate-300 tracking-wider uppercase">Shop</h3> | |
| <ul class="mt-4 space-y-4"> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">All Products</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">New Arrivals</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Best Sellers</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Deals & Offers</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-sm font-semibold text-slate-300 tracking-wider uppercase">Support</h3> | |
| <ul class="mt-4 space-y-4"> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Contact Us</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">FAQs</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Shipping Policy</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Returns & Exchanges</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-sm font-semibold text-slate-300 tracking-wider uppercase">Company</h3> | |
| <ul class="mt-4 space-y-4"> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">About Us</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Careers</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Privacy Policy</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Terms & Conditions</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-sm font-semibold text-slate-300 tracking-wider uppercase">Connect</h3> | |
| <ul class="mt-4 space-y-4"> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Facebook</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Instagram</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">Twitter</a></li> | |
| <li><a href="#" class="text-base text-slate-400 hover:text-white">YouTube</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="mt-12 border-t border-dark-700 pt-8"> | |
| <p class="text-base text-slate-400 text-center">© 2023 TechBazaar.pk. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| feather.replace(); | |
| // Initialize Vanta.js background | |
| VANTA.GLOBE({ | |
| el: "#hero-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0x8b5cf6, | |
| color2: 0x10b981, | |
| backgroundColor: 0x0f172a, | |
| size: 1.00, | |
| lineWidth: 1.00 | |
| }); | |
| </script> | |
| </body> | |
| </html> | |