Commit ·
db6e179
1
Parent(s): 7f39680
Add smooth scroll animations to all cards and elements
Browse files- index.html +22 -22
- static/css/style.css +54 -1
- static/js/script.js +31 -1
index.html
CHANGED
|
@@ -32,19 +32,19 @@
|
|
| 32 |
</div>
|
| 33 |
|
| 34 |
<div class="metrics">
|
| 35 |
-
<div class="metric-card">
|
| 36 |
<div class="metric-value">4</div>
|
| 37 |
<div class="metric-label">Projets</div>
|
| 38 |
</div>
|
| 39 |
-
<div class="metric-card">
|
| 40 |
<div class="metric-value">3</div>
|
| 41 |
<div class="metric-label">Apps en direct</div>
|
| 42 |
</div>
|
| 43 |
-
<div class="metric-card">
|
| 44 |
<div class="metric-value">534K+</div>
|
| 45 |
<div class="metric-label">Données</div>
|
| 46 |
</div>
|
| 47 |
-
<div class="metric-card">
|
| 48 |
<div class="metric-value">90%</div>
|
| 49 |
<div class="metric-label">Précision</div>
|
| 50 |
</div>
|
|
@@ -53,7 +53,7 @@
|
|
| 53 |
<h2 class="section-title">🚀 Projets Récents</h2>
|
| 54 |
|
| 55 |
<div class="home-projects">
|
| 56 |
-
<div class="home-project-card">
|
| 57 |
<h3>⚡ Prédiction de puissance à Dakar <span class="badge">Déployé</span></h3>
|
| 58 |
<p>Prédiction des coupures d'électricité à Dakar</p>
|
| 59 |
<div class="tech-pills">
|
|
@@ -62,7 +62,7 @@
|
|
| 62 |
<span class="tech-pill">TensorFlow</span>
|
| 63 |
</div>
|
| 64 |
</div>
|
| 65 |
-
<div class="home-project-card">
|
| 66 |
<h3>🎬 TidianeFlix <span class="badge">Déployé</span></h3>
|
| 67 |
<p>Système de billetterie cinéma avec Analytics & ML</p>
|
| 68 |
<div class="tech-pills">
|
|
@@ -82,24 +82,24 @@
|
|
| 82 |
<section class="page" id="about">
|
| 83 |
<h1 class="page-title">👤 À Propos</h1>
|
| 84 |
<div class="about-content">
|
| 85 |
-
<div class="about-card">
|
| 86 |
<h2>🎓 Formation</h2>
|
| 87 |
<p><strong>Data Science & Machine Learning</strong></p>
|
| 88 |
<p>Spécialisation en analyse de données, modélisation prédictive et deep learning</p>
|
| 89 |
</div>
|
| 90 |
|
| 91 |
-
<div class="about-card">
|
| 92 |
<h2>💼 Expérience</h2>
|
| 93 |
<p><strong>Data Scientist Junior</strong></p>
|
| 94 |
<p>Développement d'applications ML, analyse de données, visualisation interactive</p>
|
| 95 |
</div>
|
| 96 |
|
| 97 |
-
<div class="about-card">
|
| 98 |
<h2>🎯 Objectifs</h2>
|
| 99 |
<p>Transformer les données en insights actionnables pour résoudre des problèmes réels en Afrique</p>
|
| 100 |
</div>
|
| 101 |
|
| 102 |
-
<div class="about-card">
|
| 103 |
<h2>📄 CV</h2>
|
| 104 |
<p><a href="/static/documents/CV_Cheikh_Niang.pdf" download class="cv-link">📥 Télécharger mon CV</a></p>
|
| 105 |
</div>
|
|
@@ -111,7 +111,7 @@
|
|
| 111 |
<h1 class="page-title">💼 Mes Projets Data Science</h1>
|
| 112 |
|
| 113 |
<!-- Project 1 -->
|
| 114 |
-
<div class="project-card">
|
| 115 |
<h2 class="project-title">⚡ Prédiction de puissance à Dakar <span class="badge">Déployé</span></h2>
|
| 116 |
<p class="project-desc">Application web de prédiction des risques de coupures d'électricité dans 8 quartiers de Dakar. Utilise deux modèles de Machine Learning : LightGBM (gradient boosting, ~88% précision) et LSTM (deep learning, ~90% précision) entraînés sur 70,001 enregistrements de données synthétiques.</p>
|
| 117 |
|
|
@@ -145,7 +145,7 @@
|
|
| 145 |
<hr class="divider">
|
| 146 |
|
| 147 |
<!-- Project 2 -->
|
| 148 |
-
<div class="project-card">
|
| 149 |
<h2 class="project-title">🎬 TidianeFlix <span class="badge">Déployé</span></h2>
|
| 150 |
<p class="project-desc">Application full-stack de gestion de billetterie pour cinéma avec base de données SQLite. Combine analytics business et machine learning : KPIs financiers en temps réel, segmentation automatique des clients, prédiction des ventes futures.</p>
|
| 151 |
|
|
@@ -179,7 +179,7 @@
|
|
| 179 |
<hr class="divider">
|
| 180 |
|
| 181 |
<!-- Project 3 -->
|
| 182 |
-
<div class="project-card">
|
| 183 |
<h2 class="project-title">📊 SentimentScope <span class="badge">Déployé</span></h2>
|
| 184 |
<p class="project-desc">Application web d'analyse de sentiments utilisant le Natural Language Processing (TextBlob + NLTK) pour classifier automatiquement des textes selon leur tonalité émotionnelle. Propose 3 modes d'analyse.</p>
|
| 185 |
|
|
@@ -213,7 +213,7 @@
|
|
| 213 |
<hr class="divider">
|
| 214 |
|
| 215 |
<!-- Project 4 -->
|
| 216 |
-
<div class="project-card">
|
| 217 |
<h2 class="project-title">🌍 Analyse du climat africain <span class="badge complet">Complet</span></h2>
|
| 218 |
<p class="project-desc">Analyse approfondie du changement climatique en Afrique sur 43 ans (1980-2023) basée sur 464,815 observations météorologiques quotidiennes couvrant 5 pays. Révèle une augmentation moyenne de +1.51°F des températures.</p>
|
| 219 |
|
|
@@ -251,7 +251,7 @@
|
|
| 251 |
<h1 class="page-title">🎯 Compétences</h1>
|
| 252 |
|
| 253 |
<div class="skills-grid">
|
| 254 |
-
<div class="skill-card">
|
| 255 |
<h2>💻 Langages</h2>
|
| 256 |
<div class="tech-pills">
|
| 257 |
<span class="tech-pill">Python</span>
|
|
@@ -261,7 +261,7 @@
|
|
| 261 |
</div>
|
| 262 |
</div>
|
| 263 |
|
| 264 |
-
<div class="skill-card">
|
| 265 |
<h2>🤖 Machine Learning</h2>
|
| 266 |
<div class="tech-pills">
|
| 267 |
<span class="tech-pill">Scikit-learn</span>
|
|
@@ -272,7 +272,7 @@
|
|
| 272 |
</div>
|
| 273 |
</div>
|
| 274 |
|
| 275 |
-
<div class="skill-card">
|
| 276 |
<h2>📊 Visualisation</h2>
|
| 277 |
<div class="tech-pills">
|
| 278 |
<span class="tech-pill">Plotly</span>
|
|
@@ -281,7 +281,7 @@
|
|
| 281 |
</div>
|
| 282 |
</div>
|
| 283 |
|
| 284 |
-
<div class="skill-card">
|
| 285 |
<h2>🛠️ Outils</h2>
|
| 286 |
<div class="tech-pills">
|
| 287 |
<span class="tech-pill">Streamlit</span>
|
|
@@ -299,22 +299,22 @@
|
|
| 299 |
<h1 class="page-title">📧 Contact</h1>
|
| 300 |
|
| 301 |
<div class="contact-content">
|
| 302 |
-
<div class="contact-card">
|
| 303 |
<h2>📧 Email</h2>
|
| 304 |
<a href="mailto:cheikhniang159@gmail.com">cheikhniang159@gmail.com</a>
|
| 305 |
</div>
|
| 306 |
|
| 307 |
-
<div class="contact-card">
|
| 308 |
<h2>📱 Téléphone</h2>
|
| 309 |
<a href="tel:+221776362714">+221 77 636 27 14</a>
|
| 310 |
</div>
|
| 311 |
|
| 312 |
-
<div class="contact-card">
|
| 313 |
<h2>💼 LinkedIn</h2>
|
| 314 |
<a href="https://www.linkedin.com/in/cheikh-niang-8b9418271/" target="_blank">Profil LinkedIn</a>
|
| 315 |
</div>
|
| 316 |
|
| 317 |
-
<div class="contact-card">
|
| 318 |
<h2>💻 GitHub</h2>
|
| 319 |
<a href="https://github.com/chniang" target="_blank">@chniang</a>
|
| 320 |
</div>
|
|
|
|
| 32 |
</div>
|
| 33 |
|
| 34 |
<div class="metrics">
|
| 35 |
+
<div class="metric-card animate-zoom">
|
| 36 |
<div class="metric-value">4</div>
|
| 37 |
<div class="metric-label">Projets</div>
|
| 38 |
</div>
|
| 39 |
+
<div class="metric-card animate-zoom">
|
| 40 |
<div class="metric-value">3</div>
|
| 41 |
<div class="metric-label">Apps en direct</div>
|
| 42 |
</div>
|
| 43 |
+
<div class="metric-card animate-zoom">
|
| 44 |
<div class="metric-value">534K+</div>
|
| 45 |
<div class="metric-label">Données</div>
|
| 46 |
</div>
|
| 47 |
+
<div class="metric-card animate-zoom">
|
| 48 |
<div class="metric-value">90%</div>
|
| 49 |
<div class="metric-label">Précision</div>
|
| 50 |
</div>
|
|
|
|
| 53 |
<h2 class="section-title">🚀 Projets Récents</h2>
|
| 54 |
|
| 55 |
<div class="home-projects">
|
| 56 |
+
<div class="home-project-card animate-on-scroll">
|
| 57 |
<h3>⚡ Prédiction de puissance à Dakar <span class="badge">Déployé</span></h3>
|
| 58 |
<p>Prédiction des coupures d'électricité à Dakar</p>
|
| 59 |
<div class="tech-pills">
|
|
|
|
| 62 |
<span class="tech-pill">TensorFlow</span>
|
| 63 |
</div>
|
| 64 |
</div>
|
| 65 |
+
<div class="home-project-card animate-on-scroll">
|
| 66 |
<h3>🎬 TidianeFlix <span class="badge">Déployé</span></h3>
|
| 67 |
<p>Système de billetterie cinéma avec Analytics & ML</p>
|
| 68 |
<div class="tech-pills">
|
|
|
|
| 82 |
<section class="page" id="about">
|
| 83 |
<h1 class="page-title">👤 À Propos</h1>
|
| 84 |
<div class="about-content">
|
| 85 |
+
<div class="about-card animate-on-scroll">
|
| 86 |
<h2>🎓 Formation</h2>
|
| 87 |
<p><strong>Data Science & Machine Learning</strong></p>
|
| 88 |
<p>Spécialisation en analyse de données, modélisation prédictive et deep learning</p>
|
| 89 |
</div>
|
| 90 |
|
| 91 |
+
<div class="about-card animate-on-scroll">
|
| 92 |
<h2>💼 Expérience</h2>
|
| 93 |
<p><strong>Data Scientist Junior</strong></p>
|
| 94 |
<p>Développement d'applications ML, analyse de données, visualisation interactive</p>
|
| 95 |
</div>
|
| 96 |
|
| 97 |
+
<div class="about-card animate-on-scroll">
|
| 98 |
<h2>🎯 Objectifs</h2>
|
| 99 |
<p>Transformer les données en insights actionnables pour résoudre des problèmes réels en Afrique</p>
|
| 100 |
</div>
|
| 101 |
|
| 102 |
+
<div class="about-card animate-on-scroll">
|
| 103 |
<h2>📄 CV</h2>
|
| 104 |
<p><a href="/static/documents/CV_Cheikh_Niang.pdf" download class="cv-link">📥 Télécharger mon CV</a></p>
|
| 105 |
</div>
|
|
|
|
| 111 |
<h1 class="page-title">💼 Mes Projets Data Science</h1>
|
| 112 |
|
| 113 |
<!-- Project 1 -->
|
| 114 |
+
<div class="project-card animate-on-scroll">
|
| 115 |
<h2 class="project-title">⚡ Prédiction de puissance à Dakar <span class="badge">Déployé</span></h2>
|
| 116 |
<p class="project-desc">Application web de prédiction des risques de coupures d'électricité dans 8 quartiers de Dakar. Utilise deux modèles de Machine Learning : LightGBM (gradient boosting, ~88% précision) et LSTM (deep learning, ~90% précision) entraînés sur 70,001 enregistrements de données synthétiques.</p>
|
| 117 |
|
|
|
|
| 145 |
<hr class="divider">
|
| 146 |
|
| 147 |
<!-- Project 2 -->
|
| 148 |
+
<div class="project-card animate-on-scroll">
|
| 149 |
<h2 class="project-title">🎬 TidianeFlix <span class="badge">Déployé</span></h2>
|
| 150 |
<p class="project-desc">Application full-stack de gestion de billetterie pour cinéma avec base de données SQLite. Combine analytics business et machine learning : KPIs financiers en temps réel, segmentation automatique des clients, prédiction des ventes futures.</p>
|
| 151 |
|
|
|
|
| 179 |
<hr class="divider">
|
| 180 |
|
| 181 |
<!-- Project 3 -->
|
| 182 |
+
<div class="project-card animate-on-scroll">
|
| 183 |
<h2 class="project-title">📊 SentimentScope <span class="badge">Déployé</span></h2>
|
| 184 |
<p class="project-desc">Application web d'analyse de sentiments utilisant le Natural Language Processing (TextBlob + NLTK) pour classifier automatiquement des textes selon leur tonalité émotionnelle. Propose 3 modes d'analyse.</p>
|
| 185 |
|
|
|
|
| 213 |
<hr class="divider">
|
| 214 |
|
| 215 |
<!-- Project 4 -->
|
| 216 |
+
<div class="project-card animate-on-scroll">
|
| 217 |
<h2 class="project-title">🌍 Analyse du climat africain <span class="badge complet">Complet</span></h2>
|
| 218 |
<p class="project-desc">Analyse approfondie du changement climatique en Afrique sur 43 ans (1980-2023) basée sur 464,815 observations météorologiques quotidiennes couvrant 5 pays. Révèle une augmentation moyenne de +1.51°F des températures.</p>
|
| 219 |
|
|
|
|
| 251 |
<h1 class="page-title">🎯 Compétences</h1>
|
| 252 |
|
| 253 |
<div class="skills-grid">
|
| 254 |
+
<div class="skill-card animate-zoom">
|
| 255 |
<h2>💻 Langages</h2>
|
| 256 |
<div class="tech-pills">
|
| 257 |
<span class="tech-pill">Python</span>
|
|
|
|
| 261 |
</div>
|
| 262 |
</div>
|
| 263 |
|
| 264 |
+
<div class="skill-card animate-zoom">
|
| 265 |
<h2>🤖 Machine Learning</h2>
|
| 266 |
<div class="tech-pills">
|
| 267 |
<span class="tech-pill">Scikit-learn</span>
|
|
|
|
| 272 |
</div>
|
| 273 |
</div>
|
| 274 |
|
| 275 |
+
<div class="skill-card animate-zoom">
|
| 276 |
<h2>📊 Visualisation</h2>
|
| 277 |
<div class="tech-pills">
|
| 278 |
<span class="tech-pill">Plotly</span>
|
|
|
|
| 281 |
</div>
|
| 282 |
</div>
|
| 283 |
|
| 284 |
+
<div class="skill-card animate-zoom">
|
| 285 |
<h2>🛠️ Outils</h2>
|
| 286 |
<div class="tech-pills">
|
| 287 |
<span class="tech-pill">Streamlit</span>
|
|
|
|
| 299 |
<h1 class="page-title">📧 Contact</h1>
|
| 300 |
|
| 301 |
<div class="contact-content">
|
| 302 |
+
<div class="contact-card animate-on-scroll">
|
| 303 |
<h2>📧 Email</h2>
|
| 304 |
<a href="mailto:cheikhniang159@gmail.com">cheikhniang159@gmail.com</a>
|
| 305 |
</div>
|
| 306 |
|
| 307 |
+
<div class="contact-card animate-on-scroll">
|
| 308 |
<h2>📱 Téléphone</h2>
|
| 309 |
<a href="tel:+221776362714">+221 77 636 27 14</a>
|
| 310 |
</div>
|
| 311 |
|
| 312 |
+
<div class="contact-card animate-on-scroll">
|
| 313 |
<h2>💼 LinkedIn</h2>
|
| 314 |
<a href="https://www.linkedin.com/in/cheikh-niang-8b9418271/" target="_blank">Profil LinkedIn</a>
|
| 315 |
</div>
|
| 316 |
|
| 317 |
+
<div class="contact-card animate-on-scroll">
|
| 318 |
<h2>💻 GitHub</h2>
|
| 319 |
<a href="https://github.com/chniang" target="_blank">@chniang</a>
|
| 320 |
</div>
|
static/css/style.css
CHANGED
|
@@ -466,4 +466,57 @@ body {
|
|
| 466 |
.project-images {
|
| 467 |
grid-template-columns: 1fr;
|
| 468 |
}
|
| 469 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 466 |
.project-images {
|
| 467 |
grid-template-columns: 1fr;
|
| 468 |
}
|
| 469 |
+
}
|
| 470 |
+
/* ============ ANIMATIONS AU SCROLL ============ */
|
| 471 |
+
.animate-on-scroll {
|
| 472 |
+
opacity: 0;
|
| 473 |
+
transform: translateY(30px);
|
| 474 |
+
transition: opacity 0.6s ease, transform 0.6s ease;
|
| 475 |
+
}
|
| 476 |
+
|
| 477 |
+
.animate-on-scroll.animated {
|
| 478 |
+
opacity: 1;
|
| 479 |
+
transform: translateY(0);
|
| 480 |
+
}
|
| 481 |
+
|
| 482 |
+
/* Animation avec délai pour effet cascade */
|
| 483 |
+
.animate-delay-1 { transition-delay: 0.1s; }
|
| 484 |
+
.animate-delay-2 { transition-delay: 0.2s; }
|
| 485 |
+
.animate-delay-3 { transition-delay: 0.3s; }
|
| 486 |
+
.animate-delay-4 { transition-delay: 0.4s; }
|
| 487 |
+
|
| 488 |
+
/* Animation depuis la gauche */
|
| 489 |
+
.animate-from-left {
|
| 490 |
+
opacity: 0;
|
| 491 |
+
transform: translateX(-50px);
|
| 492 |
+
transition: opacity 0.6s ease, transform 0.6s ease;
|
| 493 |
+
}
|
| 494 |
+
|
| 495 |
+
.animate-from-left.animated {
|
| 496 |
+
opacity: 1;
|
| 497 |
+
transform: translateX(0);
|
| 498 |
+
}
|
| 499 |
+
|
| 500 |
+
/* Animation depuis la droite */
|
| 501 |
+
.animate-from-right {
|
| 502 |
+
opacity: 0;
|
| 503 |
+
transform: translateX(50px);
|
| 504 |
+
transition: opacity 0.6s ease, transform 0.6s ease;
|
| 505 |
+
}
|
| 506 |
+
|
| 507 |
+
.animate-from-right.animated {
|
| 508 |
+
opacity: 1;
|
| 509 |
+
transform: translateX(0);
|
| 510 |
+
}
|
| 511 |
+
|
| 512 |
+
/* Animation zoom */
|
| 513 |
+
.animate-zoom {
|
| 514 |
+
opacity: 0;
|
| 515 |
+
transform: scale(0.8);
|
| 516 |
+
transition: opacity 0.5s ease, transform 0.5s ease;
|
| 517 |
+
}
|
| 518 |
+
|
| 519 |
+
.animate-zoom.animated {
|
| 520 |
+
opacity: 1;
|
| 521 |
+
transform: scale(1);
|
| 522 |
+
}
|
static/js/script.js
CHANGED
|
@@ -20,6 +20,36 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
| 20 |
|
| 21 |
// Scroll vers le haut
|
| 22 |
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
});
|
| 24 |
});
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
// Scroll vers le haut
|
| 22 |
window.scrollTo({ top: 0, behavior: "smooth" });
|
| 23 |
+
|
| 24 |
+
// Réinitialiser les animations pour la nouvelle page
|
| 25 |
+
setTimeout(() => {
|
| 26 |
+
initScrollAnimations();
|
| 27 |
+
}, 100);
|
| 28 |
});
|
| 29 |
});
|
| 30 |
+
|
| 31 |
+
// Initialiser les animations au chargement
|
| 32 |
+
initScrollAnimations();
|
| 33 |
+
});
|
| 34 |
+
|
| 35 |
+
// Fonction pour détecter les éléments visibles et les animer
|
| 36 |
+
function initScrollAnimations() {
|
| 37 |
+
const animatedElements = document.querySelectorAll('.animate-on-scroll, .animate-from-left, .animate-from-right, .animate-zoom');
|
| 38 |
+
|
| 39 |
+
const observer = new IntersectionObserver((entries) => {
|
| 40 |
+
entries.forEach(entry => {
|
| 41 |
+
if (entry.isIntersecting) {
|
| 42 |
+
entry.target.classList.add('animated');
|
| 43 |
+
}
|
| 44 |
+
});
|
| 45 |
+
}, {
|
| 46 |
+
threshold: 0.1,
|
| 47 |
+
rootMargin: '0px 0px -50px 0px'
|
| 48 |
+
});
|
| 49 |
+
|
| 50 |
+
animatedElements.forEach(element => {
|
| 51 |
+
// Retirer la classe animated pour réinitialiser
|
| 52 |
+
element.classList.remove('animated');
|
| 53 |
+
observer.observe(element);
|
| 54 |
+
});
|
| 55 |
+
}
|