anix/feat: add collections page for discovery page

This commit is contained in:
Kentai Radiquum 2025-08-27 23:11:04 +05:00
parent e067336605
commit bf24cd1063
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 174 additions and 14 deletions

View file

@ -6,9 +6,11 @@ import { PopularModal } from "#/components/Discovery/Modal/PopularModal";
import { RecommendedCarousel } from "#/components/Discovery/RecommendedCarousel";
import { WatchingNowCarousel } from "#/components/Discovery/WatchingNowCarousel";
import { Button } from "flowbite-react";
import { useRouter } from "next/navigation";
import { useState } from "react";
export const DiscoverPage = () => {
const router = useRouter();
const [PopularModalOpen, setPopularModalOpen] = useState(false);
return (
@ -27,7 +29,11 @@ export const DiscoverPage = () => {
<span className="flex-shrink-0 inline-block w-8 h-8 mr-2 iconify mdi--calendar-month"></span>
<span>Расписание</span>
</Button>
<Button size="xl" color="purple">
<Button
size="xl"
color="purple"
onClick={() => router.push("/discovery/collections?sort=recent")}
>
<span className="flex-shrink-0 inline-block w-8 h-8 mr-2 iconify mdi--collections-bookmark"></span>
<span>Коллекции</span>
</Button>