projectflow-navigator / components /project-steps.js
belos's picture
Adapte le site a ce visuel
7285cb4 verified
Raw History Blame Contribute Delete
5.45 kB
class CustomProjectSteps extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.step-card {
transition: all 0.3s ease;
background: white;
border-radius: 12px;
border: 1px solid #e2e8f0;
}
.step-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.step-number {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
margin-right: 16px;
}
</style>
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-6">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Phases de Gestion de Projet</h2>
<div class="flex flex-col md:flex-row md:items-stretch">
<!-- Step 1 -->
<div class="step-card flex-1 p-6 border-b md:border-b-0 md:border-r border-gray-100">
<div class="flex items-start">
<div class="flex flex-col items-center mr-4">
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center">
<span class="text-blue-600 font-bold">1</span>
</div>
<div class="step-connector"></div>
</div>
<div>
<h3 class="font-medium text-lg text-gray-800 mb-2">Fondation</h3>
<p class="text-gray-600 mb-4">Définissez le périmètre, les objectifs et structurez votre projet</p>
<ul class="text-sm text-gray-500 space-y-1">
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i>
Définition du périmètre
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i>
Structure de découpage
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i>
Attribution des rôles
</li>
</ul>
</div>
</div>
</div>
<!-- Step 2 -->
<div class="step-card flex-1 p-6 border-b md:border-b-0 md:border-r border-gray-100">
<div class="flex items-start">
<div class="flex flex-col items-center mr-4">
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center">
<span class="text-green-600 font-bold">2</span>
</div>
<div class="step-connector"></div>
</div>
<div>
<h3 class="font-medium text-lg text-gray-800 mb-2">Mécanique</h3>
<p class="text-gray-600 mb-4">Planifiez les délais et allouez vos ressources</p>
<ul class="text-sm text-gray-500 space-y-1">
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i>
Diagrammes de Gantt
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i>
Chemin critique
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i>
Allocation des ressources
</li>
</ul>
</div>
</div>
</div>
<!-- Step 3 -->
<div class="step-card flex-1 p-6">
<div class="flex items-start">
<div class="flex flex-col items-center mr-4">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center">
<span class="text-purple-600 font-bold">3</span>
</div>
</div>
<div>
<h3 class="font-medium text-lg text-gray-800 mb-2">Facteur Humain</h3>
<p class="text-gray-600 mb-4">Dirigez votre équipe et gérez les parties prenantes</p>
<ul class="text-sm text-gray-500 space-y-1">
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i>
Motivation d'équipe
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i>
Communication
</li>
<li class="flex items-center">
<i data-feather="check" class="w-4 h-4 mr-2 text-green-500"></i>
Résolution de conflits
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
`;
}
}
customElements.define('custom-project-steps', CustomProjectSteps);