revert: tthe random bg stuff

This commit is contained in:
2024-05-31 17:52:04 +02:00
parent 707f55989a
commit 2a5c712929
2 changed files with 2 additions and 3 deletions

View File

@@ -5,10 +5,9 @@ import { Image } from 'astro:assets'
import ImageAuthor from '@/components/ImageAuthor.astro'
import { FaGithub, FaBlog, FaDiscord, FaMastodon, FaTwitter } from 'react-icons/fa'
import { SiOsu } from 'react-icons/si'
import Background from '../backgrounds.json'
const fetchBackgrond = await fetch(`${Astro.url}/backgrounds.json`).then(async res => await res.json())
const randomBackground = fetchBackgrond[Math.floor(Math.random() * fetchBackgrond.length)]
const randomBackground = Background[Math.floor(Math.random() * Background.length)]
---
<!doctype html>