feat: HUD bar — stats persistantes sous le header
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 32s
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 32s
Barre compacte toujours visible : nom+level, HP, endurance+timer regen, XP, or, quêtes actives (avec compteur "prêtes !"). Timer live : "+1 dans X:XX" quand endurance < max. Auto-refresh 30s pour l'endurance, 60s pour les quêtes. Chaque section cliquable vers la page correspondante.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Link, useLocation } from 'react-router-dom';
|
||||
import { useAuth } from '../context/AuthContext';
|
||||
import { Swords, Package, Hammer, User, LogOut, Shield, Scroll } from 'lucide-react';
|
||||
import { HudBar } from './HudBar';
|
||||
|
||||
const NAV = [
|
||||
{ to: '/dashboard', icon: User, label: 'Personnage' },
|
||||
@@ -44,6 +45,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
|
||||
)}
|
||||
</header>
|
||||
|
||||
<HudBar />
|
||||
<div style={{ display: 'flex', flex: 1 }}>
|
||||
{/* Sidebar nav */}
|
||||
<nav style={{
|
||||
|
||||
Reference in New Issue
Block a user