feat: news

This commit is contained in:
Ivan Rezchikov
2026-06-20 18:30:39 +03:00
parent 674fd11aa9
commit 95fd6ae716
19 changed files with 886 additions and 159 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ import { Button } from "./ui/button";
import login from "@/app/actions/login";
import { getCurrentUser } from "@/lib/user";
import logout from "@/app/actions/logout";
import Link from "next/link";
export default async function Header() {
const user = await getCurrentUser();
@@ -10,7 +11,7 @@ export default async function Header() {
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">
<Link href="/" className="absolute left-1/2 -translate-x-1/2 flex items-center gap-4">
<Image
src="/emblem.png"
width={28}
@@ -18,7 +19,7 @@ export default async function Header() {
alt="Emblem of the European Federation"
/>
<h3>European Federation</h3>
</div>
</Link>
{
user ? (
<form action={logout}>