diff --git a/public/images/splash/pic-bg-home.png b/public/images/cover/elio.png similarity index 100% rename from public/images/splash/pic-bg-home.png rename to public/images/cover/elio.png diff --git a/public/images/cover/maya.png b/public/images/cover/maya.png new file mode 100644 index 00000000..053e9ad6 Binary files /dev/null and b/public/images/cover/maya.png differ diff --git a/public/images/cover/nayeli.png b/public/images/cover/nayeli.png new file mode 100644 index 00000000..053e9ad6 Binary files /dev/null and b/public/images/cover/nayeli.png differ diff --git a/src/app/private-room/components/__tests__/private-album-card.test.tsx b/src/app/private-room/components/__tests__/private-album-card.test.tsx index 16b25e7a..27ab2fb7 100644 --- a/src/app/private-room/components/__tests__/private-album-card.test.tsx +++ b/src/app/private-room/components/__tests__/private-album-card.test.tsx @@ -50,7 +50,7 @@ describe("PrivateAlbumCard", () => { images: [ { url: COVER_URL, locked: false, index: 0 }, { - url: "/images/splash/pic-bg-home.png", + url: "/images/cover/elio.png", locked: false, index: 1, }, @@ -59,7 +59,7 @@ describe("PrivateAlbumCard", () => { ); expect(html).toContain("elio.png"); - expect(html).not.toContain("pic-bg-home.png"); + expect(html).not.toContain("%2Fimages%2Fcover%2Felio.png"); expect(html).toContain("8 photos"); expect(html).toContain("A quiet morning by the water."); expect(html).toContain('aria-label="Open 8 private album photos"'); diff --git a/src/app/splash/components/__tests__/tailwind-components.test.tsx b/src/app/splash/components/__tests__/tailwind-components.test.tsx index c87998e6..3d2d0089 100644 --- a/src/app/splash/components/__tests__/tailwind-components.test.tsx +++ b/src/app/splash/components/__tests__/tailwind-components.test.tsx @@ -22,7 +22,7 @@ describe("splash Tailwind components", () => { expect(html).toContain("absolute"); expect(html).toContain("bg-sidebar-background"); expect(html).toContain("object-cover"); - expect(html).toContain("%2Fimages%2Fsplash%2Fpic-bg-home.png"); + expect(html).toContain("%2Fimages%2Fcover%2Felio.png"); }); it("renders SplashContent with Tailwind typography classes", () => { diff --git a/src/app/splash/components/splash-background.tsx b/src/app/splash/components/splash-background.tsx index c691f92c..3a2a379a 100644 --- a/src/app/splash/components/splash-background.tsx +++ b/src/app/splash/components/splash-background.tsx @@ -3,7 +3,7 @@ * * * `SizedBox.expand(child: Assets.images.picBgHome.image(fit: BoxFit.cover))` - * 资源: /public/images/splash/pic-bg-home.png (kebab-case 重命名后) + * 资源: /public/images/cover/elio.png * 原名: pic_bg_home.png (snake_case) * * sizes 属性说明: @@ -17,7 +17,7 @@ export function SplashBackground() { return (