add more bgs

This commit is contained in:
ld3zian 2025-01-31 22:26:27 -07:00
parent a4641ea675
commit 997c817b4f
3 changed files with 28 additions and 4 deletions

View file

@ -11,7 +11,7 @@ interface BackgroundImage {
export const backgrounds: BackgroundImage[] = [
{
url: '/citali.webp',
url: "/citali.webp",
title: "Citlali (Genshin Impact)",
artist: "ryrmcher",
source: "https://danbooru.donmai.us/posts/6148600",
@ -42,7 +42,7 @@ export const backgrounds: BackgroundImage[] = [
url: "/original.webp",
title: "読書",
artist: "kamepan44231 - かめぱすた",
source: "https://danbooru.donmai.us/posts/8743208?",
source: "https://danbooru.donmai.us/posts/8743208",
socials: [
{
name: "Twitter",
@ -50,6 +50,30 @@ export const backgrounds: BackgroundImage[] = [
},
],
},
{
url: "/numi.webp",
title: "Original",
artist: "Nnnoira",
source: "https://danbooru.donmai.us/posts/8571660",
socials: [
{
name: "Twitter",
link: "https://x.com/Nnnoira",
},
],
},
{
url: "/shylily.webp",
title: "Original",
artist: "greatodoggo",
source: "https://www.pixiv.net/en/artworks/124222053",
socials: [
{
name: "Twitter",
link: "https://twitter.com/greatodoggo",
},
],
},
// Add more backgrounds here!
// {
// url: 'your-image-url',
@ -66,7 +90,7 @@ export function getRandomBackground(): BackgroundImage {
if (backgrounds.length === 0) {
// Fallback background if array is empty
return {
url: "https://cdn.donmai.us/original/97/c8/__citlali_genshin_impact_drawn_by_ryrmcher__97c810ff6e992f1789f93e2edbb683a3.jpg",
url: "/citali.webp",
title: "Citlali (Genshin Impact)",
artist: "ryrmcher",
source: "https://danbooru.donmai.us/posts/6148600",
@ -77,7 +101,7 @@ export function getRandomBackground(): BackgroundImage {
}
export function preloadBackgrounds() {
backgrounds.forEach(bg => {
backgrounds.forEach((bg) => {
const img = new Image();
img.src = bg.url;
});