import React, { useEffect } from 'react'; import { URLS } from '../../config/constants'; import type { Service } from '../../types/service'; import type { Translation } from '../../types/i18n'; interface PopupProps { service: Service; onClose: () => void; translations: Translation['common']; } export const Popup: React.FC = ({ service, onClose, translations }) => { // 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
{/* Content - Forcer le fond blanc */}
{/* Description */}

📋 Description détaillée

{service.description}

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

{translations.discoverFeatures}

{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 */}
); };