feat: news
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user