- Utilise meta http-equiv=refresh pour rediriger même sans JS - Ajoute script inline dans Head pour redirection JS immédiate - Fonctionne avec l'export statique Next.js
34 lines
785 B
TypeScript
34 lines
785 B
TypeScript
// @ts-nocheck
|
|
import Head from 'next/head';
|
|
|
|
export default function TeamPage() {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<meta httpEquiv="refresh" content="0;url=/team.html" />
|
|
<script dangerouslySetInnerHTML={{
|
|
__html: `window.location.replace('/team.html');`
|
|
}} />
|
|
</Head>
|
|
<div
|
|
style={{
|
|
width: '100vw',
|
|
height: '100vh',
|
|
background: '#1a4d3a',
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
position: 'fixed',
|
|
top: 0,
|
|
left: 0,
|
|
zIndex: 9999,
|
|
}}
|
|
>
|
|
<div style={{ color: 'white', fontSize: '18px' }}>
|
|
Redirection vers les visualisations équipe...
|
|
</div>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|