feat: citizenship applications

This commit is contained in:
Ivan Rezchikov
2026-06-23 19:03:10 +03:00
parent 58ec75c948
commit c60ab9e8f9
44 changed files with 1254 additions and 130 deletions
+4 -16
View File
@@ -1,6 +1,5 @@
import Footer from "@/components/footer";
import Header from "@/components/header";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import { getCurrentUser } from "@/lib/user";
import { formatDate } from "@/lib/utils";
@@ -8,6 +7,8 @@ import { BookOpenTextIcon, SignatureIcon, UserIcon } from "lucide-react";
import { redirect } from "next/navigation";
import { DeleteDialog } from "./deleteDialog";
import { LogoutButton } from "./logoutButton";
import { UpdateButton } from "./updateButton";
import { AccountMenu } from "./menu";
function ProfileField({ label, value }: { label: string; value: string }) {
return (
@@ -26,20 +27,7 @@ export default async function Account() {
<>
<Header />
<div className="flex flex-row py-16 gap-8">
<div className="flex flex-col w-56 gap-2 mx-16 shrink-0">
<div className="flex flex-row gap-2 items-center text-foreground underline underline-offset-8 decoration-2 mb-1.5">
<UserIcon size={16} />
<h4>Profile</h4>
</div>
<div className="flex flex-row gap-2 items-center text-muted-foreground hover:text-foreground hover:underline underline-offset-8 decoration-2 duration-200 cursor-pointer">
<BookOpenTextIcon size={16} />
<h4>Citizenship</h4>
</div>
<div className="flex flex-row gap-2 items-center text-muted-foreground hover:text-foreground hover:underline underline-offset-8 decoration-2 duration-200 cursor-pointer">
<SignatureIcon size={16} />
<h4>Signature</h4>
</div>
</div>
<AccountMenu />
<div className="flex flex-col gap-8 max-w-lg">
<div className="flex flex-col gap-6">
<div className="flex flex-col gap-1">
@@ -61,7 +49,7 @@ export default async function Account() {
<h4>Update personal details</h4>
<p className="text-muted-foreground">Syncs your name, email, and birthday from Kotosoft ID</p>
</div>
<Button variant="secondary">Update</Button>
<UpdateButton />
</div>
<div className="flex flex-row items-center justify-between">
<div className="flex flex-col">