1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Fuck wit topflix

This commit is contained in:
Cooper Ransom 2024-04-02 19:01:11 -04:00
parent 3f71718379
commit 0889d7ff27
2 changed files with 15 additions and 38 deletions

View file

@ -111,6 +111,7 @@
"dmca": "DMCA", "dmca": "DMCA",
"topSources": "Top Sources", "topSources": "Top Sources",
"topFlix": "Top Flix", "topFlix": "Top Flix",
"discover": "Discover",
"support": "Support", "support": "Support",
"login": "Login", "login": "Login",
"onboarding": "Setup", "onboarding": "Setup",

View file

@ -247,7 +247,7 @@ export function TopFlix() {
carouselRefs.current[categorySlug] = el; carouselRefs.current[categorySlug] = el;
}} }}
> >
{medias.slice(0, 100).map((media) => ( {medias.slice(0, 5).map((media) => (
<a <a
key={media.id} key={media.id}
href={`media/tmdb-${isTVShow ? "tv" : "movie"}-${media.id}-${ href={`media/tmdb-${isTVShow ? "tv" : "movie"}-${media.id}-${
@ -286,23 +286,25 @@ export function TopFlix() {
</a> </a>
))} ))}
</div> </div>
<div className="absolute top-10 bottom-10 left-0 w-10 bg-gradient-to-r from-black to-transparent" />
<div className="absolute top-10 bottom-10 right-0 w-10 bg-gradient-to-l from-black to-transparent" />
<button <button
type="button" // Added type attribute with value "button" type="button" // Added type attribute with value "button"
title="button1" title="Back"
className="absolute top-1/2 left-2 transform -translate-y-1/2 z-10" className="absolute top-1/2 transform -translate-y-1/2 z-10"
onClick={() => scrollCarousel(categorySlug, "left")} onClick={() => scrollCarousel(categorySlug, "left")}
> >
<div className="cursor-pointer hover:text-white flex justify-center items-center h-10 w-10 rounded-full hover:bg-search-hoverBackground active:scale-110 transition-[transform,background-color] duration-200">
<Icon icon={Icons.ARROW_LEFT} /> <Icon icon={Icons.ARROW_LEFT} />
</div>
</button> </button>
<button <button
type="button" // Added type attribute with value "button" type="button" // Added type attribute with value "button"
title="button2" title="Next"
className="absolute top-1/2 right-2 transform -translate-y-1/2 z-10" className="absolute top-1/2 right-4 transform -translate-y-1/2 z-10"
onClick={() => scrollCarousel(categorySlug, "right")} onClick={() => scrollCarousel(categorySlug, "right")}
> >
<div className="cursor-pointer hover:text-white flex justify-center items-center h-10 w-10 rounded-full hover:bg-search-hoverBackground active:scale-110 transition-[transform,background-color] duration-200">
<Icon icon={Icons.ARROW_RIGHT} /> <Icon icon={Icons.ARROW_RIGHT} />
</div>
</button> </button>
</div> </div>
); );
@ -397,38 +399,12 @@ export function TopFlix() {
<Helmet> <Helmet>
<title>{t("global.name")}</title> <title>{t("global.name")}</title>
</Helmet> </Helmet>
{/* Removed HeroPart component */}
<ThinContainer> <ThinContainer>
<div className="mt-44 space-y-16 text-center"> <div className="mt-44 space-y-16 text-center">
<div className="relative z-10 mb-16"> <div className="relative z-10 mb-16">
<h1 className="text-4xl font-bold text-white">Explore</h1> <h1 className="text-4xl font-bold text-white">
<p className="mb-6"> {t("global.pages.discover")}
Credits to{" "} </h1>
<a
href="https://github.com/TecEash1/movie-web/tree/master"
className="text-white"
style={{
color: "#a470dc",
textShadow: "0 0 5px #76519f",
fontWeight: "bold",
}}
>
TecEash1
</a>{" "}
and{" "}
<a
href="https://github.com/pranavsatav"
className="text-white"
style={{
color: "#a470dc",
textShadow: "0 0 5px #76519f",
fontWeight: "bold",
}}
>
Aqua Rose
</a>{" "}
for making this page possible.
</p>
</div> </div>
</div> </div>
</ThinContainer> </ThinContainer>