✨ Feature: Epic 4 - Compétences & Me Découvrir (Stories 4.1-4.5)

- Page Compétences: Technologies groupées par catégorie avec compteur projets
- Page Compétences: Outils démontrables avec liens + autres outils avec tooltips
- Page Me Découvrir: Parcours (timeline 4 étapes) + Motivations
- Page Me Découvrir: Passions (musique, gaming, open source)
- Témoignages: JSON dynamique, template réutilisable, section sur about + home
- Fonctions: getToolIcon(), getTestimonials(), getFeaturedTestimonials()

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
skycelandClaude Opus 4.5 committed 2026-01-23 11:35:35 +01:00
1 parent 1711f8f723
commit 08402e3ed2
6 files changed
+636 -12

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
{
"testimonials": [
{
"id": 1,
"quote": "Excellent travail ! Le site a été livré dans les délais avec une qualité irréprochable. Communication fluide tout au long du projet.",
"author_name": "Marie Dupont",
"author_role": "Directrice Marketing",
"author_company": "Entreprise XYZ",
"author_photo": null,
"project_slug": "ecommerce-xyz",
"date": "2025-06-15",
"featured": true
},
{
"id": 2,
"quote": "Un développeur rigoureux et créatif. Il a su comprendre nos besoins et proposer des solutions adaptées à notre budget.",
"author_name": "Jean Martin",
"author_role": "CEO",
"author_company": "Startup ABC",
"author_photo": null,
"project_slug": "app-gestion",
"date": "2025-03-20",
"featured": true
},
{
"id": 3,
"quote": "Travail soigné et professionnel. Je recommande vivement pour tout projet web.",
"author_name": "Sophie Leroy",
"author_role": "Gérante",
"author_company": "Restaurant Le Bon Goût",
"author_photo": null,
"project_slug": null,
"date": "2024-11-10",
"featured": false
}
]
}
+83
View File
@@ -141,3 +141,86 @@ function projectImage(string $filename, string $alt, int $width, int $height, bo
</picture> </picture>
HTML; HTML;
} }
/**
* Compte les projets par technologie
* @return array Tableau associatif [technologie => nombre]
*/
function getProjectCountByTech(): array
{
$projects = getProjects();
$count = [];
foreach ($projects as $project) {
foreach ($project['technologies'] ?? [] as $tech) {
$count[$tech] = ($count[$tech] ?? 0) + 1;
}
}
return $count;
}
/**
* Récupère les projets utilisant une technologie
* @param string $tech Nom de la technologie
* @return array Projets filtrés
*/
function getProjectsByTech(string $tech): array
{
return array_filter(getProjects(), function($project) use ($tech) {
return in_array($tech, $project['technologies'] ?? []);
});
}
/**
* Retourne l'icône SVG d'un outil
* @param string $icon Identifiant de l'outil
* @return string SVG de l'icône
*/
function getToolIcon(string $icon): string
{
$icons = [
'github' => '<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>',
'vscode' => '<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24"><path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z"/></svg>',
'figma' => '<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24"><path d="M15.852 8.981h-4.588V0h4.588c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.491-4.49 4.491zM12.735 7.51h3.117c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-3.117V7.51zm0 1.471H8.148c-2.476 0-4.49-2.014-4.49-4.49S5.672 0 8.148 0h4.588v8.981zm-4.587-7.51c-1.665 0-3.019 1.355-3.019 3.019s1.354 3.02 3.019 3.02h3.117V1.471H8.148zm4.587 15.019H8.148c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h4.588v8.98zM8.148 8.981c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h3.117V8.981H8.148zM8.172 24c-2.489 0-4.515-2.014-4.515-4.49s2.014-4.49 4.49-4.49h4.588v4.441c0 2.503-2.047 4.539-4.563 4.539zm-.024-7.51a3.023 3.023 0 0 0-3.019 3.019c0 1.665 1.365 3.019 3.044 3.019 1.705 0 3.093-1.376 3.093-3.068v-2.97H8.148zm7.704 0h-.098c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h.098c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.49-4.49 4.49zm-.098-7.509c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h.098c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-.098z"/></svg>',
'notion' => '<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24"><path d="M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.98-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.886l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"/></svg>',
'docker' => '<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24"><path d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.186m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.185-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.185.185v1.888c0 .102.084.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"/></svg>',
'linux' => '<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24"><path d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.246-.335-.126-.135-.267-.265-.42-.4-.12-.07-.27-.131-.452-.2-.146-.064-.292-.135-.39-.2v-.002c.006-.064.016-.133.025-.2.056-.468.027-.936-.098-1.403-.095-.332-.24-.73-.45-1.137.143.07.29.135.446.2.36.135.7.202 1.036.135.337-.064.665-.267.91-.669v-.002c-.12.135-.26.2-.416.266a1.477 1.477 0 01-.49.064c-.075 0-.146-.003-.215-.02-.36-.135-.748-.27-1.228-.605l-.002-.002c-.325-.2-.79-.6-1.015-1.135-.04-.106-.073-.2-.095-.333a.786.786 0 00-.006-.067c.022.065.05.135.074.2.129.259.249.534.465.8.197.2.42.335.637.401.182.066.36.067.514.067h.012c.05 0 .097-.003.143-.012a.472.472 0 00-.1.066c-.24.2-.468.336-.664.401-.15.066-.316.068-.4.068h-.022c-.25-.003-.456-.091-.629-.2-.257-.135-.36-.336-.494-.535-.155-.199-.35-.465-.518-.668-.085-.2-.174-.335-.179-.469-.004-.067.002-.132.032-.199h-.003c.02-.064.05-.136.098-.2.3-.533 1.032-2.135 1.17-2.67.208-.865.39-1.932.455-2.667.065-.733.055-1.335-.063-1.67a2.33 2.33 0 00-.207-.398v-.002c.039.004.081.008.122.014.136.016.267.038.395.066zm-.033-.002v.003-.003zm0 .003h-.002.002zm-8.673.203a.075.075 0 01.015.001c.056.01.137.064.165.199.03.135 0 .332-.107.535-.178.334-.532.534-.896.535-.197 0-.39-.067-.538-.2a.76.76 0 01-.241-.4c-.017-.066-.012-.135.005-.2.087-.4.59-.533.91-.667.124-.067.22-.068.294-.003.073.003.15.003.23.003v-.003h.165c.003 0 .003 0 .003-.001zm1.396 1.602c.185 0 .355.005.555.067a.82.82 0 01.5.398c.061.135.096.267.123.401v.003c.007.065.012.135.012.199 0 .2-.02.335-.106.535-.036.066-.1.199-.132.265h-.002c-.02.065-.03.135-.03.2 0 .133.028.267.084.398.166.336.461.8 1.07 1.136v-.002c-.002 0-.003 0-.003.002-.042.028-.084.066-.118.098-.054.05-.101.099-.14.147a.98.98 0 00-.165.32c-.112.327-.063.665.073.933.27.533.662.935 1.13 1.137.333.134.75.2 1.142.132l.003-.002c.057-.01.114-.024.17-.038-.002.028.003.057.005.085v.001c.012.135.04.2.082.333.033.12.07.201.12.32-.1.07-.2.137-.296.203a.85.85 0 00-.248.265c-.053.065-.095.135-.117.2a.36.36 0 00-.022.132c0 .065.012.135.045.2.039.0 Line truncated
];
return $icons[$icon] ?? '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/></svg>';
}
/**
* Récupère tous les témoignages
* @return array Liste des témoignages
*/
function getTestimonials(): array
{
$data = loadJsonData('testimonials.json');
return $data['testimonials'] ?? [];
}
/**
* Récupère les témoignages mis en avant
* @return array Témoignages avec featured = true
*/
function getFeaturedTestimonials(): array
{
return array_filter(getTestimonials(), fn($t) => ($t['featured'] ?? false) === true);
}
/**
* Récupère le témoignage lié à un projet
* @param string $projectSlug Slug du projet
* @return array|null Témoignage ou null si non trouvé
*/
function getTestimonialByProject(string $projectSlug): ?array
{
foreach (getTestimonials() as $testimonial) {
if (($testimonial['project_slug'] ?? '') === $projectSlug) {
return $testimonial;
}
}
return null;
}
+230 -7
View File
@@ -1,10 +1,10 @@
<?php <?php
/** /**
* Page à propos * Page Me Découvrir
*/ */
$pageTitle = 'À propos'; $pageTitle = 'Me Découvrir';
$pageDescription = 'Découvrez mon parcours, mes motivations et ce qui me passionne.'; $pageDescription = 'Découvrez mon parcours, mes motivations et ce qui me passionne en tant que développeur web.';
$currentPage = 'a-propos'; $currentPage = 'a-propos';
include_template('header', compact('pageTitle', 'pageDescription')); include_template('header', compact('pageTitle', 'pageDescription'));
@@ -12,19 +12,242 @@ include_template('navbar', compact('currentPage'));
?> ?>
<main> <main>
<!-- Section Hero / Qui je suis -->
<section class="section"> <section class="section">
<div class="container-content">
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
<!-- Photo -->
<div class="order-2 lg:order-1">
<div class="aspect-square max-w-md mx-auto lg:mx-0 rounded-2xl overflow-hidden bg-surface-alt">
<!-- Placeholder si pas de photo -->
<div class="w-full h-full flex items-center justify-center bg-gradient-to-br from-primary/20 to-primary/5">
<svg class="w-32 h-32 text-primary/30" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/>
</svg>
</div>
</div>
</div>
<!-- Texte -->
<div class="order-1 lg:order-2">
<h1 class="text-3xl lg:text-display font-bold text-text-primary mb-6">
Bonjour, je suis <span class="text-primary">Célian</span>
</h1>
<p class="text-xl text-text-secondary mb-6 leading-relaxed">
Développeur web passionné basé dans le <strong class="text-text-primary">Grand Est, France</strong>.
Je crée des expériences numériques qui allient performance,
accessibilité et design soigné.
</p>
<p class="text-text-secondary leading-relaxed">
Je transforme des idées en solutions web concrètes.
Mon approche : comprendre les besoins, proposer des solutions pragmatiques,
et livrer un travail dont je suis fier.
</p>
</div>
</div>
</div>
</section>
<!-- Mon Parcours -->
<section class="section bg-surface">
<div class="container-content"> <div class="container-content">
<div class="section-header"> <div class="section-header">
<h1 class="section-title">À propos</h1> <h2 class="section-title">Mon Parcours</h2>
</div>
<div class="max-w-3xl mx-auto">
<!-- Timeline -->
<div class="space-y-8">
<!-- Étape 1 -->
<div class="flex gap-6">
<div class="flex-shrink-0 w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center">
<span class="text-primary font-bold">1</span>
</div>
<div>
<h3 class="text-lg font-semibold text-text-primary mb-2">Découverte du code</h3>
<p class="text-text-secondary leading-relaxed">
Mes premiers pas dans le développement, par curiosité et passion pour la technologie.
J'ai commencé par des projets personnels, apprenant HTML, CSS et JavaScript.
</p>
</div>
</div>
<!-- Étape 2 -->
<div class="flex gap-6">
<div class="flex-shrink-0 w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center">
<span class="text-primary font-bold">2</span>
</div>
<div>
<h3 class="text-lg font-semibold text-text-primary mb-2">Formation et spécialisation</h3>
<p class="text-text-secondary leading-relaxed">
Approfondissement des compétences à travers une formation dédiée.
Découverte du backend avec PHP, des bases de données et des bonnes pratiques de développement.
</p>
</div>
</div>
<!-- Étape 3 -->
<div class="flex gap-6">
<div class="flex-shrink-0 w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center">
<span class="text-primary font-bold">3</span>
</div>
<div>
<h3 class="text-lg font-semibold text-text-primary mb-2">Projets concrets</h3>
<p class="text-text-secondary leading-relaxed">
Réalisation de projets pour des clients et des projets personnels.
Chaque projet est une opportunité d'apprendre et de s'améliorer.
</p>
</div>
</div>
<!-- Étape 4 -->
<div class="flex gap-6">
<div class="flex-shrink-0 w-12 h-12 rounded-full bg-primary flex items-center justify-center">
<span class="text-white font-bold">4</span>
</div>
<div>
<h3 class="text-lg font-semibold text-text-primary mb-2">Aujourd'hui</h3>
<p class="text-text-secondary leading-relaxed">
Je continue à me former et à explorer de nouvelles technologies.
Mon objectif : créer des sites web performants, accessibles et agréables à utiliser.
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Pourquoi ce métier -->
<section class="section">
<div class="container-content">
<div class="max-w-3xl mx-auto text-center">
<h2 class="text-2xl lg:text-heading font-bold text-text-primary mb-8">Pourquoi le Développement Web ?</h2>
<div class="space-y-6 text-text-secondary text-lg leading-relaxed">
<p>
Ce qui me passionne dans le développement, c'est la possibilité de
<strong class="text-text-primary">créer quelque chose à partir de rien</strong>.
Une idée, du code, et soudain un site web existe et aide des gens.
</p>
<p>
J'aime particulièrement le challenge de rendre les choses
<strong class="text-text-primary">simples pour l'utilisateur</strong>,
même quand elles sont complexes sous le capot.
</p>
<p>
Mon objectif : livrer un travail dont je suis fier, avec des solutions
qui durent dans le temps et qui sont agréables à utiliser.
</p>
</div>
</div>
</div>
</section>
<!-- En dehors du code -->
<section class="section bg-surface">
<div class="container-content">
<div class="section-header">
<h2 class="section-title">En Dehors du Code</h2>
<p class="section-subtitle"> <p class="section-subtitle">
Mon parcours et mes motivations Parce qu'un développeur a aussi une vie en dehors de l'écran.
</p> </p>
</div> </div>
<p class="text-text-secondary text-center"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
Page en construction - Epic 4 <!-- Passion 1 : Musique -->
<div class="card group overflow-hidden">
<div class="aspect-video overflow-hidden bg-gradient-to-br from-purple-500/20 to-pink-500/20 flex items-center justify-center">
<svg class="w-16 h-16 text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"/>
</svg>
</div>
<div class="card-body">
<h3 class="text-lg font-semibold text-text-primary mb-2">Musique</h3>
<p class="text-text-secondary text-sm">
Passionné par la création musicale et la MAO.
La musique développe la créativité et la rigueur, des qualités que j'applique aussi dans le code.
</p> </p>
</div> </div>
</div>
<!-- Passion 2 : Gaming -->
<div class="card group overflow-hidden">
<div class="aspect-video overflow-hidden bg-gradient-to-br from-green-500/20 to-cyan-500/20 flex items-center justify-center">
<svg class="w-16 h-16 text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z"/>
</svg>
</div>
<div class="card-body">
<h3 class="text-lg font-semibold text-text-primary mb-2">Jeux vidéo</h3>
<p class="text-text-secondary text-sm">
Le gaming a éveillé ma curiosité pour l'informatique.
Aujourd'hui, c'est aussi une source d'inspiration pour l'UX et le game design.
</p>
</div>
</div>
<!-- Passion 3 : Projets Open Source -->
<div class="card group overflow-hidden">
<div class="aspect-video overflow-hidden bg-gradient-to-br from-primary/20 to-primary/5 flex items-center justify-center">
<svg class="w-16 h-16 text-primary" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"/>
</svg>
</div>
<div class="card-body">
<h3 class="text-lg font-semibold text-text-primary mb-2">Projets Open Source</h3>
<p class="text-text-secondary text-sm mb-3">
Je développe des projets personnels et explore de nouvelles technologies sur mon temps libre.
</p>
<a href="https://github.com/skycel" target="_blank" rel="noopener" class="text-primary text-sm hover:underline inline-flex items-center gap-1">
Voir sur GitHub
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
</svg>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- Témoignages -->
<?php $testimonials = getTestimonials(); ?>
<?php if (!empty($testimonials)): ?>
<section class="section">
<div class="container-content">
<div class="section-header">
<h2 class="section-title">Ce Qu'ils Disent</h2>
<p class="section-subtitle">
Retours de clients et collaborateurs.
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<?php foreach ($testimonials as $testimonial): ?>
<?php include_template('testimonial', ['testimonial' => $testimonial, 'showProjectLink' => true]); ?>
<?php endforeach; ?>
</div>
</div>
</section>
<?php endif; ?>
<!-- CTA -->
<section class="section bg-surface">
<div class="container-content text-center">
<h2 class="text-2xl lg:text-heading font-bold text-text-primary mb-4">Envie d'en savoir plus ?</h2>
<p class="text-text-secondary mb-8">
Découvrez mes réalisations ou contactez-moi directement.
</p>
<div class="flex flex-wrap justify-center gap-4">
<a href="/projets" class="btn-primary">Voir mes projets</a>
<a href="/contact" class="btn-secondary">Me contacter</a>
</div>
</div>
</section> </section>
</main> </main>
+30
View File
@@ -106,6 +106,36 @@ include_template('navbar', compact('currentPage'));
</div> </div>
</div> </div>
</section> </section>
<!-- Témoignages Featured -->
<?php $featuredTestimonials = array_slice(array_values(getFeaturedTestimonials()), 0, 2); ?>
<?php if (!empty($featuredTestimonials)): ?>
<section class="section">
<div class="container-content">
<div class="section-header">
<h2 class="section-title">Ce Qu'ils Disent</h2>
<p class="section-subtitle">
Retours de clients et collaborateurs.
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto">
<?php foreach ($featuredTestimonials as $testimonial): ?>
<?php include_template('testimonial', ['testimonial' => $testimonial, 'showProjectLink' => false]); ?>
<?php endforeach; ?>
</div>
<div class="text-center mt-8">
<a href="/a-propos#temoignages" class="text-primary hover:underline inline-flex items-center gap-2">
Voir tous les témoignages
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/>
</svg>
</a>
</div>
</div>
</section>
<?php endif; ?>
</main> </main>
<?php include_template('footer'); ?> <?php include_template('footer'); ?>
+189 -5
View File
@@ -1,12 +1,35 @@
<?php <?php
/** /**
* Page compétences * Page Compétences
*/ */
$pageTitle = 'Compétences'; $pageTitle = 'Compétences';
$pageDescription = 'Mes compétences techniques : langages, frameworks et outils maîtrisés.'; $pageDescription = 'Mes compétences techniques en développement web : langages, frameworks et outils.';
$currentPage = 'competences'; $currentPage = 'competences';
// Récupérer le comptage des technologies
$techCount = getProjectCountByTech();
// Catégoriser les technologies
$categories = [
'Frontend' => [
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"/>',
'techs' => ['HTML', 'CSS', 'JavaScript', 'TypeScript', 'React', 'Vue.js', 'Tailwind CSS', 'Bootstrap', 'SASS']
],
'Backend' => [
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"/>',
'techs' => ['PHP', 'Node.js', 'Python', 'Laravel', 'Express', 'Symfony']
],
'Base de données' => [
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"/>',
'techs' => ['MySQL', 'PostgreSQL', 'MongoDB', 'SQLite', 'Redis']
],
'DevOps & Outils' => [
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>',
'techs' => ['Git', 'Docker', 'Linux', 'Nginx', 'Apache', 'CI/CD']
],
];
include_template('header', compact('pageTitle', 'pageDescription')); include_template('header', compact('pageTitle', 'pageDescription'));
include_template('navbar', compact('currentPage')); include_template('navbar', compact('currentPage'));
?> ?>
@@ -17,14 +40,175 @@ include_template('navbar', compact('currentPage'));
<div class="section-header"> <div class="section-header">
<h1 class="section-title">Compétences</h1> <h1 class="section-title">Compétences</h1>
<p class="section-subtitle"> <p class="section-subtitle">
Technologies et outils maîtrisés Technologies que j'utilise au quotidien, liées à mes projets réels.
</p> </p>
</div> </div>
<p class="text-text-secondary text-center"> <!-- Technologies par catégorie -->
Page en construction - Epic 4 <div class="grid grid-cols-1 md:grid-cols-2 gap-8 lg:gap-12">
<?php foreach ($categories as $category => $data): ?>
<div class="card">
<div class="card-body">
<div class="flex items-center gap-3 mb-6">
<div class="w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center">
<svg class="w-5 h-5 text-primary" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<?= $data['icon'] ?>
</svg>
</div>
<h2 class="text-xl font-semibold text-text-primary"><?= htmlspecialchars($category) ?></h2>
</div>
<div class="flex flex-wrap gap-3">
<?php foreach ($data['techs'] as $tech): ?>
<?php $count = $techCount[$tech] ?? 0; ?>
<?php if ($count > 0): ?>
<span class="group flex items-center gap-2 px-4 py-2 bg-surface-alt rounded-lg border border-transparent hover:border-primary/30 transition-colors cursor-default"
title="<?= $count ?> projet<?= $count > 1 ? 's' : '' ?>">
<span class="font-medium text-text-primary">
<?= htmlspecialchars($tech) ?>
</span>
<span class="text-xs px-2 py-0.5 bg-primary/20 text-primary rounded-full">
<?= $count ?>
</span>
</span>
<?php else: ?>
<span class="flex items-center gap-2 px-4 py-2 bg-surface-alt/50 rounded-lg text-text-secondary">
<?= htmlspecialchars($tech) ?>
</span>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
<!-- Section Outils Démontrables (Story 4.2) -->
<?php
// Outils démontrables avec preuves vérifiables
$demonstrableTools = [
[
'name' => 'GitHub',
'icon' => 'github',
'url' => 'https://github.com/skycel',
'description' => 'Historique de commits et projets publics'
],
[
'name' => 'VS Code',
'icon' => 'vscode',
'url' => null,
'description' => 'Éditeur principal, visible dans le code source'
],
[
'name' => 'Figma',
'icon' => 'figma',
'url' => null,
'description' => 'Maquettes et prototypes de projets'
],
[
'name' => 'Docker',
'icon' => 'docker',
'url' => null,
'description' => 'Conteneurisation des environnements'
],
[
'name' => 'Linux',
'icon' => 'linux',
'url' => null,
'description' => 'Administration serveur et développement'
],
];
// Autres outils utilisés régulièrement
$otherTools = [
['name' => 'Photoshop', 'context' => 'Retouche d\'images et création graphique'],
['name' => 'Insomnia', 'context' => 'Test d\'APIs REST et GraphQL'],
['name' => 'DBeaver', 'context' => 'Administration de bases de données'],
['name' => 'FileZilla', 'context' => 'Transfert FTP/SFTP'],
['name' => 'Notion', 'context' => 'Organisation et documentation'],
['name' => 'Trello', 'context' => 'Gestion de projet Kanban'],
];
?>
<section class="section bg-surface">
<div class="container-content">
<div class="section-header">
<h2 class="section-title">Outils Démontrables</h2>
<p class="section-subtitle">
Outils accompagnés de preuves vérifiables ou visibles dans mes projets.
</p> </p>
</div> </div>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
<?php foreach ($demonstrableTools as $tool): ?>
<?php if ($tool['url']): ?>
<a href="<?= htmlspecialchars($tool['url']) ?>"
target="_blank"
rel="noopener"
class="card group hover:border-primary/30 transition-colors">
<div class="card-body flex items-start gap-4">
<div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 text-primary">
<?= getToolIcon($tool['icon']) ?>
</div>
<div class="flex-grow">
<h3 class="font-semibold text-text-primary group-hover:text-primary transition-colors flex items-center gap-2">
<?= htmlspecialchars($tool['name']) ?>
<svg class="w-4 h-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
</svg>
</h3>
<p class="text-sm text-text-secondary mt-1">
<?= htmlspecialchars($tool['description']) ?>
</p>
</div>
</div>
</a>
<?php else: ?>
<div class="card">
<div class="card-body flex items-start gap-4">
<div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 text-primary">
<?= getToolIcon($tool['icon']) ?>
</div>
<div class="flex-grow">
<h3 class="font-semibold text-text-primary">
<?= htmlspecialchars($tool['name']) ?>
</h3>
<p class="text-sm text-text-secondary mt-1">
<?= htmlspecialchars($tool['description']) ?>
</p>
</div>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</section>
<!-- Section Autres Outils -->
<section class="section">
<div class="container-content">
<div class="section-header">
<h2 class="section-title">Autres Outils</h2>
<p class="section-subtitle">
Outils utilisés régulièrement dans mes projets.
</p>
</div>
<div class="flex flex-wrap gap-3">
<?php foreach ($otherTools as $tool): ?>
<span class="group relative px-4 py-2 bg-surface-alt rounded-lg text-text-secondary cursor-help border border-transparent hover:border-border transition-colors">
<?= htmlspecialchars($tool['name']) ?>
<!-- Tooltip -->
<span class="absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-3 py-2 bg-surface-light text-text-primary text-xs rounded-lg opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none whitespace-nowrap shadow-lg z-10">
<?= htmlspecialchars($tool['context']) ?>
</span>
</span>
<?php endforeach; ?>
</div>
</div>
</section> </section>
</main> </main>
+67
View File
@@ -0,0 +1,67 @@
<?php
/**
* Composant témoignage
* @param array $testimonial Données du témoignage
* @param bool $showProjectLink Afficher le lien vers le projet (défaut: true)
*/
$quote = $testimonial['quote'] ?? '';
$authorName = $testimonial['author_name'] ?? 'Anonyme';
$authorRole = $testimonial['author_role'] ?? '';
$authorCompany = $testimonial['author_company'] ?? '';
$authorPhoto = $testimonial['author_photo'] ?? null;
$projectSlug = $testimonial['project_slug'] ?? null;
$showProjectLink = $showProjectLink ?? true;
?>
<blockquote class="card h-full flex flex-col">
<div class="card-body flex flex-col h-full">
<!-- Guillemets décoratifs -->
<svg class="w-8 h-8 text-primary/30 mb-4 flex-shrink-0" fill="currentColor" viewBox="0 0 24 24">
<path d="M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"/>
</svg>
<!-- Citation -->
<p class="text-text-primary leading-relaxed mb-6 italic flex-grow">
"<?= htmlspecialchars($quote) ?>"
</p>
<!-- Auteur -->
<footer class="flex items-center gap-4 mt-auto">
<?php if ($authorPhoto): ?>
<img
src="/assets/img/testimonials/<?= htmlspecialchars($authorPhoto) ?>"
alt="<?= htmlspecialchars($authorName) ?>"
class="w-12 h-12 rounded-full object-cover"
loading="lazy"
>
<?php else: ?>
<div class="w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center flex-shrink-0">
<span class="text-primary font-semibold text-lg">
<?= strtoupper(mb_substr($authorName, 0, 1)) ?>
</span>
</div>
<?php endif; ?>
<div>
<p class="font-semibold text-text-primary"><?= htmlspecialchars($authorName) ?></p>
<p class="text-sm text-text-secondary">
<?= htmlspecialchars($authorRole) ?>
<?php if ($authorCompany): ?>
<span class="text-text-muted">—</span> <?= htmlspecialchars($authorCompany) ?>
<?php endif; ?>
</p>
</div>
</footer>
<!-- Lien vers le projet -->
<?php if ($showProjectLink && $projectSlug): ?>
<a href="/projet/<?= htmlspecialchars($projectSlug) ?>" class="inline-flex items-center gap-1 text-primary text-sm mt-4 hover:underline">
Voir le projet
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/>
</svg>
</a>
<?php endif; ?>
</div>
</blockquote>