Seth commited on
Commit
60295bc
·
1 Parent(s): e016c4b
frontend/src/components/layout/AppShell.jsx CHANGED
@@ -15,32 +15,43 @@ export default function AppShell({ title, subtitle, rightContent, children }) {
15
  return (
16
  <div className="min-h-screen bg-gradient-to-br from-slate-50 via-white to-violet-50">
17
  <div className="flex min-h-screen">
18
- <aside className="hidden md:flex w-72 border-r border-slate-200 bg-white/85 backdrop-blur-sm p-4 flex-col gap-6 sticky top-0 h-screen">
19
- <div className="flex items-center gap-3 px-2 py-1">
20
- <div className="h-10 w-10 rounded-xl bg-gradient-to-br from-violet-600 to-purple-600 flex items-center justify-center shadow-lg shadow-violet-200">
21
  <Zap className="h-5 w-5 text-white" />
22
  </div>
23
  <div>
24
  <h1 className="font-bold text-slate-800 text-lg">SequenceAI</h1>
25
- <p className="text-xs text-slate-500">CRM-ready workspace</p>
26
  </div>
27
  </div>
28
- <nav className="space-y-1">
29
  {NAV_ITEMS.map((item) => {
30
  const Icon = item.icon;
31
  const active = location.pathname === item.href;
32
  return (
33
- <Button
34
- asChild
35
  key={item.href}
36
- variant={active ? "default" : "ghost"}
37
- className={`w-full justify-start ${active ? 'bg-violet-600 hover:bg-violet-700' : 'text-slate-700'}`}
 
 
 
38
  >
39
- <Link to={item.href}>
40
- <Icon className="h-4 w-4 mr-2" />
 
 
 
 
 
 
 
 
41
  {item.label}
42
- </Link>
43
- </Button>
44
  );
45
  })}
46
  </nav>
 
15
  return (
16
  <div className="min-h-screen bg-gradient-to-br from-slate-50 via-white to-violet-50">
17
  <div className="flex min-h-screen">
18
+ <aside className="hidden md:flex w-72 border-r border-slate-200 bg-white p-5 flex-col gap-8 sticky top-0 h-screen">
19
+ <div className="flex items-center gap-3 px-2 py-1 border-b border-slate-100 pb-5">
20
+ <div className="h-11 w-11 rounded-2xl bg-gradient-to-br from-violet-600 to-purple-600 flex items-center justify-center shadow-lg shadow-violet-200">
21
  <Zap className="h-5 w-5 text-white" />
22
  </div>
23
  <div>
24
  <h1 className="font-bold text-slate-800 text-lg">SequenceAI</h1>
25
+ <p className="text-xs text-slate-500">CRM Workspace</p>
26
  </div>
27
  </div>
28
+ <nav className="space-y-2">
29
  {NAV_ITEMS.map((item) => {
30
  const Icon = item.icon;
31
  const active = location.pathname === item.href;
32
  return (
33
+ <Link
34
+ to={item.href}
35
  key={item.href}
36
+ className={`w-full flex items-center gap-3 rounded-2xl px-3 py-3 transition-all ${
37
+ active
38
+ ? 'bg-violet-100 text-violet-700'
39
+ : 'text-slate-700 hover:bg-slate-50'
40
+ }`}
41
  >
42
+ <div
43
+ className={`h-10 w-10 rounded-xl border flex items-center justify-center ${
44
+ active
45
+ ? 'border-violet-200 bg-white text-violet-600'
46
+ : 'border-slate-200 bg-white text-slate-500'
47
+ }`}
48
+ >
49
+ <Icon className="h-5 w-5" />
50
+ </div>
51
+ <span className={`text-base font-medium ${active ? 'text-violet-700' : 'text-slate-700'}`}>
52
  {item.label}
53
+ </span>
54
+ </Link>
55
  );
56
  })}
57
  </nav>