|
| 1 | +'use client'; |
| 2 | + |
| 3 | +import Link from "next/link"; |
| 4 | +import { useLanguage } from "@/components/providers/language-provider"; |
| 5 | +import { translations } from "@/lib/language-detection"; |
| 6 | + |
| 7 | +export function Footer() { |
| 8 | + const { language } = useLanguage(); |
| 9 | + const t = translations[language]; |
| 10 | + |
| 11 | + return ( |
| 12 | + <footer className="bg-slate-900/50 border-t border-slate-700/50 backdrop-blur-sm"> |
| 13 | + <div className="container mx-auto px-6 py-8"> |
| 14 | + <div className="flex flex-col md:flex-row justify-between items-center gap-4"> |
| 15 | + {/* Logo and title */} |
| 16 | + <div className="flex items-center gap-3"> |
| 17 | + <div className="relative"> |
| 18 | + <div className="w-8 h-8 bg-gradient-to-r from-blue-500 to-blue-600 rounded-lg flex items-center justify-center shadow-lg shadow-blue-500/20"> |
| 19 | + <span className="text-white text-sm">🔮</span> |
| 20 | + </div> |
| 21 | + <div className="absolute inset-0 w-8 h-8 bg-gradient-to-r from-blue-500/10 to-blue-600/10 rounded-lg blur-sm"></div> |
| 22 | + </div> |
| 23 | + <div className="text-sm text-slate-300"> |
| 24 | + <div className="font-semibold text-white">Open Superintelligence Lab</div> |
| 25 | + <div className="text-xs text-slate-400">开放超级智能实验室</div> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + |
| 29 | + {/* Navigation links */} |
| 30 | + <div className="flex gap-6 items-center"> |
| 31 | + <Link |
| 32 | + href="/about" |
| 33 | + className="text-sm text-slate-300 hover:text-blue-400 transition-colors" |
| 34 | + > |
| 35 | + {t.about} |
| 36 | + </Link> |
| 37 | + <a |
| 38 | + href="https://github.com/open-superintelligence-lab" |
| 39 | + className="text-sm text-slate-300 hover:text-blue-400 transition-colors" |
| 40 | + target="_blank" |
| 41 | + rel="noopener noreferrer" |
| 42 | + > |
| 43 | + {t.github} |
| 44 | + </a> |
| 45 | + <Link |
| 46 | + href="/contribute" |
| 47 | + className="text-sm text-slate-300 hover:text-blue-400 transition-colors" |
| 48 | + > |
| 49 | + {language === 'en' ? 'Contribute' : '贡献'} |
| 50 | + </Link> |
| 51 | + <Link |
| 52 | + href="/learn" |
| 53 | + className="text-sm text-slate-300 hover:text-blue-400 transition-colors" |
| 54 | + > |
| 55 | + Learn |
| 56 | + </Link> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + |
| 60 | + {/* Bottom section */} |
| 61 | + <div className="mt-6 pt-6 border-t border-slate-700/50 flex flex-col md:flex-row justify-between items-center gap-4 text-xs text-slate-400"> |
| 62 | + <div> |
| 63 | + © 2024 Open Superintelligence Lab. {language === 'en' ? 'All rights reserved.' : '保留所有权利。'} |
| 64 | + </div> |
| 65 | + <div className="flex gap-4"> |
| 66 | + <a |
| 67 | + href="https://discord.com/invite/6AbXGpKTwN" |
| 68 | + className="hover:text-blue-400 transition-colors" |
| 69 | + target="_blank" |
| 70 | + rel="noopener noreferrer" |
| 71 | + > |
| 72 | + Discord |
| 73 | + </a> |
| 74 | + <span className="text-slate-600">•</span> |
| 75 | + <span> |
| 76 | + {language === 'en' ? 'Advancing AI research and development' : '推进AI研究和开发'} |
| 77 | + </span> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + </footer> |
| 82 | + ); |
| 83 | +} |
0 commit comments