|
1 | 1 | import React from 'react'; |
2 | | -import { Link } from 'react-router-dom'; |
3 | | -import { version } from '../version'; |
| 2 | +import {Link} from 'react-router-dom'; |
| 3 | +import {version} from '../version'; |
| 4 | +import {TwitterLogo, GithubLogo, LinkedinLogo, PaperPlaneRight, Command} from '@phosphor-icons/react'; |
| 5 | +import Fez from './Fez'; |
4 | 6 |
|
5 | 7 | const Footer = () => { |
6 | 8 | return ( |
7 | | - <footer className="mt-1 sm:mt-1"> |
8 | | - <div className="mx-auto max-w-7xl px-6 lg:px-8"> |
9 | | - <div className="border-t border-gray-700/50 py-12"> |
10 | | - <div className="grid grid-cols-1 md:grid-cols-2 gap-8"> |
11 | | - <div> |
12 | | - <h3 className="text-lg font-semibold text-white">Newsletter</h3> |
13 | | - <p className="mt-4 text-sm text-gray-400"> |
14 | | - Our newsletter is currently under construction. We are working |
15 | | - hard (not really) to bring it to you soon! |
| 9 | + <footer className="mt-auto bg-gray-950 border-t border-gray-800/50 relative overflow-hidden"> |
| 10 | + {/* Subtle Glow */} |
| 11 | + <div |
| 12 | + className="absolute bottom-0 left-1/4 w-96 h-96 bg-primary-500/5 rounded-full blur-[128px] pointer-events-none"></div> |
| 13 | + |
| 14 | + <div className="mx-auto max-w-7xl px-6 lg:px-8 py-12 relative z-10"> |
| 15 | + <div className="grid grid-cols-1 md:grid-cols-3 gap-12 lg:gap-16"> |
| 16 | + |
| 17 | + {/* Column 1: Brand & Tech Info */} |
| 18 | + <div className="space-y-4"> |
| 19 | + <Link to="/" className="flex items-center gap-2 group" |
| 20 | + onClick={() => window.scrollTo({top: 0, behavior: 'smooth'})}> |
| 21 | + <Fez className="w-8 h-8 text-primary-500 transition-transform group-hover:rotate-12"/> |
| 22 | + <span className="text-xl font-bold tracking-tight text-white font-arvo"> |
| 23 | + fez<span className="text-primary-400">codex</span> |
| 24 | + </span> |
| 25 | + </Link> |
| 26 | + <p className="text-sm text-gray-400 leading-relaxed"> |
| 27 | + A digital garden of code, thoughts, and interactive experiments. |
| 28 | + </p> |
| 29 | + <div className="pt-4 flex flex-col gap-2 text-xs text-gray-500 font-mono"> |
| 30 | + <p className="flex items-center gap-2"> |
| 31 | + <Command size={16} className="text-primary-500"/> |
| 32 | + <span>Press <kbd |
| 33 | + className="px-1.5 py-0.5 bg-gray-800 rounded border border-gray-700 text-gray-300">Alt</kbd> + <kbd |
| 34 | + className="px-1.5 py-0.5 bg-gray-800 rounded border border-gray-700 text-gray-300">K</kbd> for commands</span> |
| 35 | + </p> |
| 36 | + <p> |
| 37 | + v{version} // {new Date().getFullYear()} |
16 | 38 | </p> |
17 | | - <form className="mt-4 flex gap-2"> |
18 | | - <input |
19 | | - type="email" |
20 | | - placeholder="Coming soon, maybe..." |
21 | | - className="bg-gray-800 text-white px-4 py-2 rounded-md w-full" |
22 | | - disabled |
23 | | - /> |
24 | | - <button |
25 | | - type="submit" |
26 | | - className="bg-primary-500 text-white font-bold py-2 px-4 rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed" |
27 | | - disabled |
28 | | - > |
29 | | - Subscribe |
30 | | - </button> |
31 | | - </form> |
32 | | - </div> |
33 | | - <div className="md:text-right"> |
34 | | - <h3 className="text-lg font-semibold text-white">Socials</h3> |
35 | | - <div className="mt-4 flex md:justify-end gap-4"> |
36 | | - <a |
37 | | - href="https://x.com/fezcoddy" |
38 | | - className="text-gray-400 hover:text-white transition-colors" |
39 | | - > |
40 | | - Twitter |
41 | | - </a> |
42 | | - <a |
43 | | - href="https://github.com/fezcode" |
44 | | - className="text-gray-400 hover:text-white transition-colors" |
45 | | - > |
46 | | - GitHub |
47 | | - </a> |
48 | | - <a |
49 | | - href="https://www.linkedin.com/in/ahmed-samil-bulbul/?locale=en_US" |
50 | | - className="text-gray-400 hover:text-white transition-colors" |
51 | | - > |
52 | | - LinkedIn |
53 | | - </a> |
54 | | - </div> |
55 | 39 | </div> |
56 | 40 | </div> |
57 | | - <div className="mt-8 border-t border-gray-700/50 pt-8 flex flex-wrap items-center justify-between gap-4"> |
58 | | - <div className="flex flex-wrap items-center gap-6 text-sm font-medium text-gray-400"> |
59 | | - <Link |
60 | | - to="/" |
61 | | - className="hover:text-white transition-colors" |
62 | | - onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })} |
63 | | - > |
64 | | - Home |
65 | | - </Link> |
66 | | - <Link |
67 | | - to="/about" |
68 | | - className="hover:text-white transition-colors" |
69 | | - onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })} |
70 | | - > |
71 | | - About |
72 | | - </Link> |
73 | | - <Link |
74 | | - to="/blog" |
75 | | - className="hover:text-white transition-colors" |
76 | | - onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })} |
77 | | - > |
78 | | - Blog |
79 | | - </Link> |
80 | | - <Link |
81 | | - to="/projects" |
82 | | - className="hover:text-white transition-colors" |
83 | | - onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })} |
84 | | - > |
85 | | - Projects |
86 | | - </Link> |
87 | | - <Link |
88 | | - to="/logs" |
89 | | - className="text-primary-400 hover:text-white transition-colors" |
90 | | - onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })} |
91 | | - > |
92 | | - Logs |
93 | | - </Link> |
| 41 | + |
| 42 | + {/* Column 2: Navigation */} |
| 43 | + <div> |
| 44 | + <h3 className="text-sm font-semibold text-white tracking-wider uppercase font-mono mb-4">Navigation</h3> |
| 45 | + <ul className="grid grid-cols-2 gap-3 text-sm text-gray-400"> |
| 46 | + <li><Link to="/" className="hover:text-primary-400 transition-colors" |
| 47 | + onClick={() => window.scrollTo({top: 0, behavior: 'smooth'})}>Home</Link></li> |
| 48 | + <li><Link to="/about" className="hover:text-primary-400 transition-colors" |
| 49 | + onClick={() => window.scrollTo({top: 0, behavior: 'smooth'})}>About</Link></li> |
| 50 | + <li><Link to="/blog" className="hover:text-primary-400 transition-colors" |
| 51 | + onClick={() => window.scrollTo({top: 0, behavior: 'smooth'})}>Blog</Link></li> |
| 52 | + <li><Link to="/projects" className="hover:text-primary-400 transition-colors" |
| 53 | + onClick={() => window.scrollTo({top: 0, behavior: 'smooth'})}>Projects</Link></li> |
| 54 | + <li><Link to="/logs" className="hover:text-primary-400 transition-colors" |
| 55 | + onClick={() => window.scrollTo({top: 0, behavior: 'smooth'})}>Logs</Link></li> |
| 56 | + <li><Link to="/apps" className="hover:text-primary-400 transition-colors" |
| 57 | + onClick={() => window.scrollTo({top: 0, behavior: 'smooth'})}>Apps</Link></li> |
| 58 | + <li><Link to="/timeline" className="hover:text-primary-400 transition-colors" |
| 59 | + onClick={() => window.scrollTo({top: 0, behavior: 'smooth'})}>Timeline</Link></li> |
| 60 | + <li><Link to="/rss.xml" target="_blank" className="hover:text-primary-400 transition-colors">RSS</Link> |
| 61 | + </li> |
| 62 | + </ul> |
| 63 | + </div> |
| 64 | + |
| 65 | + {/* Column 3: Connect */} |
| 66 | + <div> |
| 67 | + <h3 className="text-sm font-semibold text-white tracking-wider uppercase font-mono mb-4">Connect</h3> |
| 68 | + <div className="flex gap-4 mb-6"> |
| 69 | + <a href="https://x.com/fezcoddy" target="_blank" rel="noreferrer" |
| 70 | + className="text-gray-400 hover:text-white transition-colors hover:bg-gray-800 p-2 rounded-lg"> |
| 71 | + <TwitterLogo size={24} weight="fill"/> |
| 72 | + </a> |
| 73 | + <a href="https://github.com/fezcode" target="_blank" rel="noreferrer" |
| 74 | + className="text-gray-400 hover:text-white transition-colors hover:bg-gray-800 p-2 rounded-lg"> |
| 75 | + <GithubLogo size={24} weight="fill"/> |
| 76 | + </a> |
| 77 | + <a href="https://www.linkedin.com/in/ahmed-samil-bulbul/?locale=en_US" target="_blank" rel="noreferrer" |
| 78 | + className="text-gray-400 hover:text-white transition-colors hover:bg-gray-800 p-2 rounded-lg"> |
| 79 | + <LinkedinLogo size={24} weight="fill"/> |
| 80 | + </a> |
| 81 | + </div> |
| 82 | + |
| 83 | + {/* Fake Newsletter */} |
| 84 | + <div className="relative"> |
| 85 | + <input |
| 86 | + type="text" |
| 87 | + disabled |
| 88 | + placeholder="Newsletter coming soon..." |
| 89 | + className="w-full bg-gray-900/50 border border-gray-800 rounded-lg py-2.5 pl-4 pr-10 text-sm text-gray-500 cursor-not-allowed" |
| 90 | + /> |
| 91 | + <PaperPlaneRight size={16} className="absolute right-3 top-3 text-gray-600"/> |
94 | 92 | </div> |
95 | | - <p className="text-sm text-gray-500"> |
96 | | - © {new Date().getFullYear()} fezcode. All rights reserved.{' '} |
97 | | - <code> v{version} </code> |
98 | | - </p> |
99 | | - <p className="text-xs text-gray-500 mt-1"> |
100 | | - Hint: Press <kbd className="kbd kbd-sm">Alt</kbd>+<kbd className="kbd kbd-sm">K</kbd> for commands |
101 | | - </p> |
102 | 93 | </div> |
| 94 | + |
| 95 | + </div> |
| 96 | + |
| 97 | + <div className="mt-12 pt-8 border-t border-gray-800/50 text-center md:text-left"> |
| 98 | + <p className="text-xs text-gray-600"> |
| 99 | + © {new Date().getFullYear()} fezcode. Built with React, Tailwind, and caffeine. |
| 100 | + </p> |
103 | 101 | </div> |
104 | 102 | </div> |
105 | 103 | </footer> |
|
0 commit comments