29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
// ComingSoon.tsx — Page placeholder pour les sections en cours de développement
|
|
import { LucideIcon, Construction } from 'lucide-react';
|
|
|
|
interface ComingSoonProps {
|
|
title: string;
|
|
subtitle?: string;
|
|
icon?: LucideIcon;
|
|
}
|
|
|
|
export function ComingSoon({ title, subtitle, icon: Icon = Construction }: ComingSoonProps) {
|
|
return (
|
|
<div className="flex-1 flex flex-col items-center justify-center py-24 px-6 text-center">
|
|
<div className="w-20 h-20 rounded-2xl bg-muted flex items-center justify-center mb-6">
|
|
<Icon className="w-10 h-10 text-muted-foreground" />
|
|
</div>
|
|
<h2 className="text-2xl font-bold text-foreground mb-2" style={{ fontFamily: 'Sora, sans-serif' }}>
|
|
{title}
|
|
</h2>
|
|
{subtitle && (
|
|
<p className="text-muted-foreground max-w-sm">{subtitle}</p>
|
|
)}
|
|
<div className="mt-6 inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-medium">
|
|
<Construction className="w-3.5 h-3.5" />
|
|
Section en cours de développement
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|