feat: account

This commit is contained in:
Ivan Rezchikov
2026-06-23 15:32:52 +03:00
parent 64923cd1b2
commit 58ec75c948
18 changed files with 205 additions and 29 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ export default function EditPageClient({ page, pageType, initialBlocks = [] }: P
return (
<div className="flex flex-col p-16 gap-12">
<div className="flex flex-row items-center justify-between">
<h1 className="underline underline-offset-8 decoration-2">Edit page</h1>
<h1 className="">Edit page</h1>
<div className="flex flex-row gap-3">
<Button
disabled={isPending}
+2 -2
View File
@@ -170,7 +170,7 @@ export default async function Page({ params }: { params: Promise<{ type: string;
<div className="flex flex-col p-16 gap-12">
<div className={cn("flex flex-col gap-4 justify-center", isNews && "items-center")}>
<div className="flex flex-row items-center gap-6">
<h1 className="underline underline-offset-8 decoration-2">{page?.title}</h1>
<h1 className="">{page?.title}</h1>
{user?.isAdmin && (
<div className="flex flex-row gap-2 items-center">
<Link href={`/${page.type.toLowerCase()}/${page.slug}/edit`}>
@@ -194,7 +194,7 @@ export default async function Page({ params }: { params: Promise<{ type: string;
<Alert className="w-max">
<InfoIcon />
<AlertTitle>This page is archived</AlertTitle>
<AlertDescription>It can be seen only by admins. Make any edits to make it visible again.</AlertDescription>
<AlertDescription>It can be seen only by administrators. Make any edits to make it visible again.</AlertDescription>
</Alert>
)}
{blocks.map((block) => (