mirror of
https://github.com/SrIzan10/mainwebsite.git
synced 2026-06-06 00:56:58 +00:00
revert: tthe random bg stuff
This commit is contained in:
@@ -5,10 +5,9 @@ import { Image } from 'astro:assets'
|
|||||||
import ImageAuthor from '@/components/ImageAuthor.astro'
|
import ImageAuthor from '@/components/ImageAuthor.astro'
|
||||||
import { FaGithub, FaBlog, FaDiscord, FaMastodon, FaTwitter } from 'react-icons/fa'
|
import { FaGithub, FaBlog, FaDiscord, FaMastodon, FaTwitter } from 'react-icons/fa'
|
||||||
import { SiOsu } from 'react-icons/si'
|
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 = Background[Math.floor(Math.random() * Background.length)]
|
||||||
|
|
||||||
const randomBackground = fetchBackgrond[Math.floor(Math.random() * fetchBackgrond.length)]
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|||||||
Reference in New Issue
Block a user