Skip to content

Commit

Permalink
Update backgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Haaxor1689 committed Oct 4, 2024
1 parent dce9d65 commit da6c9f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file added public/anniversary.webp
Binary file not shown.
5 changes: 2 additions & 3 deletions src/app/PageBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@

import { useEffect, useState } from 'react';

const images = ['gnarlmoon', 'anomalus', 'druid'];
const images = ['anniversary', 'gnarlmoon', 'anomalus', 'druid'];

const PageBackground = () => {
const [image, setImage] = useState(0);

useEffect(() => {
if (typeof window === 'undefined') return;
const interval = setInterval(() => {
const newLocal = Math.floor(Math.random() * images.length);
setImage(newLocal);
setImage(Math.floor(Math.random() * images.length));
}, 30000);
return () => clearInterval(interval);
}, [image]);
Expand Down

0 comments on commit da6c9f3

Please sign in to comment.