feat: replace hero badge with welcome message
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1e0f77d88b
commit
4b6b90c3f0
1 changed files with 1 additions and 16 deletions
17
index.html
17
index.html
|
|
@ -2498,13 +2498,12 @@
|
|||
const id = d.identity;
|
||||
|
||||
// ── HERO ──
|
||||
const heroId = `${esc(id.entreprise)} // ${esc(id.titre)} // ${esc((id.contact && id.contact.site) || '')}`;
|
||||
const heroHTML = `
|
||||
<header class="hero">
|
||||
<div class="hero-bg"></div>
|
||||
<div class="corner-bracket tl"></div><div class="corner-bracket tr"></div>
|
||||
<div class="corner-bracket bl"></div><div class="corner-bracket br"></div>
|
||||
<span class="hero-badge" id="heroId">${heroId}</span>
|
||||
<span class="hero-badge">Bienvenue sur le CV en ligne de</span>
|
||||
<h1 class="hero-name">
|
||||
${esc(id.nom)}<span class="hero-name-line2">${esc(id.prenom)}</span>
|
||||
</h1>
|
||||
|
|
@ -2692,20 +2691,6 @@
|
|||
}, { threshold: 0.08 });
|
||||
document.querySelectorAll('section').forEach(s => obs.observe(s));
|
||||
|
||||
// Typing effect hero badge
|
||||
const badge = document.getElementById('heroId');
|
||||
if (badge) {
|
||||
const txt = badge.textContent;
|
||||
badge.textContent = '';
|
||||
let i = 0;
|
||||
setTimeout(() => {
|
||||
const t = setInterval(() => {
|
||||
badge.textContent = txt.slice(0, i++);
|
||||
if (i > txt.length) clearInterval(t);
|
||||
}, 14);
|
||||
}, 500);
|
||||
}
|
||||
|
||||
// Cacher le loading
|
||||
const ld = document.getElementById('loading');
|
||||
ld.style.opacity = '0';
|
||||
|
|
|
|||
Loading…
Reference in a new issue