Compare commits
46 Commits
410d15d46a
...
main
Author | SHA1 | Date | |
---|---|---|---|
9ed9135208 | |||
fafd7139e4 | |||
0cab633f03 | |||
ef84eec124 | |||
bbeaf46b27 | |||
1462461d70 | |||
598193d364 | |||
0a3332c9fe | |||
9f3e554624 | |||
3c5ce5c07a | |||
3d1943791e | |||
d73e027641 | |||
3c36906d86 | |||
8a18029a0b | |||
3132b4f325 | |||
cd7cfbbb7c | |||
cd5330b92c | |||
ed4b9a9a56 | |||
11c0688f6c | |||
f9a9dfc653 | |||
8c3b3e501e | |||
55467968bd | |||
5a92fd84ce | |||
161c033491 | |||
662cda7ac4 | |||
c7fb1a68cd | |||
4229a08c50 | |||
4ddf0e4c6a | |||
b7f3ce6899 | |||
2c13c79d10 | |||
e2950995fb | |||
ad837910a3 | |||
59bdd9b784 | |||
516a944d22 | |||
ab23d9e344 | |||
b47c9ad995 | |||
a4ba8c0c86 | |||
ee3d06d939 | |||
5f772b1f78 | |||
0f1535f0ec | |||
d777587b29 | |||
58626fec3a | |||
52786bd8d2 | |||
8000504c04 | |||
63e00968e0 | |||
3144aca6e3 |
1351
assets/css/style.css
Before Width: | Height: | Size: 2.4 MiB After Width: | Height: | Size: 154 KiB |
BIN
assets/img/hero-bg-2k.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 509 KiB |
BIN
assets/img/me2-low.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
assets/img/me2.jpg
Normal file
After Width: | Height: | Size: 802 KiB |
BIN
assets/img/portfolio/aoc.jpeg
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
assets/img/portfolio/esim.jpg
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
assets/img/portfolio/flyingballs.mp4
Normal file
BIN
assets/img/portfolio/maze-solver.mp4
Normal file
BIN
assets/img/portfolio/maze-solver.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
assets/img/portfolio/paper-mosaik.mp4
Normal file
BIN
assets/img/portfolio/paper-mosaik.png
Normal file
After Width: | Height: | Size: 425 KiB |
Before Width: | Height: | Size: 165 KiB |
Before Width: | Height: | Size: 189 KiB |
Before Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 180 KiB |
Before Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 172 KiB |
Before Width: | Height: | Size: 109 KiB |
Before Width: | Height: | Size: 160 KiB |
Before Width: | Height: | Size: 160 KiB |
BIN
assets/img/portfolio/stickfosh-og.mp4
Normal file
BIN
assets/img/portfolio/stickfosh.mp4
Normal file
@ -161,6 +161,19 @@
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
on("click", "#resume-toggle", e => {
|
||||||
|
console.log("sup")
|
||||||
|
const sec = select("#resume-section");
|
||||||
|
const btn = e.target;
|
||||||
|
sec.classList.toggle("expanded");
|
||||||
|
select(".resume-fade").classList.toggle("expanded");
|
||||||
|
if (sec.classList.contains("expanded"))
|
||||||
|
btn.innerHTML = 'Hide <i class="bi bi-chevron-up"></i>';
|
||||||
|
else
|
||||||
|
btn.innerHTML = 'Expand <i class="bi bi-chevron-down"></i>';
|
||||||
|
AOS.refresh();
|
||||||
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scroll with ofset on page load with hash links in the url
|
* Scroll with ofset on page load with hash links in the url
|
||||||
*/
|
*/
|
||||||
@ -308,6 +321,11 @@
|
|||||||
if (localStorage.getItem("theme") == "light") {
|
if (localStorage.getItem("theme") == "light") {
|
||||||
toggleDarkMode();
|
toggleDarkMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set age correctly (cuz sbatti farlo ogni
|
||||||
|
// anno, toi meme tu sais)
|
||||||
|
let age_span = document.querySelector("#age");
|
||||||
|
age_span.textContent = calculateAge("1999-10-15");
|
||||||
})();
|
})();
|
||||||
|
|
||||||
function toggleDarkMode() {
|
function toggleDarkMode() {
|
||||||
@ -321,3 +339,17 @@ function toggleDarkMode() {
|
|||||||
document.documentElement.style.setProperty("color-scheme", theme);
|
document.documentElement.style.setProperty("color-scheme", theme);
|
||||||
localStorage.setItem("theme", theme);
|
localStorage.setItem("theme", theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function calculateAge(birthDate) {
|
||||||
|
const today = new Date();
|
||||||
|
const birth = new Date(birthDate);
|
||||||
|
let age = today.getFullYear() - birth.getFullYear();
|
||||||
|
const monthDifference = today.getMonth() - birth.getMonth();
|
||||||
|
|
||||||
|
// Check if the birthday has not occurred yet this year
|
||||||
|
if (monthDifference < 0 || (monthDifference === 0 && today.getDate() < birth.getDate())) {
|
||||||
|
age--;
|
||||||
|
}
|
||||||
|
|
||||||
|
return age;
|
||||||
|
}
|
||||||
|