initial commit

This commit is contained in:
Ivan Rezchikov
2026-06-18 22:37:03 +03:00
parent d5d42a2141
commit 6c89f21039
30 changed files with 1506 additions and 95 deletions
+36
View File
@@ -0,0 +1,36 @@
import Image from "next/image";
import { Button } from "./ui/button";
import login from "@/app/actions/login";
import { getCurrentUser } from "@/lib/user";
export default async function Header() {
const user = await getCurrentUser();
return (
<header className="relative flex items-center justify-between w-full h-16 px-8 bg-gray-100">
<div />
<div className="absolute left-1/2 -translate-x-1/2 flex items-center gap-4">
<Image
src="/emblem.png"
width={28}
height={28}
alt="Emblem of the European Federation"
/>
<h3>European Federation</h3>
</div>
{
user ? (
<div className="flex items-center gap-4">
<span className="">
{user.firstName} {user.secondName}
</span>
</div>
) : (
<form action={login}>
<Button size="lg" type="submit">Sign in with Kotosoft ID</Button>
</form>
)
}
</header>
)
}