From 7327a69b55a20b99b14ee0803d6cf5f8b88c45ef Mon Sep 17 00:00:00 2001 From: Factiven Date: Wed, 13 Sep 2023 00:45:53 +0700 Subject: Update v4 - Merge pre-push to main (#71) * Create build-test.yml * initial v4 commit * update: github workflow * update: push on branch * Update .github/ISSUE_TEMPLATE/bug_report.md * configuring next.config.js file --- components/footer.js | 246 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 143 insertions(+), 103 deletions(-) (limited to 'components/footer.js') diff --git a/components/footer.js b/components/footer.js index d658172..ca5a21f 100644 --- a/components/footer.js +++ b/components/footer.js @@ -1,13 +1,11 @@ import Link from "next/link"; -import { signIn, useSession } from "next-auth/react"; import { useEffect, useState } from "react"; import { useRouter } from "next/router"; import { parseCookies, setCookie } from "nookies"; function Footer() { - const { data: session, status } = useSession(); - const [year, setYear] = useState(new Date().getFullYear()); - const [season, setSeason] = useState(getCurrentSeason()); + const [year] = useState(new Date().getFullYear()); + const [season] = useState(getCurrentSeason()); const [lang, setLang] = useState("en"); const [checked, setChecked] = useState(false); @@ -41,118 +39,160 @@ function Footer() { }); router.push("/en"); } else { - console.log("switching to id"); - setCookie(null, "lang", "id", { - maxAge: 365 * 24 * 60 * 60, - path: "/", - }); router.push("/id"); } } return ( -
-
-
-
- {/*

moopa

*/} -

moopa

-
-
-

- © {new Date().getFullYear()} moopa.live | Website Made by - Factiven -

-

- This site does not store any files on our server, we only - linked to the media which is hosted on 3rd party services. -

-
- - -
+
+
+
+
+ {/*
*/} + {/* Website Logo */} +

moopa

+

+ This site does not store any files on our server, we only linked + to the media which is hosted on 3rd party services. +

+ {/*
*/}
- {/*
- gambar -
*/} -
-
-
-
    -
  • - - This Season - -
  • -
  • - Popular Anime -
  • -
  • - Popular Manga -
  • - {status === "loading" ? ( -

    Loading...

    - ) : session ? ( +
    +
    +
    • - - My List + + This Season
    • - ) : ( -
    • - +
    • + Popular Anime +
    • +
    • + Popular Manga +
    • +
    • + Donate +
    • +
    +
      +
    • + + Movies +
    • - )} -
    -
      -
    • - Movies -
    • -
    • - TV Shows -
    • -
    • - DMCA -
    • -
    • - - Github - -
    • -
    +
  • + TV Shows +
  • +
  • + DMCA +
  • +
  • + + Github + +
  • +
+
+
+
+
+
+
+

+ © {new Date().getFullYear()} moopa.live | Website Made by{" "} + Factiven +

+
+ {/* Github Icon */} + + + + + + + + + + + + + + {/* Discord Icon */} + + + + + + + {/* Kofi */} + + + + + + +
-
+ ); } -- cgit v1.2.3