feat: add user authentication with livewire components

This commit is contained in:
jeremy bayse
2026-06-24 06:53:19 +02:00
parent 5b05dfa8c7
commit fa38396479
9 changed files with 368 additions and 11 deletions
+14 -1
View File
@@ -79,11 +79,24 @@
</p>
</div>
<div class="flex items-center gap-3">
<div class="flex flex-col sm:flex-row items-center gap-4">
<span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-emerald-400/10 text-emerald-400 border border-emerald-500/20">
<span class="w-1.5 h-1.5 mr-1.5 rounded-full bg-emerald-400 animate-ping"></span>
Actif
</span>
@auth
<div class="flex items-center gap-3 bg-slate-900 border border-slate-800 rounded-xl px-4 py-2">
<div class="text-right">
<p class="text-xs text-slate-400">Connecté en tant que</p>
<p class="text-sm font-semibold text-slate-200">{{ auth()->user()->name }}</p>
</div>
<div class="w-px h-8 bg-slate-800"></div>
<a href="{{ route('logout') }}" class="text-xs font-bold text-rose-400 hover:text-rose-300 transition duration-150 py-1 px-2.5 rounded-lg hover:bg-rose-500/10">
Déconnexion
</a>
</div>
@endauth
</div>
</header>