|
| 1 | +import React, { useState } from 'react'; |
| 2 | +import { Link } from 'react-router-dom'; |
| 3 | +import { SITE_DATA } from '../data'; |
| 4 | +import { Gamepad2, Github, Twitter, Menu, X, Mail, ShoppingBag, ExternalLink } from 'lucide-react'; |
| 5 | + |
| 6 | +const Navigation = () => { |
| 7 | + const [isOpen, setIsOpen] = useState(false); |
| 8 | + |
| 9 | + return ( |
| 10 | + <nav className="fixed top-0 left-0 right-0 z-50 bg-slate-900/90 backdrop-blur-md border-b border-slate-800"> |
| 11 | + <div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8"> |
| 12 | + <div className="flex items-center justify-between h-16"> |
| 13 | + <div className="flex items-center gap-2"> |
| 14 | + <Link to="/" className="flex items-center gap-2"> |
| 15 | + <Gamepad2 className="w-6 h-6 text-emerald-400" /> |
| 16 | + <span className="font-bold text-xl text-white tracking-wider font-mono"> |
| 17 | + {SITE_DATA.profile.name} |
| 18 | + </span> |
| 19 | + </Link> |
| 20 | + </div> |
| 21 | + |
| 22 | + <div className="hidden md:block"> |
| 23 | + <div className="ml-10 flex items-baseline space-x-8"> |
| 24 | + <Link to="/projects" className="text-slate-300 hover:text-emerald-400 px-3 py-2 rounded-md text-sm font-medium transition-colors">All Projects</Link> |
| 25 | + <Link to="/blog" className="text-slate-300 hover:text-emerald-400 px-3 py-2 rounded-md text-sm font-medium transition-colors">DevLog</Link> |
| 26 | + <Link to="/contact" className="text-emerald-400 px-3 py-2 rounded-md text-sm font-medium transition-colors">Contact</Link> |
| 27 | + </div> |
| 28 | + </div> |
| 29 | + |
| 30 | + <div className="md:hidden"> |
| 31 | + <button onClick={() => setIsOpen(!isOpen)} className="text-slate-300 hover:text-white p-2"> |
| 32 | + {isOpen ? <X /> : <Menu />} |
| 33 | + </button> |
| 34 | + </div> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + |
| 38 | + {/* Mobile Menu */} |
| 39 | + {isOpen && ( |
| 40 | + <div className="md:hidden bg-slate-900 border-b border-slate-800"> |
| 41 | + <div className="px-2 pt-2 pb-3 space-y-1 sm:px-3"> |
| 42 | + <Link to="/projects" className="text-slate-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">All Projects</Link> |
| 43 | + <Link to="/blog" className="text-slate-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">DevLog</Link> |
| 44 | + <Link to="/contact" className="text-emerald-400 block px-3 py-2 rounded-md text-base font-medium">Contact</Link> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + )} |
| 48 | + </nav> |
| 49 | + ); |
| 50 | +}; |
| 51 | + |
| 52 | +const Footer = () => { |
| 53 | + return ( |
| 54 | + <footer id="contact" className="bg-slate-950 border-t border-slate-900 py-12 mt-20"> |
| 55 | + <div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 flex flex-col md:flex-row justify-between items-center gap-6"> |
| 56 | + <div className="text-center md:text-left"> |
| 57 | + <div className="flex items-center justify-center md:justify-start gap-2 mb-2"> |
| 58 | + <Gamepad2 className="w-5 h-5 text-emerald-500" /> |
| 59 | + <span className="font-bold text-white text-lg">{SITE_DATA.profile.name}</span> |
| 60 | + </div> |
| 61 | + <p className="text-slate-500 text-sm">Building worlds, debugging reality.</p> |
| 62 | + </div> |
| 63 | + |
| 64 | + <div className="flex gap-6"> |
| 65 | + <a href={SITE_DATA.profile.social.github} className="text-slate-400 hover:text-white transition-colors"> |
| 66 | + <Github size={20} /> |
| 67 | + </a> |
| 68 | + <a href={SITE_DATA.profile.social.twitter} className="text-slate-400 hover:text-blue-400 transition-colors"> |
| 69 | + <Twitter size={20} /> |
| 70 | + </a> |
| 71 | + </div> |
| 72 | + |
| 73 | + <div className="text-slate-600 text-sm"> |
| 74 | + © {new Date().getFullYear()} {SITE_DATA.profile.name} |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </footer> |
| 78 | + ); |
| 79 | +}; |
| 80 | + |
| 81 | +const Contact = () => { |
| 82 | + return ( |
| 83 | + <div className="min-h-screen bg-slate-900 text-slate-200 selection:bg-emerald-500/30 selection:text-emerald-200"> |
| 84 | + <Navigation /> |
| 85 | + |
| 86 | + <main className="pt-32 pb-16 px-4 sm:px-6 lg:px-8 max-w-4xl mx-auto"> |
| 87 | + <div className="mb-12"> |
| 88 | + <h1 className="text-4xl md:text-5xl font-bold text-white mb-4 flex items-center gap-3"> |
| 89 | + <Mail className="text-emerald-500" /> Contact & Links |
| 90 | + </h1> |
| 91 | + <p className="text-slate-400 text-lg">SNSやストアへのリンク一覧です。</p> |
| 92 | + </div> |
| 93 | + |
| 94 | + <div className="grid grid-cols-1 md:grid-cols-2 gap-8"> |
| 95 | + {/* Socials */} |
| 96 | + <div className="bg-slate-800 rounded-xl p-8 border border-slate-700"> |
| 97 | + <h2 className="text-2xl font-bold text-white mb-6 flex items-center gap-2"> |
| 98 | + <Github className="text-emerald-400" /> Socials |
| 99 | + </h2> |
| 100 | + <div className="space-y-4"> |
| 101 | + <a href={SITE_DATA.profile.social.github} target="_blank" rel="noopener noreferrer" |
| 102 | + className="flex items-center justify-between p-4 bg-slate-900 rounded-lg hover:bg-slate-700 transition-colors group"> |
| 103 | + <span className="flex items-center gap-3 font-medium text-slate-200"> |
| 104 | + <Github size={20} /> GitHub |
| 105 | + </span> |
| 106 | + <ExternalLink size={16} className="text-slate-500 group-hover:text-emerald-400" /> |
| 107 | + </a> |
| 108 | + <a href={SITE_DATA.profile.social.twitter} target="_blank" rel="noopener noreferrer" |
| 109 | + className="flex items-center justify-between p-4 bg-slate-900 rounded-lg hover:bg-slate-700 transition-colors group"> |
| 110 | + <span className="flex items-center gap-3 font-medium text-slate-200"> |
| 111 | + <Twitter size={20} /> Twitter (X) |
| 112 | + </span> |
| 113 | + <ExternalLink size={16} className="text-slate-500 group-hover:text-emerald-400" /> |
| 114 | + </a> |
| 115 | + </div> |
| 116 | + </div> |
| 117 | + |
| 118 | + {/* Stores */} |
| 119 | + <div className="bg-slate-800 rounded-xl p-8 border border-slate-700"> |
| 120 | + <h2 className="text-2xl font-bold text-white mb-6 flex items-center gap-2"> |
| 121 | + <ShoppingBag className="text-emerald-400" /> Stores |
| 122 | + </h2> |
| 123 | + <div className="space-y-4"> |
| 124 | + {SITE_DATA.profile.stores?.steam && ( |
| 125 | + <a href={SITE_DATA.profile.stores.steam} target="_blank" rel="noopener noreferrer" |
| 126 | + className="flex items-center justify-between p-4 bg-slate-900 rounded-lg hover:bg-slate-700 transition-colors group"> |
| 127 | + <span className="flex items-center gap-3 font-medium text-slate-200"> |
| 128 | + <Gamepad2 size={20} /> Steam |
| 129 | + </span> |
| 130 | + <ExternalLink size={16} className="text-slate-500 group-hover:text-emerald-400" /> |
| 131 | + </a> |
| 132 | + )} |
| 133 | + {SITE_DATA.profile.stores?.itchio && ( |
| 134 | + <a href={SITE_DATA.profile.stores.itchio} target="_blank" rel="noopener noreferrer" |
| 135 | + className="flex items-center justify-between p-4 bg-slate-900 rounded-lg hover:bg-slate-700 transition-colors group"> |
| 136 | + <span className="flex items-center gap-3 font-medium text-slate-200"> |
| 137 | + <Gamepad2 size={20} /> Itch.io |
| 138 | + </span> |
| 139 | + <ExternalLink size={16} className="text-slate-500 group-hover:text-emerald-400" /> |
| 140 | + </a> |
| 141 | + )} |
| 142 | + {/* Add more stores as needed */} |
| 143 | + </div> |
| 144 | + </div> |
| 145 | + </div> |
| 146 | + </main> |
| 147 | + |
| 148 | + <Footer /> |
| 149 | + </div> |
| 150 | + ); |
| 151 | +}; |
| 152 | + |
| 153 | +export default Contact; |
0 commit comments