Seth0330 commited on
Commit
deaa477
·
verified ·
1 Parent(s): 89594a7

Create frontend/src/components/AppHeader.jsx

Browse files
frontend/src/components/AppHeader.jsx ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // frontend/src/components/AppHeader.jsx
2
+ import React from "react";
3
+
4
+ export default function AppHeader({ title, subtitle, right }) {
5
+ return (
6
+ <header className="border-b border-slate-200 bg-white/80 backdrop-blur">
7
+ <div className="max-w-6xl mx-auto px-4 py-4 flex items-center justify-between gap-4">
8
+ <div className="flex items-center gap-3 min-w-0">
9
+ <img
10
+ src="/dojo-logo.png"
11
+ alt="Karate Dojo logo"
12
+ className="h-8 w-8 rounded-full border border-slate-200 object-contain bg-white"
13
+ />
14
+ <div className="min-w-0">
15
+ <div className="text-sm font-semibold tracking-tight truncate">
16
+ {title}
17
+ </div>
18
+ {subtitle && (
19
+ <div className="text-xs text-slate-500 truncate">
20
+ {subtitle}
21
+ </div>
22
+ )}
23
+ </div>
24
+ </div>
25
+
26
+ {right && (
27
+ <div className="flex items-center gap-3 shrink-0">
28
+ {right}
29
+ </div>
30
+ )}
31
+ </div>
32
+ </header>
33
+ );
34
+ }