forked from codechefPesuecc/CodeChef-PESUECC-Chapter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFooter.tsx
More file actions
249 lines (232 loc) · 8.65 KB
/
Copy pathFooter.tsx
File metadata and controls
249 lines (232 loc) · 8.65 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
import Image from "next/image";
import Link from "next/link";
import { FooterYear } from "@/components/ui/FooterYear";
const explore = [
{ href: "/", label: "Home" },
{ href: "/cp-arena", label: "Arena" },
{ href: "/initiatives", label: "Initiatives" },
{ href: "/team", label: "Team" },
];
const initiatives = [
{ href: "/initiatives#leetcode-101", label: "LeetCode 101" },
{ href: "/initiatives#algohunt", label: "AlgoHunt" },
{ href: "/initiatives#praxis", label: "Praxis Hackathon" },
{ href: "/initiatives#eclipse", label: "Eclipse" },
{ href: "/initiatives#algohunt-base", label: "AlgoHunt Base" },
];
const socials = [
{ label: "GitHub", href: "https://github.com/codechefPesuecc", icon: <GitHubIcon /> },
{
label: "Instagram",
href: "https://www.instagram.com/codechef_pesuecc/",
icon: <InstagramIcon />,
},
{
label: "LinkedIn",
href: "https://www.linkedin.com/company/codechef-pesuecc/",
icon: <LinkedInIcon />,
},
];
export default function Footer() {
return (
<footer className="relative mt-auto overflow-hidden bg-[#efe9e0] text-charcoal/80 dark:bg-[#0f0b07] dark:text-cream/80">
{/* Depth: vertical gradient + soft bronze glow at the top edge */}
<div
aria-hidden
className="absolute inset-0 bg-gradient-to-b from-[#efe9e0] to-[#e6ddcf] dark:from-[#0f0b07] dark:to-[#181109]"
/>
<div
aria-hidden
className="absolute inset-x-0 top-0 h-40 bg-gradient-to-b from-bronze/10 to-transparent"
/>
{/* Oversized watermark wordmark */}
<span
aria-hidden
className="pointer-events-none absolute inset-x-0 top-1/2 -translate-y-1/2 select-none text-center font-display text-[15vw] font-bold leading-none tracking-tight text-chocolate/[0.05]"
>
CODECHEF
</span>
<div className="relative z-10 mx-auto max-w-6xl px-6 py-16">
<div className="grid grid-cols-2 gap-x-8 gap-y-12 lg:grid-cols-[1.6fr_1fr_1.3fr_1.4fr]">
{/* Brand */}
<div className="col-span-2 lg:col-span-1">
<div className="flex items-center gap-3">
<span className="flex h-11 w-11 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-white shadow-sm">
<Image
src="/logo.svg"
alt="CodeChef PESU ECC Chapter"
width={40}
height={40}
unoptimized
className="h-10 w-10 object-contain"
/>
</span>
<div className="font-display leading-none">
<p className="text-lg font-bold tracking-tight text-chocolate">
CodeChef
</p>
<p className="mt-0.5 text-xs font-semibold tracking-[0.2em] text-bronze">
PESUECC Chapter
</p>
</div>
</div>
<p className="mt-5 max-w-xs text-sm leading-6 text-charcoal/70">
Building a campus competitive programming culture at PES University,
ECC — a daily arena, technical initiatives, and platforms
engineered in the open.
</p>
</div>
{/* Explore */}
<div>
<h3 className="text-base font-semibold text-chocolate">Explore</h3>
<ul className="mt-4 space-y-3 text-sm">
{explore.map((link) => (
<li key={link.label}>
<Link
href={link.href}
className="text-charcoal/70 transition-colors hover:text-chocolate"
>
{link.label}
</Link>
</li>
))}
</ul>
</div>
{/* Initiatives */}
<div>
<h3 className="text-base font-semibold text-chocolate">Initiatives</h3>
<ul className="mt-4 space-y-3 text-sm">
{initiatives.map((link) => (
<li key={link.label}>
<Link
href={link.href}
className="text-charcoal/70 transition-colors hover:text-chocolate"
>
{link.label}
</Link>
</li>
))}
</ul>
</div>
{/* Get in Touch */}
<div>
<h3 className="text-base font-semibold text-chocolate">Get in Touch</h3>
<ul className="mt-4 space-y-4 text-sm">
<li className="flex items-start gap-3">
<span className="mt-0.5 text-bronze">
<MailIcon />
</span>
<a
href="mailto:codechef@pesu.pes.edu"
className="text-charcoal/75 transition-colors hover:text-chocolate"
>
codechef@pesu.pes.edu
</a>
</li>
<li className="flex items-start gap-3">
<span className="mt-0.5 text-bronze">
<PinIcon />
</span>
<span className="text-charcoal/75">
PES University, Electronic City Campus,
<br />
Hosur Road, Bengaluru 560100
</span>
</li>
</ul>
<div className="mt-6 flex gap-3">
{socials.map((social) => (
<a
key={social.label}
href={social.href}
aria-label={social.label}
target="_blank"
rel="noopener noreferrer"
className="flex h-10 w-10 items-center justify-center rounded-full border border-chocolate/20 text-charcoal/70 transition-colors hover:border-bronze hover:bg-bronze/10 hover:text-chocolate"
>
{social.icon}
</a>
))}
</div>
</div>
</div>
{/* Bottom bar */}
<div className="mt-14 border-t border-chocolate/12 pt-6">
<div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
<p className="font-mono text-xs text-charcoal/55">
© <FooterYear /> CodeChef PESUECC Chapter. All rights reserved.
</p>
<p className="font-display text-sm font-semibold text-charcoal/70">
Built in the open.
</p>
</div>
</div>
</div>
</footer>
);
}
/* --- Icons --- */
function MailIcon() {
return (
<svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="1.8"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="3" y="5" width="18" height="14" rx="2" />
<path d="m3 7 9 6 9-6" />
</svg>
);
}
function PinIcon() {
return (
<svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="1.8"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M12 21s7-5.5 7-11a7 7 0 1 0-14 0c0 5.5 7 11 7 11z" />
<circle cx="12" cy="10" r="2.5" />
</svg>
);
}
function GitHubIcon() {
return (
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 .5A11.5 11.5 0 0 0 .5 12a11.5 11.5 0 0 0 7.86 10.94c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.34-1.3-1.7-1.3-1.7-1.06-.72.08-.71.08-.71 1.17.08 1.79 1.2 1.79 1.2 1.04 1.78 2.73 1.27 3.4.97.1-.75.4-1.27.73-1.56-2.55-.29-5.23-1.28-5.23-5.7 0-1.26.45-2.29 1.2-3.1-.12-.29-.52-1.46.11-3.05 0 0 .98-.31 3.2 1.18a11.1 11.1 0 0 1 5.83 0c2.22-1.49 3.2-1.18 3.2-1.18.63 1.59.23 2.76.11 3.05.75.81 1.2 1.84 1.2 3.1 0 4.43-2.69 5.41-5.25 5.69.41.36.78 1.05.78 2.12v3.14c0 .31.21.67.8.56A11.5 11.5 0 0 0 23.5 12 11.5 11.5 0 0 0 12 .5z" />
</svg>
);
}
function LinkedInIcon() {
return (
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor">
<path d="M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.42v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.8 0 0 .78 0 1.73v20.53C0 23.22.8 24 1.77 24h20.45c.98 0 1.78-.78 1.78-1.74V1.73C24 .78 23.2 0 22.22 0z" />
</svg>
);
}
function InstagramIcon() {
return (
<svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="1.8"
>
<rect x="3" y="3" width="18" height="18" rx="5" />
<circle cx="12" cy="12" r="4" />
<circle cx="17" cy="7" r="1.1" fill="currentColor" stroke="none" />
</svg>
);
}