Files
Portfolio-Codex/pages/skills.php
2026-02-04 17:26:58 +01:00

68 lines
3.2 KiB
PHP

<?php
/**
* Page Compétences
*/
$pageTitle = 'Compétences';
$pageDescription = 'Mes compétences techniques en développement web : langages, frameworks et outils.';
$currentPage = 'skills';
$techCount = getProjectCountByTech();
$categories = [
'Frontend' => ['HTML', 'CSS', 'JavaScript', 'TypeScript', 'React', 'Vue.js', 'Tailwind CSS', 'Bootstrap', 'SASS'],
'Backend' => ['PHP', 'Node.js', 'Python', 'Laravel', 'Express', 'Symfony'],
'Base de données' => ['MySQL', 'PostgreSQL', 'MongoDB', 'SQLite', 'Redis'],
'DevOps & Outils' => ['Git', 'Docker', 'Linux', 'Nginx', 'Apache', 'CI/CD'],
];
include_template('header', compact('pageTitle', 'pageDescription'));
include_template('navbar', compact('currentPage'));
?>
<main>
<section class="section">
<div class="container-content">
<div class="section-header">
<h1 class="section-title">Compétences</h1>
<p class="section-subtitle">
Technologies que j'utilise au quotidien, liées à mes projets réels.
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 lg:gap-12">
<?php foreach ($categories as $category => $techs): ?>
<div class="card">
<div class="card-body">
<h2 class="text-subheading mb-6"><?= htmlspecialchars($category, ENT_QUOTES, 'UTF-8') ?></h2>
<div class="flex flex-wrap gap-3">
<?php foreach ($techs as $tech): ?>
<?php $count = $techCount[$tech] ?? 0; ?>
<?php if ($count > 0): ?>
<a href="/projets?tech=<?= urlencode($tech) ?>"
title="<?= $count ?> projet(s)"
class="group flex items-center gap-2 px-4 py-2 bg-surface-light rounded-lg hover:bg-primary/20 transition-colors">
<span class="font-medium text-text-primary group-hover:text-primary">
<?= htmlspecialchars($tech, ENT_QUOTES, 'UTF-8') ?>
</span>
<span class="text-xs px-2 py-0.5 bg-primary/20 text-primary rounded-full">
<?= $count ?>
</span>
</a>
<?php else: ?>
<span class="flex items-center gap-2 px-4 py-2 bg-surface-light/50 rounded-lg text-text-muted">
<?= htmlspecialchars($tech, ENT_QUOTES, 'UTF-8') ?>
</span>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
</main>
<?php include_template('footer'); ?>