L'accusé de réception était envoyé à l'adresse saisie dans le formulaire en recopiant le nom, le sujet et le message : un robot pouvait y mettre l'adresse d'une victime et faire envoyer son spam par notre serveur SMTP. L'accusé de réception ne contient plus aucun texte saisi par l'expéditeur. Renforcement anti-spam (calibré sur 8 954 messages réels, 100 % bloqués) : - délai minimum de 4 s entre l'affichage du formulaire et l'envoi - reCAPTCHA v3 : score obligatoire, contrôle du domaine, refus journalisés - filtres de contenu : hébergeurs de liens jetables et raccourcisseurs, blocs de lignes vides, identifiants aléatoires, appâts financiers (crypto, jackpot, « $1,500 per day »), sujets à trous d'espaces et demandes de prix générées par gabarit, alphabets non latins - messages filtrés ignorés silencieusement et journalisés - l'erreur reCAPTCHA propose l'e-mail direct pour ne pas perdre un prospect
583 lines
42 KiB
PHP
583 lines
42 KiB
PHP
<?php
|
|
/**
|
|
* Portfolio Tony AVERTY — Page principale
|
|
* Développeur Web Freelance
|
|
*/
|
|
|
|
require_once __DIR__ . '/includes/Security.php';
|
|
require_once __DIR__ . '/config/recaptcha.php';
|
|
Security::bootstrap(true, ['recaptcha' => RECAPTCHA_ENABLED]);
|
|
|
|
require_once __DIR__ . '/includes/projects.php';
|
|
|
|
// Récupération des projets publiés
|
|
$projects = getPublishedProjects();
|
|
$hasProjects = !empty($projects);
|
|
$isAdmin = !empty($_SESSION['admin_id']);
|
|
|
|
// Génération du CAPTCHA mathématique
|
|
$captchaA = random_int(2, 9);
|
|
$captchaB = random_int(1, 6);
|
|
$_SESSION['captcha_answer'] = $captchaA + $captchaB;
|
|
$captchaQuestion = "{$captchaA} + {$captchaB} = ?";
|
|
|
|
// Horodatage d'affichage du formulaire (anti-bot : envoi trop rapide refusé)
|
|
$_SESSION['contact_form_rendered_at'] = time();
|
|
?>
|
|
<?php require_once __DIR__ . '/includes/header.php'; ?>
|
|
|
|
<main id="main-content">
|
|
|
|
<!-- ============================================ -->
|
|
<!-- HERO -->
|
|
<!-- ============================================ -->
|
|
<section class="hero" id="hero" aria-label="Accueil">
|
|
<div class="hero__grid-bg" aria-hidden="true"></div>
|
|
<div class="hero__grain" aria-hidden="true"></div>
|
|
<div class="container">
|
|
<div class="hero__inner">
|
|
<div class="hero__content">
|
|
<div class="hero__badge">
|
|
<span class="hero__badge-dot" aria-hidden="true"></span>
|
|
Disponible pour nouveaux projets
|
|
</div>
|
|
<h1 class="hero__title">
|
|
Du code propre.<br>
|
|
Des interfaces claires.<br>
|
|
<span class="hero__title-accent">Des projets qui tiennent.</span>
|
|
</h1>
|
|
<p class="hero__subtitle">
|
|
Je conçois des sites et applications web sur mesure, adaptés à votre activité. Design soigné, code solide, livraison dans les délais convenus.
|
|
</p>
|
|
<div class="hero__actions">
|
|
<a href="#contact" class="btn btn--primary btn--lg">
|
|
Parlons de votre projet →
|
|
</a>
|
|
<a href="#projects" class="btn btn--outline btn--lg">Voir ce que j'ai construit</a>
|
|
</div>
|
|
<div class="hero__stack" aria-label="Technologies maîtrisées">
|
|
<span class="hero__stack-label">Stack principale :</span>
|
|
<div class="hero__stack-tags">
|
|
<span class="tag">HTML / CSS</span>
|
|
<span class="tag">JavaScript</span>
|
|
<span class="tag">PHP</span>
|
|
<span class="tag">SQL</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Visuel hero : carte code éditeur -->
|
|
<div class="hero__visual" aria-hidden="true">
|
|
<div class="hero__code-card">
|
|
<div class="hero__code-header">
|
|
<span class="hero__code-dot hero__code-dot--red"></span>
|
|
<span class="hero__code-dot hero__code-dot--yellow"></span>
|
|
<span class="hero__code-dot hero__code-dot--green"></span>
|
|
<span class="hero__code-filename">TonyAverty.php</span>
|
|
</div>
|
|
<div class="hero__code-body">
|
|
<pre class="hero__code-pre"><code><span class="tok-tag"><?php</span>
|
|
|
|
<span class="tok-keyword">class</span> <span class="tok-class">TonyAverty</span>
|
|
<span class="tok-punct">{</span>
|
|
<span class="tok-keyword">public string</span> <span class="tok-var">$stack</span> <span class="tok-punct">=</span>
|
|
<span class="tok-string">'PHP · JS · CSS'</span><span class="tok-punct">;</span>
|
|
|
|
<span class="tok-keyword">public string</span> <span class="tok-var">$dispo</span> <span class="tok-punct">=</span>
|
|
<span class="tok-string">'Disponible'</span><span class="tok-punct">;</span>
|
|
|
|
<span class="tok-keyword">public function</span> <span class="tok-fn">livrer</span><span class="tok-punct">(</span>
|
|
<span class="tok-class">Project</span> <span class="tok-var">$projet</span>
|
|
<span class="tok-punct">):</span> <span class="tok-keyword">void</span>
|
|
<span class="tok-punct">{</span>
|
|
<span class="tok-comment">// Code propre.</span>
|
|
<span class="tok-comment">// Design soigné.</span>
|
|
<span class="tok-comment">// Livré avec rigueur.</span>
|
|
<span class="tok-punct">}</span>
|
|
<span class="tok-punct">}</span></code></pre>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Badges flottants -->
|
|
<div class="hero__stat hero__stat--response">
|
|
<span class="hero__stat-icon" aria-hidden="true">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>
|
|
</span>
|
|
<div>
|
|
<span class="hero__stat-value">24h</span>
|
|
<span class="hero__stat-label">Délai de réponse</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="hero__stat hero__stat--codebzh">
|
|
<span class="hero__stat-icon" aria-hidden="true">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
|
|
</span>
|
|
<div>
|
|
<span class="hero__stat-value">CodeBzh</span>
|
|
<span class="hero__stat-label">Fondateur & Dev</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="hero__scroll" aria-hidden="true">
|
|
<span class="hero__scroll-line"></span>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================ -->
|
|
<!-- À PROPOS -->
|
|
<!-- ============================================ -->
|
|
<section class="section about" id="about" aria-labelledby="about-title">
|
|
<div class="container">
|
|
<div class="section__header">
|
|
<span class="section__number" aria-hidden="true">01</span>
|
|
<span class="section__label">À propos</span>
|
|
</div>
|
|
<div class="about__grid">
|
|
<div class="about__photo-wrapper reveal">
|
|
<div class="about__photo-frame">
|
|
<img src="assets/img/tony.png" alt="Tony AVERTY, développeur web freelance" class="about__photo" width="400" height="500" loading="lazy">
|
|
</div>
|
|
<div class="timeline timeline--compact" aria-label="Parcours">
|
|
<div class="timeline__item">
|
|
<div class="timeline__marker" aria-hidden="true"></div>
|
|
<div class="timeline__content">
|
|
<span class="timeline__date">Aujourd'hui</span>
|
|
<h3 class="timeline__title">Développeur freelance & fondateur CodeBzh</h3>
|
|
</div>
|
|
</div>
|
|
<div class="timeline__item">
|
|
<div class="timeline__marker" aria-hidden="true"></div>
|
|
<div class="timeline__content">
|
|
<span class="timeline__date">Formation</span>
|
|
<h3 class="timeline__title">Développement web — HTML, CSS, JS, PHP, SQL</h3>
|
|
</div>
|
|
</div>
|
|
<div class="timeline__item">
|
|
<div class="timeline__marker" aria-hidden="true"></div>
|
|
<div class="timeline__content">
|
|
<span class="timeline__date">Les débuts</span>
|
|
<h3 class="timeline__title">Passion pour le web et le code</h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="about__content reveal">
|
|
<h2 id="about-title" class="section__title">Développeur freelance. Fondateur d'agence. La même exigence pour votre projet.</h2>
|
|
<p class="about__text">
|
|
Je suis Tony AVERTY, développeur web freelance basé en Bretagne. J'ai fondé CodeBzh pour proposer une approche différente des agences classiques : chaque site est conçu sur mesure, développé entièrement par mes soins.
|
|
</p>
|
|
<p class="about__text">
|
|
Avant d'écrire la moindre ligne, je prends le temps de comprendre votre activité — ce que vous proposez, à qui, et comment vos clients vous trouvent. C'est ce qui guide chaque décision, du design au référencement.
|
|
</p>
|
|
<p class="about__text">
|
|
Un site bien conçu est avant tout un outil commercial. Je le construis pour générer des contacts, être visible sur Google, et rester performant dans le temps.
|
|
</p>
|
|
<p class="about__text">
|
|
Chaque projet est développé en partant de votre contexte. Pas de raccourci, pas de réutilisation générique — un résultat propre, pensé pour vos visiteurs, livré avec rigueur.
|
|
</p>
|
|
<div class="about__highlights">
|
|
<div class="about__highlight">
|
|
<span class="about__highlight-icon" aria-hidden="true">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
|
|
</span>
|
|
<span>Fondateur de CodeBzh, agence web active en Bretagne</span>
|
|
</div>
|
|
<div class="about__highlight">
|
|
<span class="about__highlight-icon" aria-hidden="true">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
|
|
</span>
|
|
<span>Chaque projet construit sur mesure, de la maquette à la mise en ligne</span>
|
|
</div>
|
|
<div class="about__highlight">
|
|
<span class="about__highlight-icon" aria-hidden="true">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
|
|
</span>
|
|
<span>Réponse garantie sous 24h — toujours</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================ -->
|
|
<!-- COMPÉTENCES -->
|
|
<!-- ============================================ -->
|
|
<section class="section skills" id="skills" aria-labelledby="skills-title">
|
|
<div class="container">
|
|
<div class="section__header">
|
|
<span class="section__number" aria-hidden="true">02</span>
|
|
<span class="section__label">Compétences</span>
|
|
</div>
|
|
<h2 id="skills-title" class="section__title">Les technologies que je maîtrise</h2>
|
|
<p class="section__intro">Chaque technologie présentée ici est utilisée sur des projets réels. Des choix fondés sur la fiabilité et la pertinence, pas sur les tendances du moment.</p>
|
|
|
|
<div class="skills__grid">
|
|
<!-- Maîtrise avancée -->
|
|
<div class="skills__category reveal">
|
|
<h3 class="skills__category-title">
|
|
<span class="skills__category-badge skills__category-badge--expert">Maîtrise avancée</span>
|
|
</h3>
|
|
<div class="skills__cards">
|
|
<div class="skill-card" data-skill="html-css">
|
|
<div class="skill-card__icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>
|
|
</div>
|
|
<h4 class="skill-card__name">HTML / CSS</h4>
|
|
<p class="skill-card__desc">Structure visuelle, mise en page, animations, compatibilité tous appareils.</p>
|
|
</div>
|
|
<div class="skill-card" data-skill="php">
|
|
<div class="skill-card__icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
|
|
</div>
|
|
<h4 class="skill-card__name">PHP</h4>
|
|
<p class="skill-card__desc">Développement côté serveur : gestion des données, authentification, formulaires, espaces membres.</p>
|
|
</div>
|
|
<div class="skill-card" data-skill="javascript">
|
|
<div class="skill-card__icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><rect x="2" y="2" width="20" height="20" rx="2"/><path d="M8 12h8M12 8v8"/></svg>
|
|
</div>
|
|
<h4 class="skill-card__name">JavaScript</h4>
|
|
<p class="skill-card__desc">Interactions, animations et éléments dynamiques côté navigateur.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bon niveau -->
|
|
<div class="skills__category reveal">
|
|
<h3 class="skills__category-title">
|
|
<span class="skills__category-badge skills__category-badge--solid">Bon niveau</span>
|
|
</h3>
|
|
<div class="skills__cards">
|
|
<div class="skill-card" data-skill="python">
|
|
<div class="skill-card__icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>
|
|
</div>
|
|
<h4 class="skill-card__name">Python</h4>
|
|
<p class="skill-card__desc">Automatisation, traitement de données et développement d'outils utilitaires.</p>
|
|
</div>
|
|
<div class="skill-card" data-skill="sql">
|
|
<div class="skill-card__icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/></svg>
|
|
</div>
|
|
<h4 class="skill-card__name">SQL</h4>
|
|
<p class="skill-card__desc">Modélisation, création et gestion de bases de données relationnelles.</p>
|
|
</div>
|
|
<div class="skill-card" data-skill="linux">
|
|
<div class="skill-card__icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/></svg>
|
|
</div>
|
|
<h4 class="skill-card__name">Linux / VPS</h4>
|
|
<p class="skill-card__desc">Administration serveur, déploiement et configuration d'environnements d'hébergement.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Outils et méthodes -->
|
|
<div class="skills__tools reveal">
|
|
<h3 class="skills__tools-title">Outils & méthodes</h3>
|
|
<div class="skills__tools-list">
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="5" r="2"/><circle cx="5" cy="19" r="2"/><circle cx="19" cy="19" r="2"/><path d="M12 7v5M12 12l-5.5 5M12 12l5.5 5"/></svg></span>
|
|
Git
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg></span>
|
|
VS Code
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"/><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"/><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"/><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"/></svg></span>
|
|
Figma
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/></svg></span>
|
|
MySQL
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg></span>
|
|
Terminal
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/></svg></span>
|
|
Linux
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg></span>
|
|
SSH
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="8" rx="2"/><path d="M2 14h20M6 18h.01M10 18h.01"/></svg></span>
|
|
VPS
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></span>
|
|
Réseau
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="2" width="14" height="20" rx="2"/><rect x="2" y="7" width="4" height="10" rx="1"/><rect x="18" y="7" width="4" height="10" rx="1"/></svg></span>
|
|
Responsive Design
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg></span>
|
|
SEO
|
|
</span>
|
|
<span class="tool-chip">
|
|
<span class="tool-chip__icon" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg></span>
|
|
Performance Web
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================ -->
|
|
<!-- PROJETS (conditionnel) -->
|
|
<!-- ============================================ -->
|
|
<?php if ($hasProjects): ?>
|
|
<section class="section projects" id="projects" aria-labelledby="projects-title">
|
|
<div class="container">
|
|
<div class="section__header">
|
|
<span class="section__number" aria-hidden="true">03</span>
|
|
<span class="section__label">Projets</span>
|
|
</div>
|
|
<h2 id="projects-title" class="section__title">Ce que j'ai construit</h2>
|
|
<p class="section__intro">Chaque projet présenté ici a été conçu et développé entièrement par mes soins — sans thème pré-acheté, sans constructeur de page. Du code écrit sur mesure, pour un résultat solide et durable.</p>
|
|
|
|
<?php
|
|
$projectsPerStep = 3;
|
|
$projectsTotal = count($projects);
|
|
?>
|
|
<div class="projects__grid" id="projects-grid">
|
|
<?php foreach ($projects as $index => $project):
|
|
$badge = formatBadge($project['badge']);
|
|
$techs = parseTechnologies($project['technologies']);
|
|
?>
|
|
<article class="project-card reveal<?= $index >= $projectsPerStep ? ' project-card--extra' : '' ?>" tabindex="-1" aria-label="<?= htmlspecialchars($project['title'], ENT_QUOTES, 'UTF-8') ?>">
|
|
<?php if (!empty($project['image'])): ?>
|
|
<div class="project-card__image">
|
|
<img src="assets/img/projects/<?= htmlspecialchars($project['image'], ENT_QUOTES, 'UTF-8') ?>"
|
|
alt="<?= htmlspecialchars($project['title'], ENT_QUOTES, 'UTF-8') ?>"
|
|
loading="lazy" width="600" height="400">
|
|
<span class="project-card__badge <?= $badge['class'] ?>"><?= $badge['label'] ?></span>
|
|
</div>
|
|
<?php else: ?>
|
|
<div class="project-card__image project-card__image--placeholder">
|
|
<span class="project-card__badge <?= $badge['class'] ?>"><?= $badge['label'] ?></span>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="project-card__body">
|
|
<h3 class="project-card__title"><?= htmlspecialchars($project['title'], ENT_QUOTES, 'UTF-8') ?></h3>
|
|
<p class="project-card__desc"><?= htmlspecialchars($project['short_description'], ENT_QUOTES, 'UTF-8') ?></p>
|
|
<?php if (!empty($techs)): ?>
|
|
<div class="project-card__techs">
|
|
<?php foreach ($techs as $tech): ?>
|
|
<span class="tag tag--sm"><?= htmlspecialchars($tech, ENT_QUOTES, 'UTF-8') ?></span>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if (!empty($project['project_url'])): ?>
|
|
<a href="<?= htmlspecialchars($project['project_url'], ENT_QUOTES, 'UTF-8') ?>"
|
|
class="project-card__link" target="_blank" rel="noopener noreferrer">
|
|
Voir le projet
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14L21 3"/></svg>
|
|
</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</article>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
|
|
<?php if ($projectsTotal > $projectsPerStep): ?>
|
|
<div class="projects__more">
|
|
<button type="button" class="btn btn--outline btn--lg" id="projectsMore"
|
|
aria-controls="projects-grid" data-step="<?= $projectsPerStep ?>">
|
|
Voir plus de projets
|
|
<span class="projects__more-count">(<?= $projectsTotal - $projectsPerStep ?> restant<?= $projectsTotal - $projectsPerStep > 1 ? 's' : '' ?>)</span>
|
|
</button>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</section>
|
|
<?php endif; ?>
|
|
|
|
<!-- ============================================ -->
|
|
<!-- SERVICES -->
|
|
<!-- ============================================ -->
|
|
<section class="section services" id="services" aria-labelledby="services-title">
|
|
<div class="container">
|
|
<div class="section__header">
|
|
<span class="section__number" aria-hidden="true"><?= $hasProjects ? '04' : '03' ?></span>
|
|
<span class="section__label">Services</span>
|
|
</div>
|
|
<h2 id="services-title" class="section__title">Ce que je peux faire pour vous</h2>
|
|
<p class="section__intro">Que vous souhaitiez créer un site ou améliorer un existant, je commence par analyser votre situation avant de formuler la moindre proposition. Un échange d'abord, une solution adaptée ensuite — pas de devis générique.</p>
|
|
|
|
<div class="services__grid">
|
|
<article class="service-card reveal">
|
|
<div class="service-card__icon" aria-hidden="true">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
|
|
</div>
|
|
<h3 class="service-card__title">Site vitrine</h3>
|
|
<p class="service-card__desc">Un site professionnel qui représente votre activité avec précision. Design soigné, contenu structuré, conçu pour inciter vos visiteurs à vous contacter.</p>
|
|
</article>
|
|
|
|
<article class="service-card reveal">
|
|
<div class="service-card__icon" aria-hidden="true">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>
|
|
</div>
|
|
<h3 class="service-card__title">Refonte</h3>
|
|
<p class="service-card__desc">Votre site actuel est dépassé ou ne reflète plus votre activité ? Je le reprends dans son ensemble — structure, design et code — pour un résultat cohérent et performant.</p>
|
|
</article>
|
|
|
|
<article class="service-card reveal">
|
|
<div class="service-card__icon" aria-hidden="true">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>
|
|
</div>
|
|
<h3 class="service-card__title">Maintenance</h3>
|
|
<p class="service-card__desc">Corrections, mises à jour, évolutions : je m'occupe de garder votre site fonctionnel, sécurisé et à jour dans la durée.</p>
|
|
</article>
|
|
|
|
<article class="service-card reveal">
|
|
<div class="service-card__icon" aria-hidden="true">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/></svg>
|
|
</div>
|
|
<h3 class="service-card__title">UI Design</h3>
|
|
<p class="service-card__desc">Des interfaces conçues pour que vos visiteurs trouvent l'information sans effort. Navigation claire, design cohérent, rendu soigné sur tous les supports.</p>
|
|
</article>
|
|
|
|
<article class="service-card reveal">
|
|
<div class="service-card__icon" aria-hidden="true">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="4" y="4" width="16" height="16" rx="2"/><rect x="9" y="9" width="6" height="6"/><path d="M9 1v3M15 1v3M9 20v3M15 20v3M20 9h3M20 14h3M1 9h3M1 14h3"/></svg>
|
|
</div>
|
|
<h3 class="service-card__title">Back-end</h3>
|
|
<p class="service-card__desc">Développement côté serveur : formulaires, espaces membres, gestion de contenu, tableau de bord administrateur — tout ce qui structure le fonctionnement de votre site.</p>
|
|
</article>
|
|
|
|
<article class="service-card reveal">
|
|
<div class="service-card__icon" aria-hidden="true">
|
|
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></svg>
|
|
</div>
|
|
<h3 class="service-card__title">SEO</h3>
|
|
<p class="service-card__desc">Apparaître sur Google lorsqu'un client recherche votre activité. Structure technique optimisée, contenu pertinent, référencement naturel solide.</p>
|
|
</article>
|
|
</div>
|
|
|
|
<div class="services__cta">
|
|
<a href="#contact" class="btn btn--primary btn--lg">Un de ces besoins vous parle ? Je vous réponds sous 24h →</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================ -->
|
|
<!-- CONTACT -->
|
|
<!-- ============================================ -->
|
|
<section class="section contact" id="contact" aria-labelledby="contact-title">
|
|
<div class="container">
|
|
<div class="section__header">
|
|
<span class="section__number" aria-hidden="true"><?= $hasProjects ? '05' : '04' ?></span>
|
|
<span class="section__label">Contact</span>
|
|
</div>
|
|
<h2 id="contact-title" class="section__title">Un projet en tête ? Même flou, même en deux lignes.</h2>
|
|
<p class="section__intro">Vous n'avez pas besoin d'un cahier des charges complet pour me contacter. Une idée, un besoin, une question suffisent. Je lis chaque message personnellement, je réponds sous 24h, et je vous donne un retour honnête sur votre situation — sans engagement de votre part.</p>
|
|
|
|
<div class="contact__grid">
|
|
<div class="contact__info reveal">
|
|
<div class="contact__info-card">
|
|
<h3 class="contact__info-title">Parlons de votre projet</h3>
|
|
<p class="contact__info-text">
|
|
Que vous ayez un projet défini ou simplement une question, n'hésitez pas à m'écrire. Je préfère un échange direct à un formulaire bâclé.
|
|
</p>
|
|
<div class="contact__process">
|
|
<p class="contact__process-title">Comment ça se passe ensuite ?</p>
|
|
<ol class="contact__process-list">
|
|
<li>Vous m'écrivez</li>
|
|
<li>On échange 20 minutes</li>
|
|
<li>Je vous propose une approche claire</li>
|
|
</ol>
|
|
</div>
|
|
<div class="contact__email">
|
|
<span class="contact__email-icon" aria-hidden="true">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>
|
|
</span>
|
|
<a href="mailto:contact@tony-averty.dev" class="contact__email-link">contact@tony-averty.dev</a>
|
|
</div>
|
|
<div class="contact__response">
|
|
<span class="contact__response-icon" aria-hidden="true">
|
|
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
|
|
</span>
|
|
<span>Réponse sous 24 à 48h</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<form class="contact__form reveal" id="contactForm" method="post" action="api/contact.php" novalidate<?= RECAPTCHA_ENABLED ? ' data-recaptcha-site="' . htmlspecialchars(RECAPTCHA_SITE_KEY, ENT_QUOTES, 'UTF-8') . '"' : '' ?>>
|
|
<!-- Token CSRF -->
|
|
<input type="hidden" name="csrf_token" value="<?= Security::csrfToken() ?>">
|
|
|
|
<!-- Honeypot anti-spam -->
|
|
<div class="form__honeypot" aria-hidden="true">
|
|
<label for="website" aria-hidden="true">Ne pas remplir</label>
|
|
<input type="text" name="website" id="website" tabindex="-1" autocomplete="off" aria-hidden="true">
|
|
</div>
|
|
|
|
<div class="form__group">
|
|
<label for="name" class="form__label">Nom complet</label>
|
|
<input type="text" id="name" name="name" class="form__input" required minlength="2" maxlength="255" autocomplete="name" placeholder="Votre nom">
|
|
</div>
|
|
|
|
<div class="form__group">
|
|
<label for="email" class="form__label">Email</label>
|
|
<input type="email" id="email" name="email" class="form__input" required maxlength="255" autocomplete="email" placeholder="votre@email.com">
|
|
</div>
|
|
|
|
<div class="form__group">
|
|
<label for="subject" class="form__label">Sujet <span class="form__optional">(optionnel)</span></label>
|
|
<input type="text" id="subject" name="subject" class="form__input" maxlength="255" placeholder="De quoi s'agit-il ?">
|
|
</div>
|
|
|
|
<div class="form__group">
|
|
<label for="message" class="form__label">Message</label>
|
|
<textarea id="message" name="message" class="form__input form__textarea" required minlength="10" maxlength="5000" rows="5" placeholder="Décrivez votre projet, votre besoin ou votre question..."></textarea>
|
|
</div>
|
|
|
|
<div class="form__group form__group--captcha">
|
|
<label for="captcha" class="form__label">
|
|
Vérification anti-spam
|
|
<span class="form__captcha-question" aria-label="Question : <?= htmlspecialchars($captchaQuestion, ENT_QUOTES, 'UTF-8') ?>">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
|
|
<?= htmlspecialchars($captchaQuestion, ENT_QUOTES, 'UTF-8') ?>
|
|
</span>
|
|
</label>
|
|
<input type="number" id="captcha" name="captcha" class="form__input form__input--captcha"
|
|
required inputmode="numeric" min="0" max="20"
|
|
placeholder="Votre réponse" autocomplete="off">
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn--primary btn--lg form__submit" id="formSubmit">
|
|
<span class="form__submit-text">Envoyer mon message</span>
|
|
<span class="form__submit-loader" aria-hidden="true">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"/></svg>
|
|
</span>
|
|
</button>
|
|
|
|
<?php if (RECAPTCHA_ENABLED): ?>
|
|
<p class="form__recaptcha-note">
|
|
Ce site est protégé par reCAPTCHA. La
|
|
<a href="https://policies.google.com/privacy" target="_blank" rel="noopener">politique de confidentialité</a>
|
|
et les
|
|
<a href="https://policies.google.com/terms" target="_blank" rel="noopener">conditions d'utilisation</a>
|
|
de Google s'appliquent.
|
|
</p>
|
|
<?php endif; ?>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</main>
|
|
|
|
<?php require_once __DIR__ . '/includes/footer.php'; ?>
|