173 lines
9.1 KiB
PHP
173 lines
9.1 KiB
PHP
<!-- Footer -->
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<div class="footer__inner">
|
|
<div class="footer__brand">
|
|
<span class="footer__logo">Tony<span class="navbar__logo-accent">.</span></span>
|
|
<p class="footer__tagline">Développeur web freelance</p>
|
|
<p class="footer__tagline footer__tagline--sub">Fondateur de CodeBzh · Disponible pour nouveaux projets</p>
|
|
</div>
|
|
<div class="footer__links">
|
|
<a href="#about">À propos</a>
|
|
<a href="#skills">Compétences</a>
|
|
<a href="#services">Services</a>
|
|
<a href="#contact">Contact</a>
|
|
<a href="/legal.php">Mentions légales</a>
|
|
</div>
|
|
<p class="footer__copy">© <?= date('Y') ?> Tony AVERTY — <a href="/legal.php" style="color:inherit;opacity:.6;text-decoration:none;">Mentions légales & RGPD</a></p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Curseur personnalisé -->
|
|
<div class="cursor-dot" id="cursorDot" aria-hidden="true"></div>
|
|
<div class="cursor-ring" id="cursorRing" aria-hidden="true"></div>
|
|
|
|
<!-- Dev Panel (réglages) -->
|
|
<button class="devpanel-trigger" id="devPanelTrigger" aria-label="Réglages" aria-expanded="false" aria-controls="devPanel">
|
|
<svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<circle cx="12" cy="12" r="3"/>
|
|
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/>
|
|
</svg>
|
|
</button>
|
|
|
|
<div class="devpanel" id="devPanel" role="dialog" aria-label="Réglages du site" aria-hidden="true">
|
|
<div class="devpanel__header">
|
|
<span class="devpanel__title">
|
|
<span class="devpanel__title-dot devpanel__title-dot--r"></span>
|
|
<span class="devpanel__title-dot devpanel__title-dot--y"></span>
|
|
<span class="devpanel__title-dot devpanel__title-dot--g"></span>
|
|
<span class="devpanel__title-label">settings.json</span>
|
|
</span>
|
|
<div class="devpanel__fps-live" id="devFpsLive">
|
|
<span class="devpanel__fps-dot" id="devFpsDot"></span>
|
|
<span id="devFpsVal">-- fps</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="devpanel__body">
|
|
|
|
<!-- Thème -->
|
|
<div class="devpanel__section">
|
|
<span class="devpanel__section-label">// apparence</span>
|
|
<div class="devpanel__row">
|
|
<span class="devpanel__row-label">Thème</span>
|
|
<div class="devpanel__seg" id="devThemeSeg">
|
|
<button class="devpanel__seg-btn" data-theme-val="light">
|
|
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
|
|
Clair
|
|
</button>
|
|
<button class="devpanel__seg-btn" data-theme-val="dark">
|
|
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
|
|
Sombre
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Expérience -->
|
|
<div class="devpanel__section">
|
|
<span class="devpanel__section-label">// expérience</span>
|
|
<div class="devpanel__row">
|
|
<span class="devpanel__row-label">Curseur custom</span>
|
|
<label class="devpanel__toggle">
|
|
<input type="checkbox" id="devToggleCursor" checked>
|
|
<span class="devpanel__toggle-track"><span class="devpanel__toggle-thumb"></span></span>
|
|
</label>
|
|
</div>
|
|
<div class="devpanel__row">
|
|
<span class="devpanel__row-label">Animations</span>
|
|
<label class="devpanel__toggle">
|
|
<input type="checkbox" id="devToggleAnimations" checked>
|
|
<span class="devpanel__toggle-track"><span class="devpanel__toggle-thumb"></span></span>
|
|
</label>
|
|
</div>
|
|
<div class="devpanel__row">
|
|
<span class="devpanel__row-label">Scroll lisse</span>
|
|
<label class="devpanel__toggle">
|
|
<input type="checkbox" id="devToggleSmoothScroll" checked>
|
|
<span class="devpanel__toggle-track"><span class="devpanel__toggle-thumb"></span></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Performance -->
|
|
<div class="devpanel__section">
|
|
<span class="devpanel__section-label">// performance</span>
|
|
<div class="devpanel__row">
|
|
<span class="devpanel__row-label">FPS cible</span>
|
|
<div class="devpanel__seg" id="devFpsSeg">
|
|
<button class="devpanel__seg-btn" data-fps-val="15">15</button>
|
|
<button class="devpanel__seg-btn" data-fps-val="30">30</button>
|
|
<button class="devpanel__seg-btn is-active" data-fps-val="60">60</button>
|
|
</div>
|
|
</div>
|
|
<div class="devpanel__fps-bar-wrap">
|
|
<div class="devpanel__fps-bar" id="devFpsBar"></div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="devpanel__footer">
|
|
<span class="devpanel__footer-line">tony-averty.dev · v1.0</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Toast notification -->
|
|
<div class="toast" id="toast" role="alert" aria-live="polite" aria-atomic="true">
|
|
<span class="toast__message" id="toastMessage"></span>
|
|
<button class="toast__close" id="toastClose" type="button" aria-label="Fermer">×</button>
|
|
</div>
|
|
|
|
<?php if (defined('RECAPTCHA_ENABLED') && RECAPTCHA_ENABLED): ?>
|
|
<!-- Google reCAPTCHA v3 (invisible, anti-bot) -->
|
|
<script src="https://www.google.com/recaptcha/api.js?render=<?= urlencode(RECAPTCHA_SITE_KEY) ?>" nonce="<?= Security::cspNonce() ?>" async defer></script>
|
|
<?php endif; ?>
|
|
<script src="assets/js/main.js" nonce="<?= Security::cspNonce() ?>"></script>
|
|
<script nonce="<?= Security::cspNonce() ?>">
|
|
// ── Tracking maison — sans cookies, RGPD-friendly ────────
|
|
(function() {
|
|
// Générer / récupérer un session ID en localStorage (pas de cookie)
|
|
var sessionId = sessionStorage.getItem('_tsid');
|
|
if (!sessionId) {
|
|
sessionId = Math.random().toString(36).slice(2) + Date.now().toString(36);
|
|
sessionStorage.setItem('_tsid', sessionId);
|
|
}
|
|
|
|
// Détecter le type d'appareil
|
|
var device = 'desktop';
|
|
if (/Mobi|Android|iPhone|iPod/i.test(navigator.userAgent)) device = 'mobile';
|
|
else if (/Tablet|iPad/i.test(navigator.userAgent)) device = 'tablet';
|
|
|
|
var startTime = Date.now();
|
|
|
|
function track(action, extra) {
|
|
var payload = Object.assign({
|
|
action: action,
|
|
session_id: sessionId,
|
|
page: location.pathname,
|
|
referrer: document.referrer || null,
|
|
device: device,
|
|
}, extra || {});
|
|
navigator.sendBeacon('/api/track.php', JSON.stringify(payload));
|
|
}
|
|
|
|
// Tracker la visite au chargement
|
|
track('visit');
|
|
|
|
// Tracker la durée en quittant la page
|
|
window.addEventListener('visibilitychange', function() {
|
|
if (document.visibilityState === 'hidden') {
|
|
track('duration', { duration: Math.round((Date.now() - startTime) / 1000) });
|
|
}
|
|
});
|
|
|
|
// Exposer la fonction pour les clics projets
|
|
window.trackProjectClick = function(projectId) {
|
|
track('project_click', { project_id: projectId });
|
|
};
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|