b08x commited on
Commit
28f55aa
·
verified ·
1 Parent(s): 17f555d

Upload components/Header.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Header.js +27 -0
components/Header.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Link from 'next/link';
2
+
3
+ export default function Header({ title, subtitle }) {
4
+ return (
5
+ <header className="border-b-2 border-brutal-black bg-brutal-white sticky top-0 z-30">
6
+ <div className="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
7
+ <div>
8
+ {subtitle && (
9
+ <p className="font-mono text-xs text-brutal-gray uppercase tracking-wider mb-1">
10
+ {subtitle}
11
+ </p>
12
+ )}
13
+ <h1 className="font-bold text-2xl md:text-3xl">{title}</h1>
14
+ </div>
15
+
16
+ <a
17
+ href="https://huggingface.co/spaces/akhaliq/anycoder"
18
+ target="_blank"
19
+ rel="noopener noreferrer"
20
+ className="font-mono text-xs uppercase tracking-wider bg-brutal-black text-brutal-white px-3 py-2 border-2 border-brutal-black hover:bg-brutal-accent hover:border-brutal-accent transition-colors"
21
+ >
22
+ Built with anycoder
23
+ </a>
24
+ </div>
25
+ </header>
26
+ );
27
+ }