diff --git a/index.html b/index.html index 2fd8a8c..fe6e11d 100644 --- a/index.html +++ b/index.html @@ -2490,7 +2490,7 @@ z-index: 100; display: flex; align-items: center; - padding: 0 48px + padding: 0 80px 0 48px } .nav-logo { @@ -2943,7 +2943,7 @@ background: var(--progress-color, #fff); } [data-theme="cyberpunk"] #read-progress { background: #00f5ff; box-shadow: 0 0 8px #00f5ff; } - [data-theme="bd"] #read-progress { background: #FFE033; } + [data-theme="bd"] #read-progress { background: #0055cc; } [data-theme="itpro"] #read-progress { background: #1a56db; } [data-theme="cgi"] #read-progress { background: linear-gradient(to right, #E31937, #A82465, #5236AB); @@ -3407,21 +3407,7 @@ // TÉLÉCHARGEMENT PDF // ══════════════════════════════════════════════ function downloadCV() { - const script = document.createElement('script'); - script.src = 'https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js'; - script.onload = () => { - const nom = document.querySelector('.hero-name')?.textContent?.trim().replace(/\s+/g, '_') || 'CV'; - const opt = { - margin: [10, 10, 10, 10], - filename: `CV_${nom}.pdf`, - image: { type: 'jpeg', quality: 0.95 }, - html2canvas: { scale: 2, useCORS: true, logging: false }, - jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }, - pagebreak: { mode: ['avoid-all', 'css'] } - }; - html2pdf().set(opt).from(document.getElementById('app')).save(); - }; - document.head.appendChild(script); + window.print(); }