diff --git a/banquise-website/src/components/ui/Popup.tsx b/banquise-website/src/components/ui/Popup.tsx index 2ca9866..8ed8158 100644 --- a/banquise-website/src/components/ui/Popup.tsx +++ b/banquise-website/src/components/ui/Popup.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useEffect } from 'react'; import { URLS } from '../../config/constants'; interface Service { @@ -15,116 +15,127 @@ interface PopupProps { onClose: () => void; } -export const Popup: React.FC = ({ service, onClose }) => ( -
-
- - {/* Bouton de fermeture fixe au-dessus du contenu */} -
- -
- - {/* Contenu avec scroll vertical uniquement */} -
- {/* Header */} -
-
-
- {service.icon} +export const Popup: React.FC = ({ service, onClose }) => { + // Empêcher le scroll du body quand la popup est ouverte + useEffect(() => { + document.body.style.overflow = 'hidden'; + + return () => { + document.body.style.overflow = 'unset'; + }; + }, []); + + return ( +
+
+ + {/* Bouton de fermeture fixe au-dessus du contenu */} +
+ +
+ + {/* Contenu avec scroll vertical uniquement */} +
+ {/* Header */} +
+
+
+ {service.icon} +
+
+

+ {service.name} +

+
+ Service d'hébergement professionnel +
+
+ Haute disponibilité + Open Source + Communautaire +
+
-
-

- {service.name} -

-
- Service d'hébergement professionnel -
-
- Haute disponibilité - Open Source - Communautaire +
+ + {/* Content - Forcer le fond blanc */} +
+ {/* Description */} +

+ 📋 + Description détaillée +

+
+

+ {service.description} +

+
+
+
+ ✓ +
+
+
99.9% Uptime
+
Disponibilité garantie
+
+
+
+
+ 🔒 +
+
+
Sécurisé
+
SSL & Backups
+
+
+ + {/* Fonctionnalités */} +

+ + Fonctionnalités principales +

+
+ {service.features.map((feature, index) => ( +
+
+
+
+ {feature} +
+ ))} +
+ + {/* Call to action */} +
+ + 🚀 + Accéder à {service.name} + + +

+ Besoin d'aide ? Rejoignez notre Discord pour obtenir du support +

+
- {/* Content - Forcer le fond blanc */} -
- {/* Description */} -

- 📋 - Description détaillée -

-
-

- {service.description} -

-
-
-
- ✓ -
-
-
99.9% Uptime
-
Disponibilité garantie
-
-
-
-
- 🔒 -
-
-
Sécurisé
-
SSL & Backups
-
-
-
-
- - {/* Fonctionnalités */} -

- - Fonctionnalités principales -

-
- {service.features.map((feature, index) => ( -
-
-
-
- {feature} -
- ))} -
- - {/* Call to action */} -
- - 🚀 - Accéder à {service.name} - - -

- Besoin d'aide ? Rejoignez notre Discord pour obtenir du support -

-
-
+ {/* Decorative elements */} +
+
- - {/* Decorative elements */} -
-
-
-); + ); +};