translateflow / client-dashboard.html
ziedothmani's picture
add link between pages - Initial Deployment
f28ced3 verified
Raw
History Blame Contribute Delete
17.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Client Dashboard - TranslateFlow</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
},
secondary: {
50: '#f5f3ff',
100: '#ede9fe',
200: '#ddd6fe',
300: '#c4b5fd',
400: '#a78bfa',
500: '#8b5cf6',
600: '#7c3aed',
700: '#6d28d9',
800: '#5b21b6',
900: '#4c1d95',
}
},
fontFamily: {
'sans': ['Inter', 'sans-serif']
}
}
}
}
</script>
</head>
<body class="font-sans bg-gray-50">
<!-- Navigation -->
<nav class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<i data-feather="globe" class="h-8 w-8 text-primary-600"></i>
<span class="ml-2 text-xl font-bold text-gray-900">TranslateFlow</span>
</div>
<div class="hidden sm:ml-6 sm:flex sm:space-x-8">
<a href="client-dashboard.html" class="border-primary-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Dashboard</a>
<a href="document-upload.html" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Upload Document</a>
<a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">History</a>
</div>
</div>
<div class="hidden sm:ml-6 sm:flex sm:items-center">
<button class="bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i data-feather="bell" class="h-6 w-6"></i>
</button>
<div class="ml-3 relative">
<div class="flex items-center">
<button class="flex text-sm rounded-full focus:outline-none">
<img class="h-8 w-8 rounded-full" src="http://static.photos/people/200x200/1" alt="User">
<span class="ml-2 text-gray-700 font-medium">John Doe</span>
<i data-feather="chevron-down" class="ml-1 h-4 w-4"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<div class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
<!-- Page Header -->
<div class="md:flex md:items-center md:justify-between mb-6">
<div class="flex-1 min-w-0">
<h2 class="text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate">
Client Dashboard
</h2>
</div>
<div class="mt-4 flex md:mt-0 md:ml-4">
<button type="button" onclick="window.location.href='document-upload.html'" class="ml-3 inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 focus:outline-none">
<i data-feather="upload" class="mr-2 h-4 w-4"></i>
Upload Document
</button>
</div>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4 mb-6">
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-primary-100 rounded-md p-3">
<i data-feather="file-text" class="h-6 w-6 text-primary-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Total Documents</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">24</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-100 rounded-md p-3">
<i data-feather="check-circle" class="h-6 w-6 text-green-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Completed</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">18</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-yellow-100 rounded-md p-3">
<i data-feather="clock" class="h-6 w-6 text-yellow-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">In Progress</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">4</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-red-100 rounded-md p-3">
<i data-feather="alert-circle" class="h-6 w-6 text-red-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Pending Pickup</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">2</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
</div>
<!-- Recent Documents -->
<div class="bg-white shadow overflow-hidden sm:rounded-md">
<div class="px-4 py-5 border-b border-gray-200 sm:px-6">
<div class="flex items-center justify-between">
<h3 class="text-lg leading-6 font-medium text-gray-900">
Recent Translation Requests
</h3>
<button class="text-sm font-medium text-primary-600 hover:text-primary-500">
View all
</button>
</div>
</div>
<ul class="divide-y divide-gray-200">
<li>
<a href="#" class="block hover:bg-gray-50">
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-primary-600 truncate">
Business Contract Translation
</p>
<div class="ml-2 flex-shrink-0 flex">
<p class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Completed
</p>
</div>
</div>
<div class="mt-2 sm:flex sm:justify-between">
<div class="sm:flex">
<p class="flex items-center text-sm text-gray-500">
<i data-feather="globe" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"></i>
English to Spanish
</p>
<p class="mt-2 flex items-center text-sm text-gray-500 sm:mt-0 sm:ml-6">
<i data-feather="folder" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"></i>
Legal
</p>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500 sm:mt-0">
<i data-feather="calendar" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"></i>
<p>
Completed on <time datetime="2020-01-07">Jan 7, 2020</time>
</p>
</div>
</div>
</div>
</a>
</li>
<li>
<a href="#" class="block hover:bg-gray-50">
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-primary-600 truncate">
Technical Manual Translation
</p>
<div class="ml-2 flex-shrink-0 flex">
<p class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
In Progress
</p>
</div>
</div>
<div class="mt-2 sm:flex sm:justify-between">
<div class="sm:flex">
<p class="flex items-center text-sm text-gray-500">
<i data-feather="globe" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"></i>
German to English
</p>
<p class="mt-2 flex items-center text-sm text-gray-500 sm:mt-0 sm:ml-6">
<i data-feather="folder" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"></i>
Technical
</p>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500 sm:mt-0">
<i data-feather="calendar" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"></i>
<p>
Due on <time datetime="2020-01-15">Jan 15, 2020</time>
</p>
</div>
</div>
</div>
</a>
</li>
<li>
<a href="#" class="block hover:bg-gray-50">
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-primary-600 truncate">
Personal Document Translation
</p>
<div class="ml-2 flex-shrink-0 flex">
<p class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
Pending Pickup
</p>
</div>
</div>
<div class="mt-2 sm:flex sm:justify-between">
<div class="sm:flex">
<p class="flex items-center text-sm text-gray-500">
<i data-feather="globe" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"></i>
French to English
</p>
<p class="mt-2 flex items-center text-sm text-gray-500 sm:mt-0 sm:ml-6">
<i data-feather="folder" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"></i>
Personal
</p>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500 sm:mt-0">
<i data-feather="calendar" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"></i>
<p>
Completed on <time datetime="2020-01-05">Jan 5, 2020</time>
</p>
</div>
</div>
</div>
</a>
</li>
</ul>
</div>
<!-- Upload Section -->
<div class="mt-8 bg-white shadow sm:rounded-lg">
<div class="px-4 py-5 sm:p-6">
<h3 class="text-lg leading-6 font-medium text-gray-900">
Upload New Document
</h3>
<div class="mt-5 sm:flex sm:items-center">
<div class="w-full sm:max-w-xs">
<label for="document" class="sr-only">Document</label>
<input type="file" name="document" id="document" class="shadow-sm focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md">
</div>
<button type="button" class="mt-3 w-full inline-flex items-center justify-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-white bg-primary-600 hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
Upload
</button>
</div>
<div class="mt-3 text-sm text-gray-500">
<p>Supported formats: PDF, DOCX, DOC, TXT. Max file size: 10MB.</p>
</div>
</div>
</div>
</div>
<script>
AOS.init({
duration: 800,
easing: 'ease-in-out'
});
feather.replace();
</script>
</body>
</html>