mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:27:19 +00:00
Add personalized welcome message to the admin dashboard
Adds a dynamic greeting with the user's name and time-of-day specific salutation to the admin dashboard upon successful login, enhancing user experience. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 720e83ee-8cea-4268-b841-62fa1c4efbb0 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/WjFB7uq Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
3e9e10e757
commit
724d621e59
1 changed files with 12 additions and 0 deletions
|
|
@ -120,6 +120,18 @@ export default function Admin() {
|
|||
|
||||
<div className="relative z-10 p-8">
|
||||
<div className="mb-8">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: -10 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
className="mb-4 p-4 bg-primary/10 border border-primary/30"
|
||||
>
|
||||
<h2 className="text-xl font-display font-bold text-primary" data-testid="text-welcome">
|
||||
Welcome back, {user?.username?.split('@')[0] || 'Admin'}!
|
||||
</h2>
|
||||
<p className="text-sm text-muted-foreground mt-1">
|
||||
{new Date().getHours() < 12 ? 'Good morning' : new Date().getHours() < 17 ? 'Good afternoon' : 'Good evening'}. Here's your ecosystem overview.
|
||||
</p>
|
||||
</motion.div>
|
||||
<h2 className="text-2xl font-display font-bold text-white uppercase tracking-wider">
|
||||
Dashboard
|
||||
</h2>
|
||||
|
|
|
|||
Loading…
Reference in a new issue