test-space / cart.html
smolSWE's picture
Initial commit: Basic project structure and page templates created.
9a30761 verified
raw
history blame
2.54 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 - Amazon Clone</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="bg-gray-800 p-4 text-white">
<div class="container mx-auto flex items-center justify-between">
<a href="/" class="text-2xl font-bold">Amazon</a>
<div class="flex items-center">
<input type="text" placeholder="Search" class="bg-gray-700 text-white px-4 py-2 rounded-md mr-2">
<button class="bg-yellow-500 text-gray-800 px-4 py-2 rounded-md hover:bg-yellow-400">Search</button>
</div>
<div>
<a href="/cart.html" class="hover:text-yellow-500">Cart</a>
</div>
</div>
</nav>
<main class="container mx-auto mt-8">
<h1>Shopping Cart</h1>
<div class="grid grid-cols-1 gap-4">
<div class="flex items-center border border-gray-300 rounded-md p-4">
<img src="https://via.placeholder.com/100" alt="Product Image" class="w-24 h-24 mr-4">
<div>
<h2 class="text-lg font-bold">Product Title</h2>
<p class="text-gray-600">$99.99</p>
<div class="flex items-center mt-2">
<button class="bg-gray-200 px-2 py-1 rounded-md">-</button>
<input type="number" value="1" class="w-16 text-center border border-gray-300 rounded-md mx-2">
<button class="bg-gray-200 px-2 py-1 rounded-md">+</button>
<button class="text-red-500 hover:text-red-700 ml-4">Remove</button>
</div>
</div>
</div>
</div>
<div class="mt-8">
<h2 class="text-xl font-bold">Order Summary</h2>
<p>Subtotal: $99.99</p>
<p>Shipping: $5.00</p>
<p class="font-bold">Total: $104.99</p>
<button class="bg-yellow-500 text-gray-800 px-4 py-2 rounded-md hover:bg-yellow-400">Proceed to Checkout</button>
</div>
</main>
<footer class="bg-gray-800 p-4 text-white text-center mt-8">
<p>&copy; 2024 Amazon Clone</p>
</footer>
<script src="script.js"></script>
</body>
</html>