-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontract.html
485 lines (458 loc) · 28.7 KB
/
contract.html
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
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contracts - RemoteHQ</title>
<script src="https://cdn.tailwindcss.com"></script>
<link data-n-head="ssr" type="font/woff2" rel="preload" href="https://www.upwork.com/static/fonts-global/4.5.1/neue-montreal-variable.woff2" as="font" crossorigin="anonymous">
</head>
<body class="bg-white-100">
<!-- Header -->
<header class="bg-white sticky top-0 z-10 shadow-sm">
<div class="container mx-auto px-4 py-3 flex items-center justify-between">
<div class="flex items-center">
<!-- Mobile Menu Icon -->
<button class="md:hidden p-2 text-gray-600 focus:outline-none" aria-label="Open Menu" onclick="toggleMenu()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-6 w-6">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7" />
</svg>
</button>
<!-- Logo -->
<div class="text-xl font-bold text-gray-700"><a href="./index.html">RemoteHQ</a></div>
<!-- Menu Options (Desktop) -->
<nav class="hidden md:flex space-x-4 ml-6">
<a href="./talent.html" class="text-gray-600 hover:text-gray-800 focus:outline focus:outline-gray-300">Find Talent</a>
<a href="./jobs.html" class="text-gray-600 hover:text-gray-800 focus:outline focus:outline-gray-300">Jobs</a>
<a href="#" class="text-gray-600 hover:text-gray-800 focus:outline focus:outline-gray-300 font-bold">Contracts</a>
</nav>
</div>
<!-- Notifications and Account Info -->
<div class="flex items-center space-x-4">
<!--Ai assistant chat-->
<div class="relative">
<button class="p-2 rounded-full focus:outline focus:outline-gray-400" aria-label="Notifications" title="conversations">
<a href="./ai_chat.html" class="relative">
<svg class="w-6 h-6 text-gray-600" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8-1.174 0-2.3-.183-3.358-.524L3 20l1.424-4.272C3.526 14.335 3 12.73 3 11c0-4.418 4.03-8 9-8s9 3.582 9 8z"/>
</svg>
<span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
</a>
</button>
</div>
<!-- Notifications -->
<div class="relative" id="notifications-icon">
<button class="p-2 rounded-full focus:outline focus:outline-gray-400" aria-label="Notifications" title="Notifications" onclick="togglePopup('notifications')">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-6 w-6 text-gray-600">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V4a2 2 0 10-4 0v1.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0a3 3 0 11-6 0m6 0H9" />
</svg>
</button>
<div id="popup-notifications" class="hidden absolute right-0 mt-2 w-48 bg-white border rounded shadow-lg p-4">
<p class="text-sm text-gray-600">No new notifications.</p>
</div>
</div>
<!-- Account Info -->
<div class="relative" id="account-info-icon">
<button class="p-2 rounded-full focus:outline focus:outline-gray-400" aria-label="Account Info" title="Account Info" onclick="togglePopup('account-info')">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-6 w-6 text-gray-600">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-3.31 0-10 1.67-10 5v2h20v-2c0-3.33-6.69-5-10-5z" />
</svg>
</button>
<div id="popup-account-info" class="hidden absolute right-0 mt-2 w-48 bg-white border rounded shadow-lg p-4">
<p class="text-sm text-gray-600">Logged in as John Doe.</p>
<a href="#" class="text-blue-500 hover:underline text-sm">Profile</a>
<br>
<a href="#" class="text-blue-500 hover:underline text-sm">Logout</a>
</div>
</div>
</div>
</div>
<!-- Mobile Menu -->
<nav id="mobile-menu" class="hidden md:hidden bg-gray-100 py-2">
<a href="./talent.html" class="block px-4 py-2 text-gray-600 hover:bg-gray-200">Find Talent</a>
<a href="./jobs.html" class="block px-4 py-2 text-gray-600 hover:bg-gray-200">Jobs</a>
<a href="#" class="block px-4 py-2 text-gray-600 hover:bg-gray-200 font-bold">Contracts</a>
</nav>
</header>
<!-- Main Content -->
<div class="container mx-auto px-4 py-6">
<div class="max-w-6xl mx-auto">
<!-- Header Section -->
<div class="flex flex-col md:flex-row justify-between items-center mb-6 space-y-4 md:space-y-0">
<h1 class="text-2xl font-bold w-full text-center md:text-left md:w-auto">Your Contracts</h1>
<div class="flex items-center space-x-2 w-full md:w-auto">
<div class="relative flex-grow mr-1 md:mr-2">
<input
type="text"
placeholder="Search contracts"
class="w-full border border-gray-300 rounded-md pl-10 pr-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"
>
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 absolute left-3 top-3 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
</div>
<button
id="filter-button"
class="text-gray-600 hover:bg-gray-100 p-2 rounded flex-shrink-0"
>
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z" />
</svg>
</button>
</div>
</div>
<!-- Contracts Grid -->
<div class="space-y-3">
<!-- Contract Card 1 -->
<div id="job-card-1" class="bg-white rounded-lg shadow-sm border border-gray-100 hover:bg-gray-50 transition-colors duration-200 ease-in-out">
<div class="p-4">
<!-- First Row: Contract Title and Three Dots -->
<div class="flex justify-between items-center mb-2">
<h2 class="text-lg font-semibold text-gray-800">Ruby on Rails Development</h2>
<div class="relative group">
<button class="text-gray-400 hover:text-gray-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" />
</svg>
</button>
<!-- Dropdown Menu -->
<div class="hidden group-hover:block absolute right-0 top-full mt-1 w-48 bg-white rounded-md shadow-lg z-50 border border-gray-100">
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">View Details</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">Manage Contract</a>
<a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-50">End Contract</a>
</div>
</div>
</div>
</div>
<!-- Second Row: Client and Status -->
<div class="flex justify-between mb-2 text-sm text-gray-600">
<div>Hired by Mercedes Sournswan</div>
<div>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded-full mr-2">Active</span>
6:00 hrs, $300 this week
</div>
</div>
<!-- Third Row: Rate and Contract Duration -->
<div class="flex justify-between text-sm text-gray-500">
<div>Rate: $25/hr, 25 hrs weekly limit</div>
<div>Nov 21 - Present</div>
</div>
</div>
</div>
<!-- Contract Card 2 -->
<div id="job-card-2" class="bg-white rounded-lg shadow-sm border border-gray-100 hover:bg-gray-50 transition-colors duration-200 ease-in-out">
<div class="p-4">
<!-- First Row: Contract Title and Three Dots -->
<div class="flex justify-between items-center mb-2">
<h2 class="text-lg font-semibold text-gray-800">Frontend React Development</h2>
<div class="relative group">
<button class="text-gray-400 hover:text-gray-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" />
</svg>
</button>
<!-- Dropdown Menu -->
<div class="hidden group-hover:block absolute right-0 top-full mt-1 w-48 bg-white rounded-md shadow-lg z-50 border border-gray-100">
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">View Details</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">Manage Contract</a>
<a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-50">End Contract</a>
</div>
</div>
</div>
</div>
<!-- Second Row: Client and Status -->
<div class="flex justify-between mb-2 text-sm text-gray-600">
<div>Hired by TechCorp Solutions</div>
<div>
<span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full mr-2">Pending</span>
4:30 hrs, $250 this week
</div>
</div>
<!-- Third Row: Rate and Contract Duration -->
<div class="flex justify-between text-sm text-gray-500">
<div>Rate: $30/hr, 20 hrs weekly limit</div>
<div>Jan 23 - Mar 31</div>
</div>
</div>
</div>
<!-- Contract Card 3 -->
<div id="job-card-3" class="bg-white rounded-lg shadow-sm border border-gray-100 hover:bg-gray-50 transition-colors duration-200 ease-in-out">
<div class="p-4">
<div class="flex justify-between items-center mb-2">
<h2 class="text-lg font-semibold text-gray-800">Mobile App Design Project</h2>
<div class="relative group">
<button class="text-gray-400 hover:text-gray-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" />
</svg>
</button>
<div class="hidden group-hover:block absolute right-0 top-full mt-1 w-48 bg-white rounded-md shadow-lg z-50 border border-gray-100">
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">View Details</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">Manage Contract</a>
<a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-50">End Contract</a>
</div>
</div>
</div>
</div>
<div class="flex justify-between mb-2 text-sm text-gray-600">
<div>Hired by Innovate Mobile Inc.</div>
<div>
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded-full mr-2">In Progress</span>
8:15 hrs, $450 this week
</div>
</div>
<div class="flex justify-between text-sm text-gray-500">
<div>Rate: $55/hr, 15 hrs weekly limit</div>
<div>Feb 15 - Apr 15</div>
</div>
</div>
</div>
<!-- Contract Card 4 -->
<div id="job-card-4" class="bg-white rounded-lg shadow-sm border border-gray-100 hover:bg-gray-50 transition-colors duration-200 ease-in-out">
<div class="p-4">
<div class="flex justify-between items-center mb-2">
<h2 class="text-lg font-semibold text-gray-800">E-commerce Backend Development</h2>
<div class="relative group">
<button class="text-gray-400 hover:text-gray-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" />
</svg>
</button>
<div class="hidden group-hover:block absolute right-0 top-full mt-1 w-48 bg-white rounded-md shadow-lg z-50 border border-gray-100">
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">View Details</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">Manage Contract</a>
<a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-50">End Contract</a>
</div>
</div>
</div>
</div>
<div class="flex justify-between mb-2 text-sm text-gray-600">
<div>Hired by GlobalShop Solutions</div>
<div>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded-full mr-2">Active</span>
12:30 hrs, $750 this week
</div>
</div>
<div class="flex justify-between text-sm text-gray-500">
<div>Rate: $60/hr, 20 hrs weekly limit</div>
<div>Mar 1 - May 30</div>
</div>
</div>
</div>
<!-- Contract Card 5 -->
<div id="job-card-5" class="bg-white rounded-lg shadow-sm border border-gray-100 hover:bg-gray-50 transition-colors duration-200 ease-in-out">
<div class="p-4">
<div class="flex justify-between items-center mb-2">
<h2 class="text-lg font-semibold text-gray-800">AI Chatbot Integration</h2>
<div class="relative group">
<button class="text-gray-400 hover:text-gray-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" />
</svg>
</button>
<div class="hidden group-hover:block absolute right-0 top-full mt-1 w-48 bg-white rounded-md shadow-lg z-50 border border-gray-100">
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">View Details</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">Manage Contract</a>
<a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-50">End Contract</a>
</div>
</div>
</div>
</div>
<div class="flex justify-between mb-2 text-sm text-gray-600">
<div>Hired by TechAI Innovations</div>
<div>
<span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full mr-2">Pending</span>
3:45 hrs, $225 this week
</div>
</div>
<div class="flex justify-between text-sm text-gray-500">
<div>Rate: $45/hr, 10 hrs weekly limit</div>
<div>Apr 5 - Jun 15</div>
</div>
</div>
</div>
<!-- Contract Card 6 -->
<div id="job-card-6" class="bg-white rounded-lg shadow-sm border border-gray-100 hover:bg-gray-50 transition-colors duration-200 ease-in-out">
<div class="p-4">
<div class="flex justify-between items-center mb-2">
<h2 class="text-lg font-semibold text-gray-800">Cloud Infrastructure Setup</h2>
<div class="relative group">
<button class="text-gray-400 hover:text-gray-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" />
</svg>
</button>
<div class="hidden group-hover:block absolute right-0 top-full mt-1 w-48 bg-white rounded-md shadow-lg z-50 border border-gray-100">
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">View Details</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">Manage Contract</a>
<a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-50">End Contract</a>
</div>
</div>
</div>
</div>
<div class="flex justify-between mb-2 text-sm text-gray-600">
<div>Hired by CloudNative Systems</div>
<div>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded-full mr-2">Active</span>
10:00 hrs, $600 this week
</div>
</div>
<div class="flex justify-between text-sm text-gray-500">
<div>Rate: $65/hr, 15 hrs weekly limit</div>
<div>Jan 10 - Jul 30</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
id="filter-drawer"
class="hidden fixed inset-0 bg-black bg-opacity-50 z-50 flex justify-end"
>
<div class="w-full md:w-96 bg-white h-full shadow-lg p-6 overflow-y-auto">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold">Filter Contracts</h2>
<button
id="apply-filters-btn"
class="text-gray-600 hover:bg-gray-100 p-2 rounded"
>
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<!-- Filter Options -->
<div class="space-y-4">
<!-- Contract Status -->
<div>
<h3 class="text-md font-semibold mb-2">Contract Status</h3>
<div class="space-y-2">
<label class="flex items-center">
<input
type="checkbox"
class="form-checkbox h-4 w-4 text-blue-600 mr-2"
>
<span>Active</span>
</label>
<label class="flex items-center">
<input
type="checkbox"
class="form-checkbox h-4 w-4 text-blue-600 mr-2"
>
<span>Pending</span>
</label>
<label class="flex items-center">
<input
type="checkbox"
class="form-checkbox h-4 w-4 text-blue-600 mr-2"
>
<span>Completed</span>
</label>
</div>
</div>
<!-- Date Range -->
<div>
<h3 class="text-md font-semibold mb-2">Date Range</h3>
<div class="space-y-2">
<div>
<label class="block text-sm mb-1">Start Date</label>
<input
type="date"
class="w-full border border-gray-300 rounded-md px-3 py-2"
>
</div>
<div>
<label class="block text-sm mb-1">End Date</label>
<input
type="date"
class="w-full border border-gray-300 rounded-md px-3 py-2"
>
</div>
</div>
</div>
<!-- Rate Range -->
<div>
<h3 class="text-md font-semibold mb-2">Rate Range</h3>
<div class="flex space-x-2">
<input
type="number"
placeholder="Min"
class="w-full border border-gray-300 rounded-md px-3 py-2"
>
<input
type="number"
placeholder="Max"
class="w-full border border-gray-300 rounded-md px-3 py-2"
>
</div>
</div>
<!-- Apply Filters Button -->
<div class="mt-6">
<button
id="apply-filters-btn"
class="w-full bg-blue-500 text-white py-2 rounded hover:bg-blue-600 transition"
>
Apply Filters
</button>
</div>
</div>
</div>
</div>
<script type="module">
import Accessibility from "./accessibility.js";
import FilterDrawer from "./filterDrawer.js";
import Navigation from "./navigation.js";
const accessibility = new Accessibility();
document.addEventListener('DOMContentLoaded', () => {
console.log('DOM Loaded');
// Check for contract cards
const contractCards = document.querySelectorAll('[id^="job-card-"]');
if (contractCards.length > 0) {
console.log('Initializing Contract Card Navigation');
accessibility.initializeCardNavigation('[id^="job-card-"]', '[id^="job-drawer-"]');
}
});
document.addEventListener('keydown', (event) => {
const contractCards = document.querySelectorAll('[id^="job-card-"]');
if (contractCards.length > 0) {
accessibility.handleCardKeyNavigation(event, '[id^="job-card-"]', '[id^="job-drawer-"]');
}
});
// Optional: Custom filter application function
const applyContractFilters = (filters) => {
console.log('Applying contract filters:', filters);
// Example: Filter contract cards based on status
const contractCards = document.querySelectorAll('.contract-card');
contractCards.forEach(card => {
const status = card.getAttribute('data-status');
const isStatusMatch = filters.status.length === 0 || filters.status.includes(status);
// Additional filter conditions
const rate = parseFloat(card.getAttribute('data-rate') || '0');
const isRateMatch =
(!filters.rateRange.min || rate >= parseFloat(filters.rateRange.min || '0')) &&
(!filters.rateRange.max || rate <= parseFloat(filters.rateRange.max || '1000000'));
// Show/hide card based on filters
card.style.display = (isStatusMatch && isRateMatch) ? 'block' : 'none';
});
};
// Initialize FilterDrawer with custom configuration
document.addEventListener('DOMContentLoaded', () => {
const contractFilterDrawer = FilterDrawer.create({
onApply: applyContractFilters,
drawerSelector: '#filter-drawer',
buttonSelector: '#filter-button',
applyButtonSelector: '#apply-filters-btn'
});
});
const nav = new Navigation
nav.setupEventListeners();
</script>
</body>
</html>