feat: guide — barre de recherche live + lien sidebar (BookOpen, bas)
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 34s

This commit is contained in:
2026-03-24 21:25:30 +01:00
parent 823d7911f0
commit 84104cd96f
2 changed files with 62 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import { Link, useLocation } from 'react-router-dom';
import { useAuth } from '../context/AuthContext';
import { Swords, Package, Hammer, User, LogOut, Shield, Scroll, Trophy, ShoppingBag } from 'lucide-react';
import { Swords, Package, Hammer, User, LogOut, Shield, Scroll, Trophy, ShoppingBag, BookOpen } from 'lucide-react';
import { HudBar } from './HudBar';
const NAV = [
@@ -83,6 +83,22 @@ export function Layout({ children }: { children: React.ReactNode }) {
</Link>
);
})}
<div style={{ flex: 1 }} />
<Link to="/guide" title="Guide" style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: 40,
height: 40,
borderRadius: 8,
color: loc.pathname === '/guide' ? '#f4c94e' : '#6b7a99',
background: loc.pathname === '/guide' ? '#1e2535' : 'transparent',
border: loc.pathname === '/guide' ? '1px solid #c49c2e' : '1px solid transparent',
textDecoration: 'none',
transition: 'all 0.15s',
}}>
<BookOpen size={18} />
</Link>
</nav>
{/* Main content */}