-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFooter.jsx
More file actions
172 lines (161 loc) · 7.25 KB
/
Footer.jsx
File metadata and controls
172 lines (161 loc) · 7.25 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
import React from 'react';
import { Link } from 'react-router-dom';
import { version } from '../version';
import { useAboutData } from '../hooks/useAboutData';
import { Command, Terminal } from '@phosphor-icons/react';
const Footer = () => {
const scrollToTop = () => window.scrollTo({ top: 0, behavior: 'smooth' });
const aboutData = useAboutData();
return (
<footer className="bg-[#050505] border-t-2 border-white/10 mt-auto selection:bg-white selection:text-black">
<div className="mx-auto max-w-[1600px] px-6 py-12 md:px-12">
<div className="grid grid-cols-1 lg:grid-cols-12 gap-12 md:gap-16">
{/* Column 1: Brand & Info */}
<div className="lg:col-span-5 space-y-8">
<div className="flex flex-col gap-4">
<Link to="/" onClick={scrollToTop} className="group inline-block">
<span className="text-5xl md:text-6xl font-black uppercase tracking-tighter text-white">
fez<span className="text-emerald-500">codex</span>
</span>
</Link>
<p className="max-w-md text-gray-400 font-mono text-xs leading-relaxed uppercase tracking-widest">
{'//'}{' '}
{aboutData.profile.tagline ||
'A digital garden of experimental code, architectural thoughts, and creative explorations.'}
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
<div className="border border-white/10 p-4 bg-white/[0.02]">
<h4 className="font-mono text-[10px] font-bold text-gray-500 uppercase tracking-widest mb-3">
Site Info
</h4>
<div className="space-y-1 font-mono text-[10px] uppercase tracking-widest">
<div className="flex justify-between">
<span className="text-gray-600">Version:</span>
<span className="text-white">v{version}</span>
</div>
<div className="flex justify-between">
<span className="text-gray-600">Year:</span>
<span className="text-white">
{new Date().getFullYear()}
</span>
</div>
<div className="flex justify-between text-emerald-500 font-black">
<span>Status:</span>
<span>Live</span>
</div>
</div>
</div>
<div className="border border-white/10 p-4 bg-white/[0.02] flex flex-col justify-center gap-3">
<div className="flex items-center gap-2 text-white">
<Command size={16} className="text-emerald-500" />
<span className="font-mono text-[10px] font-bold uppercase tracking-widest">
Quick Menu
</span>
</div>
<div className="font-mono text-[10px] text-gray-500 uppercase leading-relaxed">
Press{' '}
<kbd className="bg-white text-black px-1 font-black">Alt</kbd>
,{' '}
<kbd className="bg-white text-black px-1 font-black">
Ctrl
</kbd>
, or{' '}
<kbd className="bg-white text-black px-1 font-black">Cmd</kbd>{' '}
+ <kbd className="bg-white text-black px-1 font-black">K</kbd>{' '}
for commands.
</div>
</div>
</div>
</div>
{/* Column 2: Navigation */}
<div className="lg:col-span-4">
<h3 className="font-mono text-[10px] font-bold text-white uppercase tracking-[0.3em] mb-8 flex items-center gap-3">
<Terminal size={16} className="text-emerald-500" />
Navigation
</h3>
<ul className="grid grid-cols-2 gap-x-6 gap-y-3 font-mono text-[10px] uppercase tracking-widest">
{[
{ label: 'Home', to: '/' },
{ label: 'About', to: '/about' },
{ label: 'Blog', to: '/blog' },
{ label: 'Projects', to: '/projects' },
{ label: 'Logs', to: '/logs' },
{ label: 'Vocab', to: '/vocab' },
{ label: 'Apps', to: '/apps' },
{ label: 'Timeline', to: '/timeline' },
{ label: 'Manuals', to: '/commands' },
].map((item) => (
<li key={item.to}>
<Link
to={item.to}
onClick={scrollToTop}
className="text-gray-500 hover:text-white flex items-center gap-2 transition-colors group"
>
<span className="text-emerald-500 group-hover:translate-x-1 transition-transform">
→
</span>
{item.label}
</Link>
</li>
))}
<li>
<a
href="/rss.xml"
target="_blank"
className="text-gray-500 hover:text-white flex items-center gap-2"
>
<span className="text-emerald-500">→</span> RSS Feed
</a>
</li>
</ul>
</div>
{/* Column 3: Connect */}
<div className="lg:col-span-3">
<h3 className="font-mono text-[10px] font-bold text-white uppercase tracking-[0.3em] mb-8">
Connect
</h3>
<div className="flex gap-3 mb-8 flex-wrap">
{aboutData.profile.links
.filter((l) => l.id !== 'email' && l.id !== 'website')
.map((link, i) => (
<SocialIcon key={i} href={link.url} icon={link.icon} />
))}
</div>
<div className="space-y-3 border-t border-white/10 pt-6">
<p className="font-mono text-[9px] font-bold text-gray-600 uppercase tracking-widest">
Newsletter
</p>
<div className="relative">
<input
type="text"
disabled
placeholder="Coming soon..."
className="w-full bg-white text-black font-mono text-[9px] uppercase tracking-widest py-2 px-3 border-none focus:ring-0 placeholder-black/40 disabled:cursor-not-allowed"
/>
</div>
</div>
</div>
</div>
<div className="mt-20 pt-8 border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-6 font-mono text-[9px] uppercase tracking-[0.2em] text-gray-600">
<p>
© {new Date().getFullYear()} Fezcode // Built with React &
Tailwind
</p>
<p className="text-white font-bold">Thanks for visiting</p>
</div>
</div>
</footer>
);
};
const SocialIcon = ({ href, icon: Icon }) => (
<a
href={href}
target="_blank"
rel="noreferrer"
className="w-12 h-12 border border-white/10 bg-white/5 flex items-center justify-center text-gray-400 hover:bg-white hover:text-black hover:border-white transition-all group"
>
<Icon size={24} weight="bold" />
</a>
);
export default Footer;