-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbase.html
More file actions
490 lines (458 loc) · 35 KB
/
base.html
File metadata and controls
490 lines (458 loc) · 35 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
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
486
487
488
489
{% load static %}
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="FindAPro - Find skilled local professionals for plumbing, electrical, cleaning, and more. Read reviews and book trusted service providers in your area.">
<title>{% block title %}FindAPro{% endblock %} | Local Services Marketplace</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@100..900&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- TailwindCSS -->
<link href="{% static 'css/output.css' %}" rel="stylesheet">
{% block extra_css %}{% endblock %}
</head>
<body class="min-h-screen flex flex-col bg-gray-50">
<!-- Navigation -->
<nav class="sticky top-0 z-50 glass border-b border-gray-200/50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-[51]">
<div class="flex justify-between items-center h-16">
<!-- Logo -->
<a href="{% url 'core:home' %}" class="flex items-center gap-2 group">
<div class="w-10 h-10 bg-gradient-to-br from-brand-500 to-brand-600 rounded-xl flex items-center justify-center shadow-lg shadow-brand-500/25 group-hover:shadow-brand-500/40 transition-shadow">
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<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"></path>
</svg>
</div>
<span class="font-display font-bold text-xl text-gray-900">Find<span class="text-brand-600">APro</span></span>
</a>
<!-- Desktop Navigation -->
<div class="hidden md:flex items-center gap-8">
<a href="{% url 'providers:emergency' %}" class="nav-link text-red-600 hover:text-red-700">
Emergency
</a>
<a href="{% url 'providers:smart_match' %}" class="nav-link">
Match Quiz
</a>
<a href="{% url 'providers:search' %}" class="nav-link">Find Pros</a>
<a href="{% url 'providers:category_list' %}" class="nav-link">Categories</a>
{% if user.is_authenticated %}
{% if user.has_provider_profile %}
<a href="{% url 'providers:profile_status' %}" class="nav-link text-brand-600 font-semibold hover:text-brand-700">
My Profile
</a>
{% else %}
<a href="{% url 'providers:join_as_pro' %}" class="nav-link text-brand-600 font-semibold hover:text-brand-700">
Join as Pro
</a>
{% endif %}
{% endif %}
{% if nav_categories %}
<div class="relative group">
<button class="nav-link flex items-center gap-1">
Services
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
</svg>
</button>
<div class="absolute top-full left-0 mt-2 w-72 bg-white rounded-xl shadow-xl border border-gray-100 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 transform translate-y-2 group-hover:translate-y-0 z-50">
<div class="py-2 max-h-[32rem] overflow-y-scroll overscroll-contain">
{% for cat in nav_categories %}
<a href="{% url 'providers:category_detail' slug=cat.slug %}" class="flex items-center gap-2 px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
{% if cat.icon %}
<i class="fas {{ cat.icon }} text-sm text-brand-600 w-5"></i>
{% endif %}
<span>{{ cat.name }}</span>
</a>
{% endfor %}
</div>
</div>
</div>
{% endif %}
</div>
<!-- Auth Buttons -->
<div class="flex items-center gap-4">
{% if user.is_authenticated %}
<div class="relative group">
<button class="flex items-center gap-2 px-3 py-2 rounded-xl hover:bg-gray-100 transition-colors">
{% if user.avatar %}
<img src="{{ user.avatar.url }}" alt="{{ user.username }}" class="w-8 h-8 rounded-full object-cover">
{% else %}
<div class="w-8 h-8 rounded-full bg-brand-100 text-brand-600 flex items-center justify-center font-semibold">
{{ user.first_name|slice:":1"|upper }}{{ user.last_name|slice:":1"|upper }}
</div>
{% endif %}
<span class="font-medium text-gray-700 hidden sm:block">{{ user.first_name|default:user.username }}</span>
<svg class="w-4 h-4 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
</svg>
</button>
<div class="absolute top-full right-0 mt-2 w-48 bg-white rounded-xl shadow-xl border border-gray-100 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200">
<div class="py-2">
<a href="{% url 'accounts:dashboard' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path>
</svg>
Dashboard
</span>
</a>
<a href="{% url 'accounts:profile_edit' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path>
</svg>
Edit Profile
</span>
</a>
{% if user.is_authenticated %}
<a href="{% url 'accounts:modes_dashboard' %}" class="block px-4 py-2 text-brand-600 hover:bg-brand-50 font-medium transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"></path>
</svg>
Profile Modes
</span>
</a>
<a href="{% url 'accounts:match_suggestions' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
</svg>
Find Matches
</span>
</a>
{% if not user.has_provider_profile %}
<a href="{% url 'providers:join_as_pro' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
</svg>
Join as Pro
</span>
</a>
{% else %}
<a href="{% url 'providers:profile_status' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
</svg>
Provider Profile
</span>
</a>
{% endif %}
{% endif %}
<a href="{% url 'providers:favorites' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"></path>
</svg>
My Favorites
</span>
</a>
<a href="{% url 'providers:unified_job_dashboard' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path>
</svg>
My Jobs
</span>
</a>
<a href="{% url 'providers:skill_analytics_dashboard' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path>
</svg>
Skill Analytics
</span>
</a>
<a href="{% url 'providers:project_list' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path>
</svg>
Community Projects
</span>
</a>
<a href="{% url 'providers:my_quotes' %}" class="block px-4 py-2 text-gray-700 hover:bg-brand-50 hover:text-brand-600 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
</svg>
My Quotes (Legacy)
</span>
</a>
<hr class="my-2 border-gray-100">
<form method="POST" action="{% url 'accounts:logout' %}" class="inline">
{% csrf_token %}
<button type="submit" class="w-full text-left block px-4 py-2 text-red-600 hover:bg-red-50 transition-colors">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path>
</svg>
Sign Out
</span>
</button>
</form>
</div>
</div>
</div>
{% else %}
<a href="{% url 'accounts:login' %}" class="nav-link hidden sm:block">Sign In</a>
<a href="{% url 'accounts:register' %}" class="btn-primary text-sm px-4 py-2">Get Started</a>
{% endif %}
<!-- Mobile Menu Button -->
<button id="mobile-menu-btn" class="md:hidden p-2 rounded-lg hover:bg-gray-100">
<svg class="w-6 h-6 text-gray-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</div>
</div>
</div>
<!-- Mobile Menu: right-side drawer + backdrop -->
<div id="mobile-menu" class="fixed inset-0 z-40 md:hidden hidden group">
<!-- Backdrop: dims the rest of the page, click to close -->
<button type="button" id="mobile-menu-backdrop" aria-label="Close menu" class="absolute top-16 left-0 right-0 bottom-0 bg-gray-900/40 transition-opacity duration-300"></button>
<!-- Drawer: right side, starts below navbar (h-16), fills remaining height -->
<div id="mobile-menu-drawer" class="absolute top-16 right-0 h-[calc(100vh-4rem)] w-80 max-w-[85vw] bg-white shadow-2xl overflow-y-auto transition-transform duration-300 ease-out translate-x-full group-[.open]:translate-x-0" onclick="event.stopPropagation()">
<div class="px-4 py-4 space-y-2">
<a href="{% url 'providers:emergency' %}" class="block px-4 py-2 rounded-lg text-red-600 hover:bg-red-50 hover:text-red-700 font-medium">Emergency</a>
<a href="{% url 'providers:smart_match' %}" class="block px-4 py-2 rounded-lg text-gray-700 hover:bg-brand-50 hover:text-brand-600">Match Quiz</a>
{% if user.is_authenticated and user.has_provider_profile %}
<a href="{% url 'providers:profile_status' %}" class="block px-4 py-2 rounded-lg text-brand-600 hover:bg-brand-50 font-semibold">My Profile</a>
{% else %}
<a href="{% url 'providers:join_as_pro' %}" class="block px-4 py-2 rounded-lg text-brand-600 hover:bg-brand-50 font-semibold">Join as Pro</a>
{% endif %}
<a href="{% url 'providers:search' %}" class="block px-4 py-2 rounded-lg text-gray-700 hover:bg-brand-50 hover:text-brand-600">Find Pros</a>
<a href="{% url 'providers:category_list' %}" class="block px-4 py-2 rounded-lg text-gray-700 hover:bg-brand-50 hover:text-brand-600">Categories</a>
{% if not user.is_authenticated %}
<hr class="my-2">
<a href="{% url 'accounts:login' %}" class="block px-4 py-2 rounded-lg text-gray-700 hover:bg-brand-50 hover:text-brand-600">Sign In</a>
<a href="{% url 'accounts:register' %}" class="block px-4 py-2 rounded-lg text-brand-600 hover:bg-brand-50 font-semibold">Get Started</a>
{% endif %}
</div>
</div>
</div>
</nav>
<!-- Messages -->
{% if messages %}
<div class="fixed top-20 right-4 z-50 space-y-2 max-w-sm">
{% for message in messages %}
<div class="animate-slide-down px-4 py-3 rounded-xl shadow-lg {{ message.tags }} flex items-center gap-3" role="alert">
{% if 'success' in message.tags %}
<svg class="w-5 h-5 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
{% elif 'error' in message.tags %}
<svg class="w-5 h-5 text-red-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
{% else %}
<svg class="w-5 h-5 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
{% endif %}
<span class="font-medium">{{ message }}</span>
<button onclick="this.parentElement.remove()" class="ml-auto text-gray-400 hover:text-gray-600">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
</div>
{% endfor %}
</div>
{% endif %}
<!-- Main Content -->
<main class="flex-1">
{% block content %}{% endblock %}
</main>
<!-- Footer -->
<footer class="bg-gray-900 text-gray-300 mt-auto">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<!-- Brand -->
<div class="col-span-1 md:col-span-2">
<div class="flex items-center gap-2 mb-4">
<div class="w-10 h-10 bg-gradient-to-br from-brand-500 to-brand-600 rounded-xl flex items-center justify-center">
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<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"></path>
</svg>
</div>
<span class="font-display font-bold text-xl text-white">Find<span class="text-brand-400">APro</span></span>
</div>
<p class="text-gray-400 mb-4 max-w-md">
Find skilled local professionals for all your home and business needs. Trusted reviews, verified providers, and easy booking.
</p>
<div class="flex gap-4">
<a href="#" class="w-10 h-10 rounded-lg bg-gray-800 hover:bg-brand-600 flex items-center justify-center transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"/></svg>
</a>
<a href="#" class="w-10 h-10 rounded-lg bg-gray-800 hover:bg-brand-600 flex items-center justify-center transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z"/></svg>
</a>
<a href="#" class="w-10 h-10 rounded-lg bg-gray-800 hover:bg-brand-600 flex items-center justify-center transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/></svg>
</a>
</div>
</div>
<!-- Links -->
<div>
<h3 class="font-display font-semibold text-white mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="{% url 'providers:search' %}" class="hover:text-brand-400 transition-colors">Find Pros</a></li>
<li><a href="{% url 'providers:category_list' %}" class="hover:text-brand-400 transition-colors">Categories</a></li>
<li><a href="{% url 'core:about' %}" class="hover:text-brand-400 transition-colors">About Us</a></li>
<li><a href="{% url 'core:contact' %}" class="hover:text-brand-400 transition-colors">Contact</a></li>
</ul>
</div>
<div>
<h3 class="font-display font-semibold text-white mb-4">For Pros</h3>
<ul class="space-y-2">
{% if user.is_authenticated %}
{% if user.has_provider_profile %}
<li><a href="{% url 'providers:profile_status' %}" class="hover:text-brand-400 transition-colors">My Provider Profile</a></li>
{% else %}
<li><a href="{% url 'providers:join_as_pro' %}" class="hover:text-brand-400 transition-colors">Join as Pro</a></li>
{% endif %}
{% else %}
<li><a href="{% url 'accounts:register' %}" class="hover:text-brand-400 transition-colors">Join as Pro</a></li>
{% endif %}
<li><a href="#" class="hover:text-brand-400 transition-colors">How it Works</a></li>
<li><a href="#" class="hover:text-brand-400 transition-colors">Pricing</a></li>
<li><a href="#" class="hover:text-brand-400 transition-colors">Success Stories</a></li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center gap-4">
<p class="text-gray-500 text-sm">© 2025 FindAPro. All rights reserved.</p>
<div class="flex gap-6 text-sm">
<a href="#" class="hover:text-brand-400 transition-colors">Privacy Policy</a>
<a href="#" class="hover:text-brand-400 transition-colors">Terms of Service</a>
<a href="#" class="hover:text-brand-400 transition-colors">Cookie Policy</a>
</div>
</div>
</div>
</footer>
<!-- Floating Compare Bar -->
<div id="compare-bar" class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 shadow-lg transform translate-y-full transition-transform duration-300 z-50" style="display: none;">
<div class="max-w-7xl mx-auto px-4 py-3 flex items-center justify-between gap-4">
<div class="flex items-center gap-3">
<span class="text-gray-600 font-medium">⚖️ Compare:</span>
<div id="compare-items" class="flex gap-2">
<!-- Items added via JS -->
</div>
</div>
<div class="flex items-center gap-3">
<span id="compare-count" class="text-sm text-gray-500">0/3 selected</span>
<button onclick="clearCompare()" class="px-3 py-1.5 text-sm text-gray-600 hover:text-gray-900">
Clear
</button>
<a id="compare-btn" href="{% url 'providers:compare' %}" class="px-4 py-2 bg-brand-600 text-white font-semibold rounded-xl hover:bg-brand-700 transition-colors text-sm">
Compare Now
</a>
</div>
</div>
</div>
<!-- Mobile Menu Script -->
<script>
document.getElementById('mobile-menu-btn').addEventListener('click', function() {
const menu = document.getElementById('mobile-menu');
const isOpen = menu.classList.contains('open');
if (isOpen) {
menu.classList.remove('open');
setTimeout(function() { menu.classList.add('hidden'); }, 300);
} else {
menu.classList.remove('hidden');
requestAnimationFrame(function() { menu.classList.add('open'); });
}
});
function closeMobileMenu() {
const menu = document.getElementById('mobile-menu');
menu.classList.remove('open');
setTimeout(function() { menu.classList.add('hidden'); }, 300);
}
document.getElementById('mobile-menu-backdrop').addEventListener('click', closeMobileMenu);
document.getElementById('mobile-menu').addEventListener('click', function(e) {
if (e.target === this || e.target.id === 'mobile-menu-backdrop') closeMobileMenu();
});
// Auto-dismiss messages
setTimeout(() => {
document.querySelectorAll('[role="alert"]').forEach(el => {
el.style.opacity = '0';
el.style.transform = 'translateX(100%)';
setTimeout(() => el.remove(), 300);
});
}, 5000);
// Compare functionality
let compareList = JSON.parse(localStorage.getItem('compareProviders') || '[]');
function updateCompareBar() {
const bar = document.getElementById('compare-bar');
const items = document.getElementById('compare-items');
const count = document.getElementById('compare-count');
const btn = document.getElementById('compare-btn');
if (compareList.length > 0) {
bar.style.display = 'block';
setTimeout(() => bar.classList.remove('translate-y-full'), 10);
items.innerHTML = compareList.map(p => `
<div class="flex items-center gap-2 px-3 py-1.5 bg-gray-100 rounded-lg">
<span class="text-sm font-medium text-gray-700">${p.name}</span>
<button onclick="removeFromCompare(${p.id})" class="text-gray-400 hover:text-red-500">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
</div>
`).join('');
count.textContent = `${compareList.length}/3 selected`;
btn.href = `{% url 'providers:compare' %}?ids=${compareList.map(p => p.id).join(',')}`;
} else {
bar.classList.add('translate-y-full');
setTimeout(() => bar.style.display = 'none', 300);
}
// Update all compare buttons on page
document.querySelectorAll('[data-compare-id]').forEach(btn => {
const id = parseInt(btn.dataset.compareId);
const isInList = compareList.some(p => p.id === id);
if (isInList) {
btn.classList.add('bg-brand-600', 'text-white');
btn.classList.remove('bg-gray-100', 'text-gray-700');
btn.innerHTML = '<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd"></path></svg> Added';
} else {
btn.classList.remove('bg-brand-600', 'text-white');
btn.classList.add('bg-gray-100', 'text-gray-700');
btn.innerHTML = '⚖️ Compare';
}
});
localStorage.setItem('compareProviders', JSON.stringify(compareList));
}
function toggleCompare(id, name) {
const index = compareList.findIndex(p => p.id === id);
if (index > -1) {
compareList.splice(index, 1);
} else if (compareList.length < 3) {
compareList.push({ id, name });
} else {
alert('You can compare up to 3 providers at a time.');
return;
}
updateCompareBar();
}
function removeFromCompare(id) {
compareList = compareList.filter(p => p.id !== id);
updateCompareBar();
}
function clearCompare() {
compareList = [];
updateCompareBar();
}
// Initialize on page load
document.addEventListener('DOMContentLoaded', updateCompareBar);
</script>
{% block extra_js %}{% endblock %}
</body>
</html>