redesign widgets

This commit is contained in:
2026-08-03 18:15:21 +02:00
parent aa4d0f217e
commit d037af11b6
6 changed files with 12 additions and 11 deletions
+1
View File
@@ -22,3 +22,4 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
+1 -1
View File
@@ -57,7 +57,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
"bg-[#e8e8e8] dark:bg-[#1e293b]", "bg-[#e8e8e8] dark:bg-[#1e293b]",
"text-slate-800 dark:text-slate-100 font-medium placeholder:text-slate-400 dark:placeholder:text-slate-500", "text-slate-800 dark:text-slate-100 font-medium placeholder:text-slate-400 dark:placeholder:text-slate-500",
// 🎯 Utilisation directe de tes constantes Neumorphic creusées // Utilisation directe de tes constantes Neumorphic creusées
NEUMORPHISM.insetLight, NEUMORPHISM.insetLight,
NEUMORPHISM.insetDark, NEUMORPHISM.insetDark,
+1 -1
View File
@@ -18,7 +18,7 @@ export default function BackupWidget({ onClick }: BackupWidgetProps) {
</span> </span>
</div> </div>
<div className="bg-slate-50 rounded-lg p-4 border border-slate-100 mb-4 group-hover:bg-blue-50/50 transition-colors"> <div className="rounded-lg p-4 border border-slate-100 mb-4 group-hover:bg-blue-50/50 transition-colors">
<p className="text-sm text-slate-500 mb-1">Dernier snapshot système</p> <p className="text-sm text-slate-500 mb-1">Dernier snapshot système</p>
<p className="text-slate-900 font-medium">Aujourd'hui à 03:00 AM</p> <p className="text-slate-900 font-medium">Aujourd'hui à 03:00 AM</p>
</div> </div>
+1 -1
View File
@@ -30,7 +30,7 @@ export default function ServicesWidget() {
))} ))}
</div> </div>
<Button size="lg" onClick={() => navigate('/evolution-infrastructure')}> <Button className ="w-fit" size="lg" onClick={() => navigate('/evolution-infrastructure')}>
Demander une évolution du parc Demander une évolution du parc
</Button> </Button>
+4 -4
View File
@@ -8,14 +8,14 @@ export const SupportCtaWidget: React.FC = () => {
return ( return (
<Card> <Card>
<CardContent className="p-6"> <CardContent className="p-6 bg-blue-900">
<h3 className="text-lg font-semibold mb-2">Centre de Support</h3> <h3 className="text-lg font-semibold mb-2 text-white">Centre de Support</h3>
<p className="text-blue-900 text-sm mb-4 leading-relaxed"> <p className=" text-white text-sm mb-4 leading-relaxed">
Déclarez un incident critique ou demandez une évolution de votre infrastructure. Déclarez un incident critique ou demandez une évolution de votre infrastructure.
</p> </p>
<Button <Button
onClick={() => navigate('/support')} onClick={() => navigate('/support')}
className="w-full text-blue-900" className= "text-white w-full bg-blue-900"
> >
Ouvrir un ticket sécurisé Ouvrir un ticket sécurisé
</Button> </Button>
+2 -2
View File
@@ -13,8 +13,8 @@ export const NEUMORPHISM = {
sizeStyles: { sizeStyles: {
sm: "px-5 py-2 text-sm rounded-md", sm: "px-5 py-2 text-sm rounded-md",
md: "px-[1.7em] py-[0.7em] text-[18px] rounded-[0.5em]", md: "px-[1.7em] py-[0.7em] text-[18px] rounded-[0.5em]",
lg: "px-10 py-4 text-xl rounded-xl", lg: "px-10 py-4 text-sm rounded-xl",
icon: "p-3 rounded-lg", icon: "p-3 rounded-lg",
}, },
// Ombres du bouton ACTIF (effet enfoncé/creusé "inset") // Ombres du bouton ACTIF (effet enfoncé/creusé "inset")
insetLight: "!shadow-[inset_4px_4px_8px_#c5c5c5,inset_-4px_-4px_8px_#ffffff]", insetLight: "!shadow-[inset_4px_4px_8px_#c5c5c5,inset_-4px_-4px_8px_#ffffff]",