fix: simplification page team.tsx pour éviter erreur build
- Suppression de styled-jsx (style jsx global) - Utilisation de dangerouslySetInnerHTML pour les styles - Suppression de getLayout qui n'est pas supporté - Styles inline uniquement pour éviter les dépendances Cela devrait corriger l'erreur de build npm run build
This commit is contained in:
@@ -106,21 +106,21 @@ const TeamPage = () => {
|
|||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>Équipe & Technologies - Laplank</title>
|
<title>Équipe & Technologies - Laplank</title>
|
||||||
<style jsx global>{`
|
<style dangerouslySetInnerHTML={{__html: `
|
||||||
html, body {
|
html, body {
|
||||||
margin: 0;
|
margin: 0 !important;
|
||||||
padding: 0;
|
padding: 0 !important;
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
height: 100%;
|
height: 100% !important;
|
||||||
overflow: hidden;
|
overflow: hidden !important;
|
||||||
}
|
}
|
||||||
#__next {
|
#__next {
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
height: 100%;
|
height: 100% !important;
|
||||||
margin: 0;
|
margin: 0 !important;
|
||||||
padding: 0;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
`}</style>
|
`}} />
|
||||||
</Head>
|
</Head>
|
||||||
<div style={{
|
<div style={{
|
||||||
width: '100vw',
|
width: '100vw',
|
||||||
@@ -151,11 +151,6 @@ const TeamPage = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Désactiver le layout par défaut pour cette page
|
|
||||||
TeamPage.getLayout = function getLayout(page) {
|
|
||||||
return page;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default TeamPage;
|
export default TeamPage;
|
||||||
EOF
|
EOF
|
||||||
RUN echo "✅ Page team.tsx créée (redirige vers /team.html)"
|
RUN echo "✅ Page team.tsx créée (redirige vers /team.html)"
|
||||||
|
|||||||
Reference in New Issue
Block a user