-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
342 lines (305 loc) · 13.8 KB
/
index.html
File metadata and controls
342 lines (305 loc) · 13.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Faculty Tools Collection by A. Rahimi</title>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap"
rel="stylesheet">
<!-- Lucide Icons -->
<script src="https://unpkg.com/lucide@latest"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
mono: ['Fira Code', 'monospace'],
},
colors: {
brand: {
50: '#f0fdfa',
100: '#ccfbf1',
500: '#14b8a6',
600: '#0d9488',
900: '#134e4a',
}
}
}
}
}
</script>
<style>
/* Custom scrollbar for a polished look */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
.toast {
visibility: hidden;
min-width: 250px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 8px;
padding: 16px;
position: fixed;
z-index: 50;
left: 50%;
bottom: 30px;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
}
.toast.show {
visibility: visible;
opacity: 1;
bottom: 50px;
}
</style>
</head>
<body class="bg-gray-50 text-gray-800 font-sans antialiased flex flex-col min-h-screen">
<!-- Hero Section -->
<div class="bg-white border-b border-gray-200 relative overflow-hidden">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 relative z-10">
<div class="text-center max-w-3xl mx-auto">
<h1 class="text-4xl md:text-5xl font-extrabold text-gray-900 tracking-tight mb-6">
Everything you need for <span
class="text-transparent bg-clip-text bg-gradient-to-r from-brand-600 to-blue-600">Faculty</span>
tools.
</h1>
<p class="text-lg md:text-xl text-gray-600 mb-10">
A curated collection of web-based utilities to help you manage your faculty duties.
</p>
<!-- Search Bar -->
<div class="relative max-w-2xl mx-auto group">
<div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none">
<i data-lucide="search"
class="h-5 w-5 text-gray-400 group-focus-within:text-brand-500 transition-colors"></i>
</div>
<input type="text" id="searchInput"
class="block w-full pl-11 pr-4 py-4 border border-gray-300 rounded-xl leading-5 bg-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500 sm:text-lg shadow-sm transition-all"
placeholder="Search for tools (e.g., grades, ceab, papers)...">
</div>
</div>
</div>
</div>
<!-- Main Content: Tools Grid -->
<main id="tools" class="flex-grow max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16 w-full">
<div class="flex justify-between items-end mb-8">
<div>
<h2 class="text-2xl font-bold text-gray-900">Available Tools</h2>
<p class="text-gray-500 mt-1" id="toolCount">Showing all tools.</p>
</div>
</div>
<!-- Grid Container -->
<div id="toolsGrid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Cards will be injected here by JavaScript -->
</div>
<!-- Empty State -->
<div id="emptyState" class="hidden text-center py-20">
<div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-gray-100 mb-4">
<i data-lucide="search-x" class="h-8 w-8 text-gray-400"></i>
</div>
<h3 class="text-lg font-medium text-gray-900">No tools found</h3>
<p class="text-gray-500 mt-1">Try adjusting your search terms.</p>
<button
onclick="document.getElementById('searchInput').value=''; document.getElementById('searchInput').dispatchEvent(new Event('input'));"
class="mt-4 text-brand-600 hover:text-brand-700 font-medium">
Clear search
</button>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t border-gray-200 mt-auto">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="md:flex md:items-center md:justify-between">
<div class="flex justify-center md:justify-start items-center gap-2 mb-4 md:mb-0">
<i data-lucide="sigma" class="w-5 h-5 text-brand-600"></i>
<span class="text-gray-900 font-semibold">Faculty Tools by A. Rahimi</span>
</div>
<div class="flex justify-center space-x-6">
<a href="#" class="text-gray-400 hover:text-gray-500">
<span class="sr-only">GitHub</span>
<i data-lucide="github" class="h-5 w-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-gray-500">
<span class="sr-only">Twitter</span>
<i data-lucide="twitter" class="h-5 w-5"></i>
</a>
</div>
<div class="mt-4 md:mt-0 text-center md:text-right">
<p class="text-sm text-gray-500">
© 2026 Faculty Tools by A. Rahimi. All rights reserved.
</p>
</div>
</div>
</div>
</footer>
<!-- Custom Toast Notification -->
<div id="toast" class="toast flex items-center gap-3 shadow-lg">
<i data-lucide="loader-2" class="h-5 w-5 animate-spin text-brand-400"></i>
<span id="toastMessage">Loading tool...</span>
</div>
<!-- Application Logic -->
<script>
// Data for the tools
const toolsData = [
{
id: 'brightspace-to-ceab',
title: 'Brightspace to CEAB',
description: 'Convert Brightspace grade exports to CEAB-compliant format.',
icon: 'library',
tags: ['Grades', 'CEAB', 'Utility'],
color: 'text-amber-600',
bgColor: 'bg-amber-50',
path: 'brightspace-to-ceab.html'
},
{
id: 'committee-selector',
title: 'Committee Selector',
description: 'Select an appropriate graduate committee based on research interests and expertise.',
icon: 'users',
tags: ['Research', 'Committee', 'Selection'],
color: 'text-blue-600',
bgColor: 'bg-blue-50',
path: 'committee-selector.html'
},
{
id: 'course-mapping-tool',
title: 'Course Mapping Tool',
description: 'Visualize and manage course mappings for the MAME program.',
icon: 'map',
tags: ['Academics', 'Curriculum', 'Visualization'],
color: 'text-purple-600',
bgColor: 'bg-purple-50',
path: 'course-mapping.html',
},
{
id: 'json-deduplicator-tool',
title: 'JSON Deduplicator',
description: 'Remove duplicate entries from JSON arrays.',
icon: 'file-code',
tags: ['Data', 'Cleaning', 'Utility'],
color: 'text-green-600',
bgColor: 'bg-green-50',
path: 'json-deduplicator.html'
},
{
id: 'bib-cleaner-tool',
title: 'Bib Cleaner Tool',
description: 'Clean and format bibliographic entries.',
icon: 'file-text',
tags: ['Data', 'Cleaning', 'Utility'],
color: 'text-green-600',
bgColor: 'bg-green-50',
path: 'bib-cleaner.html'
},
{
id: 'latex-flattener-tool',
title: 'LaTeX Flattener Tool',
description: 'Flatten nested LaTeX structures for improved compatibility.',
icon: 'file-code',
tags: ['Data', 'Cleaning', 'Utility'],
color: 'text-green-600',
bgColor: 'bg-green-50',
path: 'latex-flattener.html'
},
{
id: 'travel-policy-tool',
title: 'Travel Policy Tool',
description: 'Access and view the latest travel policies and procedures.',
icon: 'plane',
tags: ['Policy', 'Procedures', 'Utility'],
color: 'text-blue-600',
bgColor: 'bg-blue-50',
path: 'travel-policy.html'
}
];
const toolsGrid = document.getElementById('toolsGrid');
const searchInput = document.getElementById('searchInput');
const toolCountText = document.getElementById('toolCount');
const emptyState = document.getElementById('emptyState');
// Function to create a tool card HTML string
function createCardHTML(tool) {
const tagsHTML = tool.tags.map(tag =>
`<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800">${tag}</span>`
).join('');
return `
<div class="bg-white rounded-2xl p-6 border border-gray-200 shadow-sm hover:shadow-xl hover:-translate-y-1 transition-all duration-300 flex flex-col h-full cursor-pointer group" onclick="navigateTo('${tool.title}', '${tool.path}')">
<div class="flex items-start justify-between mb-4">
<div class="p-3 rounded-xl ${tool.bgColor} ${tool.color} group-hover:scale-110 transition-transform duration-300">
<i data-lucide="${tool.icon}" class="w-6 h-6"></i>
</div>
<i data-lucide="arrow-up-right" class="w-5 h-5 text-gray-300 group-hover:text-brand-500 transition-colors"></i>
</div>
<h3 class="text-xl font-bold text-gray-900 mb-2 group-hover:text-brand-600 transition-colors">${tool.title}</h3>
<p class="text-gray-600 text-sm mb-6 flex-grow leading-relaxed">${tool.description}</p>
<div class="flex flex-wrap gap-2 mt-auto pt-4 border-t border-gray-100">
${tagsHTML}
</div>
</div>
`;
}
// Function to render tools based on filter
function renderTools(filterText = '') {
const lowerFilter = filterText.toLowerCase();
const filteredTools = toolsData.filter(tool => {
return tool.title.toLowerCase().includes(lowerFilter) ||
tool.description.toLowerCase().includes(lowerFilter) ||
tool.tags.some(tag => tag.toLowerCase().includes(lowerFilter));
});
if (filteredTools.length === 0) {
toolsGrid.innerHTML = '';
toolsGrid.classList.add('hidden');
emptyState.classList.remove('hidden');
toolCountText.textContent = `0 tools found for "${filterText}".`;
} else {
toolsGrid.innerHTML = filteredTools.map(tool => createCardHTML(tool)).join('');
toolsGrid.classList.remove('hidden');
emptyState.classList.add('hidden');
if (filterText === '') {
toolCountText.textContent = `Showing all ${filteredTools.length} tools.`;
} else {
toolCountText.textContent = `Found ${filteredTools.length} tool${filteredTools.length === 1 ? '' : 's'}.`;
}
}
// Re-initialize icons for newly added elements
lucide.createIcons();
}
// Handle navigation simulation (since individual pages don't exist in this demo)
// Handle navigation to the actual tool pages
function navigateTo(toolName, path) {
const toast = document.getElementById('toast');
const toastMessage = document.getElementById('toastMessage');
toastMessage.textContent = `Opening ${toolName}...`;
toast.classList.add('show');
setTimeout(() => {
toast.classList.remove('show');
if (path) {
window.location.href = path;
}
}, 800); // Navigate after an 800ms delay to allow the toast to show
}
// Event listener for live search
searchInput.addEventListener('input', (e) => {
renderTools(e.target.value);
});
// Initial render
renderTools();
</script>
</body>
</html>