translateflow / document-upload.html
ziedothmani's picture
add link between pages - Initial Deployment
f28ced3 verified
Raw
History Blame Contribute Delete
11.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Upload Document - 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-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">Dashboard</a>
<a href="document-upload.html" class="border-primary-500 text-gray-900 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-3xl 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">
Upload New Document
</h2>
</div>
</div>
<!-- Upload Form -->
<div class="bg-white shadow sm:rounded-lg">
<div class="px-4 py-5 sm:p-6">
<form class="space-y-6">
<!-- File Upload -->
<div>
<label class="block text-sm font-medium text-gray-700">
Document
</label>
<div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md">
<div class="space-y-1 text-center">
<i data-feather="upload" class="mx-auto h-12 w-12 text-gray-400"></i>
<div class="flex text-sm text-gray-600">
<label for="file-upload" class="relative cursor-pointer bg-white rounded-md font-medium text-primary-600 hover:text-primary-500 focus-within:outline-none">
<span>Upload a file</span>
<input id="file-upload" name="file-upload" type="file" class="sr-only">
</label>
<p class="pl-1">or drag and drop</p>
</div>
<p class="text-xs text-gray-500">
PDF, DOC, DOCX up to 10MB
</p>
</div>
</div>
</div>
<!-- Language Selection -->
<div class="grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-2">
<div>
<label for="source-language" class="block text-sm font-medium text-gray-700">
Source Language
</label>
<select id="source-language" name="source-language" class="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm">
<option>English</option>
<option>Spanish</option>
<option>French</option>
<option>German</option>
<option>Chinese</option>
<option>Japanese</option>
</select>
</div>
<div>
<label for="target-language" class="block text-sm font-medium text-gray-700">
Target Language
</label>
<select id="target-language" name="target-language" class="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm">
<option>Spanish</option>
<option>English</option>
<option>French</option>
<option>German</option>
<option>Chinese</option>
<option>Japanese</option>
</select>
</div>
</div>
<!-- Document Type -->
<div>
<label for="document-type" class="block text-sm font-medium text-gray-700">
Document Type
</label>
<select id="document-type" name="document-type" class="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm">
<option>Legal</option>
<option>Technical</option>
<option>Personal</option>
<option>Medical</option>
<option>Business</option>
<option>Other</option>
</select>
</div>
<!-- Deadline -->
<div>
<label for="deadline" class="block text-sm font-medium text-gray-700">
Deadline (Optional)
</label>
<input type="date" name="deadline" id="deadline" class="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm">
<p class="mt-2 text-sm text-gray-500">Default is 5 working days. Select a date for expedited service.</p>
</div>
<!-- Comments -->
<div>
<label for="comments" class="block text-sm font-medium text-gray-700">
Additional Comments
</label>
<textarea id="comments" name="comments" rows="3" class="shadow-sm focus:ring-primary-500 focus:border-primary-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md"></textarea>
<p class="mt-2 text-sm text-gray-500">Add any specific instructions or notes for the translator.</p>
</div>
<!-- Submit Button -->
<div class="flex justify-end">
<button type="button" onclick="window.location.href='client-dashboard.html'" class="bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
Cancel
</button>
<button type="submit" class="ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-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">
Submit for Translation
</button>
</div>
</form>
</div>
</div>
</div>
<script>
AOS.init({
duration: 800,
easing: 'ease-in-out'
});
feather.replace();
</script>
</body>
</html>