globalship-logistics / admin.html
demonsom's picture
<!DOCTYPE html>
c6eec55 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GlobalShip - Admin Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body class="bg-gray-50 font-sans">
<div class="flex h-screen">
<!-- Sidebar -->
<div class="w-64 bg-white shadow-md">
<div class="p-6">
<h1 class="text-2xl font-bold text-blue-600 flex items-center">
<i data-feather="navigation" class="mr-2"></i>
GlobalShip
</h1>
</div>
<nav class="mt-6">
<a href="#" class="flex items-center px-6 py-3 text-blue-600 bg-blue-50 border-l-4 border-blue-600">
<i data-feather="home" class="mr-3"></i>
Dashboard
</a>
<a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
<i data-feather="package" class="mr-3"></i>
Shipments
</a>
<a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
<i data-feather="users" class="mr-3"></i>
Customers
</a>
<a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
<i data-feather="bar-chart-2" class="mr-3"></i>
Analytics
</a>
<a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
<i data-feather="settings" class="mr-3"></i>
Settings
</a>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Header -->
<header class="flex items-center justify-between p-6 bg-white shadow">
<div>
<h2 class="text-xl font-semibold">Dashboard</h2>
<p class="text-gray-500">Welcome back, Admin</p>
</div>
<div class="flex items-center space-x-4">
<button class="p-2 rounded-full hover:bg-gray-100">
<i data-feather="bell"></i>
</button>
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white">
A
</div>
<span class="ml-2">Admin User</span>
</div>
</div>
</header>
<!-- Stats Cards -->
<div class="p-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="package"></i>
</div>
<div class="ml-4">
<p class="text-gray-500">Total Shipments</p>
<h3 class="text-2xl font-bold">1,248</h3>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="truck"></i>
</div>
<div class="ml-4">
<p class="text-gray-500">In Transit</p>
<h3 class="text-2xl font-bold">342</h3>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center">
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
<i data-feather="clock"></i>
</div>
<div class="ml-4">
<p class="text-gray-500">Pending</p>
<h3 class="text-2xl font-bold">87</h3>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i data-feather="dollar-sign"></i>
</div>
<div class="ml-4">
<p class="text-gray-500">Revenue</p>
<h3 class="text-2xl font-bold">$42,560</h3>
</div>
</div>
</div>
</div>
<!-- Recent Shipments -->
<div class="px-6 pb-6 flex-1">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="px-6 py-4 border-b">
<h3 class="text-lg font-semibold">Recent Shipments</h3>
</div>
<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 ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Origin</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Destination</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">Date</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">GS123456789</td>
<td class="px-6 py-4 whitespace-nowrap">New York, USA</td>
<td class="px-6 py-4 whitespace-nowrap">London, UK</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Delivered
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">May 12, 2023</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">GS987654321</td>
<td class="px-6 py-4 whitespace-nowrap">Tokyo, Japan</td>
<td class="px-6 py-4 whitespace-nowrap">Sydney, Australia</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
In Transit
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">May 15, 2023</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">GS555666777</td>
<td class="px-6 py-4 whitespace-nowrap">Berlin, Germany</td>
<td class="px-6 py-4 whitespace-nowrap">Paris, France</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Pending
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">May 18, 2023</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">GS111222333</td>
<td class="px-6 py-4 whitespace-nowrap">Toronto, Canada</td>
<td class="px-6 py-4 whitespace-nowrap">Mexico City, Mexico</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Delivered
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">May 10, 2023</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 bg-gray-50 border-t">
<button class="text-blue-600 hover:text-blue-800 font-medium">
View All Shipments
</button>
</div>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
<script>
feather.replace();
</script>
</body>
</html>