add new background

This commit is contained in:
ld3zian 2025-01-26 14:09:43 -07:00
parent cab117689a
commit 4d5aa3bc81

View file

@ -11,32 +11,44 @@ interface BackgroundImage {
export const backgrounds: BackgroundImage[] = [ export const backgrounds: BackgroundImage[] = [
{ {
url: 'https://cdn.donmai.us/original/97/c8/__citlali_genshin_impact_drawn_by_ryrmcher__97c810ff6e992f1789f93e2edbb683a3.jpg', url: "https://cdn.donmai.us/original/97/c8/__citlali_genshin_impact_drawn_by_ryrmcher__97c810ff6e992f1789f93e2edbb683a3.jpg",
title: 'Citlali (Genshin Impact)', title: "Citlali (Genshin Impact)",
artist: 'ryrmcher', artist: "ryrmcher",
source: 'https://danbooru.donmai.us/posts/6148600', source: "https://danbooru.donmai.us/posts/6148600",
socials: [ socials: [
{ {
name: "Twitter Post", name: "Twitter Post",
link: "https://x.com/ryrmcher/status/1878812100866560258" link: "https://x.com/ryrmcher/status/1878812100866560258",
}, },
{ {
name: "Artist's Twitter", name: "Artist's Twitter",
link: "https://x.com/ryrmcher" link: "https://x.com/ryrmcher",
} },
] ],
}, },
{ {
url: 'https://cdn.donmai.us/original/b9/f3/__original_drawn_by_ayanagi0319__b9f35c4a2460a2b9b3755a254f32624a.png', url: "https://cdn.donmai.us/original/b9/f3/__original_drawn_by_ayanagi0319__b9f35c4a2460a2b9b3755a254f32624a.png",
title: 'ひとりぼっちのあさ', title: "ひとりぼっちのあさ",
artist: 'ayanagi0319', artist: "ayanagi0319",
source: 'https://danbooru.donmai.us/posts/6900673', source: "https://danbooru.donmai.us/posts/6900673",
socials: [ socials: [
{ {
name: "Twitter", name: "Twitter",
link: "https://twitter.com/ayanagi0319" link: "https://twitter.com/ayanagi0319",
} },
] ],
},
{
url: "https://cdn.donmai.us/original/08/c3/__patchouli_knowledge_touhou_drawn_by_kame_kamepan44231__08c3d75d5ee4a046b2a0f2415f0add5a.jpg",
title: "読書",
artist: "かめぱすた",
source: "https://danbooru.donmai.us/posts/8743208?",
socials: [
{
name: "Twitter",
link: "https://x.com/kamepan44231",
},
],
}, },
// Add more backgrounds here! // Add more backgrounds here!
// { // {
@ -54,12 +66,12 @@ export function getRandomBackground(): BackgroundImage {
if (backgrounds.length === 0) { if (backgrounds.length === 0) {
// Fallback background if array is empty // Fallback background if array is empty
return { return {
url: 'https://cdn.donmai.us/original/97/c8/__citlali_genshin_impact_drawn_by_ryrmcher__97c810ff6e992f1789f93e2edbb683a3.jpg', url: "https://cdn.donmai.us/original/97/c8/__citlali_genshin_impact_drawn_by_ryrmcher__97c810ff6e992f1789f93e2edbb683a3.jpg",
title: 'Citlali (Genshin Impact)', title: "Citlali (Genshin Impact)",
artist: 'ryrmcher', artist: "ryrmcher",
source: 'https://danbooru.donmai.us/posts/6148600', source: "https://danbooru.donmai.us/posts/6148600",
socials: [] socials: [],
}; };
} }
return backgrounds[Math.floor(Math.random() * backgrounds.length)]; return backgrounds[Math.floor(Math.random() * backgrounds.length)];
} }