teecraft-3d-studio / payment.html
sa2647029's picture
Add payment details
b4650d3 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payment | TeeCraft 3D Studio</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
</head>
<body class="bg-gray-50">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-20">
<div class="max-w-3xl mx-auto">
<h1 class="text-3xl font-bold text-gray-800 mb-8">Payment Details</h1>
<div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
<div class="p-6 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-800">Order Summary</h2>
</div>
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<div>
<h3 class="text-lg font-medium text-gray-800">Custom T-Shirt Design</h3>
<p class="text-gray-600">Quantity: 1</p>
</div>
<span class="text-lg font-medium">$29.99</span>
</div>
<div class="border-t border-gray-200 pt-4 mt-4">
<div class="flex justify-between mb-2">
<span class="text-gray-600">Subtotal</span>
<span class="text-gray-800">$29.99</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-600">Shipping</span>
<span class="text-gray-800">$5.99</span>
</div>
<div class="flex justify-between font-semibold text-lg mt-4 pt-4 border-t border-gray-200">
<span>Total</span>
<span>$35.98</span>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-6 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-800">Payment Method</h2>
</div>
<div class="p-6">
<form id="payment-form">
<div class="mb-6">
<label class="block text-sm font-medium text-gray-700 mb-2">Card Number</label>
<div class="flex items-center border border-gray-300 rounded-lg overflow-hidden">
<input type="text" class="w-full px-4 py-3 focus:outline-none" placeholder="1234 5678 9012 3456" maxlength="16">
<div class="px-4">
<div class="flex space-x-2">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/visa/visa-original.svg" class="h-6 w-6" alt="Visa">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/mastercard/mastercard-original.svg" class="h-6 w-6" alt="Mastercard">
</div>
</div>
</div>
</div>
<div class="grid grid-cols-2 gap-4 mb-6">
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Expiration Date</label>
<input type="text" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="MM/YY">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Security Code</label>
<input type="text" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="CVC" maxlength="3">
</div>
</div>
<div class="mb-6">
<label class="block text-sm font-medium text-gray-700 mb-2">Name on Card</label>
<input type="text" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="John Doe">
</div>
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-3 rounded-lg font-medium transition duration-300">
Pay $35.98
</button>
<div class="flex items-center mt-4">
<input id="terms-checkbox" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="terms-checkbox" class="ml-2 block text-sm text-gray-700">
I agree to the <a href="#" class="text-blue-600 hover:underline">Terms & Conditions</a>
</label>
</div>
</form>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script>
feather.replace();
// Payment form submission
document.getElementById('payment-form').addEventListener('submit', (e) => {
e.preventDefault();
alert('Payment processed successfully! Your order is being prepared.');
window.location.href = '/';
});
</script>
<script src="script.js"></script>
</body>
</html>