-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from Jeydin21/manga-beta
Manga Update (Munchyroll V2)
- Loading branch information
Showing
65 changed files
with
1,866 additions
and
1,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,4 @@ const GoogleAnalytics = () => { | |
); | ||
}; | ||
|
||
export default GoogleAnalytics; | ||
export default GoogleAnalytics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import Link from "next/link"; | ||
import { FaCalendar, FaBook, FaStar, FaPlay } from 'react-icons/fa'; | ||
import { LazyLoadImage } from 'react-lazy-load-image-component'; | ||
import 'react-lazy-load-image-component/src/effects/blur.css'; | ||
import Status from "../ui/Status"; | ||
|
||
function AnimeCard({ data }) { | ||
const type = { | ||
TV: "TV", | ||
MOVIE: "Movie", | ||
OVA: "OVA", | ||
ONA: "ONA", | ||
SPECIAL: "Special", | ||
} | ||
|
||
return ( | ||
<> | ||
<Link href={"/anime/info/" + data.id}> | ||
<div className="sm:p-3 "> | ||
<div className="overflow-hidden relative rounded-lg aspect-[5/7]"> | ||
<div className="group absolute inset-0"> | ||
<div className="transition-all transform duration-300 group-hover:scale-105 group-hover:brightness-50"> | ||
<LazyLoadImage | ||
effect="blur" | ||
className="w-full h-full aspect-[5/7] object-cover rounded-lg" | ||
src={data.image} | ||
alt="" | ||
/> | ||
</div> | ||
<div className="absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300"> | ||
<FaPlay className="text-4xl" /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<div className="mt-2 rounded-md flex items-center space-x-1 hover:bg-neutral-300 dark:hover:bg-neutral-800"> | ||
<Status status={data.status} /> | ||
<p title={data.title.english || data.title.romaji} className="transition-all dark:text-secondary text-primary font-bold line-clamp-1 text-sm rounded p-1"> | ||
{data.title.english || data.title.romaji} | ||
</p> | ||
</div> | ||
{/* <p>Episode {data.episodeNumber}</p> */} | ||
<div className="text-xs sm:text-sm flex space-x-2 mt-2 select-none"> | ||
<div className="dark:text-secondary text-primary flex items-center"> | ||
{data.releaseDate && ( | ||
<p> | ||
<span title={`Released: ${data.releaseDate}`} className="dark:text-secondary text-primary flex items-center"> | ||
<FaCalendar /> | ||
<span className="ml-1">{data.releaseDate}</span> | ||
</span> | ||
</p> | ||
)} | ||
</div> | ||
{data.totalEpisodes && data.totalEpisodes != 1 && ( | ||
<p> | ||
<span title={`Episodes: ${data.totalEpisodes}`} className="dark:text-secondary text-primary flex items-center"> | ||
<FaBook /> | ||
<span className="ml-1">{data.totalEpisodes}</span> | ||
</span> | ||
</p> | ||
)} | ||
{data.rating && ( | ||
<p> | ||
<span title={`Rating: ${data.rating}`} className="dark:text-secondary text-primary flex items-center"> | ||
<FaStar /> | ||
<span className="ml-1">{data.rating}</span> | ||
</span> | ||
</p> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
</> | ||
); | ||
} | ||
|
||
export default AnimeCard; |
Oops, something went wrong.
a60eb40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
munchyroll – ./
munchyroll-jeydin.vercel.app
munchyroll-git-master-jeydin.vercel.app
munchyroll.vercel.app
anime.j21.dev