refactor(private-room): rename default cover image

This commit is contained in:
2026-07-17 14:47:16 +08:00
parent 4012b9cd17
commit 64e27b4fa6
5 changed files with 4 additions and 4 deletions

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

@@ -9,7 +9,7 @@ import {
import { PrivateAlbumCard } from "../private-album-card";
const COVER_URL = "/images/private-room/banner.png";
const COVER_URL = "/images/private-room/banner/elio.png";
function makeAlbum(overrides: Partial<PrivateAlbumInput> = {}): PrivateAlbum {
return PrivateAlbumSchema.parse({
@@ -58,7 +58,7 @@ describe("PrivateAlbumCard", () => {
}),
);
expect(html).toContain("banner.png");
expect(html).toContain("elio.png");
expect(html).not.toContain("pic-bg-home.png");
expect(html).toContain("8 photos");
expect(html).toContain("A quiet morning by the water.");
@@ -77,7 +77,7 @@ describe("PrivateAlbumCard", () => {
}),
);
expect(html).toContain("banner.png");
expect(html).toContain("elio.png");
expect(html).toContain(
'aria-label="Unlock 8 private room photos from Elio Silvestri"',
);
+1 -1
View File
@@ -152,7 +152,7 @@ export function PrivateRoomScreen() {
<section className={styles.hero} aria-label={title}>
<div className={styles.heroCover}>
<Image
src="/images/private-room/banner.png"
src="/images/private-room/banner/elio.png"
alt=""
width={2048}
height={1152}