Spaces:
Running
Running
continue
Browse files- components/navbar.js +6 -6
- patients.html +148 -0
components/navbar.js
CHANGED
|
@@ -40,11 +40,11 @@ class CustomNavbar extends HTMLElement {
|
|
| 40 |
</div>
|
| 41 |
</div>
|
| 42 |
<div class="hidden sm:ml-6 sm:flex sm:space-x-8">
|
| 43 |
-
<a href="
|
| 44 |
-
<a href="
|
| 45 |
<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">Reports</a>
|
| 46 |
<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">Settings</a>
|
| 47 |
-
|
| 48 |
</div>
|
| 49 |
<div class="hidden sm:ml-6 sm:flex sm:items-center">
|
| 50 |
<button class="bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
|
|
@@ -73,11 +73,11 @@ class CustomNavbar extends HTMLElement {
|
|
| 73 |
|
| 74 |
<div class="hidden mobile-menu sm:hidden" id="mobile-menu">
|
| 75 |
<div class="pt-2 pb-3 space-y-1">
|
| 76 |
-
<a href="
|
| 77 |
-
<a href="
|
| 78 |
<a href="#" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Reports</a>
|
| 79 |
<a href="#" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Settings</a>
|
| 80 |
-
|
| 81 |
<div class="pt-4 pb-3 border-t border-gray-200">
|
| 82 |
<div class="flex items-center px-4">
|
| 83 |
<div class="flex-shrink-0">
|
|
|
|
| 40 |
</div>
|
| 41 |
</div>
|
| 42 |
<div class="hidden sm:ml-6 sm:flex sm:space-x-8">
|
| 43 |
+
<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">Exams</a>
|
| 44 |
+
<a href="patients.html" class="border-primary-500 text-primary-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Patients</a>
|
| 45 |
<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">Reports</a>
|
| 46 |
<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">Settings</a>
|
| 47 |
+
</div>
|
| 48 |
</div>
|
| 49 |
<div class="hidden sm:ml-6 sm:flex sm:items-center">
|
| 50 |
<button class="bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
|
|
|
|
| 73 |
|
| 74 |
<div class="hidden mobile-menu sm:hidden" id="mobile-menu">
|
| 75 |
<div class="pt-2 pb-3 space-y-1">
|
| 76 |
+
<a href="/" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Exams</a>
|
| 77 |
+
<a href="patients.html" class="bg-primary-50 border-primary-500 text-primary-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Patients</a>
|
| 78 |
<a href="#" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Reports</a>
|
| 79 |
<a href="#" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Settings</a>
|
| 80 |
+
</div>
|
| 81 |
<div class="pt-4 pb-3 border-t border-gray-200">
|
| 82 |
<div class="flex items-center px-4">
|
| 83 |
<div class="flex-shrink-0">
|
patients.html
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|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ients</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script>
|
| 12 |
+
tailwind.config = {
|
| 13 |
+
theme: {
|
| 14 |
+
extend: {
|
| 15 |
+
colors: {
|
| 16 |
+
primary: {
|
| 17 |
+
50: '#f0f9ff',
|
| 18 |
+
100: '#e0f2fe',
|
| 19 |
+
200: '#bae6fd',
|
| 20 |
+
300: '#7dd3fc',
|
| 21 |
+
400: '#38bdf8',
|
| 22 |
+
500: '#0ea5e9',
|
| 23 |
+
600: '#0284c7',
|
| 24 |
+
700: '#0369a1',
|
| 25 |
+
800: '#075985',
|
| 26 |
+
900: '#0c4a6e',
|
| 27 |
+
},
|
| 28 |
+
secondary: {
|
| 29 |
+
50: '#f8fafc',
|
| 30 |
+
100: '#f1f5f9',
|
| 31 |
+
200: '#e2e8f0',
|
| 32 |
+
300: '#cbd5e1',
|
| 33 |
+
400: '#94a3b8',
|
| 34 |
+
500: '#64748b',
|
| 35 |
+
600: '#475569',
|
| 36 |
+
700: '#334155',
|
| 37 |
+
800: '#1e293b',
|
| 38 |
+
900: '#0f172a',
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
</script>
|
| 45 |
+
</head>
|
| 46 |
+
<body class="bg-gray-50">
|
| 47 |
+
<custom-navbar></custom-navbar>
|
| 48 |
+
|
| 49 |
+
<main class="container mx-auto px-4 py-8">
|
| 50 |
+
<div class="flex justify-between items-center mb-8">
|
| 51 |
+
<h1 class="text-3xl font-bold text-primary-800">Patients</h1>
|
| 52 |
+
<div class="flex space-x-4">
|
| 53 |
+
<div class="relative">
|
| 54 |
+
<input type="text" placeholder="Search patients..." class="pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
|
| 55 |
+
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
|
| 56 |
+
</div>
|
| 57 |
+
<button class="bg-primary-600 hover:bg-primary-700 text-white px-4 py-2 rounded-lg flex items-center">
|
| 58 |
+
<i data-feather="plus" class="mr-2"></i> New Patient
|
| 59 |
+
</button>
|
| 60 |
+
</div>
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 64 |
+
<div class="overflow-x-auto">
|
| 65 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 66 |
+
<thead class="bg-primary-50">
|
| 67 |
+
<tr>
|
| 68 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-primary-700 uppercase tracking-wider">Patient ID</th>
|
| 69 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-primary-700 uppercase tracking-wider">Name</th>
|
| 70 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-primary-700 uppercase tracking-wider">Age</th>
|
| 71 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-primary-700 uppercase tracking-wider">Gender</th>
|
| 72 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-primary-700 uppercase tracking-wider">Last Visit</th>
|
| 73 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-primary-700 uppercase tracking-wider">Status</th>
|
| 74 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-primary-700 uppercase tracking-wider">Actions</th>
|
| 75 |
+
</tr>
|
| 76 |
+
</thead>
|
| 77 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 78 |
+
<tr class="hover:bg-gray-50">
|
| 79 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-primary-900">#PT-2023-001</td>
|
| 80 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 81 |
+
<div class="flex items-center">
|
| 82 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 83 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/1" alt="">
|
| 84 |
+
</div>
|
| 85 |
+
<div class="ml-4">
|
| 86 |
+
<div class="text-sm font-medium text-gray-900">John Doe</div>
|
| 87 |
+
<div class="text-sm text-gray-500">john.doe@example.com</div>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
</td>
|
| 91 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">42</td>
|
| 92 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Male</td>
|
| 93 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-10-15</td>
|
| 94 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 95 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
|
| 96 |
+
</td>
|
| 97 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 98 |
+
<a href="#" class="text-primary-600 hover:text-primary-900 mr-3"><i data-feather="eye"></i></a>
|
| 99 |
+
<a href="#" class="text-primary-600 hover:text-primary-900 mr-3"><i data-feather="edit"></i></a>
|
| 100 |
+
<a href="#" class="text-red-600 hover:text-red-900"><i data-feather="trash-2"></i></a>
|
| 101 |
+
</td>
|
| 102 |
+
</tr>
|
| 103 |
+
<!-- More rows would be dynamically generated -->
|
| 104 |
+
</tbody>
|
| 105 |
+
</table>
|
| 106 |
+
</div>
|
| 107 |
+
|
| 108 |
+
<div class="bg-gray-50 px-6 py-3 flex items-center justify-between border-t border-gray-200">
|
| 109 |
+
<div class="flex-1 flex justify-between sm:hidden">
|
| 110 |
+
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> Previous </a>
|
| 111 |
+
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> Next </a>
|
| 112 |
+
</div>
|
| 113 |
+
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
| 114 |
+
<div>
|
| 115 |
+
<p class="text-sm text-gray-700">
|
| 116 |
+
Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">47</span> results
|
| 117 |
+
</p>
|
| 118 |
+
</div>
|
| 119 |
+
<div>
|
| 120 |
+
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
|
| 121 |
+
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
| 122 |
+
<span class="sr-only">Previous</span>
|
| 123 |
+
<i data-feather="chevron-left" class="h-5 w-5"></i>
|
| 124 |
+
</a>
|
| 125 |
+
<a href="#" aria-current="page" class="z-10 bg-primary-50 border-primary-500 text-primary-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 1 </a>
|
| 126 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 2 </a>
|
| 127 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 3 </a>
|
| 128 |
+
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
| 129 |
+
<span class="sr-only">Next</span>
|
| 130 |
+
<i data-feather="chevron-right" class="h-5 w-5"></i>
|
| 131 |
+
</a>
|
| 132 |
+
</nav>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
</main>
|
| 138 |
+
|
| 139 |
+
<custom-footer></custom-footer>
|
| 140 |
+
|
| 141 |
+
<script src="components/navbar.js"></script>
|
| 142 |
+
<script src="components/footer.js"></script>
|
| 143 |
+
<script src="script.js"></script>
|
| 144 |
+
<script>
|
| 145 |
+
feather.replace();
|
| 146 |
+
</script>
|
| 147 |
+
</body>
|
| 148 |
+
</html>
|