2024-05-14 08:56:54 +00:00
|
|
|
"use client";
|
|
|
|
|
2023-09-04 11:25:43 +00:00
|
|
|
import Image from "next/image";
|
2024-05-17 11:24:58 +00:00
|
|
|
// components
|
|
|
|
import { UserAvatar } from "@/components/issues/navbar/user-avatar";
|
2024-05-08 17:31:20 +00:00
|
|
|
// hooks
|
|
|
|
import { useUser } from "@/hooks/store";
|
2023-09-04 11:25:43 +00:00
|
|
|
// assets
|
2024-05-16 11:47:04 +00:00
|
|
|
import PlaneLogo from "@/public/plane-logos/black-horizontal-with-blue-logo.svg";
|
|
|
|
import UserLoggedInImage from "@/public/user-logged-in.svg";
|
2023-09-04 11:25:43 +00:00
|
|
|
|
|
|
|
export const UserLoggedIn = () => {
|
2024-05-08 17:31:20 +00:00
|
|
|
const { data: user } = useUser();
|
2023-09-04 11:25:43 +00:00
|
|
|
|
|
|
|
if (!user) return null;
|
2024-05-15 22:33:43 +00:00
|
|
|
|
2023-09-04 11:25:43 +00:00
|
|
|
return (
|
2023-12-10 10:18:10 +00:00
|
|
|
<div className="flex h-screen w-screen flex-col">
|
|
|
|
<div className="relative flex w-full items-center justify-between gap-4 border-b border-custom-border-200 px-6 py-5">
|
2023-09-04 11:25:43 +00:00
|
|
|
<div>
|
|
|
|
<Image src={PlaneLogo} alt="User already logged in" />
|
|
|
|
</div>
|
2024-05-17 11:24:58 +00:00
|
|
|
<UserAvatar />
|
2023-09-04 11:25:43 +00:00
|
|
|
</div>
|
|
|
|
|
2023-12-10 10:18:10 +00:00
|
|
|
<div className="grid h-full w-full place-items-center p-6">
|
2023-09-04 11:25:43 +00:00
|
|
|
<div className="text-center">
|
2023-12-10 10:18:10 +00:00
|
|
|
<div className="mx-auto grid h-52 w-52 place-items-center rounded-full bg-custom-background-80">
|
2023-09-04 11:25:43 +00:00
|
|
|
<div className="h-32 w-32">
|
|
|
|
<Image src={UserLoggedInImage} alt="User already logged in" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-12-10 10:18:10 +00:00
|
|
|
<h1 className="mt-12 text-3xl font-semibold">Logged in Successfully!</h1>
|
2023-09-04 11:25:43 +00:00
|
|
|
<p className="mt-4">
|
|
|
|
You{"'"}ve successfully logged in. Please enter the appropriate project URL to view the issue board.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|