Skip to content

Commit 41c4140

Browse files
fix: 🥚 Update the snow easter egg
1 parent 2c3c47a commit 41c4140

File tree

3 files changed

+42
-35
lines changed

3 files changed

+42
-35
lines changed

public/js/extras/snow.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
let skew = 1;
2-
31
function randomInRange(min, max) {
42
return Math.random() * (max - min) + min;
53
}
64

75
(function frame() {
86
const ticks = Math.max(200, 500 * Math.random());
97

10-
skew = Math.max(0.8, skew - 0.001);
11-
128
confetti({
139
particleCount: 1,
1410
startVelocity: 0,
1511
ticks: ticks,
1612
origin: {
1713
x: Math.random(),
18-
y: Math.random() * skew - 0.2,
14+
y: Math.random(),
1915
},
2016
colors: ["#ffffff"],
2117
shapes: ["emoji"],
@@ -25,8 +21,10 @@ function randomInRange(min, max) {
2521
},
2622
},
2723
gravity: randomInRange(0.4, 0.6),
28-
scalar: randomInRange(0.4, 1),
24+
scalar: randomInRange(0.4, 1.2),
2925
});
3026

31-
requestAnimationFrame(frame);
32-
})();
27+
setTimeout(() => {
28+
requestAnimationFrame(frame);
29+
}, 10);
30+
})();

public/js/minified/extras/snow.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

views/content/links.ejs

+35-26
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,32 @@
1212
</div>
1313
</div>
1414
</section>
15+
<section class="mx-auto mt-10 max-w-4xl text-left">
16+
<h3 class="mb-4 text-2xl font-bold flex items-center">
17+
<i class="fas fa-code mr-3 text-gray-300"></i>
18+
Desarrollo
19+
</h3>
20+
<div class="space-y-4">
21+
<a href="https://github.com/AlexDeveloperUwU" class="block rounded-lg bg-gray-800 p-6 hover:bg-blue-700">
22+
<div class="flex items-center">
23+
<i class="fab fa-github mr-3 text-gray-300"></i>
24+
<div>
25+
<p class="font-bold text-gray-100">GitHub</p>
26+
<p class="text-gray-300 font-agrandir">Aquí podrás encontrar mi perfil de GitHub, plataforma donde podrás encontrar los proyectos que tenga open source.</p>
27+
</div>
28+
</div>
29+
</a>
30+
<a href="https://wakatime.com/@AlexDevUwU" class="block rounded-lg bg-gray-800 p-6 hover:bg-blue-700">
31+
<div class="flex items-center">
32+
<i class="far fa-clock mr-3 text-gray-300"></i>
33+
<div>
34+
<p class="font-bold text-gray-100">WakaTime</p>
35+
<p class="text-gray-300 font-agrandir">Aquí podrás ver mis estadísticas de programación, entre ellas lenguajes en los que trabajo, cuanto tiempo y cosas como esa!</p>
36+
</div>
37+
</div>
38+
</a>
39+
</div>
40+
</section>
1541
<section class="mx-auto mt-10 max-w-4xl text-left">
1642
<h3 class="mb-4 text-2xl font-bold flex items-center">
1743
<i class="fas fa-share-alt mr-3 text-gray-300"></i>
@@ -36,6 +62,15 @@
3662
</div>
3763
</div>
3864
</a>
65+
<a href="https://instagram.com/alexdevuwu" class="block rounded-lg bg-gray-800 p-6 hover:bg-blue-700">
66+
<div class="flex items-center">
67+
<i class="fab fa-instagram mr-3 text-gray-300"></i>
68+
<div>
69+
<p class="font-bold text-gray-100">Instagram</p>
70+
<p class="text-gray-300 font-agrandir">Casi no uso Instagram, pero suele ser para subir avisos de directo, plannings y cositas similares!</p>
71+
</div>
72+
</div>
73+
</a>
3974
</div>
4075
</section>
4176
<section class="mx-auto mt-10 max-w-4xl text-left">
@@ -73,31 +108,5 @@
73108
</a>
74109
</div>
75110
</section>
76-
<section class="mx-auto mt-10 max-w-4xl text-left">
77-
<h3 class="mb-4 text-2xl font-bold flex items-center">
78-
<i class="fas fa-code mr-3 text-gray-300"></i>
79-
Desarrollo
80-
</h3>
81-
<div class="space-y-4">
82-
<a href="https://github.com/AlexDeveloperUwU" class="block rounded-lg bg-gray-800 p-6 hover:bg-blue-700">
83-
<div class="flex items-center">
84-
<i class="fab fa-github mr-3 text-gray-300"></i>
85-
<div>
86-
<p class="font-bold text-gray-100">GitHub</p>
87-
<p class="text-gray-300 font-agrandir">Aquí podrás encontrar mi perfil de GitHub, plataforma donde podrás encontrar los proyectos que tenga open source.</p>
88-
</div>
89-
</div>
90-
</a>
91-
<a href="https://wakatime.com/@AlexDevUwU" class="block rounded-lg bg-gray-800 p-6 hover:bg-blue-700">
92-
<div class="flex items-center">
93-
<i class="far fa-clock mr-3 text-gray-300"></i>
94-
<div>
95-
<p class="font-bold text-gray-100">WakaTime</p>
96-
<p class="text-gray-300 font-agrandir">Aquí podrás ver mis estadísticas de programación, entre ellas lenguajes en los que trabajo, cuanto tiempo y cosas como esa!</p>
97-
</div>
98-
</div>
99-
</a>
100-
</div>
101-
</section>
102111
<%- include(`../scripts.ejs`) %>
103112
</main>

0 commit comments

Comments
 (0)