diff --git a/website3.0/components/AuthButton.js b/website3.0/components/AuthButton.js
index ffb8191b..ae0c425d 100644
--- a/website3.0/components/AuthButton.js
+++ b/website3.0/components/AuthButton.js
@@ -74,7 +74,7 @@ if (session.status === 'unauthenticated' && !isLogin) {
// Function to fetch user data from local storage and server if logged in
async function fetchData1() {
setIsLogin(true);
- let session = await JSON.parse(localStorage.getItem('finalUser'));
+ let session = await (() => { try { return (JSON.parse(localStorage.getItem('finalUser') ?? "null") ?? null) } catch { return null } })();
// Fetch or create account on the server
let response = await fetch("/api/createaccount", {
diff --git a/website3.0/components/ParticleBackground.js b/website3.0/components/ParticleBackground.js
index 3e7342d4..d94524ae 100644
--- a/website3.0/components/ParticleBackground.js
+++ b/website3.0/components/ParticleBackground.js
@@ -12,122 +12,4 @@ const ParticlesComponent = (props) => {
// Load slim configuration for particles engine
await loadSlim(engine);
}).then(() => {
- // Set initialization flag to true once particles engine is initialized
- setInit(true);
- });
- }, []);
-
- // Function to handle when particles are loaded into the container
- const particlesLoaded = (container) => {
- };
-
- // Memoized options for particles configuration
- const options = useMemo(
- () => ({
- // Limit frames per second for particle rendering
- fpsLimit: 120,
- fullScreen:{
- enable:false,
- zindex:0
- },
- interactivity: {
- events: {
- onClick: {
- enable: true,
- // Interaction mode on click
- mode: "repulse",
- },
- onHover: {
- enable: true,
- // Interaction mode on hover
- mode: "repulse",
- },
- },
- modes: {
- repulse: {
- // Distance of repulsion effect
- distance: 200,
- // Duration of repulsion effect
- duration: 0.4,
- },
- grab: {
- // Distance of grab interaction
- distance: 150,
- },
- },
- },
- particles: {
- number: {
- // Number of particles
- value: 100,
- density: {
- enable: true,
- // Area within which particles are density distributed
- value_area: 800,
- },
- },
- color: {
- // Particle color
- value: "#FFFFFF",
- },
- shape: {
- // Particle shape type
- type: "triangle",
- stroke: {
- width: 0,
- // Stroke color
- color: "#000000",
- },
- polygon: {
- // Number of sides for polygon shape
- nb_sides: 12,
- },
- },
- links: {
- // Color of links between particles
- color: "#FFFFFF",
- // Distance of links between particles
- distance: 180,
- // Enable linking between particles
- enable: true,
- // Opacity of links
- opacity: 0.8,
- // Width of links
- width: 1,
- },
- move: {
- // Movement direction of particles
- direction: "none",
- // Enable particle movement
- enable: true,
- outModes: {
- // Out mode for particles when they move out of canvas
- default: "bounce",
- },
- // Random movement direction
- random: true,
- // Speed of particle movement
- speed: 5,
- // Allow straight particle movement
- straight: false,
- },
- opacity: {
- // Opacity value of particles
- value: 0.7,
- },
- size: {
- // Size range of particles
- value: { min: 1, max: 3 },
- },
- },
- // Detect retina displays
- detectRetina: true,
- }),
- []
- );
-
- // Render Particles component with specified ID, initialization callback, and options
- return