-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.tsx
More file actions
720 lines (694 loc) · 33.9 KB
/
page.tsx
File metadata and controls
720 lines (694 loc) · 33.9 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
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
"use client";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from "@/components/ui/collapsible";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Textarea } from "@/components/ui/textarea";
import {
BookOpen,
CheckCircle2,
ChevronDown,
Clock,
CreditCard,
ExternalLink,
FileText,
HelpCircle,
LifeBuoy,
Mail,
MessageCircle,
Search,
Send,
Settings,
Shield,
Smartphone,
User,
Zap,
} from "lucide-react";
import { useState } from "react";
import { toast } from "sonner";
type HelpCategory = {
id: string;
title: string;
description: string;
icon: React.ComponentType<{ className?: string }>;
articles: number;
color: string;
};
type FAQ = {
id: string;
question: string;
answer: string;
category: string;
helpful: number;
};
type ContactReason = {
id: string;
title: string;
description: string;
icon: React.ComponentType<{ className?: string }>;
};
const helpCategories: HelpCategory[] = [
{
id: "getting-started",
title: "Premiers pas",
description: "Découvre comment utiliser Edukai efficacement",
icon: BookOpen,
articles: 8,
color: "bg-blue-50 border-blue-200 text-blue-700",
},
{
id: "courses",
title: "Cours et Quiz",
description: "Tout sur la création et gestion de tes cours",
icon: FileText,
articles: 12,
color: "bg-green-50 border-green-200 text-green-700",
},
{
id: "account",
title: "Mon compte",
description: "Paramètres, profil et sécurité",
icon: User,
articles: 6,
color: "bg-purple-50 border-purple-200 text-purple-700",
},
{
id: "subscription",
title: "Abonnement",
description: "Facturation, plans et fonctionnalités Premium",
icon: CreditCard,
articles: 5,
color: "bg-yellow-50 border-yellow-200 text-yellow-700",
},
{
id: "technical",
title: "Problèmes techniques",
description: "Bugs, problèmes de connexion et performance",
icon: Settings,
articles: 9,
color: "bg-red-50 border-red-200 text-red-700",
},
{
id: "mobile",
title: "Application mobile",
description: "Utilisation sur smartphone et tablette",
icon: Smartphone,
articles: 4,
color: "bg-indigo-50 border-indigo-200 text-indigo-700",
},
];
const faqs: FAQ[] = [
{
id: "1",
question: "Comment créer mon premier cours ?",
answer: "Pour créer ton premier cours, va dans la section 'Générer' et télécharge tes documents (PDF, images, etc.). Notre IA analysera automatiquement le contenu et créera un cours personnalisé avec des quiz adaptés. Le processus prend généralement 2-3 minutes.",
category: "getting-started",
helpful: 42,
},
{
id: "2",
question: "Puis-je modifier mes cours après création ?",
answer: "Oui ! Tu peux modifier le contenu de tes cours, ajouter des notes personnelles, créer des examens personnalisés, et organiser tes fiches de révision. Va dans ta bibliothèque et clique sur le cours que tu veux modifier.",
category: "courses",
helpful: 38,
},
{
id: "3",
question:
"Quelle est la différence entre la version gratuite et Premium ?",
answer: "La version gratuite te permet de créer 3 cours par mois avec des fonctionnalités de base. Premium débloque la création illimitée, l'IA avancée, les statistiques détaillées, le partage de cours, et l'accès prioritaire aux nouvelles fonctionnalités.",
category: "subscription",
helpful: 56,
},
{
id: "4",
question: "Mes données sont-elles sécurisées ?",
answer: "Absolument ! Nous utilisons un chiffrement de niveau bancaire (AES-256) pour protéger tes données. Tes documents et cours sont stockés de manière sécurisée et ne sont jamais partagés avec des tiers. Tu peux consulter notre politique de confidentialité pour plus de détails.",
category: "account",
helpful: 29,
},
{
id: "5",
question: "L'application fonctionne-t-elle hors ligne ?",
answer: "Tu peux consulter tes cours téléchargés hors ligne sur l'application mobile. Cependant, la création de nouveaux cours et la synchronisation nécessitent une connexion internet.",
category: "mobile",
helpful: 33,
},
{
id: "6",
question: "Comment puis-je annuler mon abonnement ?",
answer: "Tu peux annuler ton abonnement à tout moment dans tes paramètres de compte. Va dans 'Paramètres' > 'Abonnement' > 'Gérer l'abonnement'. L'annulation prend effet à la fin de la période de facturation en cours.",
category: "subscription",
helpful: 21,
},
];
const contactReasons: ContactReason[] = [
{
id: "bug",
title: "Signaler un bug",
description: "Quelque chose ne fonctionne pas comme prévu",
icon: Zap,
},
{
id: "feature",
title: "Demande de fonctionnalité",
description: "Suggérer une amélioration ou nouvelle fonctionnalité",
icon: HelpCircle,
},
{
id: "billing",
title: "Question de facturation",
description: "Problème avec ton abonnement ou paiement",
icon: CreditCard,
},
{
id: "content",
title: "Problème de contenu",
description: "Cours généré incorrectement ou contenu inapproprié",
icon: FileText,
},
{
id: "account",
title: "Compte utilisateur",
description: "Problème de connexion, mot de passe ou profil",
icon: User,
},
{
id: "other",
title: "Autre",
description: "Une question qui ne rentre dans aucune catégorie",
icon: MessageCircle,
},
];
export default function SupportPage() {
const [searchQuery, setSearchQuery] = useState("");
const [selectedCategory, setSelectedCategory] = useState<string | null>(
null
);
const [openFAQ, setOpenFAQ] = useState<string | null>(null);
const [contactForm, setContactForm] = useState({
name: "",
email: "",
reason: "",
subject: "",
message: "",
});
const filteredFAQs = faqs.filter(faq => {
const matchesSearch =
faq.question.toLowerCase().includes(searchQuery.toLowerCase()) ||
faq.answer.toLowerCase().includes(searchQuery.toLowerCase());
const matchesCategory =
!selectedCategory || faq.category === selectedCategory;
return matchesSearch && matchesCategory;
});
const handleContactSubmit = (e: React.FormEvent) => {
e.preventDefault();
if (
!contactForm.name ||
!contactForm.email ||
!contactForm.subject ||
!contactForm.message
) {
toast.error("Veuillez remplir tous les champs obligatoires");
return;
}
// Simulate form submission
toast.success(
"Votre message a été envoyé ! Nous vous répondrons sous 24h."
);
setContactForm({
name: "",
email: "",
reason: "",
subject: "",
message: "",
});
};
return (
<div className="flex flex-col gap-6 px-4 lg:px-8 py-4 lg:py-6 min-h-[calc(100vh-5rem)] w-full bg-gradient-to-br from-slate-50/50 via-blue-50/30 to-indigo-50/50">
{/* Header */}
<div className="relative overflow-hidden rounded-2xl bg-gradient-to-r from-blue-600 via-blue-500 to-blue-400 p-6 lg:p-8 text-white shadow-xl">
<div className="absolute inset-0 bg-white/10 backdrop-blur-sm"></div>
<div className="relative z-10">
<div className="flex flex-col sm:flex-row sm:items-center gap-3 mb-4">
<div className="p-2 bg-white/20 rounded-xl backdrop-blur-sm">
<LifeBuoy className="w-5 h-5 lg:w-6 lg:h-6 text-white" />
</div>
<Badge className="bg-white/20 backdrop-blur-sm text-white border-white/30 px-3 py-1 w-fit">
Support 24/7
</Badge>
</div>
<h1 className="text-lg sm:text-xl lg:text-2xl font-bold mb-2">
Centre d'assistance
</h1>
<p className="text-blue-100 text-sm sm:text-base lg:text-lg max-w-2xl">
Trouve des réponses rapides ou contacte notre équipe
pour une aide personnalisée.
</p>
</div>
{/* Decorative elements */}
<div className="absolute top-4 right-4 w-24 h-24 lg:w-32 lg:h-32 bg-white/10 rounded-full blur-xl"></div>
<div className="absolute bottom-4 right-8 w-16 h-16 lg:w-20 lg:h-20 bg-purple-300/20 rounded-full blur-lg"></div>
</div>
{/* Quick Actions */}
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
<Card className="bg-white/70 backdrop-blur-sm shadow-lg border-0 hover:shadow-xl transition-all duration-200">
<CardContent className="p-4 lg:p-6 text-center">
<div className="p-3 bg-blue-50 rounded-2xl w-fit mx-auto mb-4">
<MessageCircle className="w-5 h-5 lg:w-6 lg:h-6 text-blue-600" />
</div>
<h3 className="text-base lg:text-lg font-semibold text-gray-800 mb-2">
Chat en direct
</h3>
<p className="text-gray-600 text-xs lg:text-sm mb-4">
Discute avec notre équipe en temps réel
</p>
<Button className="w-full bg-gradient-to-r from-blue-600 to-blue-500 text-white shadow-lg hover:shadow-xl transition-all duration-200 text-sm lg:text-base">
Ouvrir le chat
</Button>
</CardContent>
</Card>
<Card className="bg-white/70 backdrop-blur-sm shadow-lg border-0 hover:shadow-xl transition-all duration-200">
<CardContent className="p-4 lg:p-6 text-center">
<div className="p-3 bg-green-50 rounded-2xl w-fit mx-auto mb-4">
<Mail className="w-5 h-5 lg:w-6 lg:h-6 text-green-600" />
</div>
<h3 className="text-base lg:text-lg font-semibold text-gray-800 mb-2">
Email
</h3>
<p className="text-gray-600 text-xs lg:text-sm mb-4">
Envoie-nous un email détaillé
</p>
<Button
variant="outline"
className="w-full border-gray-200 text-gray-700 hover:bg-gray-50 text-sm lg:text-base"
onClick={() =>
window.open("mailto:support@edukai.fr")
}
>
<span className="hidden sm:inline">
support@edukai.fr
</span>
<span className="sm:hidden">Email</span>
</Button>
</CardContent>
</Card>
<Card className="bg-white/70 backdrop-blur-sm shadow-lg border-0 hover:shadow-xl transition-all duration-200 sm:col-span-2 lg:col-span-1">
<CardContent className="p-4 lg:p-6 text-center">
<div className="p-3 bg-purple-50 rounded-2xl w-fit mx-auto mb-4">
<Clock className="w-5 h-5 lg:w-6 lg:h-6 text-purple-600" />
</div>
<h3 className="text-base lg:text-lg font-semibold text-gray-800 mb-2">
Horaires
</h3>
<p className="text-gray-600 text-xs lg:text-sm mb-2">
Lun-Ven: 9h-18h
</p>
<p className="text-gray-600 text-xs lg:text-sm">
Sam-Dim: 10h-16h
</p>
</CardContent>
</Card>
</div>
{/* Search and Categories */}
<Card className="bg-white/70 backdrop-blur-sm shadow-lg border-0">
<CardContent className="p-4 lg:p-6">
<div className="flex flex-col gap-4">
{/* Search */}
<div className="relative">
<Search className="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4" />
<Input
placeholder="Rechercher dans l'aide..."
value={searchQuery}
onChange={e => setSearchQuery(e.target.value)}
className="pl-10 bg-white/50 border-gray-200 text-sm lg:text-base"
/>
</div>
{/* Categories */}
<div className="grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-2 lg:gap-3">
{helpCategories.map(category => (
<Button
key={category.id}
variant="outline"
onClick={() =>
setSelectedCategory(
selectedCategory === category.id
? null
: category.id
)
}
className={`h-auto p-3 lg:p-4 flex flex-col items-center gap-2 text-xs lg:text-sm ${
selectedCategory === category.id
? "bg-blue-50 border-blue-200 text-blue-700"
: "border-gray-200 hover:bg-gray-50"
}`}
>
<div
className={`p-1.5 lg:p-2 rounded-lg ${category.color}`}
>
<category.icon className="w-3 h-3 lg:w-4 lg:h-4" />
</div>
<div className="text-center">
<div className="font-semibold text-xs">
{category.title}
</div>
<div className="text-xs text-gray-500 hidden sm:block">
{category.articles} articles
</div>
</div>
</Button>
))}
</div>
</div>
</CardContent>
</Card>
{/* FAQ Section */}
<Card className="bg-white/70 backdrop-blur-sm shadow-lg border-0">
<CardHeader className="p-4 lg:p-6">
<CardTitle className="flex flex-col sm:flex-row sm:items-center gap-2 text-base lg:text-lg">
<div className="flex items-center gap-2">
<HelpCircle className="w-4 h-4 lg:w-5 lg:h-5 text-blue-600" />
Questions fréquentes
</div>
{selectedCategory && (
<Badge
variant="secondary"
className="w-fit text-xs"
>
{
helpCategories.find(
c => c.id === selectedCategory
)?.title
}
</Badge>
)}
</CardTitle>
</CardHeader>
<CardContent className="p-4 lg:p-6 pt-0">
{filteredFAQs.length === 0 ? (
<div className="text-center py-6 lg:py-8">
<HelpCircle className="w-10 h-10 lg:w-12 lg:h-12 text-gray-400 mx-auto mb-4" />
<h3 className="text-base lg:text-lg font-semibold text-gray-800 mb-2">
Aucune question trouvée
</h3>
<p className="text-gray-500 text-sm lg:text-base">
Essaie avec d'autres mots-clés ou contacte notre
équipe.
</p>
</div>
) : (
<div className="space-y-2">
{filteredFAQs.map(faq => (
<Collapsible
key={faq.id}
open={openFAQ === faq.id}
onOpenChange={open =>
setOpenFAQ(open ? faq.id : null)
}
>
<CollapsibleTrigger asChild>
<Button
variant="ghost"
className="w-full justify-between p-3 lg:p-4 h-auto text-left hover:bg-gray-50 border border-gray-200 rounded-lg"
>
<div className="flex items-start justify-between w-full gap-2">
<span className="font-semibold text-gray-800 text-sm lg:text-base text-left pr-2">
{faq.question}
</span>
<div className="flex items-center gap-1 lg:gap-2 shrink-0">
<Badge
variant="secondary"
className="text-xs hidden sm:inline-flex"
>
{faq.helpful} 👍
</Badge>
<ChevronDown
className={`w-4 h-4 transition-transform ${
openFAQ === faq.id
? "rotate-180"
: ""
}`}
/>
</div>
</div>
</Button>
</CollapsibleTrigger>
<CollapsibleContent className="px-3 lg:px-4 py-3 text-gray-600 leading-relaxed border border-t-0 border-gray-200 rounded-b-lg text-sm lg:text-base">
{faq.answer}
<div className="flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-2 mt-4 pt-4 border-t border-gray-100">
<span className="text-xs lg:text-sm text-gray-500">
Cette réponse était-elle utile ?
</span>
<div className="flex gap-2">
<Button
variant="outline"
size="sm"
className="border-green-200 text-green-700 hover:bg-green-50 text-xs lg:text-sm"
onClick={() =>
toast.success(
"Merci pour votre retour !"
)
}
>
<CheckCircle2 className="w-3 h-3 mr-1" />
Oui
</Button>
<Button
variant="outline"
size="sm"
className="border-gray-200 text-gray-700 hover:bg-gray-50 text-xs lg:text-sm"
onClick={() =>
toast.info(
"Nous allons améliorer cette réponse"
)
}
>
Non
</Button>
</div>
</div>
</CollapsibleContent>
</Collapsible>
))}
</div>
)}
</CardContent>
</Card>
{/* Contact Form */}
<Card className="bg-white/70 backdrop-blur-sm shadow-lg border-0">
<CardHeader className="p-4 lg:p-6">
<CardTitle className="flex items-center gap-2 text-base lg:text-lg">
<MessageCircle className="w-4 h-4 lg:w-5 lg:h-5 text-blue-600" />
Contacter l'équipe support
</CardTitle>
</CardHeader>
<CardContent className="p-4 lg:p-6 pt-0">
<form
onSubmit={handleContactSubmit}
className="space-y-4 lg:space-y-6"
>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<div className="space-y-2">
<Label
htmlFor="name"
className="text-sm lg:text-base"
>
Nom complet *
</Label>
<Input
id="name"
value={contactForm.name}
onChange={e =>
setContactForm(prev => ({
...prev,
name: e.target.value,
}))
}
className="bg-white/50 border-gray-200 text-sm lg:text-base"
placeholder="Ton nom"
/>
</div>
<div className="space-y-2">
<Label
htmlFor="email"
className="text-sm lg:text-base"
>
Email *
</Label>
<Input
id="email"
type="email"
value={contactForm.email}
onChange={e =>
setContactForm(prev => ({
...prev,
email: e.target.value,
}))
}
className="bg-white/50 border-gray-200 text-sm lg:text-base"
placeholder="ton@email.com"
/>
</div>
</div>
<div className="space-y-2">
<Label
htmlFor="reason"
className="text-sm lg:text-base"
>
Type de demande
</Label>
<div className="grid grid-cols-1 xs:grid-cols-2 lg:grid-cols-3 gap-2">
{contactReasons.map(reason => (
<Button
key={reason.id}
type="button"
variant="outline"
onClick={() =>
setContactForm(prev => ({
...prev,
reason: reason.id,
}))
}
className={`h-auto p-2 lg:p-3 flex flex-col sm:flex-row lg:flex-col items-center gap-2 ${
contactForm.reason === reason.id
? "bg-blue-50 border-blue-200 text-blue-700"
: "border-gray-200 hover:bg-gray-50"
}`}
>
<reason.icon className="w-4 h-4 shrink-0" />
<div className="text-center sm:text-left lg:text-center">
<div className="font-semibold text-xs lg:text-sm">
{reason.title}
</div>
</div>
</Button>
))}
</div>
</div>
<div className="space-y-2">
<Label
htmlFor="subject"
className="text-sm lg:text-base"
>
Sujet *
</Label>
<Input
id="subject"
value={contactForm.subject}
onChange={e =>
setContactForm(prev => ({
...prev,
subject: e.target.value,
}))
}
className="bg-white/50 border-gray-200 text-sm lg:text-base"
placeholder="Décris brièvement ton problème"
/>
</div>
<div className="space-y-2">
<Label
htmlFor="message"
className="text-sm lg:text-base"
>
Message *
</Label>
<Textarea
id="message"
value={contactForm.message}
onChange={e =>
setContactForm(prev => ({
...prev,
message: e.target.value,
}))
}
className="bg-white/50 border-gray-200 min-h-[100px] lg:min-h-[120px] text-sm lg:text-base"
placeholder="Décris ton problème en détail. Plus tu donnes d'informations, plus nous pourrons t'aider efficacement."
/>
</div>
<Button
type="submit"
className="w-full bg-gradient-to-r from-blue-600 to-blue-500 text-white shadow-lg hover:shadow-xl transition-all duration-200 text-sm lg:text-base h-10 lg:h-11"
>
<Send className="w-4 h-4 mr-2" />
Envoyer le message
</Button>
</form>
</CardContent>
</Card>
{/* Resources */}
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 lg:gap-6">
<Card className="bg-white/70 backdrop-blur-sm shadow-lg border-0">
<CardHeader className="p-4 lg:p-6">
<CardTitle className="flex items-center gap-2 text-base lg:text-lg">
<BookOpen className="w-4 h-4 lg:w-5 lg:h-5 text-blue-600" />
Ressources utiles
</CardTitle>
</CardHeader>
<CardContent className="p-4 lg:p-6 pt-0 space-y-3">
<Button
variant="outline"
className="w-full justify-between border-gray-200 hover:bg-gray-50 text-sm lg:text-base h-10 lg:h-11"
onClick={() =>
window.open("/guide-utilisateur", "_blank")
}
>
<span>Guide d'utilisation complet</span>
<ExternalLink className="w-4 h-4" />
</Button>
<Button
variant="outline"
className="w-full justify-between border-gray-200 hover:bg-gray-50 text-sm lg:text-base h-10 lg:h-11"
onClick={() =>
window.open("/video-tutorials", "_blank")
}
>
<span>Tutoriels vidéo</span>
<ExternalLink className="w-4 h-4" />
</Button>
<Button
variant="outline"
className="w-full justify-between border-gray-200 hover:bg-gray-50 text-sm lg:text-base h-10 lg:h-11"
onClick={() => window.open("/api-docs", "_blank")}
>
<span>Documentation API</span>
<ExternalLink className="w-4 h-4" />
</Button>
</CardContent>
</Card>
<Card className="bg-white/70 backdrop-blur-sm shadow-lg border-0">
<CardHeader className="p-4 lg:p-6">
<CardTitle className="flex items-center gap-2 text-base lg:text-lg">
<Shield className="w-4 h-4 lg:w-5 lg:h-5 text-green-600" />
Statut du service
</CardTitle>
</CardHeader>
<CardContent className="p-4 lg:p-6 pt-0 space-y-3">
<div className="flex items-center justify-between p-3 bg-green-50 rounded-lg">
<div className="flex items-center gap-2">
<div className="w-2 h-2 bg-green-500 rounded-full"></div>
<span className="text-xs lg:text-sm font-medium text-green-800">
Tous les services opérationnels
</span>
</div>
<CheckCircle2 className="w-4 h-4 text-green-600" />
</div>
<Button
variant="outline"
className="w-full justify-between border-gray-200 hover:bg-gray-50 text-sm lg:text-base h-10 lg:h-11"
onClick={() => window.open("/status", "_blank")}
>
<span>Voir le statut détaillé</span>
<ExternalLink className="w-4 h-4" />
</Button>
</CardContent>
</Card>
</div>
</div>
);
}