feat: add another user profile bookmarks viewing

This commit is contained in:
Kentai Radiquum 2024-08-27 16:27:55 +05:00
parent 05b4fc3325
commit b0eed16d18
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
8 changed files with 150 additions and 21 deletions

View file

@ -39,11 +39,11 @@ export const ProfileReleaseRatings = (props: any) => {
<Image
src={release.image}
width={100}
height={150}
height={125}
alt=""
className="border-gray-200 rounded-lg shadow-md dark:border-gray-700 dark:bg-gray-800"
className="object-cover border-gray-200 rounded-lg shadow-md dark:border-gray-700 dark:bg-gray-800 w-[100px] h-[125px]"
/>
<div className="py-4 flex flex-col gap-1">
<div className="flex flex-col gap-1 py-4">
<h2 className="text-lg">{release.title_ru}</h2>
<Rating size="md">
<RatingStar filled={release.my_vote >= 1} />
@ -52,7 +52,7 @@ export const ProfileReleaseRatings = (props: any) => {
<RatingStar filled={release.my_vote >= 4} />
<RatingStar filled={release.my_vote >= 5} />
</Rating>
<h2 className="text-md text-gray-500 dark:text-gray-400">
<h2 className="text-gray-500 text-md dark:text-gray-400">
{unixToDate(release.voted_at, "full")}
</h2>
</div>

View file

@ -8,6 +8,7 @@ export const ProfileStats = (props: {
lists: Array<number>;
watched_count: number;
watched_time: number;
profile_id: number
}) => {
const getChartOptions = () => {
return {
@ -57,8 +58,16 @@ export const ProfileStats = (props: {
}, []);
return (
<Card className="h-fit font-light">
<h1 className="text-2xl font-bold">Статистика</h1>
<Card className="font-light h-fit">
<div className="flex justify-between">
<h1 className="text-2xl font-bold">Статистика</h1>
<Link href={`/profile/${props.profile_id}/bookmarks`}>
<div className="flex items-center">
<p className="hidden text-xl font-bold sm:block">Показать все</p>
<span className="w-6 h-6 iconify mdi--arrow-right"></span>
</div>
</Link>
</div>
<div className="flex items-center">
<div>
<p className="align-center whitespace-nowrap">