diff --git a/Dockerfile.business b/Dockerfile.business
index d8c7c77..e3eb9e0 100644
--- a/Dockerfile.business
+++ b/Dockerfile.business
@@ -74,21 +74,89 @@ RUN mkdir -p .techradar/data && \
echo "đ VĂ©rification que team.html existe dans public/ source:" && \
test -f public/team.html && echo "â
public/team.html existe" || echo "â public/team.html n'existe pas"
-# Créer la page Next.js /team et modifier Navigation
-RUN chmod +x scripts/create-team-page.sh && \
- echo "đ ExĂ©cution de create-team-page.sh..." && \
- echo "đ VĂ©rification que Navigation.tsx existe:" && \
- test -f .techradar/src/components/Navigation/Navigation.tsx && echo "â
Navigation.tsx existe" || (echo "â Navigation.tsx n'existe pas" && ls -la .techradar/src/components/Navigation/ 2>/dev/null && exit 1) && \
- echo "đ Ătat de Navigation.tsx AVANT modification:" && \
- grep -A 3 'href="/overview"' .techradar/src/components/Navigation/Navigation.tsx || echo "Pattern overview non trouvé" && \
- echo "" && \
- ./scripts/create-team-page.sh || (echo "â Script create-team-page.sh a Ă©chouĂ©" && cat .techradar/src/components/Navigation/Navigation.tsx && exit 1) && \
- echo "â
Script create-team-page.sh terminé" && \
- echo "" && \
- echo "đ VĂ©rification de Navigation.tsx:" && \
- grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx && echo "â
Lien Ăquipe trouvĂ©" || (echo "â Lien Ăquipe NON trouvĂ©" && cat .techradar/src/components/Navigation/Navigation.tsx && exit 1) && \
- echo "đ VĂ©rification de team.tsx:" && \
- test -f .techradar/src/pages/team.tsx && echo "â
team.tsx existe" || (echo "â team.tsx n'existe pas" && ls -la .techradar/src/pages/ 2>/dev/null && exit 1)
+# Créer la page Next.js /team
+RUN mkdir -p .techradar/src/pages && \
+ cat > .techradar/src/pages/team.tsx << 'EOF' && \
+import Head from "next/head";
+import { CustomPage } from "@/pages/_app";
+
+const TeamPage: CustomPage = () => {
+ return (
+ <>
+
+ Ăquipe & Technologies - Laplank
+
+
+
+
+ >
+ );
+};
+
+export default TeamPage;
+EOF
+ echo "â
Page team.tsx créée"
+
+# Modifier Navigation.tsx pour ajouter le lien Ăquipe
+RUN if ! grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx; then \
+ echo "â Ajout du lien Ăquipe dans Navigation.tsx..." && \
+ python3 << 'PYTHON_EOF'
+import re
+
+nav_file = ".techradar/src/components/Navigation/Navigation.tsx"
+with open(nav_file, 'r') as f:
+ content = f.read()
+
+# Trouver la fin du lien Overview et insérer le nouveau lien avant le commentaire
+pattern = r'(\s*\s*)(\{/\*)'
+replacement = r'\1 \n \n đ„ Ăquipe\n \n \n \2'
+
+new_content = re.sub(pattern, replacement, content)
+
+if new_content != content:
+ with open(nav_file, 'w') as f:
+ f.write(new_content)
+ print("â
Navigation.tsx modifié avec succÚs")
+else:
+ print("â ïž Pattern non trouvĂ©, tentative alternative...")
+ # Alternative: insérer aprÚs la ligne avec de overview
+ lines = content.split('\n')
+ for i, line in enumerate(lines):
+ if 'href="/overview"' in line:
+ # Trouver la ligne qui suit
+ for j in range(i, min(i+10, len(lines))):
+ if '' in lines[j] and j+1 < len(lines) and '' in lines[j+1]:
+ # Insérer aprÚs
+ new_lines = lines[:j+2] + [
+ ' ',
+ ' ',
+ ' đ„ Ăquipe',
+ ' ',
+ ' '
+ ] + lines[j+2:]
+ with open(nav_file, 'w') as f:
+ f.write('\n'.join(new_lines))
+ print("â
Navigation.tsx modifié avec succÚs (méthode alternative)")
+ break
+ break
+ else:
+ print("â Impossible de modifier Navigation.tsx")
+ exit(1)
+PYTHON_EOF
+ grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx && echo "â
Lien Ăquipe ajoutĂ©" || (echo "â Lien Ăquipe non trouvĂ© aprĂšs modification" && cat .techradar/src/components/Navigation/Navigation.tsx && exit 1); \
+ else \
+ echo "âčïž Lien Ăquipe dĂ©jĂ prĂ©sent dans Navigation.tsx"; \
+ fi
# Builder l'application en mode production pour éviter Fast Refresh
# Utiliser WORKDIR pour changer de répertoire de maniÚre fiable