Skip to content

Commit 8daf35f

Browse files
committed
redesign footer
1 parent f98be14 commit 8daf35f

File tree

7 files changed

+103
-188
lines changed

7 files changed

+103
-188
lines changed

components/ui/Footer/Content.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

components/ui/Footer/FooterInfo.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

components/ui/Footer/FooterLinks.tsx

Lines changed: 0 additions & 80 deletions
This file was deleted.

components/ui/Footer/Info.tsx

Lines changed: 0 additions & 11 deletions
This file was deleted.

components/ui/Footer/Social.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

components/ui/Footer/Socials.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

components/ui/Footer/index.tsx

Lines changed: 103 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,109 @@
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';
29

310
export default function Footer() {
411
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+
&copy; {new Date().getFullYear()} ClickCrystals. Not affiliated with Mojang or Microsoft.
105+
</span>
106+
</div>
7107
</footer>
8108
);
9109
}

0 commit comments

Comments
 (0)