Skip to content

Commit 939cb4c

Browse files
committed
update ui
Signed-off-by: r3drun3 <simone.ragonesi@protonmail.com>
1 parent 3165f61 commit 939cb4c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/layouts/Base.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,15 @@ import Footer from '../components/Footer.astro';
8383
max: 15,
8484
speed: 400,
8585
glare: true,
86-
'max-glare': 0.3
86+
'max-glare': 0.3,
87+
gyroscope: false
8788
});
8889
}
8990

9091
// Initialize particles background
91-
if (window.tsParticles) {
92-
tsParticles.load('tsparticles', {
92+
const particlesContainer = document.getElementById('tsparticles');
93+
if (window.tsParticles && particlesContainer) {
94+
tsParticles.load(particlesContainer, {
9395
fpsLimit: 60,
9496
particles: {
9597
number: { value: 50 },

0 commit comments

Comments
 (0)