diff --git a/app/components/Chip/Chip.tsx b/app/components/Chip/Chip.tsx index bd0225c..a7e8e7f 100644 --- a/app/components/Chip/Chip.tsx +++ b/app/components/Chip/Chip.tsx @@ -6,22 +6,26 @@ export const Chip = (props: { devider?: string; bg_color?: string; style?: React.CSSProperties; - className?: string; }) => { return ( -
+
{props.name}
{props.name && props.devider ? props.devider : " "}
{props.name_2}
diff --git a/app/components/Profile/Profile.ReleaseHistory.tsx b/app/components/Profile/Profile.ReleaseHistory.tsx
index b579c11..e17c2d9 100644
--- a/app/components/Profile/Profile.ReleaseHistory.tsx
+++ b/app/components/Profile/Profile.ReleaseHistory.tsx
@@ -1,29 +1,25 @@
-import { Card, Carousel } from "flowbite-react";
+import { Card, Carousel, RatingStar, Rating } from "flowbite-react";
import type {
FlowbiteCarouselIndicatorsTheme,
FlowbiteCarouselControlTheme,
- CustomFlowbiteTheme,
} from "flowbite-react";
-import { ReleaseLink } from "../ReleaseLink/ReleaseLinkUpdate";
+import { ReleaseLink } from "../ReleaseLink/ReleaseLink";
const CarouselIndicatorsTheme: FlowbiteCarouselIndicatorsTheme = {
active: {
- off: "bg-gray-400/50 hover:bg-gray-200",
- on: "bg-gray-200",
+ off: "bg-gray-300/50 hover:bg-gray-400 dark:bg-gray-400/50 dark:hover:bg-gray-200",
+ on: "bg-gray-600 dark:bg-gray-200",
},
- base: "h-3 w-3 rounded-full max-w-[300px]",
+ base: "h-3 w-3 rounded-full",
wrapper: "absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3",
};
const CarouselControlsTheme: FlowbiteCarouselControlTheme = {
- base: "inline-flex h-8 w-8 items-center justify-center rounded-full group-focus:outline-none group-focus:ring-4 bg-gray-400/30 group-hover:bg-gray-400/60 group-focus:ring-gray-400/70 sm:h-10 sm:w-10",
- icon: "h-5 w-5 text-gray-400 sm:h-6 sm:w-6",
+ base: "inline-flex h-8 w-8 items-center justify-center rounded-full bg-gray-600/30 group-hover:bg-gray-600/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-gray-600 dark:bg-gray-400/30 dark:group-hover:bg-gray-400/60 dark:group-focus:ring-gray-400/70 sm:h-10 sm:w-10",
+ icon: "h-5 w-5 text-gray-600 dark:text-gray-400 sm:h-6 sm:w-6",
};
-const CarouselTheme: CustomFlowbiteTheme["carousel"] = {
- root: {
- base: "relative h-full w-full max-w-[375px]",
- },
+const CarouselTheme = {
indicators: CarouselIndicatorsTheme,
control: CarouselControlsTheme,
};
@@ -32,16 +28,10 @@ export const ProfileReleaseHistory = (props: any) => {
return (
@@ -61,6 +54,7 @@ export const ReleaseInfoBasics = (props: {
>
{isFullDescription ? "Скрыть" : "Показать полностью"}
+ Официальные источники: {item.name} {item.name}
+ {props.genres}
+
+ {props.title_ru}
+
+ {`${props.description.slice(0, 125)}${
+ props.description.length > 125 ? "..." : ""
+ }`}
+
+ {props.genres}
+
+ {`${props.title_ru.slice(0, 47)}${
+ props.title_ru.length > 47 ? "..." : ""
+ }`}
+
+ {`${props.description.slice(0, 97)}${
+ props.description.length > 97 ? "..." : ""
+ }`}
+
+ {props.genres}
+
+ {`${props.title_ru.slice(0, 47)}${
+ props.title_ru.length > 47 ? "..." : ""
+ }`}
+
+ {`${props.description.slice(0, 97)}${
+ props.description.length > 97 ? "..." : ""
+ }`}
+
+ {props.title_ru}
+
+ {props.description}
+
+ {props.title_ru}
+
+ {props.title_original}
+
- {props.title_ru}
-
- {props.title_original}
-
- {props.description}
-
- {release.title_ru}
-
- {release.title_original}
-
- {release.description}
- В франшизе пока ничего нет...Недавно просмотренные
- {release.title_ru}
{release.title_ru}
Оценок нет
}
+ ) : (
+ Оценок нет
+ )}
-
+ {props.season ? YearSeason[props.season] : ""}
+
+
+ {props.year ? props.year : ""}
+
- {release.season ? YearSeason[release.season] : ""}
- {release.season ?
-
-
- : ""}
- {release.year ? release.year : ""}
-