refactor(private-room): rename default cover image
This commit is contained in:
|
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";
|
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 {
|
function makeAlbum(overrides: Partial<PrivateAlbumInput> = {}): PrivateAlbum {
|
||||||
return PrivateAlbumSchema.parse({
|
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).not.toContain("pic-bg-home.png");
|
||||||
expect(html).toContain("8 photos");
|
expect(html).toContain("8 photos");
|
||||||
expect(html).toContain("A quiet morning by the water.");
|
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(
|
expect(html).toContain(
|
||||||
'aria-label="Unlock 8 private room photos from Elio Silvestri"',
|
'aria-label="Unlock 8 private room photos from Elio Silvestri"',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ export function PrivateRoomScreen() {
|
|||||||
<section className={styles.hero} aria-label={title}>
|
<section className={styles.hero} aria-label={title}>
|
||||||
<div className={styles.heroCover}>
|
<div className={styles.heroCover}>
|
||||||
<Image
|
<Image
|
||||||
src="/images/private-room/banner.png"
|
src="/images/private-room/banner/elio.png"
|
||||||
alt=""
|
alt=""
|
||||||
width={2048}
|
width={2048}
|
||||||
height={1152}
|
height={1152}
|
||||||
|
|||||||
Reference in New Issue
Block a user