pc / index.html
RachFAR's picture
Les boutons ne fonctionnent pas - Initial Deployment
a85ac8e verified
Raw
History Blame Contribute Delete
41.8 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PermitFlow - Assistant Permis de Construire</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gradient-bg {
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}
.document-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.tab-active {
border-bottom: 3px solid #3b82f6;
color: #3b82f6 !important;
font-weight: 600;
}
.tab-button {
transition: all 0.2s ease;
}
.tab-button:hover {
color: #3b82f6;
}
.compliance-badge {
transition: all 0.3s ease;
}
.compliance-badge:hover {
transform: scale(1.05);
}
.slide-in {
animation: slideIn 0.5s forwards;
}
@keyframes slideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
</style>
</head>
<body class="font-sans bg-gray-50">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-home text-2xl"></i>
<h1 class="text-2xl font-bold">PermitFlow</h1>
</div>
<div class="flex items-center space-x-4">
<button class="p-2 rounded-full bg-white bg-opacity-20 hover:bg-opacity-30 transition">
<i class="fas fa-bell"></i>
</button>
<button class="p-2 rounded-full bg-white bg-opacity-20 hover:bg-opacity-30 transition">
<i class="fas fa-user"></i>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-6">
<!-- Project Selection -->
<div class="mb-8">
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-semibold text-gray-800">Mes Projets</h2>
<button id="newProjectBtn" class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2 transition">
<i class="fas fa-plus"></i>
<span>Nouveau Projet</span>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<!-- Project Card 1 -->
<div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-blue-500 hover:shadow-lg transition cursor-pointer">
<div class="flex justify-between items-start">
<div>
<h3 class="font-semibold text-lg">Maison Dubois</h3>
<p class="text-gray-500 text-sm">12 Rue des Lilas, 75016 Paris</p>
</div>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Complet</span>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="flex space-x-2">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">PC</span>
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded-full">En cours</span>
</div>
<span class="text-gray-400 text-sm">15/06/2023</span>
</div>
</div>
<!-- Project Card 2 -->
<div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-yellow-500 hover:shadow-lg transition cursor-pointer">
<div class="flex justify-between items-start">
<div>
<h3 class="font-semibold text-lg">Extension Martin</h3>
<p class="text-gray-500 text-sm">45 Avenue Victor Hugo, 92100 Boulogne</p>
</div>
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Incomplet</span>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="flex space-x-2">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">PC</span>
<span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full">Erreurs</span>
</div>
<span class="text-gray-400 text-sm">02/06/2023</span>
</div>
</div>
<!-- Project Card 3 -->
<div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-green-500 hover:shadow-lg transition cursor-pointer">
<div class="flex justify-between items-start">
<div>
<h3 class="font-semibold text-lg">Villa des Pins</h3>
<p class="text-gray-500 text-sm">Chemin des Pins, 06160 Antibes</p>
</div>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Validé</span>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="flex space-x-2">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">PC</span>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Accepté</span>
</div>
<span class="text-gray-400 text-sm">20/05/2023</span>
</div>
</div>
</div>
</div>
<!-- New Project Modal (hidden by default) -->
<div id="newProjectModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-xl p-6 w-full max-w-md slide-in">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-semibold">Nouveau Projet</h3>
<button id="closeModalBtn" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<form>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="projectName">Nom du Projet</label>
<input type="text" id="projectName" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Type de Projet</label>
<div class="grid grid-cols-2 gap-2">
<button type="button" class="border border-blue-500 text-blue-500 px-3 py-2 rounded-lg hover:bg-blue-50 transition">Permis de Construire</button>
<button type="button" class="border border-gray-300 text-gray-700 px-3 py-2 rounded-lg hover:bg-gray-50 transition">Déclaration Préalable</button>
</div>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="projectAddress">Adresse</label>
<div class="flex space-x-2">
<input type="text" id="projectAddress" class="flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="12 Rue des Lilas, Paris">
<button type="button" class="bg-blue-500 text-white px-3 py-2 rounded-lg hover:bg-blue-600 transition">
<i class="fas fa-map-marker-alt"></i>
</button>
</div>
</div>
<div class="flex justify-end space-x-3 mt-6">
<button type="button" id="cancelProjectBtn" class="px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition">Annuler</button>
<button type="submit" class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600 transition">Créer</button>
</div>
</form>
</div>
</div>
<!-- Project Details (shown when a project is selected) -->
<div id="projectDetails" class="hidden">
<div class="flex justify-between items-center mb-6">
<div>
<h2 class="text-2xl font-semibold text-gray-800">Maison Dubois</h2>
<p class="text-gray-500">12 Rue des Lilas, 75016 Paris</p>
</div>
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2 transition">
<i class="fas fa-file-pdf"></i>
<span>Générer PDF</span>
</button>
</div>
<!-- Tabs -->
<div class="border-b border-gray-200 mb-6">
<nav class="flex space-x-8">
<button class="tab-button py-4 px-1 text-gray-500 hover:text-blue-500 transition" data-tab="summary">Résumé</button>
<button class="tab-button py-4 px-1 text-gray-500 hover:text-blue-500 transition" data-tab="documents">Documents</button>
<button class="tab-button py-4 px-1 text-gray-500 hover:text-blue-500 transition" data-tab="analysis">Analyse</button>
<button class="tab-button py-4 px-1 text-gray-500 hover:text-blue-500 transition" data-tab="report">Rapport</button>
</nav>
</div>
<!-- Tab Content -->
<div id="tabContent">
<!-- Summary Tab -->
<div id="summaryTab" class="tab-content">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center space-x-3 mb-4">
<div class="bg-blue-100 p-3 rounded-full">
<i class="fas fa-map-marked-alt text-blue-500"></i>
</div>
<h3 class="font-semibold">Localisation</h3>
</div>
<p class="text-gray-600 mb-2">Zone urbaine (U)</p>
<p class="text-gray-600 mb-2">Secteur protégé</p>
<p class="text-gray-600">Pas de servitude</p>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center space-x-3 mb-4">
<div class="bg-green-100 p-3 rounded-full">
<i class="fas fa-check-circle text-green-500"></i>
</div>
<h3 class="font-semibold">Conformité</h3>
</div>
<p class="text-gray-600 mb-2">8 critères validés</p>
<p class="text-gray-600 mb-2">2 avertissements</p>
<p class="text-gray-600">0 erreurs bloquantes</p>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center space-x-3 mb-4">
<div class="bg-purple-100 p-3 rounded-full">
<i class="fas fa-tasks text-purple-500"></i>
</div>
<h3 class="font-semibold">Progression</h3>
</div>
<div class="mb-3">
<div class="flex justify-between text-sm mb-1">
<span>Documents</span>
<span>80%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-blue-500 h-2 rounded-full" style="width: 80%"></div>
</div>
</div>
<div class="mb-3">
<div class="flex justify-between text-sm mb-1">
<span>Analyse</span>
<span>100%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 100%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Validation</span>
<span>60%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-yellow-500 h-2 rounded-full" style="width: 60%"></div>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
<h3 class="font-semibold text-lg mb-4">Actions Recommandées</h3>
<div class="space-y-3">
<div class="flex items-start space-x-3 p-3 bg-blue-50 rounded-lg">
<i class="fas fa-info-circle text-blue-500 mt-1"></i>
<div>
<p class="font-medium">Vérifier la hauteur maximale</p>
<p class="text-sm text-gray-600">Votre projet dépasse de 20cm la hauteur maximale autorisée dans ce secteur.</p>
</div>
</div>
<div class="flex items-start space-x-3 p-3 bg-yellow-50 rounded-lg">
<i class="fas fa-exclamation-triangle text-yellow-500 mt-1"></i>
<div>
<p class="font-medium">Ajouter un plan de coupe</p>
<p class="text-sm text-gray-600">Le plan de coupe A-A est manquant dans votre dossier.</p>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="font-semibold text-lg mb-4">Calendrier</h3>
<div class="space-y-4">
<div class="flex items-start space-x-3">
<div class="bg-blue-100 p-2 rounded-full">
<i class="fas fa-calendar-day text-blue-500 text-sm"></i>
</div>
<div>
<p class="font-medium">Date limite de dépôt</p>
<p class="text-sm text-gray-600">15 juillet 2023</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="bg-purple-100 p-2 rounded-full">
<i class="fas fa-clock text-purple-500 text-sm"></i>
</div>
<div>
<p class="font-medium">Délai d'instruction</p>
<p class="text-sm text-gray-600">2 mois après dépôt complet</p>
</div>
</div>
</div>
</div>
</div>
<!-- Documents Tab -->
<div id="documentsTab" class="tab-content hidden">
<div class="mb-6">
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2 transition">
<i class="fas fa-plus"></i>
<span>Ajouter un Document</span>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<!-- Document Card 1 -->
<div class="document-card bg-white rounded-xl shadow-md p-6 border-l-4 border-blue-500 transition cursor-pointer">
<div class="flex items-start space-x-3 mb-4">
<div class="bg-blue-100 p-3 rounded-full">
<i class="fas fa-file-pdf text-blue-500"></i>
</div>
<div>
<h3 class="font-semibold">Plan de masse</h3>
<p class="text-sm text-gray-500">1.2 MB - 12/06/2023</p>
</div>
</div>
<div class="flex justify-between items-center">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Validé</span>
<div class="flex space-x-2">
<button class="text-gray-400 hover:text-blue-500 transition">
<i class="fas fa-eye"></i>
</button>
<button class="text-gray-400 hover:text-red-500 transition">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
</div>
<!-- Document Card 2 -->
<div class="document-card bg-white rounded-xl shadow-md p-6 border-l-4 border-yellow-500 transition cursor-pointer">
<div class="flex items-start space-x-3 mb-4">
<div class="bg-yellow-100 p-3 rounded-full">
<i class="fas fa-file-image text-yellow-500"></i>
</div>
<div>
<h3 class="font-semibold">Photos du terrain</h3>
<p class="text-sm text-gray-500">3.5 MB - 10/06/2023</p>
</div>
</div>
<div class="flex justify-between items-center">
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">En attente</span>
<div class="flex space-x-2">
<button class="text-gray-400 hover:text-blue-500 transition">
<i class="fas fa-eye"></i>
</button>
<button class="text-gray-400 hover:text-red-500 transition">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
</div>
<!-- Document Card 3 -->
<div class="document-card bg-white rounded-xl shadow-md p-6 border-l-4 border-red-500 transition cursor-pointer">
<div class="flex items-start space-x-3 mb-4">
<div class="bg-red-100 p-3 rounded-full">
<i class="fas fa-file-alt text-red-500"></i>
</div>
<div>
<h3 class="font-semibold">Notice descriptive</h3>
<p class="text-sm text-gray-500">0.8 MB - 08/06/2023</p>
</div>
</div>
<div class="flex justify-between items-center">
<span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full">Erreur</span>
<div class="flex space-x-2">
<button class="text-gray-400 hover:text-blue-500 transition">
<i class="fas fa-eye"></i>
</button>
<button class="text-gray-400 hover:text-red-500 transition">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
</div>
<!-- Document Card 4 -->
<div class="document-card bg-white rounded-xl shadow-md p-6 border-l-4 border-green-500 transition cursor-pointer">
<div class="flex items-start space-x-3 mb-4">
<div class="bg-green-100 p-3 rounded-full">
<i class="fas fa-file-pdf text-green-500"></i>
</div>
<div>
<h3 class="font-semibold">Extrait PLU</h3>
<p class="text-sm text-gray-500">2.1 MB - 05/06/2023</p>
</div>
</div>
<div class="flex justify-between items-center">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Validé</span>
<div class="flex space-x-2">
<button class="text-gray-400 hover:text-blue-500 transition">
<i class="fas fa-eye"></i>
</button>
<button class="text-gray-400 hover:text-red-500 transition">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Analysis Tab -->
<div id="analysisTab" class="tab-content hidden">
<div class="bg-white rounded-xl shadow-md p-6 mb-6">
<h3 class="font-semibold text-lg mb-4">Analyse de Conformité</h3>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<!-- Compliance Item 1 -->
<div class="compliance-badge bg-green-50 p-4 rounded-lg border border-green-200 cursor-pointer hover:shadow-md">
<div class="flex items-center space-x-3 mb-2">
<div class="bg-green-100 p-2 rounded-full">
<i class="fas fa-check text-green-600"></i>
</div>
<h4 class="font-medium">Zonage</h4>
</div>
<p class="text-sm text-gray-600">Le projet est bien situé en zone urbaine (U).</p>
</div>
<!-- Compliance Item 2 -->
<div class="compliance-badge bg-green-50 p-4 rounded-lg border border-green-200 cursor-pointer hover:shadow-md">
<div class="flex items-center space-x-3 mb-2">
<div class="bg-green-100 p-2 rounded-full">
<i class="fas fa-check text-green-600"></i>
</div>
<h4 class="font-medium">Implantation</h4>
</div>
<p class="text-sm text-gray-600">Respect des distances par rapport aux limites.</p>
</div>
<!-- Compliance Item 3 -->
<div class="compliance-badge bg-yellow-50 p-4 rounded-lg border border-yellow-200 cursor-pointer hover:shadow-md">
<div class="flex items-center space-x-3 mb-2">
<div class="bg-yellow-100 p-2 rounded-full">
<i class="fas fa-exclamation text-yellow-600"></i>
</div>
<h4 class="font-medium">Hauteur</h4>
</div>
<p class="text-sm text-gray-600">Dépassement de 20cm par rapport à la hauteur maximale autorisée.</p>
</div>
<!-- Compliance Item 4 -->
<div class="compliance-badge bg-green-50 p-4 rounded-lg border border-green-200 cursor-pointer hover:shadow-md">
<div class="flex items-center space-x-3 mb-2">
<div class="bg-green-100 p-2 rounded-full">
<i class="fas fa-check text-green-600"></i>
</div>
<h4 class="font-medium">Emprise au sol</h4>
</div>
<p class="text-sm text-gray-600">Respect de la surface maximale autorisée.</p>
</div>
<!-- Compliance Item 5 -->
<div class="compliance-badge bg-green-50 p-4 rounded-lg border border-green-200 cursor-pointer hover:shadow-md">
<div class="flex items-center space-x-3 mb-2">
<div class="bg-green-100 p-2 rounded-full">
<i class="fas fa-check text-green-600"></i>
</div>
<h4 class="font-medium">Aspect extérieur</h4>
</div>
<p class="text-sm text-gray-600">Conforme aux prescriptions architecturales.</p>
</div>
<!-- Compliance Item 6 -->
<div class="compliance-badge bg-yellow-50 p-4 rounded-lg border border-yellow-200 cursor-pointer hover:shadow-md">
<div class="flex items-center space-x-3 mb-2">
<div class="bg-yellow-100 p-2 rounded-full">
<i class="fas fa-exclamation text-yellow-600"></i>
</div>
<h4 class="font-medium">Assainissement</h4>
</div>
<p class="text-sm text-gray-600">Justificatif de raccordement manquant.</p>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="font-semibold text-lg mb-4">Analyse Automatique du PLU</h3>
<div class="space-y-4">
<div class="p-4 bg-blue-50 rounded-lg">
<h4 class="font-medium text-blue-800 mb-2">Article 12 - Hauteur maximale</h4>
<p class="text-sm text-gray-700">La hauteur maximale autorisée est de 8 mètres. Votre projet prévoit 8,20 mètres.</p>
<div class="mt-2 flex items-center text-sm text-blue-600">
<i class="fas fa-info-circle mr-2"></i>
<span>Considérer une réduction de 20cm ou demander une dérogation.</span>
</div>
</div>
<div class="p-4 bg-green-50 rounded-lg">
<h4 class="font-medium text-green-800 mb-2">Article 7 - Implantation</h4>
<p class="text-sm text-gray-700">Distance minimale de 3 mètres par rapport aux limites séparatives. Votre projet respecte cette règle (3,5 m).</p>
</div>
<div class="p-4 bg-purple-50 rounded-lg">
<h4 class="font-medium text-purple-800 mb-2">Article 15 - Couleurs</h4>
<p class="text-sm text-gray-700">Les teintes doivent être neutres (blanc, beige, gris) dans ce secteur. Vos choix sont conformes.</p>
</div>
</div>
</div>
</div>
<!-- Report Tab -->
<div id="reportTab" class="tab-content hidden">
<div class="bg-white rounded-xl shadow-md p-6 mb-6">
<div class="flex justify-between items-center mb-4">
<h3 class="font-semibold text-lg">Rapport de Conformité</h3>
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2 transition">
<i class="fas fa-file-export"></i>
<span>Exporter</span>
</button>
</div>
<div class="border border-gray-200 rounded-lg p-4 mb-4">
<div class="flex items-center space-x-3 mb-3">
<i class="fas fa-home text-blue-500"></i>
<h4 class="font-medium">Projet : Maison Dubois</h4>
</div>
<div class="flex items-center space-x-3 mb-3">
<i class="fas fa-map-marker-alt text-blue-500"></i>
<h4 class="font-medium">Adresse : 12 Rue des Lilas, 75016 Paris</h4>
</div>
<div class="flex items-center space-x-3">
<i class="fas fa-calendar-alt text-blue-500"></i>
<h4 class="font-medium">Date du rapport : 15 juin 2023</h4>
</div>
</div>
<div class="space-y-6">
<div>
<h4 class="font-medium text-lg mb-2 border-b pb-2">Résumé de Conformité</h4>
<div class="grid grid-cols-3 gap-4 text-center mb-4">
<div class="bg-green-50 p-3 rounded-lg">
<p class="text-2xl font-bold text-green-600">8</p>
<p class="text-sm text-gray-600">Critères validés</p>
</div>
<div class="bg-yellow-50 p-3 rounded-lg">
<p class="text-2xl font-bold text-yellow-600">2</p>
<p class="text-sm text-gray-600">Avertissements</p>
</div>
<div class="bg-red-50 p-3 rounded-lg">
<p class="text-2xl font-bold text-red-600">0</p>
<p class="text-sm text-gray-600">Erreurs bloquantes</p>
</div>
</div>
</div>
<div>
<h4 class="font-medium text-lg mb-2 border-b pb-2">Points d'Attention</h4>
<ul class="list-disc pl-5 space-y-2">
<li class="text-red-600"><span class="text-gray-700">Hauteur maximale dépassée de 20cm (8,20m au lieu de 8m autorisés)</span></li>
<li class="text-yellow-600"><span class="text-gray-700">Justificatif d'assainissement manquant</span></li>
</ul>
</div>
<div>
<h4 class="font-medium text-lg mb-2 border-b pb-2">Documents Manquants</h4>
<ul class="list-disc pl-5 space-y-2">
<li>Plan de coupe A-A</li>
<li>Attestation de raccordement à l'assainissement</li>
</ul>
</div>
<div>
<h4 class="font-medium text-lg mb-2 border-b pb-2">Recommandations</h4>
<ul class="list-disc pl-5 space-y-2">
<li>Réduire la hauteur du projet de 20cm ou préparer une demande de dérogation</li>
<li>Contacter le service d'assainissement pour obtenir l'attestation</li>
<li>Vérifier les distances par rapport aux arbres protégés</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Bottom Navigation (Mobile) -->
<div class="md:hidden fixed bottom-0 left-0 right-0 bg-white shadow-lg border-t border-gray-200">
<div class="flex justify-around">
<a href="#" class="flex flex-col items-center p-3 text-blue-500">
<i class="fas fa-home text-xl"></i>
<span class="text-xs mt-1">Accueil</span>
</a>
<a href="#" class="flex flex-col items-center p-3 text-gray-500">
<i class="fas fa-folder text-xl"></i>
<span class="text-xs mt-1">Projets</span>
</a>
<a href="#" class="flex flex-col items-center p-3 text-gray-500">
<i class="fas fa-search text-xl"></i>
<span class="text-xs mt-1">Analyse</span>
</a>
<a href="#" class="flex flex-col items-center p-3 text-gray-500">
<i class="fas fa-cog text-xl"></i>
<span class="text-xs mt-1">Paramètres</span>
</a>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
// New Project Modal
const newProjectBtn = document.getElementById('newProjectBtn');
const newProjectModal = document.getElementById('newProjectModal');
const closeModalBtn = document.getElementById('closeModalBtn');
const cancelProjectBtn = document.getElementById('cancelProjectBtn');
if (newProjectBtn && newProjectModal) {
newProjectBtn.addEventListener('click', (e) => {
e.preventDefault();
newProjectModal.classList.remove('hidden');
});
}
if (closeModalBtn) {
closeModalBtn.addEventListener('click', (e) => {
e.preventDefault();
newProjectModal.classList.add('hidden');
});
}
if (cancelProjectBtn) {
cancelProjectBtn.addEventListener('click', (e) => {
e.preventDefault();
newProjectModal.classList.add('hidden');
});
}
// Tab Switching
const tabButtons = document.querySelectorAll('.tab-button');
const tabContents = document.querySelectorAll('.tab-content');
tabButtons.forEach(button => {
button.addEventListener('click', (e) => {
e.preventDefault();
// Remove active class from all buttons
tabButtons.forEach(btn => {
btn.classList.remove('tab-active');
btn.classList.remove('text-blue-500');
btn.classList.add('text-gray-500');
});
// Add active class to clicked button
button.classList.add('tab-active');
button.classList.add('text-blue-500');
button.classList.remove('text-gray-500');
// Hide all tab contents
tabContents.forEach(content => {
content.classList.add('hidden');
});
// Show selected tab content
const tabId = button.getAttribute('data-tab') + 'Tab';
const tabContent = document.getElementById(tabId);
if (tabContent) {
tabContent.classList.remove('hidden');
}
});
});
// Show project details when a project card is clicked
const projectCards = document.querySelectorAll('.document-card, .bg-white.rounded-xl.shadow-md.p-6');
const projectDetails = document.getElementById('projectDetails');
projectCards.forEach(card => {
card.addEventListener('click', (e) => {
e.preventDefault();
if (projectDetails) {
projectDetails.classList.remove('hidden');
// Scroll to project details
projectDetails.scrollIntoView({ behavior: 'smooth' });
// Activate first tab
const firstTab = document.querySelector('.tab-button');
if (firstTab) firstTab.click();
}
});
});
// Initialize first tab as active
if (tabButtons.length > 0) {
tabButtons[0].classList.add('tab-active');
tabButtons[0].classList.add('text-blue-500');
tabButtons[0].classList.remove('text-gray-500');
const firstTabId = tabButtons[0].getAttribute('data-tab') + 'Tab';
const firstTabContent = document.getElementById(firstTabId);
if (firstTabContent) firstTabContent.classList.remove('hidden');
}
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=RachFAR/pc" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>