aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-04-20 17:47:46 +0700
committerFactiven <[email protected]>2023-04-20 17:47:46 +0700
commitd240743fac9f76f23d3f4faf1c02c392163926ce (patch)
tree19da1a329695e63fb3610da1d8f8ca6c90a55b8a /components
parentImprove Performance 1 (diff)
downloadmoopa-d240743fac9f76f23d3f4faf1c02c392163926ce.tar.xz
moopa-d240743fac9f76f23d3f4faf1c02c392163926ce.zip
Update footer.js
Diffstat (limited to 'components')
-rw-r--r--components/footer.js119
1 files changed, 65 insertions, 54 deletions
diff --git a/components/footer.js b/components/footer.js
index 77cf643..5c9ddef 100644
--- a/components/footer.js
+++ b/components/footer.js
@@ -2,19 +2,75 @@ import Twitter from "./media/twitter";
import Instagram from "./media/instagram";
import Link from "next/link";
import Image from "next/image";
+import { signIn, useSession } from "next-auth/react";
function Footer() {
+ const { data: session, status } = useSession();
+
return (
- <section className=" text-[#dbdcdd] z-40 bg-[#0c0d10] md:flex md:h-[14rem] md:items-center md:justify-between">
- <div className="mx-auto flex w-[78%] flex-col space-y-10 py-10 md:flex-row md:items-center md:justify-between md:space-y-0 md:py-0">
- <div className="md:flex md:flex-col md:gap-y-[3.88rem]">
- <h1 className="font-outfit text-[2.56rem]">moopa</h1>
- <p className="flex items-center gap-1 font-karla text-[0.81rem] text-[#CCCCCC]">
- &copy; {new Date().getFullYear()} moopa.my.id | Website Made by
- Factiven
- </p>
+ <section className=" text-[#dbdcdd] z-40 bg-[#0c0d10] md:flex md:h-[12rem] md:items-center md:justify-between">
+ <div className="mx-auto flex w-[80%] flex-col space-y-10 py-10 md:flex-row md:items-center md:justify-between md:space-y-0 md:py-0 items-center">
+ <div className="flex items-center gap-16">
+ <div className="md:flex md:flex-col gap-5">
+ <h1 className="font-outfit text-[2.56rem]">moopa</h1>
+ <div>
+ <p className="flex items-center gap-1 font-karla text-[0.81rem] text-[#CCCCCC]">
+ &copy; {new Date().getFullYear()} moopa.my.id | Website Made by
+ Factiven
+ </p>
+ <p className="font-karla text-[0.8rem] text-[#9c9c9c] w-[520px] italic">
+ This site does not store any files on our server, we only linked
+ to the media which is hosted on 3rd party services.
+ </p>
+ </div>
+ </div>
+
+ <div className="flex flex-col gap-10 md:flex-row md:items-end md:gap-[9.06rem] text-[#a7a7a7] text-sm bg-">
+ <div className="flex flex-col gap-10 font-karla font-bold md:flex-row md:gap-[5.94rem]">
+ <ul className="flex flex-col gap-y-[0.7rem] ">
+ <li className="cursor-pointer hover:text-action">
+ <Link href="/">This Season</Link>
+ </li>
+ <li className="cursor-pointer hover:text-action">
+ <Link href="/search/anime">Popular Anime</Link>
+ </li>
+ <li className="cursor-pointer hover:text-action">
+ <Link href="/search/manga">Popular Manga</Link>
+ </li>
+ {status === "loading" ? (
+ <p>Loading...</p>
+ ) : session ? (
+ <li className="cursor-pointer hover:text-action">
+ <Link href={`/profile/${session?.user?.name}`}>
+ My List
+ </Link>
+ </li>
+ ) : (
+ <li className="hover:text-action">
+ <button onClick={() => signIn("AniListProvider")}>
+ Login
+ </button>
+ </li>
+ )}
+ </ul>
+ <ul className="flex flex-col gap-y-[0.7rem]">
+ <li className="cursor-pointer hover:text-action">
+ <a href="/search/anime">Movies</a>
+ </li>
+ <li className="cursor-pointer hover:text-action">
+ <a href="/search/anime">TV Shows</a>
+ </li>
+ <li className="cursor-pointer hover:text-action">
+ <a href="/dmca">DMCA</a>
+ </li>
+ <li className="cursor-pointer hover:text-action">
+ <a href="/contact">Contact</a>
+ </li>
+ </ul>
+ </div>
+ </div>
</div>
- <div className="">
+ <div>
<Image
src="https://i1210.photobucket.com/albums/cc417/kusanagiblog/NarutoVSSasuke.gif"
alt="gambar"
@@ -23,51 +79,6 @@ function Footer() {
height={85}
/>
</div>
-
- <div className="flex flex-col gap-10 md:flex-row md:items-end md:gap-[9.06rem] ">
- <div className="flex flex-col gap-10 font-karla font-bold md:flex-row md:gap-[5.94rem]">
- <ul className="flex flex-col gap-y-[0.7rem] ">
- <li className="cursor-pointer hover:text-action">
- <a href="https://github.com/AniList/ApiV2-GraphQL-Docs">API</a>
- </li>
- <li className="cursor-pointer hover:text-action">
- <Link href="/staff">Staff</Link>
- </li>
- <li className="cursor-pointer hover:text-action">
- <Link href="/contact">Contact</Link>
- </li>
- <li className="cursor-pointer hover:text-action">
- <Link href="/dmca">DMCA</Link>
- </li>
- </ul>
- <ul className="flex flex-col gap-y-[0.7rem]">
- <li className="cursor-pointer hover:text-action">
- <a href="https://discord.gg/v5fjSdKwr2">Discord</a>
- </li>
- <li className="cursor-pointer hover:text-action">
- <a href="https://www.instagram.com/dvnabny/">Instagram</a>
- </li>
- <li className="cursor-pointer hover:text-action">
- <a href="https://twitter.com/Factivens">Twitter</a>
- </li>
- <li className="cursor-pointer hover:text-action">
- <a href="https://github.com/DevanAbinaya">Github</a>
- </li>
- </ul>
- </div>
- <div className="flex gap-[0.69rem]">
- <div>
- <Link href="https://twitter.com/Factivens">
- <Twitter className="fill-[#4CFFFF]" />
- </Link>
- </div>
- <div>
- <Link href="https://www.instagram.com/dvnabny/">
- <Instagram className="fill-white" />
- </Link>
- </div>
- </div>
- </div>
</div>
</section>
);