mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 22:15:36 +05:00
anix/: add buttons to discovery page
This commit is contained in:
parent
bfb361a0a8
commit
61baffd295
2 changed files with 17 additions and 2 deletions
|
@ -37,7 +37,7 @@ export const InterestingCarousel = () => {
|
||||||
<Swiper
|
<Swiper
|
||||||
modules={[Navigation]}
|
modules={[Navigation]}
|
||||||
spaceBetween={8}
|
spaceBetween={8}
|
||||||
slidesPerView={3}
|
slidesPerView={"auto"}
|
||||||
direction={"horizontal"}
|
direction={"horizontal"}
|
||||||
rewind={true}
|
rewind={true}
|
||||||
navigation={{
|
navigation={{
|
||||||
|
@ -60,7 +60,7 @@ export const InterestingCarousel = () => {
|
||||||
style={{ maxWidth: "fit-content" }}
|
style={{ maxWidth: "fit-content" }}
|
||||||
>
|
>
|
||||||
<Link href={`/release/${item.action}`}>
|
<Link href={`/release/${item.action}`}>
|
||||||
<div className="relative w-[480px] h-[270px] rounded-lg overflow-hidden">
|
<div className="relative w-[300px] md:w-[480px] aspect-video rounded-lg overflow-hidden">
|
||||||
<Image
|
<Image
|
||||||
src={item.image}
|
src={item.image}
|
||||||
alt=""
|
alt=""
|
||||||
|
|
|
@ -1,10 +1,25 @@
|
||||||
"use client";
|
"use client";
|
||||||
import { InterestingCarousel } from "#/components/Discovery/InterestingCarousel";
|
import { InterestingCarousel } from "#/components/Discovery/InterestingCarousel";
|
||||||
|
import { Button } from "flowbite-react";
|
||||||
|
|
||||||
export const DiscoverPage = () => {
|
export const DiscoverPage = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<InterestingCarousel />
|
<InterestingCarousel />
|
||||||
|
<div className="grid grid-cols-2 gap-4 my-4 lg:grid-cols-4">
|
||||||
|
<Button size="xl" color="yellow">
|
||||||
|
<span className="flex-shrink-0 inline-block w-8 h-8 mr-2 iconify mdi--fire"></span><span>Популярное</span>
|
||||||
|
</Button>
|
||||||
|
<Button size="xl" color="blue">
|
||||||
|
<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">
|
||||||
|
<span className="flex-shrink-0 inline-block w-8 h-8 mr-2 iconify mdi--collections-bookmark"></span><span>Коллекции</span>
|
||||||
|
</Button>
|
||||||
|
<Button size="xl" color="green">
|
||||||
|
<span className="flex-shrink-0 inline-block w-8 h-8 mr-2 iconify mdi--mixer-settings"></span><span>Фильтр</span>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue