|
1 |
| -import FooterLinks from './FooterLinks'; |
| 1 | +import Link from 'next/link'; |
| 2 | +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; |
| 3 | +import { |
| 4 | + faDiscord, |
| 5 | + faGithub, |
| 6 | + faYoutube, |
| 7 | +} from '@fortawesome/free-brands-svg-icons'; |
| 8 | +import Image from 'next/image'; |
2 | 9 |
|
3 | 10 | export default function Footer() {
|
4 | 11 | return (
|
5 |
| - <footer className="m-0"> |
6 |
| - <FooterLinks /> |
| 12 | + <footer className="w-full bg-gradient-to-t from-blue-900 via-blue-800 to-blue-700 border-t border-blue-600 py-10 px-6 flex flex-col gap-8"> |
| 13 | + <div className="flex flex-col md:flex-row items-center justify-between gap-6"> |
| 14 | + <div className="flex items-center gap-3"> |
| 15 | + <Image |
| 16 | + src="/icon.png" |
| 17 | + alt="ClickCrystals" |
| 18 | + width={40} |
| 19 | + height={40} |
| 20 | + className="rounded-lg shadow" |
| 21 | + /> |
| 22 | + <span className="text-white font-extrabold text-xl tracking-tight"> |
| 23 | + ClickCrystals |
| 24 | + </span> |
| 25 | + </div> |
| 26 | + <div className="flex items-center gap-4"> |
| 27 | + {[ |
| 28 | + { |
| 29 | + icon: faDiscord, |
| 30 | + url: 'https://discord.gg/zg3ge9VTgr', |
| 31 | + label: 'Discord', |
| 32 | + color: 'blue-600' |
| 33 | + }, |
| 34 | + { |
| 35 | + icon: faYoutube, |
| 36 | + url: 'https://www.youtube.com/@itzispyder', |
| 37 | + label: 'YouTube', |
| 38 | + color: 'red-600' |
| 39 | + }, |
| 40 | + { |
| 41 | + icon: faGithub, |
| 42 | + url: 'https://github.com/clickcrystals-development/ClickCrystals', |
| 43 | + label: "GitHub", |
| 44 | + color: 'slate-800' |
| 45 | + } |
| 46 | + ].map(({ icon, url, label, color }) => ( |
| 47 | + <Link |
| 48 | + key={label} |
| 49 | + href={url} |
| 50 | + target="_blank" |
| 51 | + aria-label={label} |
| 52 | + className={`text-${color} bg-white w-9 h-9 flex items-center justify-center rounded-full hover:opacity-80 shadow transition`} |
| 53 | + > |
| 54 | + <FontAwesomeIcon icon={icon} size="lg" /> |
| 55 | + </Link> |
| 56 | + ))} |
| 57 | + {[ |
| 58 | + { |
| 59 | + color: "[#f16436]", |
| 60 | + label: "CurseForge", |
| 61 | + link: "https://www.curseforge.com/minecraft/mc-mods/clickcrystals", |
| 62 | + icon: "/icons/curseforge.svg" |
| 63 | + }, |
| 64 | + { |
| 65 | + color: "[#1f86a0]", |
| 66 | + label: "PlanetMC", |
| 67 | + link: "https://www.planetminecraft.com/mod/clickcrystal/", |
| 68 | + icon: "/icons/planetmc.svg" |
| 69 | + }, |
| 70 | + { |
| 71 | + color: "[#39a822]", |
| 72 | + label: "Modrinth", |
| 73 | + link: "https://modrinth.com/mod/clickcrystals", |
| 74 | + icon: "/icons/modrinth.svg" |
| 75 | + } |
| 76 | + ].map(({ color, label, link, icon }) => ( |
| 77 | + <Link |
| 78 | + key={label} |
| 79 | + href={link} |
| 80 | + target="_blank" |
| 81 | + aria-label={label} |
| 82 | + className={`text-white bg-${color} w-9 h-9 flex items-center justify-center rounded-full hover:opacity-80 shadow transition`} |
| 83 | + > |
| 84 | + <Image |
| 85 | + src={icon} |
| 86 | + alt={label} |
| 87 | + width={24} |
| 88 | + height={24} |
| 89 | + className="size-6 md:size-5" |
| 90 | + /> |
| 91 | + </Link> |
| 92 | + ))} |
| 93 | + </div> |
| 94 | + </div> |
| 95 | + <div className="flex flex-col md:flex-row md:items-center md:justify-center gap-1 md:gap-3 text-blue-200 text-xs text-center md:text-left"> |
| 96 | + <span> |
| 97 | + Website made by{' '} |
| 98 | + <Link target="_blank" href="https://ashish.top" className="text-white"> |
| 99 | + Ashish Agarwal |
| 100 | + </Link> |
| 101 | + </span> |
| 102 | + <span className="hidden md:inline">|</span> |
| 103 | + <span> |
| 104 | + © {new Date().getFullYear()} ClickCrystals. Not affiliated with Mojang or Microsoft. |
| 105 | + </span> |
| 106 | + </div> |
7 | 107 | </footer>
|
8 | 108 | );
|
9 | 109 | }
|
0 commit comments