feat: guide — barre de recherche live + lien sidebar (BookOpen, bas)
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 34s
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 34s
This commit is contained in:
@@ -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 */}
|
||||
|
||||
Reference in New Issue
Block a user