redesgined header
This commit is contained in:
@@ -22,9 +22,12 @@ const Header: React.FC<HeaderProps> = ({ onLogout }) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const btn =
|
||||||
|
"inline-flex items-center h-9 px-3 rounded-md text-sm font-medium border border-slate-300 bg-white text-slate-700 hover:bg-slate-100 active:bg-slate-200 transition focus:outline-none focus:ring-2 focus:ring-slate-400/50";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="mb-4 sm:mb-6">
|
<header className="mb-4 sm:mb-6">
|
||||||
<div className="flex items-start justify-between gap-3">
|
<div className="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div className="min-w-0">
|
<div className="min-w-0">
|
||||||
<h1 className="text-2xl sm:text-3xl font-extrabold text-slate-900 tracking-tight">
|
<h1 className="text-2xl sm:text-3xl font-extrabold text-slate-900 tracking-tight">
|
||||||
Gegenstand ausleihen
|
Gegenstand ausleihen
|
||||||
@@ -33,30 +36,38 @@ const Header: React.FC<HeaderProps> = ({ onLogout }) => {
|
|||||||
Schnell und unkompliziert Equipment reservieren
|
Schnell und unkompliziert Equipment reservieren
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<nav
|
||||||
|
aria-label="Aktionen"
|
||||||
|
className="flex flex-wrap items-center gap-2"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
href="https://git.the1s.de/Matthias-Claudius-Schule/borrow-system/src/branch/dev/Docs/HELP.md"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
className={btn}
|
||||||
|
>
|
||||||
|
Hilfe
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="https://git.the1s.de/Matthias-Claudius-Schule/borrow-system"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
className={btn}
|
||||||
|
>
|
||||||
|
Source Code
|
||||||
|
</a>
|
||||||
|
<button type="button" onClick={passwordForm} className={btn}>
|
||||||
|
Passwort ändern
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onLogout}
|
onClick={onLogout}
|
||||||
className="h-9 px-3 rounded-md border border-slate-300 text-slate-700 hover:bg-slate-100 transition"
|
className={`${btn} border-rose-300 hover:bg-rose-50`}
|
||||||
>
|
>
|
||||||
Logout
|
Logout
|
||||||
</button>
|
</button>
|
||||||
<a href="https://git.the1s.de/Matthias-Claudius-Schule/borrow-system/src/branch/dev/Docs/HELP.md">
|
</nav>
|
||||||
<button className="h-9 px-3 rounded-md border border-slate-300 text-slate-700 hover:bg-slate-100 transition">
|
|
||||||
Hilfe
|
|
||||||
</button>
|
|
||||||
</a>
|
|
||||||
<a href="https://git.the1s.de/Matthias-Claudius-Schule/borrow-system">
|
|
||||||
<button className="h-9 px-3 rounded-md border border-slate-300 text-slate-700 hover:bg-slate-100 transition">
|
|
||||||
Source Code
|
|
||||||
</button>
|
|
||||||
</a>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={passwordForm}
|
|
||||||
className="h-9 px-3 rounded-md border border-slate-300 text-slate-700 hover:bg-slate-100 transition"
|
|
||||||
>
|
|
||||||
Passwort ändern
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user