diff options
| author | Factiven <[email protected]> | 2023-07-16 22:35:39 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-07-16 22:35:39 +0700 |
| commit | 1eee181e219dfd993d396ac3169e7aad3dd285eb (patch) | |
| tree | 23fe54e9c3f8810f3ac9ab6b29070b4f0d4b9d20 /components/manga/info/mobile/mobileButton.js | |
| parent | removed console.log (diff) | |
| download | moopa-1eee181e219dfd993d396ac3169e7aad3dd285eb.tar.xz moopa-1eee181e219dfd993d396ac3169e7aad3dd285eb.zip | |
Update v3.6.4
- Added Manga page with a working tracker for AniList user
- Added schedule component to home page
- Added disqus comment section so you can fight on each other (not recommended)
- Added /id and /en route for english and indonesian subs (id route still work in progress)
Diffstat (limited to 'components/manga/info/mobile/mobileButton.js')
| -rw-r--r-- | components/manga/info/mobile/mobileButton.js | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/components/manga/info/mobile/mobileButton.js b/components/manga/info/mobile/mobileButton.js new file mode 100644 index 0000000..0016b59 --- /dev/null +++ b/components/manga/info/mobile/mobileButton.js @@ -0,0 +1,39 @@ +import Link from "next/link"; +import AniList from "../../../media/aniList"; +import { BookOpenIcon } from "@heroicons/react/24/outline"; + +export default function MobileButton({ info, firstEp, saveManga }) { + return ( + <div className="md:hidden flex items-center gap-4 w-full pb-3"> + <button + disabled={!firstEp} + onClick={saveManga} + className={`${ + !firstEp + ? "pointer-events-none text-white/50 bg-secondary/50" + : "bg-secondary text-white" + } lg:w-full font-bold shadow-md shadow-secondary hover:bg-secondary/90 hover:text-white/50 rounded`} + > + <Link + href={`/en/manga/read/${firstEp?.providerId}?id=${ + info.id + }&chapterId=${encodeURIComponent( + firstEp?.chapters[firstEp.chapters.length - 1].id + )}`} + className="flex items-center text-xs font-karla gap-2 h-[30px] px-2" + > + <h1>Read Now</h1> + <BookOpenIcon className="w-4 h-4" /> + </Link> + </button> + <Link + href={`https://anilist.co/manga/${info.id}`} + className="flex-center rounded bg-secondary shadow-md shadow-secondary h-[30px] lg:px-4 px-2" + > + <div className="flex-center w-5 h-5"> + <AniList /> + </div> + </Link> + </div> + ); +} |