feat(splash): simplify multi-character home layout
Docker Image / Build and Push Docker Image (push) Successful in 2m1s
Docker Image / Build and Push Docker Image (push) Successful in 2m1s
This commit is contained in:
@@ -90,6 +90,9 @@ describe("local character catalog", () => {
|
||||
|
||||
it("resolves characters by id and normalized slug", () => {
|
||||
expect(getCharacterById("maya-tan")?.displayName).toBe("Maya Tan");
|
||||
expect(getCharacterById("maya-tan")?.assets.splashCover).toBe(
|
||||
"/images/cover/maya-home.webp",
|
||||
);
|
||||
expect(getCharacterBySlug(" NAYELI ")?.displayName).toBe(
|
||||
"Nayeli Cervantes",
|
||||
);
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface CharacterProfile {
|
||||
readonly assets: {
|
||||
readonly avatar: string;
|
||||
readonly cover: string;
|
||||
readonly splashCover?: string;
|
||||
readonly chatBackground: string;
|
||||
readonly privateZoneBanner: string;
|
||||
};
|
||||
@@ -97,6 +98,7 @@ const CHARACTER_PROFILES: readonly CharacterProfile[] = Object.freeze([
|
||||
assets: {
|
||||
avatar: "/images/avatar/maya.png",
|
||||
cover: "/images/cover/maya.webp",
|
||||
splashCover: "/images/cover/maya-home.webp",
|
||||
chatBackground: "/images/chat/bg-chatpage.png",
|
||||
privateZoneBanner: "/images/private-zone/banner/maya.png",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user