diff --git a/front/packages/ui/src/home/header.tsx b/front/packages/ui/src/home/header.tsx index ad0f24b99..7e0614918 100644 --- a/front/packages/ui/src/home/header.tsx +++ b/front/packages/ui/src/home/header.tsx @@ -25,9 +25,9 @@ import { H2, IconButton, IconFab, - ImageBackground, Link, P, + Poster, Skeleton, tooltip, ts, @@ -35,7 +35,7 @@ import { import Info from "@material-symbols/svg-400/rounded/info.svg"; import PlayArrow from "@material-symbols/svg-400/rounded/play_arrow-fill.svg"; import { useTranslation } from "react-i18next"; -import { View } from "react-native"; +import { Image, ImageProps, View } from "react-native"; import { percent, rem, useYoshiki } from "yoshiki/native"; import { Header as DetailsHeader } from "../details/header"; import type { WithLoading } from "../fetch"; @@ -44,6 +44,7 @@ export const Header = ({ isLoading, name, thumbnail, + logo, overview, tagline, link, @@ -52,6 +53,7 @@ export const Header = ({ }: WithLoading<{ name: string; thumbnail: KyooImage | null; + logo: KyooImage | null; overview: string | null; tagline: string | null; link: string | null; @@ -59,6 +61,7 @@ export const Header = ({ }>) => { const { css } = useYoshiki(); const { t } = useTranslation(); + console.log(logo); return ( - {isLoading || ( -

- {name} -

- )} + {isLoading || + (logo != null ? ( + + {name} + + ) : ( +

+ {name} +

+ ))}
{link !== null && ( @@ -97,7 +123,11 @@ export const Header = ({ {...css({ marginRight: ts(2) })} /> {isLoading ||

{tagline}

}
diff --git a/front/packages/ui/src/home/index.tsx b/front/packages/ui/src/home/index.tsx index 5ffff2dbd..df4a7e5c7 100644 --- a/front/packages/ui/src/home/index.tsx +++ b/front/packages/ui/src/home/index.tsx @@ -64,6 +64,7 @@ export const HomePage: QueryPage<{}, Genre> = ({ randomItems }) => { tagline={"tagline" in x ? x.tagline : null} overview={x.overview} thumbnail={x.thumbnail} + logo={x.logo} link={x.kind !== "collection" && !x.isLoading ? x.playHref : undefined} infoLink={x.href} />