fix: page team.tsx ultra-simplifiée + protection absolue script JS

- Page Next.js simplifiée au maximum pour éviter erreurs compilation
- Remplacement immédiat du body par l'iframe côté client
- Protection absolue dans strategie-script.js contre les pages équipe
- Script bloqué complètement sur toute URL contenant /team

Ces changements devraient définitivement résoudre :
- Les deux liens équipe (1 seul lien Next.js)
- L'affichage radar au lieu des visualisations équipe
This commit is contained in:
syoul
2025-12-09 12:41:14 +01:00
parent 52ff55a291
commit 2ab2e1f261
2 changed files with 51 additions and 57 deletions

View File

@@ -98,60 +98,15 @@ RUN echo "📊 Comptage des fichiers .md dans .techradar/data/radar" && \
# La page Next.js pour le routing, le HTML statique pour garantir l'affichage
RUN mkdir -p .techradar/src/pages && \
cat > .techradar/src/pages/team.tsx << 'EOF'
import Head from "next/head";
export default function TeamPage() {
// Version ultra-simple pour éviter les erreurs de compilation
if (typeof window !== 'undefined') {
// Remplacer immédiatement le contenu par l'iframe
document.body.innerHTML = '<iframe src="/team.html" style="width:100vw;height:100vh;border:none;margin:0;padding:0;position:fixed;top:0;left:0;z-index:9999;"></iframe>';
}
const TeamPage = () => {
// Charger directement l'iframe sans redirection ni layout
return (
<>
<Head>
<title>Équipe & Technologies - Laplank</title>
<style dangerouslySetInnerHTML={{__html: `
html, body {
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
height: 100% !important;
overflow: hidden !important;
}
#__next {
width: 100% !important;
height: 100% !important;
margin: 0 !important;
padding: 0 !important;
}
`}} />
</Head>
<div style={{
width: '100vw',
height: '100vh',
margin: 0,
padding: 0,
overflow: 'hidden',
position: 'fixed',
top: 0,
left: 0,
zIndex: 9999,
background: '#1a4d3a'
}}>
<iframe
src="/team.html"
style={{
width: '100%',
height: '100%',
border: 'none',
margin: 0,
padding: 0,
display: 'block'
}}
title="Équipe & Technologies"
/>
</div>
</>
);
};
export default TeamPage;
return null; // Ne rien rendre côté serveur
}
EOF
RUN echo "✅ Page team.tsx créée (redirige vers /team.html)"