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

BIN
public/numi.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
public/shylily.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

View file

@ -11,7 +11,7 @@ interface BackgroundImage {
export const backgrounds: BackgroundImage[] = [ export const backgrounds: BackgroundImage[] = [
{ {
url: '/citali.webp', url: "/citali.webp",
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",
@ -42,7 +42,7 @@ export const backgrounds: BackgroundImage[] = [
url: "/original.webp", url: "/original.webp",
title: "読書", title: "読書",
artist: "kamepan44231 - かめぱすた", artist: "kamepan44231 - かめぱすた",
source: "https://danbooru.donmai.us/posts/8743208?", source: "https://danbooru.donmai.us/posts/8743208",
socials: [ socials: [
{ {
name: "Twitter", 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! // Add more backgrounds here!
// { // {
// url: 'your-image-url', // url: 'your-image-url',
@ -66,7 +90,7 @@ 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: "/citali.webp",
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",
@ -77,7 +101,7 @@ export function getRandomBackground(): BackgroundImage {
} }
export function preloadBackgrounds() { export function preloadBackgrounds() {
backgrounds.forEach(bg => { backgrounds.forEach((bg) => {
const img = new Image(); const img = new Image();
img.src = bg.url; img.src = bg.url;
}); });