techbazaar-pk / cart.html
Cabin-Nim's picture
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
Raw
History Blame Contribute Delete
19.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shopping Cart - TechBazaar.pk</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>
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;
}
.cart-item {
background-color: #1E293B;
border: 1px solid #334155;
}
.order-summary {
background-color: #1E293B;
border: 1px solid #334155;
}
</style>
</head>
<body class="bg-dark-900">
<!-- 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="index.html" class="text-slate-300 hover:bg-dark-700 hover: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>
<!-- Cart Section -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div class="lg:grid lg:grid-cols-12 lg:gap-x-12 xl:gap-x-16">
<div class="lg:col-span-7">
<h1 class="text-3xl font-extrabold tracking-tight">Shopping Cart</h1>
<div class="mt-8">
<div class="flow-root">
<ul class="-my-6 divide-y divide-dark-700">
<!-- Cart item 1 -->
<li class="py-6 flex">
<div class="flex-shrink-0 w-24 h-24 rounded-md overflow-hidden">
<img src="http://static.photos/technology/320x240/1" alt="Wireless Charger" class="w-full h-full object-center object-cover">
</div>
<div class="ml-4 flex-1 flex flex-col">
<div>
<div class="flex justify-between text-base font-medium">
<h3>
<a href="product.html" class="text-slate-200 hover:text-white">Fast Wireless Charger 15W</a>
</h3>
<p class="ml-4 text-secondary-500">₨4,999</p>
</div>
<p class="mt-1 text-sm text-slate-400">TechBazaar</p>
</div>
<div class="flex-1 flex items-end justify-between text-sm">
<div class="flex items-center">
<button class="text-slate-400 hover:text-slate-200">
<i data-feather="minus" class="h-4 w-4"></i>
</button>
<span class="mx-2 text-slate-300">1</span>
<button class="text-slate-400 hover:text-slate-200">
<i data-feather="plus" class="h-4 w-4"></i>
</button>
</div>
<div class="flex">
<button type="button" class="font-medium text-primary-500 hover:text-primary-400">
Remove
</button>
</div>
</div>
</div>
</li>
<!-- Cart item 2 -->
<li class="py-6 flex">
<div class="flex-shrink-0 w-24 h-24 rounded-md overflow-hidden">
<img src="http://static.photos/technology/320x240/2" alt="Power Bank" class="w-full h-full object-center object-cover">
</div>
<div class="ml-4 flex-1 flex flex-col">
<div>
<div class="flex justify-between text-base font-medium">
<h3>
<a href="#" class="text-slate-200 hover:text-white">20000mAh Power Bank</a>
</h3>
<p class="ml-4 text-secondary-500">₨8,499</p>
</div>
<p class="mt-1 text-sm text-slate-400">TechBazaar</p>
</div>
<div class="flex-1 flex items-end justify-between text-sm">
<div class="flex items-center">
<button class="text-slate-400 hover:text-slate-200">
<i data-feather="minus" class="h-4 w-4"></i>
</button>
<span class="mx-2 text-slate-300">2</span>
<button class="text-slate-400 hover:text-slate-200">
<i data-feather="plus" class="h-4 w-4"></i>
</button>
</div>
<div class="flex">
<button type="button" class="font-medium text-primary-500 hover:text-primary-400">
Remove
</button>
</div>
</div>
</div>
</li>
<!-- Cart item 3 -->
<li class="py-6 flex">
<div class="flex-shrink-0 w-24 h-24 rounded-md overflow-hidden">
<img src="http://static.photos/technology/320x240/3" alt="AirPods" class="w-full h-full object-center object-cover">
</div>
<div class="ml-4 flex-1 flex flex-col">
<div>
<div class="flex justify-between text-base font-medium">
<h3>
<a href="#" class="text-slate-200 hover:text-white">Wireless Earbuds Pro</a>
</h3>
<p class="ml-4 text-secondary-500">₨12,999</p>
</div>
<p class="mt-1 text-sm text-slate-400">TechBazaar</p>
</div>
<div class="flex-1 flex items-end justify-between text-sm">
<div class="flex items-center">
<button class="text-slate-400 hover:text-slate-200">
<i data-feather="minus" class="h-4 w-4"></i>
</button>
<span class="mx-2 text-slate-300">1</span>
<button class="text-slate-400 hover:text-slate-200">
<i data-feather="plus" class="h-4 w-4"></i>
</button>
</div>
<div class="flex">
<button type="button" class="font-medium text-primary-500 hover:text-primary-400">
Remove
</button>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="mt-6">
<div class="flex justify-between text-base font-medium text-slate-200">
<p>Subtotal</p>
<p>₨26,497</p>
</div>
<p class="mt-1 text-sm text-slate-400">Shipping and taxes calculated at checkout.</p>
<div class="mt-6">
<a href="checkout.html" class="flex justify-center items-center px-6 py-3 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-primary-500 hover:bg-primary-600">
Checkout
</a>
</div>
<div class="mt-6 flex justify-center text-sm text-center text-slate-400">
<p>
or
<a href="index.html" class="text-primary-500 font-medium hover:text-primary-400">
Continue Shopping
<span aria-hidden="true"> &rarr;</span>
</a>
</p>
</div>
</div>
</div>
<!-- Order summary -->
<div class="mt-16 lg:mt-0 lg:col-span-5">
<div class="order-summary rounded-lg p-6">
<h2 class="text-lg font-medium text-slate-200">Order summary</h2>
<div class="mt-6 space-y-4">
<div class="flex items-center justify-between">
<p class="text-sm text-slate-400">Subtotal</p>
<p class="text-sm font-medium text-slate-300">₨26,497</p>
</div>
<div class="flex items-center justify-between">
<p class="text-sm text-slate-400">Shipping</p>
<p class="text-sm font-medium text-slate-300">₨250</p>
</div>
<div class="flex items-center justify-between">
<p class="text-sm text-slate-400">Taxes</p>
<p class="text-sm font-medium text-slate-300">₨1,325</p>
</div>
<div class="flex items-center justify-between border-t border-dark-700 pt-4">
<p class="text-base font-medium text-slate-200">Order total</p>
<p class="text-base font-medium text-secondary-500">₨28,072</p>
</div>
</div>
<div class="mt-6">
<div class="bg-dark-700 rounded-lg p-4">
<h3 class="text-sm font-medium text-slate-200">Promo code</h3>
<div class="mt-2 flex">
<input type="text" placeholder="Enter promo code" class="bg-dark-800 border border-dark-700 rounded-l-md py-2 px-4 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 w-full">
<button class="bg-primary-500 border border-transparent rounded-r-md py-2 px-4 text-sm font-medium text-white hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-50 focus:ring-primary-500">
Apply
</button>
</div>
</div>
</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">&copy; 2023 TechBazaar.pk. All rights reserved.</p>
</div>
</div>
</footer>
<script>
feather.replace();
</script>
</body>
</html>