"use client"; import { useTranslations } from "next-intl"; import { motion } from "framer-motion"; import { useLocale } from "next-intl"; import Link from "next/link"; function DiscordIcon({ className }: { className?: string }) { return ( ); } function GitHubIcon({ className }: { className?: string }) { return ( ); } function HeartIcon({ className }: { className?: string }) { return ( ); } function MessageIcon({ className }: { className?: string }) { return ( ); } const cardVariants = { hidden: { opacity: 0, y: 20 }, visible: (i: number) => ({ opacity: 1, y: 0, transition: { delay: i * 0.1, duration: 0.5, ease: "easeOut" as const }, }), }; const channels = [ { name: "Discord", description: "Join our community Discord to chat with other players, get support, and stay updated on new releases.", href: "https://discord.gg/projectafterlife", icon: DiscordIcon, color: "text-[#d4a574]", bg: "bg-[rgba(212,165,116,0.08)] border-[rgba(212,165,116,0.15)] hover:border-[rgba(212,165,116,0.35)]", btn: "bg-[#d4a574] hover:bg-[#e8c4a0] text-[#0a0a0f]", btnText: "text-[#0a0a0f]", label: "Join Discord", }, { name: "GitHub", description: "Our code is open source. Contribute to the project, report issues, or explore our repositories.", href: "https://github.com/projectafterlife", icon: GitHubIcon, color: "text-[#a0a0a8]", bg: "bg-[rgba(255,255,255,0.03)] border-[rgba(255,255,255,0.08)] hover:border-[rgba(255,255,255,0.15)]", btn: "bg-[#1a1a24] hover:bg-[#2a2a34] text-[#f5f5f7]", btnText: "text-[#f5f5f7]", label: "View GitHub", }, { name: "Forums", description: "Long-form discussions, guides, bug reports, and feature requests. The heart of our community.", href: "#", icon: MessageIcon, color: "text-[#e8c4a0]", bg: "bg-[rgba(232,196,160,0.08)] border-[rgba(232,196,160,0.15)] hover:border-[rgba(232,196,160,0.35)]", btn: "bg-[#e8c4a0] hover:bg-[#d4a574] text-[#0a0a0f]", btnText: "text-[#0a0a0f]", label: "Coming Soon", }, { name: "Contribute", description: "Help us preserve gaming history. We need developers, writers, translators, and testers.", href: "/donate", icon: HeartIcon, color: "text-rose-400", bg: "bg-rose-500/8 border-rose-500/15 hover:border-rose-500/35", btn: "bg-rose-600 hover:bg-rose-500 text-white", btnText: "text-white", label: "How to Help", }, ]; export default function CommunityPage() { const locale = useLocale(); const isEs = locale === "es"; return (

{isEs ? "Comunidad" : "Community"}

{isEs ? "Project Afterlife es impulsado por su comunidad. Únete a nosotros para preservar la historia de los juegos juntos." : "Project Afterlife is driven by its community. Join us in preserving gaming history together."}

{channels.map((channel, i) => { const Icon = channel.icon; const isExternal = channel.href.startsWith("http"); const Wrapper = isExternal ? "a" : Link; const wrapperProps = isExternal ? { href: channel.href, target: "_blank", rel: "noopener noreferrer" } : { href: channel.href }; return (

{channel.name}

{channel.description}

{channel.label}
); })}

{isEs ? "Código de Conducta" : "Code of Conduct"}

{isEs ? "Todos los miembros de nuestra comunidad deben tratar a los demás con respeto. No se tolera el acoso, la discriminación ni el comportamiento tóxico. Queremos que este sea un espacio seguro y acogedor para todos los amantes de los juegos." : "All members of our community must treat others with respect. Harassment, discrimination, and toxic behavior are not tolerated. We want this to be a safe and welcoming space for all game lovers."}

); }