fix: nav padding-right to avoid burger overlap, BD progress bar blue, PDF via window.print()
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d95e6aa955
commit
ec6c5aa427
1 changed files with 3 additions and 17 deletions
20
index.html
20
index.html
|
|
@ -2490,7 +2490,7 @@
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 48px
|
padding: 0 80px 0 48px
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-logo {
|
.nav-logo {
|
||||||
|
|
@ -2943,7 +2943,7 @@
|
||||||
background: var(--progress-color, #fff);
|
background: var(--progress-color, #fff);
|
||||||
}
|
}
|
||||||
[data-theme="cyberpunk"] #read-progress { background: #00f5ff; box-shadow: 0 0 8px #00f5ff; }
|
[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="itpro"] #read-progress { background: #1a56db; }
|
||||||
[data-theme="cgi"] #read-progress {
|
[data-theme="cgi"] #read-progress {
|
||||||
background: linear-gradient(to right, #E31937, #A82465, #5236AB);
|
background: linear-gradient(to right, #E31937, #A82465, #5236AB);
|
||||||
|
|
@ -3407,21 +3407,7 @@
|
||||||
// TÉLÉCHARGEMENT PDF
|
// TÉLÉCHARGEMENT PDF
|
||||||
// ══════════════════════════════════════════════
|
// ══════════════════════════════════════════════
|
||||||
function downloadCV() {
|
function downloadCV() {
|
||||||
const script = document.createElement('script');
|
window.print();
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue