mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
wip: design refactor
This commit is contained in:
@@ -11,17 +11,25 @@ interface Props extends ViewProps {
|
||||
export const ItemHeader: React.FC<Props> = ({ item, ...props }) => {
|
||||
if (!item)
|
||||
return (
|
||||
<View className="w-full items-center">
|
||||
<View className="w-1/3 h-4 mb-1 bg-neutral-950 rounded" />
|
||||
<View className="w-2/3 h-8 mb-1 bg-neutral-950 rounded" />
|
||||
<View className="w-2/3 h-3 mb-1 bg-neutral-950 rounded" />
|
||||
<View className="w-1/4 h-3 mb-1 bg-neutral-950 rounded" />
|
||||
<View className="w-1/4 h-6 bg-neutral-950 rounded" />
|
||||
<View
|
||||
className="flex flex-col space-y-1.5 w-full items-start h-24"
|
||||
{...props}
|
||||
>
|
||||
<View className="w-1/3 h-6 bg-neutral-900 rounded" />
|
||||
<View className="w-2/3 h-8 bg-neutral-900 rounded" />
|
||||
<View className="w-2/3 h-4 bg-neutral-900 rounded" />
|
||||
<View className="w-1/4 h-4 bg-neutral-900 rounded" />
|
||||
</View>
|
||||
);
|
||||
|
||||
return (
|
||||
<View className="flex flex-col" {...props}>
|
||||
<View
|
||||
style={{
|
||||
minHeight: 96,
|
||||
}}
|
||||
className="flex flex-col"
|
||||
{...props}
|
||||
>
|
||||
<Ratings item={item} className="mb-2" />
|
||||
{item.Type === "Episode" && <EpisodeTitleHeader item={item} />}
|
||||
{item.Type === "Movie" && <MoviesTitleHeader item={item} />}
|
||||
|
||||
Reference in New Issue
Block a user