mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-06 06:23:53 +05:00
anix/feat: add popular modal to discovery
This commit is contained in:
parent
28b7ea2d6c
commit
e067336605
4 changed files with 128 additions and 2 deletions
|
@ -2,16 +2,24 @@
|
|||
import { CollectionsOfTheWeek } from "#/components/Discovery/CollectionsOfTheWeek";
|
||||
import { DiscussingToday } from "#/components/Discovery/DiscussingToday";
|
||||
import { InterestingCarousel } from "#/components/Discovery/InterestingCarousel";
|
||||
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 { useState } from "react";
|
||||
|
||||
export const DiscoverPage = () => {
|
||||
const [PopularModalOpen, setPopularModalOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<>
|
||||
<InterestingCarousel />
|
||||
<div className="grid grid-cols-2 gap-4 my-4 lg:grid-cols-4">
|
||||
<Button size="xl" color="yellow">
|
||||
<Button
|
||||
size="xl"
|
||||
color="yellow"
|
||||
onClick={() => setPopularModalOpen(true)}
|
||||
>
|
||||
<span className="flex-shrink-0 inline-block w-8 h-8 mr-2 iconify mdi--fire"></span>
|
||||
<span>Популярное</span>
|
||||
</Button>
|
||||
|
@ -32,6 +40,8 @@ export const DiscoverPage = () => {
|
|||
<DiscussingToday />
|
||||
<WatchingNowCarousel />
|
||||
<CollectionsOfTheWeek />
|
||||
|
||||
<PopularModal isOpen={PopularModalOpen} setIsOpen={setPopularModalOpen} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -22,7 +22,7 @@ export const ListFinished = {
|
|||
|
||||
export const ListFilms = {
|
||||
name: "Фильмы",
|
||||
filter: { ...FilterDefault, category_id: 2, status_id: null },
|
||||
filter: { ...FilterDefault, category_id: 2 },
|
||||
};
|
||||
|
||||
export const slugToFilter = {
|
Loading…
Add table
Add a link
Reference in a new issue