upgrade design

This commit is contained in:
LathanDevers
2026-06-25 10:50:49 +02:00
parent 323667e835
commit d83b7ad4e7
9 changed files with 226 additions and 442 deletions
+46 -2
View File
@@ -1,5 +1,5 @@
import { useState } from 'react';
import { Folder, ExternalLink, Play, Maximize2, Lock } from 'lucide-react';
import { Folder, ExternalLink, Play, Maximize2, Lock, Copy, Check } from 'lucide-react';
export default function VpsManager({ details, orderId, onRefresh, onAlert }) {
const [showTerminal, setShowTerminal] = useState(false);
@@ -7,11 +7,18 @@ export default function VpsManager({ details, orderId, onRefresh, onAlert }) {
const [newDomain, setNewDomain] = useState(details.domain);
const [isUpdating, setIsUpdating] = useState(false);
const [sslStatus, setSslStatus] = useState(null);
const [copiedField, setCopiedField] = useState(null);
const isInternal = details.domain && details.domain.endsWith('.gise.be');
const fileManagerUrl = isInternal ? `https://file-${details.domain}` : `http://${details.domain}:8080`;
const terminalUrl = isInternal ? `https://terminal-${details.domain}` : `http://${details.domain}:8081`;
const handleCopy = (text, field) => {
navigator.clipboard.writeText(text);
setCopiedField(field);
setTimeout(() => setCopiedField(null), 2000);
};
const handleUpdateDomain = async () => {
if (!newDomain || newDomain === details.domain) return;
setIsUpdating(true);
@@ -62,7 +69,44 @@ export default function VpsManager({ details, orderId, onRefresh, onAlert }) {
</div>
)}
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
{/* ENCART DES IDENTIFIANTS */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
<div className="bg-black/60 border border-gray-800 rounded p-3">
<span className="text-gray-500 font-bold uppercase tracking-wider block mb-2 text-[10px] flex items-center gap-1">
<Folder className="w-3 h-3" /> Accès Explorateur
</span>
<div className="flex justify-between items-center mb-1">
<span className="text-xs font-mono text-gray-400">User: <strong className="text-cyan-400">root</strong></span>
<button onClick={() => handleCopy('root', 'fileUser')} className="text-gray-500 hover:text-cyan-400 p-1">
{copiedField === 'fileUser' ? <Check className="w-3 h-3 text-cyan-400" /> : <Copy className="w-3 h-3" />}
</button>
</div>
<div className="flex justify-between items-center">
<span className="text-xs font-mono text-gray-400">Pass: <strong className="text-cyan-400">NexusGise2026!</strong></span>
<button onClick={() => handleCopy('NexusGise2026!', 'filePass')} className="text-gray-500 hover:text-cyan-400 p-1">
{copiedField === 'filePass' ? <Check className="w-3 h-3 text-cyan-400" /> : <Copy className="w-3 h-3" />}
</button>
</div>
</div>
<div className="bg-black/60 border border-gray-800 rounded p-3">
<span className="text-gray-500 font-bold uppercase tracking-wider block mb-2 text-[10px] flex items-center gap-1">
<Play className="w-3 h-3" /> Accès Console / SSH
</span>
<div className="flex justify-between items-center mb-1">
<span className="text-xs font-mono text-gray-400">User: <strong className="text-cyan-400">root</strong></span>
<button onClick={() => handleCopy('root', 'sshUser')} className="text-gray-500 hover:text-cyan-400 p-1">
{copiedField === 'sshUser' ? <Check className="w-3 h-3 text-cyan-400" /> : <Copy className="w-3 h-3" />}
</button>
</div>
<div className="flex justify-between items-center">
<span className="text-xs font-mono text-gray-400">Pass: <span className="text-gray-600 italic">Défini à l'installation</span></span>
</div>
</div>
</div>
{/* BOUTONS D'ACTIONS */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-2">
<button onClick={() => window.open(fileManagerUrl, '_blank')} className="bg-gray-950 hover:bg-gray-900 border border-gray-800 hover:border-cyan-500/50 rounded p-3 flex justify-between items-center transition group">
<span className="font-mono text-gray-300 text-sm flex items-center gap-2"><Folder className="w-4 h-4 text-cyan-500" /> Explorateur</span><ExternalLink className="w-4 h-4 text-gray-600 group-hover:text-cyan-400" />
</button>
+63 -11
View File
@@ -1,17 +1,28 @@
import { useState } from 'react';
import { Globe, ExternalLink, Lock, Loader } from 'lucide-react';
import { Globe, ExternalLink, Lock, Loader, Copy, Check } from 'lucide-react';
import { resetHostingPassword } from '../../services/api';
export default function WebManager({ details, orderId, onRefresh, onOpenSso, onAlert }) {
export default function WebManager({ details, orderId, onRefresh, onAlert }) {
const [isEditingDomain, setIsEditingDomain] = useState(false);
const [newDomain, setNewDomain] = useState(details.domain);
const [isUpdating, setIsUpdating] = useState(false);
const [sslStatus, setSslStatus] = useState(null);
// Nouveaux états pour gérer les accès localement
const [isGeneratingSso, setIsGeneratingSso] = useState(false);
const [ssoData, setSsoData] = useState(null);
const [copiedField, setCopiedField] = useState(null);
const isCustomDomain = details.domain && !details.domain.endsWith('.gise.be');
const siteUrl = (isCustomDomain && sslStatus !== 'success') ? `http://${details.domain}` : `https://${details.domain}`;
// Fonction utilitaire pour copier
const handleCopy = (text, field) => {
navigator.clipboard.writeText(text);
setCopiedField(field);
setTimeout(() => setCopiedField(null), 2000);
};
const handleUpdateDomain = async () => {
if (!newDomain || newDomain === details.domain) return;
setIsUpdating(true);
@@ -39,9 +50,12 @@ export default function WebManager({ details, orderId, onRefresh, onOpenSso, onA
const secureHash = Math.random().toString(36).slice(-8) + Math.random().toString(36).slice(-4).toUpperCase();
const rollingPassword = `Nx${secureHash}`;
await resetHostingPassword(orderId, rollingPassword);
onOpenSso({ username: details.username, password: rollingPassword, url: 'https://panel.gise.be/login/' });
} catch (err) { onAlert("Erreur Métal", "Erreur lors de la génération du SSO HestiaCP.", "error"); }
finally { setIsGeneratingSso(false); }
setSsoData({ username: details.username, password: rollingPassword, url: 'https://panel.gise.be/login/' });
} catch (err) {
onAlert("Erreur Métal", "Erreur lors de la génération du SSO HestiaCP.", "error");
} finally {
setIsGeneratingSso(false);
}
};
return (
@@ -50,7 +64,9 @@ export default function WebManager({ details, orderId, onRefresh, onOpenSso, onA
<label className="block text-xs uppercase tracking-widest text-emerald-500 mb-2">Domaine du Site Web</label>
{!isEditingDomain ? (
<div className="flex justify-between items-center">
<span className="font-mono text-xl text-emerald-400 font-bold flex items-center gap-2"><span className="h-3 w-3 rounded-full bg-emerald-500 shadow-[0_0_10px_#10b981]"></span>{details.domain}</span>
<span className="font-mono text-xl text-emerald-400 font-bold flex items-center gap-2">
<span className="h-3 w-3 rounded-full bg-emerald-500 shadow-[0_0_10px_#10b981]"></span>{details.domain}
</span>
<button onClick={() => setIsEditingDomain(true)} className="text-xs border border-gray-700 hover:border-emerald-500 text-gray-400 hover:text-emerald-400 px-3 py-1.5 rounded transition">MODIFIER</button>
</div>
) : (
@@ -60,6 +76,7 @@ export default function WebManager({ details, orderId, onRefresh, onOpenSso, onA
<button onClick={() => setIsEditingDomain(false)} className="bg-gray-800 text-white px-3 py-1.5 rounded text-xs hover:bg-gray-700">ANNULER</button>
</div>
)}
{isCustomDomain && (
<div className="mt-4 border-t border-gray-900 pt-3 flex justify-between items-center">
<p className="text-[11px] text-gray-500">Domaine personnalisé détecté.</p>
@@ -69,13 +86,48 @@ export default function WebManager({ details, orderId, onRefresh, onOpenSso, onA
</div>
)}
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<div className="grid grid-cols-1 gap-6 mb-6">
<button onClick={() => window.open(siteUrl, '_blank')} className="bg-gray-950 hover:bg-gray-900 border border-gray-800 hover:border-emerald-500/50 rounded p-3 flex justify-between items-center transition group">
<span className="font-mono text-gray-300 text-sm flex items-center gap-2"><Globe className="w-4 h-4 text-emerald-500" /> Ouvrir Site</span><ExternalLink className="w-4 h-4 text-gray-600 group-hover:text-emerald-400" />
</button>
<button onClick={handleOpenPanel} disabled={isGeneratingSso} className="bg-emerald-900/20 hover:bg-emerald-900/40 border border-emerald-800/50 hover:border-emerald-500 rounded p-3 flex justify-between items-center transition group disabled:opacity-50">
{isGeneratingSso ? <span className="font-mono text-emerald-400 text-sm flex items-center gap-2"><Loader className="w-4 h-4 animate-spin" /> SSO...</span> : <><span className="font-mono text-emerald-400 text-sm flex items-center gap-2"><Lock className="w-4 h-4" /> Panel</span><ExternalLink className="w-4 h-4 text-emerald-600 group-hover:text-emerald-400" /></>}
<span className="font-mono text-gray-300 text-sm flex items-center gap-2"><Globe className="w-4 h-4 text-emerald-500" /> Ouvrir le Site</span><ExternalLink className="w-4 h-4 text-gray-600 group-hover:text-emerald-400" />
</button>
{/* ZONE DES ACCÈS PANEL */}
{!ssoData ? (
<button onClick={handleOpenPanel} disabled={isGeneratingSso} className="bg-emerald-900/20 hover:bg-emerald-900/40 border border-emerald-800/50 hover:border-emerald-500 rounded p-3 flex justify-between items-center transition group disabled:opacity-50">
{isGeneratingSso ? (
<span className="font-mono text-emerald-400 text-sm flex items-center gap-2"><Loader className="w-4 h-4 animate-spin" /> GÉNÉRATION DU MOT DE PASSE...</span>
) : (
<><span className="font-mono text-emerald-400 text-sm flex items-center gap-2"><Lock className="w-4 h-4" /> Obtenir les accès Panel</span><ExternalLink className="w-4 h-4 text-emerald-600 group-hover:text-emerald-400" /></>
)}
</button>
) : (
<div className="bg-emerald-900/10 border border-emerald-500/30 rounded p-4">
<p className="text-[11px] text-emerald-400/80 uppercase tracking-widest mb-3 flex items-center gap-2">
<Lock className="w-3 h-3" /> Accès Panel Généré
</p>
<div className="space-y-2 mb-4">
<div className="flex justify-between items-center bg-black/50 border border-gray-800 rounded p-2">
<span className="text-gray-400 text-xs font-mono">User: <strong className="text-white ml-1">{ssoData.username}</strong></span>
<button onClick={() => handleCopy(ssoData.username, 'webUser')} className="text-emerald-400 hover:text-emerald-300 transition-colors p-1">
{copiedField === 'webUser' ? <Check className="w-4 h-4 text-emerald-500" /> : <Copy className="w-4 h-4" />}
</button>
</div>
<div className="flex justify-between items-center bg-black/50 border border-gray-800 rounded p-2">
<span className="text-gray-400 text-xs font-mono">Pass: <strong className="text-emerald-400 ml-1">{ssoData.password}</strong></span>
<button onClick={() => handleCopy(ssoData.password, 'webPass')} className="text-emerald-400 hover:text-emerald-300 transition-colors p-1">
{copiedField === 'webPass' ? <Check className="w-4 h-4 text-emerald-500" /> : <Copy className="w-4 h-4" />}
</button>
</div>
</div>
<button onClick={() => window.open(ssoData.url, '_blank')} className="w-full bg-emerald-500 hover:bg-emerald-400 text-black font-bold font-mono tracking-widest uppercase py-2.5 rounded transition shadow-[0_0_15px_rgba(16,185,129,0.2)]">
Ouvrir le Panel
</button>
</div>
)}
</div>
</div>
);
+39 -132
View File
@@ -1,12 +1,8 @@
// src/layouts/AppLayout.jsx
import { useState, useEffect } from 'react';
import { Outlet, NavLink, useNavigate } from 'react-router-dom';
import { getClientTickets } from '../services/api';
import ConfirmLogoutModal from '../components/ui/ConfirmLogoutModal';
import ConfirmLogoutModal from '../components/ui/ConfirmLogoutModal'; // Le modal extrait !
// ============================================================================
// COMPOSANT PRINCIPAL : LAYOUT DU PORTAIL
// ============================================================================
export default function AppLayout() {
const navigate = useNavigate();
const [showLogoutModal, setShowLogoutModal] = useState(false);
@@ -16,187 +12,98 @@ export default function AppLayout() {
try {
const data = await getClientTickets();
if (data && data.list) {
// On cherche les tickets qui ont le statut 'on_hold'
const unread = data.list.filter(t => t.status === 'on_hold' || t.unread).length;
setUnreadCount(unread);
}
} catch (err) {
// Erreur silencieuse : on ne pollue pas l'écran si le réseau saute
}
} catch (err) {}
};
useEffect(() => {
checkUnreadTickets(); // Premier check immédiat
const intervalId = setInterval(checkUnreadTickets, 120000); // Check toutes les 2 minutes
checkUnreadTickets();
const intervalId = setInterval(checkUnreadTickets, 120000);
return () => clearInterval(intervalId);
}, []);
// Ouvre simplement le modal
const handleLogoutClick = () => {
setShowLogoutModal(true);
};
// Exécute la vraie déconnexion
const confirmLogout = () => {
// Ici, tu pourras effacer les tokens (ex: localStorage.removeItem('token'))
setShowLogoutModal(false);
navigate('/login');
};
// --- DESIGN SYSTEM DU BUNKER ---
const sidebarStyle = {
width: '260px',
backgroundColor: '#121212', // Gris blindage
borderRight: '1px solid #222222',
height: '100vh',
display: 'flex',
flexDirection: 'column',
position: 'fixed',
top: 0,
left: 0,
fontFamily: 'monospace'
};
const mainContentStyle = {
marginLeft: '260px', // Laisse la place à la sidebar
minHeight: '100vh',
backgroundColor: '#050505', // Fond abyssal
color: '#E0E0E0',
padding: '40px'
};
// Fonction pour styliser le lien actif (en Cyan)
const getNavLinkStyle = ({ isActive }) => ({
display: 'block',
padding: '15px 25px',
color: isActive ? '#00E5FF' : '#888',
backgroundColor: isActive ? 'rgba(0, 229, 255, 0.05)' : 'transparent',
textDecoration: 'none',
borderLeft: isActive ? '4px solid #00E5FF' : '4px solid transparent',
transition: 'all 0.2s',
textTransform: 'uppercase',
letterSpacing: '1px',
fontSize: '0.9rem'
});
// 🌟 La fonction magique Tailwind pour les liens du menu
const navLinkClass = ({ isActive }) =>
`block px-6 py-4 no-underline border-l-4 transition-all uppercase tracking-widest text-sm font-mono ${
isActive
? 'text-cyan-400 bg-cyan-400/5 border-cyan-400'
: 'text-[#888] border-transparent hover:text-gray-300 hover:bg-white/5'
}`;
return (
<div style={{ display: 'block' }}>
<div className="flex min-h-screen bg-[#050505] text-[#E0E0E0] font-sans">
{/* ========================================== */}
{/* BARRE LATÉRALE (SIDEBAR) */}
{/* ========================================== */}
<aside style={sidebarStyle}>
{/* SIDEBAR */}
<aside className="w-[260px] bg-[#121212] border-r border-[#222222] h-screen flex flex-col fixed top-0 left-0">
{/* En-tête de la Sidebar (Logo / Marque) */}
<div style={{ padding: '30px 25px', borderBottom: '1px solid #222' }}>
<h1 style={{
color: '#FFF',
margin: 0,
fontSize: '1.8rem',
letterSpacing: '3px',
display: 'flex',
alignItems: 'baseline',
gap: '8px'
}}>
<div className="px-6 py-8 border-b border-[#222]">
<h1 className="text-white m-0 text-3xl font-black tracking-widest flex items-baseline gap-2">
NEXUS
<span style={{
color: '#00E5FF',
fontSize: '0.7rem',
letterSpacing: '1px',
fontWeight: 'normal',
}}>
by GISE
</span>
<span className="text-cyan-400 text-[10px] tracking-widest font-normal">by GISE</span>
</h1>
<p style={{ color: '#555', fontSize: '0.7rem', margin: '8px 0 0 0' }}>
CONSOLE D'INFRASTRUCTURE v1.0
<p className="text-[#555] text-[10px] font-mono tracking-wider mt-2 uppercase">
Console d'infrastructure v1.0
</p>
</div>
{/* Menu de Navigation */}
<nav style={{ flex: 1, marginTop: '20px' }}>
<div style={{ padding: '0 25px', marginBottom: '10px', color: '#444', fontSize: '0.7rem', fontWeight: 'bold' }}>
<nav className="flex-1 mt-6">
<div className="px-6 mb-2 text-[#444] text-[10px] font-bold font-mono tracking-widest">
// SUPERVISION
</div>
<NavLink style={getNavLinkStyle} to="/dashboard">Tableau de bord</NavLink>
<NavLink style={getNavLinkStyle} to="/services">Inventaire Réseau</NavLink>
<NavLink className={navLinkClass} to="/dashboard">Tableau de bord</NavLink>
<NavLink className={navLinkClass} to="/services">Inventaire Réseau</NavLink>
<div style={{ padding: '0 25px', marginTop: '25px', marginBottom: '10px', color: '#444', fontSize: '0.7rem', fontWeight: 'bold' }}>
<div className="px-6 mt-8 mb-2 text-[#444] text-[10px] font-bold font-mono tracking-widest">
// GESTION
</div>
{/*<NavLink style={getNavLinkStyle} to="/billing" locked>Facturation</NavLink>*/}
<NavLink style={getNavLinkStyle} to="/support">
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', width: '100%' }}>
<NavLink className={navLinkClass} to="/support">
<div className="flex justify-between items-center w-full">
<span>Tickets Support</span>
{/* LE BADGE DE NOTIFICATION */}
{unreadCount > 0 && (
<span style={{
backgroundColor: '#00E5FF',
color: '#000',
fontSize: '0.65rem',
fontWeight: 'bold',
padding: '2px 8px',
borderRadius: '12px',
boxShadow: '0 0 10px rgba(0,229,255,0.6)'
}}>
<span className="bg-cyan-400 text-black text-[10px] font-bold px-2 py-0.5 rounded-full shadow-[0_0_10px_rgba(0,229,255,0.6)] animate-pulse">
{unreadCount} NEW
</span>
)}
</div>
</NavLink>
{/*<NavLink style={getNavLinkStyle} to="/settings">Profil & Sécurité</NavLink>*/}
{/* === MODULES VERROUILLÉS (WORK IN PROGRESS) === */}
<div style={{
display: 'flex', justifyContent: 'space-between', alignItems: 'center',
padding: '15px 25px', color: '#444', borderLeft: '4px solid transparent',
textTransform: 'uppercase', letterSpacing: '1px', fontSize: '0.9rem',
cursor: 'not-allowed', userSelect: 'none'
}}>
<span>Facturation</span>
<span style={{ fontSize: '0.6rem', color: '#333', border: '1px solid #333', padding: '2px 5px', borderRadius: '3px', fontWeight: 'bold' }}>PROCHAINEMENT</span>
</div>
<div style={{
display: 'flex', justifyContent: 'space-between', alignItems: 'center',
padding: '15px 25px', color: '#444', borderLeft: '4px solid transparent',
textTransform: 'uppercase', letterSpacing: '1px', fontSize: '0.9rem',
cursor: 'not-allowed', userSelect: 'none'
}}>
<div className="flex justify-between items-center px-6 py-4 text-[#444] border-l-4 border-transparent uppercase tracking-widest text-sm font-mono cursor-not-allowed select-none">
<span>Facturation</span>
<span className="text-[9px] text-[#333] border border-[#333] px-1.5 py-0.5 rounded font-bold">WIP</span>
</div>
<div className="flex justify-between items-center px-6 py-4 text-[#444] border-l-4 border-transparent uppercase tracking-widest text-sm font-mono cursor-not-allowed select-none">
<span>Profil & Sécurité</span>
<span style={{ fontSize: '0.6rem', color: '#333', border: '1px solid #333', padding: '2px 5px', borderRadius: '3px', fontWeight: 'bold' }}>PROCHAINEMENT</span>
<span className="text-[9px] text-[#333] border border-[#333] px-1.5 py-0.5 rounded font-bold">WIP</span>
</div>
</nav>
{/* Bas de la Sidebar (Déconnexion) */}
<div style={{ padding: '20px', borderTop: '1px solid #222' }}>
<div className="p-5 border-t border-[#222]">
<button
onClick={handleLogoutClick}
style={{
width: '100%', padding: '12px', backgroundColor: 'transparent',
color: '#ff003c', border: '1px solid #ff003c', cursor: 'pointer',
fontFamily: 'monospace', textTransform: 'uppercase'
}}
onClick={() => setShowLogoutModal(true)}
className="w-full p-3 bg-transparent text-[#ff003c] hover:bg-[#ff003c]/10 border border-[#ff003c] cursor-pointer font-mono text-sm tracking-widest uppercase transition-colors rounded-sm"
>
[ Déconnexion ]
</button>
</div>
</aside>
{/* ========================================== */}
{/* ZONE DE CONTENU DYNAMIQUE */}
{/* ========================================== */}
<main style={mainContentStyle}>
{/* Le composant <Outlet /> injecte le contenu de la page demandée sans recharger la sidebar */}
{/* ZONE DE CONTENU */}
<main className="ml-[260px] p-10 flex-1 min-h-screen">
<Outlet context={{ refreshNavbarTickets: checkUnreadTickets }} />
</main>
{/* MODAL DE DÉCONNEXION */}
<ConfirmLogoutModal
isOpen={showLogoutModal}
onClose={() => setShowLogoutModal(false)}
onConfirm={confirmLogout}
/>
</div>
);
}
+12 -19
View File
@@ -1,35 +1,28 @@
// src/layouts/PublicLayout.jsx
import { Outlet, Link } from 'react-router-dom';
export default function PublicLayout() {
return (
<div style={{ backgroundColor: '#121212', color: '#E0E0E0', minHeight: '100vh', fontFamily: 'monospace' }}>
<nav style={{ padding: '20px', borderBottom: '1px solid #242424', display: 'flex', gap: '15px', alignItems: 'center' }}>
<Link to="/" style={{ display: 'flex', alignItems: 'baseline', gap: '6px', textDecoration: 'none' }}>
<span style={{ color: '#FFF', fontSize: '1.2rem', letterSpacing: '2px', fontWeight: 'bold' }}>NEXUS</span>
<span style={{ color: '#00E5FF', fontSize: '0.65rem', letterSpacing: '1px', fontWeight: 'normal'}}>by GISE</span>
<div className="bg-[#121212] text-[#E0E0E0] min-h-screen font-mono">
<nav className="p-5 border-b border-[#242424] flex gap-4 items-center">
<Link to="/" className="flex items-baseline gap-1.5 no-underline">
<span className="text-white text-xl tracking-[2px] font-bold">NEXUS</span>
<span className="text-cyan-400 text-[10px] tracking-[1px]">by GISE</span>
</Link>
<Link to="/offres" style={{ color: '#E0E0E0', textDecoration: 'none', marginLeft: '20px' }}>Catalogue</Link>
{/* AJOUT DU BOUTON D'INSCRIPTION */}
<Link to="/register" style={{ color: '#A0A0A0', textDecoration: 'none', marginLeft: 'auto', fontSize: '0.9rem' }}>
<Link to="/offres" className="text-[#E0E0E0] no-underline ml-5 hover:text-cyan-400 transition-colors">
Catalogue
</Link>
<Link to="/register" className="text-[#A0A0A0] no-underline ml-auto text-sm hover:text-white transition-colors">
Créer un compte
</Link>
<Link to="/login" style={{
color: '#000',
backgroundColor: '#00E5FF',
padding: '6px 12px',
textDecoration: 'none',
fontWeight: 'bold',
fontSize: '0.9rem'
}}>
<Link to="/login" className="text-black bg-cyan-400 hover:bg-cyan-300 transition-colors px-3 py-1.5 no-underline font-bold text-sm">
Connexion
</Link>
</nav>
{/* C'est ici que les pages (Accueil, Login, etc.) vont s'afficher */}
<main style={{ padding: '20px' }}>
<main className="p-5">
<Outlet />
</main>
</div>
+1 -12
View File
@@ -16,7 +16,6 @@ export default function Services() {
const [error, setError] = useState(null);
const [newVpcName, setNewVpcName] = useState("");
const [isConnecting, setIsConnecting] = useState(null);
const [ssoVault, setSsoVault] = useState(null);
const [activeServiceModal, setActiveServiceModal] = useState(null);
const [customAlert, setCustomAlert] = useState(null);
@@ -125,16 +124,6 @@ export default function Services() {
</>
)}
{/* MODAUX */}
{ssoVault && ( /* ... Gérer le ssoVault ici, ou l'extraire aussi si tu le souhaites ... */
<div className="fixed inset-0 bg-black/80 backdrop-blur-sm z-[60] flex items-center justify-center p-4">
<div className="bg-gray-900 border border-emerald-500/50 rounded-lg shadow-2xl shadow-emerald-500/20 max-w-md w-full p-6 text-gray-200">
<h3 className="text-xl font-bold text-emerald-400 font-mono tracking-wider mb-4">ACCÈS AUTORISÉ</h3>
<p className="text-sm text-gray-400 mb-6">Utilisateur : {ssoVault.username}<br/>Clé : {ssoVault.password}</p>
<button onClick={() => setSsoVault(null)}>Fermer</button>
</div>
</div>
)}
{activeServiceModal && (
<div className="fixed inset-0 bg-black/80 backdrop-blur-sm z-50 flex items-center justify-center p-4">
@@ -148,7 +137,7 @@ export default function Services() {
{activeServiceModal.type === 'vps' ? (
activeServiceModal.details?.ip && activeServiceModal.details.ip !== '127.0.0.1' ? <VpsManager details={activeServiceModal.details} orderId={activeServiceModal.data.id} onRefresh={fetchServices} onAlert={triggerAlert} /> : <VpsDeployer serviceId={activeServiceModal.data.id} onDeploySuccess={() => { setActiveServiceModal(null); fetchServices(); }} onAlert={triggerAlert} />
) : (
<WebManager details={activeServiceModal.details} orderId={activeServiceModal.data.id} onRefresh={fetchServices} onOpenSso={setSsoVault} onAlert={triggerAlert} />
<WebManager details={activeServiceModal.details} orderId={activeServiceModal.data.id} onRefresh={fetchServices} onAlert={triggerAlert} />
)}
</div>
</div>
+10 -50
View File
@@ -2,68 +2,28 @@ import { Link } from 'react-router-dom';
export default function Home() {
return (
<div style={{ textAlign: 'center', marginTop: '12vh' }}>
<h1 style={{
color: '#FFF',
fontSize: '4rem',
letterSpacing: '6px',
display: 'flex',
alignItems: 'baseline',
justifyContent: 'center',
gap: '12px',
margin: '0 0 20px 0'
}}>
<div className="text-center mt-[12vh]">
<h1 className="text-white text-5xl md:text-6xl tracking-[6px] flex items-baseline justify-center gap-3 mb-5 font-black">
NEXUS
<span style={{
color: '#00E5FF',
fontSize: '1.4rem',
letterSpacing: '2px',
fontWeight: 'normal'
}}>
<span className="text-cyan-400 text-xl md:text-2xl tracking-[2px] font-normal">
by GISE
</span>
</h1>
<h2 style={{
color: '#FFFFFF',
fontSize: '1.5rem',
letterSpacing: '2px',
textTransform: 'uppercase',
marginBottom: '20px',
fontWeight: 'normal'
}}>
<h2 className="text-white text-xl md:text-2xl tracking-[2px] uppercase mb-5 font-normal">
Bienvenue dans l'infrastructure
</h2>
<p style={{
color: '#A0A0A0',
fontSize: '1.2rem',
maxWidth: '600px',
margin: '0 auto',
lineHeight: '1.6'
}}>
<p className="text-[#A0A0A0] text-lg max-w-[600px] mx-auto leading-relaxed">
Hébergement web, instances VPS et Stockage Cloud en Belgique.
<br />Propulsé par une architecture bare-metal locale.
</p>
{/* LE BOUTON D'ACTION PRINCIPAL REDIRIGE VERS /REGISTER */}
<div style={{ marginTop: '50px' }}>
<Link to="/register" style={{
display: 'inline-block',
backgroundColor: 'transparent',
color: '#00E5FF',
border: '1px solid #00E5FF',
padding: '12px 24px',
fontSize: '1rem',
fontFamily: 'monospace',
textDecoration: 'none',
textTransform: 'uppercase',
letterSpacing: '1px',
fontWeight: 'bold',
transition: 'all 0.3s ease',
boxShadow: '0 0 15px rgba(0, 229, 255, 0.1)',
}}>
<div className="mt-12">
<Link
to="/register"
className="inline-block bg-transparent text-cyan-400 border border-cyan-400 px-6 py-3 font-mono text-base uppercase tracking-[1px] font-bold transition-all duration-300 shadow-[0_0_15px_rgba(0,229,255,0.1)] hover:bg-cyan-400/10 hover:shadow-[0_0_20px_rgba(0,229,255,0.3)] no-underline rounded-sm"
>
Démarrer le déploiement
</Link>
</div>
+19 -49
View File
@@ -15,23 +15,9 @@ export default function Login() {
setLoading(true);
try {
// 1. APPEL À TON API BACKEND (FOSSBilling / PHP)
// Ici, tu mettras ton vrai 'fetch' vers ton serveur pour vérifier le mot de passe.
// Pour l'instant, on simule un délai réseau d'une seconde.
await new Promise(resolve => setTimeout(resolve, 1000));
// --- SIMULATION D'AUTHENTIFICATION ---
// (À remplacer par la vraie validation de ton serveur)
await loginClient(email, password);
// 2. LA CLÉ DU PROBLÈME EST ICI : L'ATTRIBUTION DU BADGE
// On sauvegarde le token (généralement renvoyé par ton API) dans le navigateur
localStorage.setItem('gise_token', 'secure_token_alphanumerique_factice');
// 3. AUTORISATION ET REDIRECTION
// Maintenant que le token est en poche, ProtectedRoute nous laissera passer !
navigate('/dashboard');
} catch (err) {
setError(err.message);
} finally {
@@ -39,72 +25,56 @@ export default function Login() {
}
};
// --- DESIGN SYSTEM "BUNKER" ---
const inputStyle = {
width: '100%', padding: '10px', marginBottom: '20px',
backgroundColor: '#1A1A1A', color: '#00E5FF',
border: '1px solid #333', fontFamily: 'monospace', outline: 'none',
boxSizing: 'border-box'
};
const buttonStyle = {
width: '100%', padding: '12px', backgroundColor: loading ? '#333' : '#00E5FF',
color: loading ? '#888' : '#000', border: 'none', cursor: loading ? 'not-allowed' : 'pointer',
fontFamily: 'monospace', fontWeight: 'bold', textTransform: 'uppercase', letterSpacing: '1px',
marginTop: '10px'
};
return (
<div style={{ display: 'flex', justifyContent: 'center', marginTop: '10vh', padding: '0 20px' }}>
<div style={{
width: '100%', maxWidth: '400px', backgroundColor: '#242424',
padding: '30px', borderTop: '4px solid #00E5FF', boxShadow: '0 10px 30px rgba(0,0,0,0.5)'
}}>
<h2 style={{ color: '#FFF', textTransform: 'uppercase', marginBottom: '5px', fontSize: '1.5rem', textAlign: 'center' }}>
<div className="flex justify-center mt-[10vh] px-5">
<div className="w-full max-w-[400px] bg-[#242424] p-8 border-t-4 border-cyan-400 shadow-[0_10px_30px_rgba(0,0,0,0.5)]">
<h2 className="text-white uppercase mb-1 text-2xl text-center font-sans font-bold">
Connexion au Nexus
</h2>
<p style={{ color: '#888', fontFamily: 'monospace', fontSize: '0.85rem', marginBottom: '25px', textAlign: 'center' }}>
<p className="text-[#888] font-mono text-sm mb-6 text-center">
[ IDENTIFICATION REQUISE ]
</p>
{error && (
<div style={{
color: '#ff003c', border: '1px solid #ff003c', backgroundColor: 'rgba(255, 0, 60, 0.1)',
padding: '10px', marginBottom: '20px', fontFamily: 'monospace', fontSize: '0.85rem'
}}>
<div className="text-[#ff003c] border border-[#ff003c] bg-[#ff003c]/10 p-3 mb-5 font-mono text-sm">
[ ALERTE ] : {error}
</div>
)}
<form onSubmit={handleLogin}>
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>IDENTIFIANT (E-MAIL)</label>
<form onSubmit={handleLogin} className="font-mono">
<label className="block text-[#888] mb-1 text-xs tracking-widest uppercase">Identifiant (E-mail)</label>
<input
type="email"
value={email}
onChange={(e) => setEmail(e.target.value)}
style={inputStyle}
required
placeholder="admin@gise.be"
className="w-full p-3 mb-5 bg-[#1A1A1A] text-cyan-400 border border-[#333] outline-none focus:border-cyan-400 transition-colors"
/>
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>C D'ACCÈS SÉCURISÉE</label>
<label className="block text-[#888] mb-1 text-xs tracking-widest uppercase">C d'accès sécurisée</label>
<input
type="password"
value={password}
onChange={(e) => setPassword(e.target.value)}
style={inputStyle}
required
placeholder="••••••••"
className="w-full p-3 mb-5 bg-[#1A1A1A] text-cyan-400 border border-[#333] outline-none focus:border-cyan-400 transition-colors"
/>
<button type="submit" style={buttonStyle} disabled={loading}>
<button
type="submit"
disabled={loading}
className="w-full p-3 mt-2 font-bold uppercase tracking-widest transition-colors disabled:bg-[#333] disabled:text-[#888] disabled:cursor-not-allowed bg-cyan-400 hover:bg-cyan-300 text-black shadow-[0_0_15px_rgba(0,229,255,0.2)]"
>
{loading ? 'VÉRIFICATION...' : 'OUVRIR LE SAS'}
</button>
</form>
<div style={{ marginTop: '20px', textAlign: 'center', fontSize: '0.85rem' }}>
<Link to="/register" style={{ color: '#888', textDecoration: 'none' }}>
Aucun accès réseau ? <span style={{ color: '#00E5FF' }}>S'enregistrer &gt;</span>
<div className="mt-5 text-center text-sm font-mono text-[#888]">
Aucun accès réseau ?{' '}
<Link to="/register" className="text-cyan-400 hover:text-cyan-300 transition-colors no-underline">
S'enregistrer &gt;
</Link>
</div>
</div>
+34 -75
View File
@@ -3,9 +3,6 @@ import { useNavigate, Link } from 'react-router-dom';
import { registerUnifiedClient } from '../../services/api';
import NotificationModal from '../../components/ui/NotificationModal';
// ============================================================================
// COMPOSANT PRINCIPAL : REGISTER
// ============================================================================
export default function Register() {
const [firstName, setFirstName] = useState('');
const [lastName, setLastName] = useState('');
@@ -15,7 +12,7 @@ export default function Register() {
const [confirmPassword, setConfirmPassword] = useState('');
const [loading, setLoading] = useState(false);
const [customAlert, setCustomAlert] = useState(null); // Remplace l'état "error" et "alert()"
const [customAlert, setCustomAlert] = useState(null);
const navigate = useNavigate();
const handleRegister = async (e) => {
@@ -23,119 +20,81 @@ export default function Register() {
setCustomAlert(null);
const passwordPolicy = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).{8,}$/;
// VÉRIFICATIONS FRONTEND (Affiche le Modal d'Erreur)
if (!passwordPolicy.test(password)) {
setCustomAlert({ type: 'error', title: 'Sécurité compromise', message: "Le mot de passe doit contenir 8 caractères min, une majuscule, une minuscule, un chiffre et un caractère spécial." });
return;
}
if (password !== confirmPassword) {
setCustomAlert({ type: 'error', title: 'Erreur de saisie', message: "Les clés d'accès (mots de passe) ne correspondent pas." });
setCustomAlert({ type: 'error', title: 'Erreur de saisie', message: "Les clés d'accès ne correspondent pas." });
return;
}
const validUsername = /^[a-zA-Z0-9]{3,12}$/.test(username);
if (!validUsername) {
setCustomAlert({ type: 'error', title: 'Identifiant invalide', message: "Le nom d'utilisateur doit contenir uniquement des lettres ou chiffres (entre 3 et 12 caractères, sans espace)." });
if (!/^[a-zA-Z0-9]{3,12}$/.test(username)) {
setCustomAlert({ type: 'error', title: 'Identifiant invalide', message: "Le nom d'utilisateur doit contenir uniquement des lettres ou chiffres (entre 3 et 12 caractères)." });
return;
}
setLoading(true);
try {
// API BACKEND
await registerUnifiedClient(email, username, password, firstName, lastName);
// SUCCÈS (Affiche le Modal de Succès)
setCustomAlert({
type: 'success',
title: 'PROVISIONNEMENT RÉUSSI',
message: "Vos comptes FOSSBilling, HestiaCP et Nextcloud ont été initialisés.\n\nVous pouvez maintenant vous connecter à l'infrastructure."
});
setCustomAlert({ type: 'success', title: 'PROVISIONNEMENT RÉUSSI', message: "Vos comptes FOSSBilling, HestiaCP et Nextcloud ont été initialisés.\n\nVous pouvez maintenant vous connecter." });
} catch (err) {
// ERREUR API (Affiche le Modal d'Erreur API)
setCustomAlert({ type: 'error', title: 'Échec du Déploiement', message: err.message || "Échec de l'initialisation de l'infrastructure." });
setCustomAlert({ type: 'error', title: 'Échec du Déploiement', message: err.message || "Échec de l'initialisation." });
} finally {
setLoading(false);
}
};
// Fermeture du Modal : Redirige vers le Login SI c'était un succès
const handleCloseModal = () => {
if (customAlert?.type === 'success') {
navigate('/login');
} else {
setCustomAlert(null);
}
};
// Styles
const inputStyle = {
width: '100%', padding: '10px', marginBottom: '15px',
backgroundColor: '#1A1A1A', color: '#00E5FF',
border: '1px solid #333', fontFamily: 'monospace', outline: 'none',
boxSizing: 'border-box'
};
const buttonStyle = {
width: '100%', padding: '12px', backgroundColor: loading ? '#333' : '#00E5FF',
color: loading ? '#888' : '#000', border: 'none', cursor: loading ? 'not-allowed' : 'pointer',
fontFamily: 'monospace', fontWeight: 'bold', textTransform: 'uppercase', letterSpacing: '1px',
marginTop: '10px'
if (customAlert?.type === 'success') navigate('/login');
else setCustomAlert(null);
};
return (
<div style={{ display: 'flex', justifyContent: 'center', marginTop: '5vh', padding: '0 20px' }}>
<div style={{
width: '100%', maxWidth: '500px', backgroundColor: '#242424',
padding: '30px', borderTop: '4px solid #00E5FF', boxShadow: '0 10px 30px rgba(0,0,0,0.5)'
}}>
<h2 style={{ color: '#FFF', textTransform: 'uppercase', marginBottom: '5px', fontSize: '1.5rem' }}>
<div className="flex justify-center mt-[5vh] px-5">
<div className="w-full max-w-[500px] bg-[#242424] p-8 border-t-4 border-cyan-400 shadow-[0_10px_30px_rgba(0,0,0,0.5)]">
<h2 className="text-white uppercase mb-1 text-2xl font-sans font-bold">
Créer un accès réseau
</h2>
<p style={{ color: '#888', fontFamily: 'monospace', fontSize: '0.85rem', marginBottom: '25px' }}>
[ INITIALISATION DU PROVISIONNEMENT TRIPLE EN CASCADE ]
<p className="text-[#888] font-mono text-sm mb-6">
[ INITIALISATION DU PROVISIONNEMENT TRIPLE ]
</p>
<form onSubmit={handleRegister}>
<div style={{ display: 'flex', gap: '15px' }}>
<div style={{ flex: 1 }}>
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>PRÉNOM</label>
<input type="text" value={firstName} onChange={(e) => setFirstName(e.target.value)} style={inputStyle} required placeholder="John" />
<form onSubmit={handleRegister} className="font-mono">
<div className="flex gap-4">
<div className="flex-1">
<label className="block text-[#888] mb-1 text-xs tracking-widest uppercase">Prénom</label>
<input type="text" value={firstName} onChange={(e) => setFirstName(e.target.value)} required placeholder="John" className="w-full p-3 mb-4 bg-[#1A1A1A] text-cyan-400 border border-[#333] outline-none focus:border-cyan-400 transition-colors" />
</div>
<div style={{ flex: 1 }}>
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>NOM</label>
<input type="text" value={lastName} onChange={(e) => setLastName(e.target.value)} style={inputStyle} required placeholder="Doe" />
<div className="flex-1">
<label className="block text-[#888] mb-1 text-xs tracking-widest uppercase">Nom</label>
<input type="text" value={lastName} onChange={(e) => setLastName(e.target.value)} required placeholder="Doe" className="w-full p-3 mb-4 bg-[#1A1A1A] text-cyan-400 border border-[#333] outline-none focus:border-cyan-400 transition-colors" />
</div>
</div>
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>ADRESSE E-MAIL (IDENTIFIANT FACTURATION)</label>
<input type="email" value={email} onChange={(e) => setEmail(e.target.value)} style={inputStyle} required placeholder="john.doe@gise.be" />
<label className="block text-[#888] mb-1 text-xs tracking-widest uppercase">E-mail (Facturation)</label>
<input type="email" value={email} onChange={(e) => setEmail(e.target.value)} required placeholder="john.doe@gise.be" className="w-full p-3 mb-4 bg-[#1A1A1A] text-cyan-400 border border-[#333] outline-none focus:border-cyan-400 transition-colors" />
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>NOM D'UTILISATEUR SÉCURISÉ (ACCÈS HESTIA & CLOUD)</label>
<input type="text" value={username} onChange={(e) => setUsername(e.target.value)} style={inputStyle} required placeholder="ex: jdoe42" />
<label className="block text-[#888] mb-1 text-xs tracking-widest uppercase">Identifiant sécurisé (Cloud)</label>
<input type="text" value={username} onChange={(e) => setUsername(e.target.value)} required placeholder="ex: jdoe42" className="w-full p-3 mb-4 bg-[#1A1A1A] text-cyan-400 border border-[#333] outline-none focus:border-cyan-400 transition-colors" />
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>CLÉ D'ACCÈS (MOT DE PASSE UNIQUE)</label>
<input type="password" value={password} onChange={(e) => setPassword(e.target.value)} style={inputStyle} required placeholder="••••••••" />
<label className="block text-[#888] mb-1 text-xs tracking-widest uppercase">Clé d'accès unique</label>
<input type="password" value={password} onChange={(e) => setPassword(e.target.value)} required placeholder="••••••••" className="w-full p-3 mb-4 bg-[#1A1A1A] text-cyan-400 border border-[#333] outline-none focus:border-cyan-400 transition-colors" />
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>CONFIRMER LA CLÉ D'ACCÈS</label>
<input type="password" value={confirmPassword} onChange={(e) => setConfirmPassword(e.target.value)} style={inputStyle} required placeholder="••••••••" />
<label className="block text-[#888] mb-1 text-xs tracking-widest uppercase">Confirmer la clé</label>
<input type="password" value={confirmPassword} onChange={(e) => setConfirmPassword(e.target.value)} required placeholder="••••••••" className="w-full p-3 mb-5 bg-[#1A1A1A] text-cyan-400 border border-[#333] outline-none focus:border-cyan-400 transition-colors" />
<button type="submit" style={buttonStyle} disabled={loading}>
<button type="submit" disabled={loading} className="w-full p-3 mt-2 font-bold uppercase tracking-widest transition-colors disabled:bg-[#333] disabled:text-[#888] disabled:cursor-not-allowed bg-cyan-400 hover:bg-cyan-300 text-black shadow-[0_0_15px_rgba(0,229,255,0.2)]">
{loading ? 'DÉPLOIEMENT EN COURS...' : 'LANCER LE PROVISIONNEMENT'}
</button>
</form>
<div style={{ marginTop: '20px', textAlign: 'center', fontSize: '0.85rem' }}>
<Link to="/login" style={{ color: '#888', textDecoration: 'none' }}>
Déjà enregistré ? <span style={{ color: '#00E5FF' }}>Se connecter au terminal &gt;</span>
<div className="mt-5 text-center text-sm font-mono text-[#888]">
Déjà enregistré ?{' '}
<Link to="/login" className="text-cyan-400 hover:text-cyan-300 transition-colors no-underline">
Se connecter au terminal &gt;
</Link>
</div>
</div>
{/* Affichage du Modal par-dessus le formulaire */}
<NotificationModal notification={customAlert} onClose={handleCloseModal} />
</div>
);
-90
View File
@@ -1,90 +0,0 @@
import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { loginClient } from '../../services/api';
export default function Login() {
const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
const [error, setError] = useState(null);
const [loading, setLoading] = useState(false);
const navigate = useNavigate();
const handleLogin = async (e) => {
e.preventDefault(); // Empêche la page de se rafraîchir
setError(null);
setLoading(true);
try {
// On envoie la requête à FOSSBilling
await loginClient(email, password);
// Si on arrive ici, le login est un succès !
// On redirige vers l'espace client sécurisé
navigate('/dashboard');
} catch (err) {
setError(err.message || "Accès refusé. Vérifiez vos identifiants.");
} finally {
setLoading(false);
}
};
// Styles CSS en variables pour garder le code lisible
const inputStyle = {
width: '100%', padding: '12px', marginBottom: '15px',
backgroundColor: '#1A1A1A', color: '#00E5FF',
border: '1px solid #333', fontFamily: 'monospace', outline: 'none'
};
const buttonStyle = {
width: '100%', padding: '12px', backgroundColor: loading ? '#333' : '#00E5FF',
color: loading ? '#888' : '#000', border: 'none', cursor: loading ? 'not-allowed' : 'pointer',
fontFamily: 'monospace', fontWeight: 'bold', textTransform: 'uppercase', letterSpacing: '1px'
};
return (
<div style={{ display: 'flex', justifyContent: 'center', marginTop: '10vh' }}>
<div style={{
width: '100%', maxWidth: '400px', backgroundColor: '#242424',
padding: '30px', borderTop: '4px solid #00E5FF', boxShadow: '0 10px 30px rgba(0,0,0,0.5)'
}}>
<h2 style={{ color: '#FFF', textTransform: 'uppercase', marginBottom: '20px', fontSize: '1.5rem' }}>
Authentification
</h2>
{/* Zone d'erreur qui s'affiche si le mot de passe est faux */}
{error && (
<div style={{ backgroundColor: 'rgba(255, 68, 68, 0.1)', color: '#FF4444', padding: '10px', marginBottom: '15px', border: '1px solid #FF4444', fontSize: '0.9rem' }}>
[ ERREUR ] : {error}
</div>
)}
<form onSubmit={handleLogin}>
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>IDENTIFIANT (EMAIL)</label>
<input
type="email"
value={email}
onChange={(e) => setEmail(e.target.value)}
style={inputStyle}
required
placeholder="admin@gise.be"
/>
<label style={{ display: 'block', color: '#888', marginBottom: '5px', fontSize: '0.8rem' }}>CLÉ D'ACCÈS (MOT DE PASSE)</label>
<input
type="password"
value={password}
onChange={(e) => setPassword(e.target.value)}
style={inputStyle}
required
placeholder="••••••••"
/>
<button type="submit" style={buttonStyle} disabled={loading}>
{loading ? 'VÉRIFICATION...' : 'INITIALISER LA CONNEXION'}
</button>
</form>
</div>
</div>
);
}