blob: 22c6868e7bb8a9de32b3bae0622257c20c0c2a82 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
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";
import { useState } from "react";
function Footer() {
const { data: session, status } = useSession();
const [year, setYear] = useState(new Date().getFullYear());
const [season, setSeason] = useState(getCurrentSeason());
return (
<section className="text-[#dbdcdd] z-40 bg-[#0c0d10] lg:flex lg:h-[12rem] lg:items-center lg:justify-between">
<div className="mx-auto flex w-[80%] lg:w-[95%] xl:w-[80%] flex-col space-y-10 pb-6 lg:flex-row lg:items-center lg:justify-between lg:space-y-0 lg:py-0">
<div className="flex items-center gap-24">
<div className="lg:flex grid items-center lg:gap-10 gap-3">
{/* <h1 className="font-outfit text-[2.56rem]">moopa</h1> */}
<h1 className="font-outfit text-[40px]">moopa</h1>
<div>
<p className="flex items-center gap-1 font-karla lg:text-[0.81rem] text-[0.7rem] text-[#CCCCCC]">
© {new Date().getFullYear()} moopa.live | Website Made by
Factiven
</p>
<p className="font-karla lg:text-[0.8rem] text-[0.65rem] text-[#9c9c9c] lg: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="lg:hidden lg:block">
<Image
src="https://i1210.photobucket.com/albums/cc417/kusanagiblog/NarutoVSSasuke.gif"
alt="gambar"
title="request nya rapip yulistian"
width={210}
height={85}
/>
</div> */}
</div>
<div className="flex flex-col gap-10 lg:flex-row lg:items-end lg:gap-[9.06rem] text-[#a7a7a7] text-sm lg:text-end">
<div className="flex flex-col gap-10 font-karla font-bold lg:flex-row lg:gap-[5.94rem]">
<ul className="flex flex-col gap-y-[0.7rem] ">
<li className="cursor-pointer hover:text-action">
<Link
href={`/search/anime?season=${season}&seasonYear=${year}`}
>
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">
<Link href="/search/anime">Movies</Link>
</li>
<li className="cursor-pointer hover:text-action">
<Link href="/search/anime">TV Shows</Link>
</li>
<li className="cursor-pointer hover:text-action">
<Link href="/dmca">DMCA</Link>
</li>
<li className="cursor-pointer hover:text-action">
<Link href="https://github.com/DevanAbinaya/Ani-Moopa">
Github
</Link>
</li>
</ul>
</div>
</div>
</div>
</section>
);
}
export default Footer;
function getCurrentSeason() {
const now = new Date();
const month = now.getMonth() + 1; // getMonth() returns 0-based index
switch (month) {
case 12:
case 1:
case 2:
return "WINTER";
case 3:
case 4:
case 5:
return "SPRING";
case 6:
case 7:
case 8:
return "SUMMER";
case 9:
case 10:
case 11:
return "FALL";
default:
return "UNKNOWN SEASON";
}
}
|