Nicolas Cantu 449b2f4711 Update documentation content and wording to match zapwall.fr
- Update user-guide.md: Use 'publication' instead of 'article', add page auteur, series, reviews
- Update faq.md: Align with current platform terminology and features
- Update publishing-guide.md: Add page auteur requirement, series, correct commissions
- Update payment-guide.md: Update wording and add commission information
- All documentation now uses consistent terminology: publication, page auteur, série, avis
- Commissions clearly explained: 800 sats (700+100), 0.046 BTC (0.042+0.004), 70 sats (49+21)
2025-12-27 23:05:33 +01:00

41 lines
1.3 KiB
TypeScript

import React from 'react'
type DocSection = 'user-guide' | 'faq' | 'publishing' | 'payment'
interface DocLink {
id: DocSection
title: string
file: string
}
interface DocsSidebarProps {
docs: DocLink[]
selectedDoc: DocSection
onSelectDoc: (docId: DocSection) => void
}
export function DocsSidebar({ docs, selectedDoc, onSelectDoc }: DocsSidebarProps) {
return (
<aside className="lg:w-64 flex-shrink-0">
<div className="bg-cyber-dark border border-neon-cyan/20 rounded-lg p-4 sticky top-4 backdrop-blur-sm">
<h2 className="text-lg font-bold mb-4 text-neon-cyan font-mono">Documentation</h2>
<nav className="space-y-2">
{docs.map((doc) => (
<button
key={doc.id}
onClick={() => onSelectDoc(doc.id)}
className={`w-full text-left px-3 py-2 rounded-lg text-sm transition-all ${
selectedDoc === doc.id
? 'bg-neon-cyan/20 text-neon-cyan font-medium border border-neon-cyan/50 shadow-glow-cyan'
: 'text-cyber-accent hover:bg-cyber-dark/50 hover:text-neon-cyan border border-transparent hover:border-neon-cyan/30'
}`}
>
{doc.title}
</button>
))}
</nav>
</div>
</aside>
)
}