Liamlarson's picture
Make all features functional and available
86acef8 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create Shipment | FedEx Tracker</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-100">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-12">
<div class="max-w-4xl mx-auto">
<div class="bg-white rounded-lg shadow-lg overflow-hidden mb-8">
<div class="bg-purple-600 text-white p-6">
<h1 class="text-3xl font-bold">Create a Shipment</h1>
</div>
<div class="p-8">
<form id="shipmentForm" class="space-y-6">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<h2 class="text-xl font-bold mb-4">Sender Information</h2>
<div class="space-y-4">
<input type="text" placeholder="Name" class="w-full px-4 py-3 border rounded-lg">
<input type="text" placeholder="Company (optional)" class="w-full px-4 py-3 border rounded-lg">
<input type="text" placeholder="Street Address" class="w-full px-4 py-3 border rounded-lg">
<input type="text" placeholder="City" class="w-full px-4 py-3 border rounded-lg">
<div class="grid grid-cols-2 gap-4">
<select class="px-4 py-3 border rounded-lg">
<option>Country</option>
<option>United States</option>
<option>Canada</option>
</select>
<input type="text" placeholder="ZIP/Postal Code" class="px-4 py-3 border rounded-lg">
</div>
<input type="tel" placeholder="Phone Number" class="w-full px-4 py-3 border rounded-lg">
</div>
</div>
<div>
<h2 class="text-xl font-bold mb-4">Recipient Information</h2>
<div class="space-y-4">
<input type="text" placeholder="Name" class="w-full px-4 py-3 border rounded-lg">
<input type="text" placeholder="Company (optional)" class="w-full px-4 py-3 border rounded-lg">
<input type="text" placeholder="Street Address" class="w-full px-4 py-3 border rounded-lg">
<input type="text" placeholder="City" class="w-full px-4 py-3 border rounded-lg">
<div class="grid grid-cols-2 gap-4">
<select class="px-4 py-3 border rounded-lg">
<option>Country</option>
<option>United States</option>
<option>Canada</option>
</select>
<input type="text" placeholder="ZIP/Postal Code" class="px-4 py-3 border rounded-lg">
</div>
<input type="tel" placeholder="Phone Number" class="w-full px-4 py-3 border rounded-lg">
</div>
</div>
</div>
<div class="pt-6 border-t">
<h2 class="text-xl font-bold mb-4">Package Details</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div>
<label class="block text-gray-700 mb-2">Weight (kg)</label>
<input type="number" placeholder="0.5" class="w-full px-4 py-3 border rounded-lg">
</div>
<div>
<label class="block text-gray-700 mb-2">Dimensions (cm)</label>
<div class="grid grid-cols-3 gap-2">
<input type="number" placeholder="L" class="px-4 py-3 border rounded-lg">
<input type="number" placeholder="W" class="px-4 py-3 border rounded-lg">
<input type="number" placeholder="H" class="px-4 py-3 border rounded-lg">
</div>
</div>
<div>
<label class="block text-gray-700 mb-2">Service</label>
<select class="w-full px-4 py-3 border rounded-lg">
<option>Standard (3-5 days)</option>
<option>Express (2-3 days)</option>
<option>Overnight (1 day)</option>
</select>
</div>
</div>
</div>
<button type="submit" class="w-full bg-purple-600 hover:bg-purple-700 text-white px-6 py-4 rounded-lg font-medium transition-colors">
Create Shipment
</button>
</form>
</div>
</div>
<div class="bg-white rounded-lg shadow-lg overflow-hidden">
<div class="bg-purple-600 text-white p-6">
<h2 class="text-2xl font-bold">Recent Shipments</h2>
</div>
<div class="p-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">Tracking #</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Recipient</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">Est. Delivery</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-purple-600">#1234567890</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jane Smith</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Delivered</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Oct 10, 2023</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-purple-600">#9876543210</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Acme Corp</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">In Transit</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Oct 15, 2023</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
document.getElementById('shipmentForm').addEventListener('submit', function(e) {
e.preventDefault();
alert('Shipment created successfully! Tracking number: #' + Math.floor(Math.random() * 10000000000));
});
</script>
</body>
</html>