import React from 'react'; import { useTranslation } from 'react-i18next'; import { ExternalLink } from 'lucide-react'; import Layout from '@/components/Layout'; const DOCS_URL = 'https://docs.pezkuwichain.io'; const DOC_SECTIONS = [ { icon: '📄', titleKey: 'docs.section.whitepaper', title: 'Whitepaper', descKey: 'docs.section.whitepaper.desc', desc: 'The foundational document describing the PezkuwiChain vision, architecture, and tokenomics.', path: '/whitepaper', color: 'bg-green-900/30 border-green-700/40', iconBg: 'bg-green-800', }, { icon: '🏛️', titleKey: 'docs.section.architecture', title: 'Architecture', descKey: 'docs.section.architecture.desc', desc: 'Technical deep-dive into the blockchain architecture, consensus, pallets, and relay chain.', path: '/architecture', color: 'bg-blue-900/30 border-blue-700/40', iconBg: 'bg-blue-800', }, { icon: '🚀', titleKey: 'docs.section.gettingStarted', title: 'Getting Started', descKey: 'docs.section.gettingStarted.desc', desc: 'Set up your wallet, get test tokens from the faucet, and make your first transaction.', path: '/getting-started', color: 'bg-yellow-900/30 border-yellow-700/40', iconBg: 'bg-yellow-800', }, { icon: '⚙️', titleKey: 'docs.section.nodeSetup', title: 'Node Setup', descKey: 'docs.section.nodeSetup.desc', desc: 'Run a validator or full node on PezkuwiChain mainnet, testnet or local environment.', path: '/node-setup', color: 'bg-purple-900/30 border-purple-700/40', iconBg: 'bg-purple-800', }, { icon: '🛠️', titleKey: 'docs.section.sdk', title: 'SDK Reference', descKey: 'docs.section.sdk.desc', desc: 'JavaScript/TypeScript SDK for building dApps on PezkuwiChain — API reference and examples.', path: '/sdk', color: 'bg-cyan-900/30 border-cyan-700/40', iconBg: 'bg-cyan-800', }, { icon: '🤝', titleKey: 'docs.section.contributing', title: 'Contributor Guide', descKey: 'docs.section.contributing.desc', desc: 'How to contribute to PezkuwiChain — code, documentation, translations, and governance.', path: '/contributing', color: 'bg-red-900/30 border-red-700/40', iconBg: 'bg-red-800', }, ]; const QUICK_LINKS = [ { label: 'Mainnet RPC', value: 'wss://rpc.pezkuwichain.io' }, { label: 'Explorer', value: 'explorer.pezkuwichain.io', href: 'https://explorer.pezkuwichain.io' }, { label: 'Faucet', value: 'app.pezkuwichain.io/faucet', href: '/faucet' }, { label: 'GitHub', value: 'github.com/pezkuwichain', href: 'https://github.com/pezkuwichain' }, ]; const Docs: React.FC = () => { const { t } = useTranslation(); return (
{/* Hero */}
📖

{t('docs.title', 'PezkuwiChain Documentation')}

{t('docs.subtitle', 'Everything you need to build on the Kurdish national blockchain')}

{/* Quick Links */}
{QUICK_LINKS.map(link => (

{link.label}

{link.value}

))}
{/* Documentation Sections */}
{DOC_SECTIONS.map(section => (
{section.icon}

{t(section.titleKey, section.title)}

{t(section.descKey, section.desc)}

))}
{/* Full Docs Button */}

{t('docs.fullDocsNote', 'For complete and up-to-date documentation, visit the official documentation portal.')}

{t('docs.visitFullDocs', 'Visit docs.pezkuwichain.io')}
); }; export default Docs;