import React, { useEffect } from 'react'; import Image from 'next/image'; import { URLS } from '@/lib/config/constants'; import { FeatureBadge, FeatureItem, SectionTitle } from './PopupComponents'; import { cn, commonClasses } from '@/lib/utils'; import type { Service } from '@/types/service'; import type { Translation } from '@/types/i18n'; import { ClipboardList, Zap, Check, Lock, Rocket } from 'lucide-react'; 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(() => { const originalStyle = document.body.style.overflow; document.body.style.overflow = 'hidden'; return () => { document.body.style.overflow = originalStyle || 'unset'; }; }, []); return (
{/* Bouton de fermeture fixe au-dessus du contenu */}
{/* Contenu avec scroll vertical uniquement */}
{/* Header */}
{service.iconType === 'image' ? ( {service.name} ) : service.lucideIcon ? ( ) : ( {service.icon} )}

{service.name}

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

{service.description}

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

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

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