Repository navigation
Expand file tree
/
Copy pathcv.html
More file actions
88 lines (81 loc) · 3.89 KB
/
Copy pathcv.html
File metadata and controls
88 lines (81 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CV · Andrea Faveri</title>
<meta name="description" content="Andrea Faveri’s CV: computer science student, software development and cybersecurity.">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Manrope:wght@300;400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css?v=20261029b">
</head>
<body>
<header class="topbar">
<a class="topbar-back" href="index.html#about">← Andrea Faveri</a>
</header>
<main class="cv">
<div class="cv-head">
<div>
<p class="trace-label">CV · 2026</p>
<h1 class="soon-title">Curriculum Vitae</h1>
</div>
<a class="cv-dl" href="assets/Andrea_Faveri_CV_2026.pdf?v=2026-10-24" download>Download PDF ↓</a>
</div>
<!-- An image, not an embedded PDF: no viewer chrome, and phones show it too. Re-render with pdftoppm when the PDF changes, and bump ?v= on both links so Cloudflare drops its cached copy -->
<img class="cv-page" src="assets/cv-2026.png?v=2026-10-24" width="1818" height="2573" alt="Andrea Faveri’s CV, one page. The same content is in the PDF download.">
</main>
<footer class="cc-foot">
<a class="cc-home" href="index.html"><span class="cc-home-arrow" aria-hidden="true">←</span><span>Back to home</span></a>
<ul class="cc-foot-links" aria-label="Contacts">
<li><a href="mailto:andreafaveri@rxsas.it">andreafaveri@rxsas.it</a></li>
<li><a href="https://github.com/RexSAS" target="_blank" rel="noopener">GitHub</a></li>
<li><a href="https://instagram.com/rex_sas" target="_blank" rel="noopener">Instagram</a></li>
<li><button type="button" data-copy="rexsas" data-copied="copied" title="Copy Discord username" aria-label="Discord: copy username rexsas">Discord</button></li>
<li><a href="https://t.me/Rex_SAS" target="_blank" rel="noopener">Telegram</a></li>
</ul>
</footer>
<script>
/* Follows the language chosen on the main page */
var discord = document.querySelector('[data-copy]');
try {
if (localStorage.getItem('lang') === 'it') {
document.documentElement.lang = 'it';
document.querySelector('.cv-dl').textContent = 'Scarica PDF ↓';
document.querySelector('.cc-home span:last-child').textContent = 'Torna alla home';
discord.title = 'Copia il nome utente Discord';
discord.setAttribute('aria-label', 'Discord: copia il nome utente rexsas');
discord.dataset.copied = 'copiato';
}
} catch (e) {}
/* Firefox opens PDFs in its viewer even with `download`; a generic blob always gets saved.
If the fetch fails the plain link still works */
var dl = document.querySelector('.cv-dl');
dl.addEventListener('click', function (e) {
if (!window.fetch || !URL.createObjectURL) return;
e.preventDefault();
fetch(dl.href).then(function (r) {
if (!r.ok) throw r;
return r.blob();
}).then(function (b) {
var a = document.createElement('a');
a.href = URL.createObjectURL(new Blob([b], { type: 'application/octet-stream' }));
a.download = 'Andrea_Faveri_CV_2026.pdf';
document.body.appendChild(a);
a.click();
a.remove();
setTimeout(function () { URL.revokeObjectURL(a.href); }, 1000);
}).catch(function () { location.href = dl.href; });
});
/* Footer: Discord has no profile link, so the button copies the username */
discord.addEventListener('click', function () {
if (!navigator.clipboard) return;
navigator.clipboard.writeText(discord.dataset.copy).then(function () {
discord.classList.add('copied');
setTimeout(function () { discord.classList.remove('copied'); }, 1600);
});
});
</script>
</body>
</html>