create main menu panel LO

This commit is contained in:
yzned
2025-07-20 16:41:40 +03:00
committed by yzned
parent 39b3a837df
commit 42b27b7ddc
13 changed files with 237 additions and 32 deletions

View File

@@ -2,22 +2,27 @@ import { Chat } from "@/components/interaction-panel/chat";
import { createFileRoute, Link } from "@tanstack/react-router";
import LogoWithText from "@/icons/logo-with-text.svg?react";
import { Button } from "@/components/ui/button";
import { useAccountStore } from "@/contexts/AccountContext";
export const Route = createFileRoute("/")({
component: App,
});
function App() {
const { userId } = useAccountStore();
return (
<div className="h-full pt-5">
<header className="px-10 h-[52px] flex items-center justify-between absolute w-full">
<LogoWithText />
<Link to="/auth/mail" viewTransition={{ types: ["warp"] }}>
<Button className=" text-[18px] w-[106px] cursor-pointer">
Sign in
</Button>
</Link>
</header>
{!userId && (
<header className="px-10 h-[52px] flex items-center justify-between absolute w-full">
<LogoWithText />
<Link to="/auth/mail" viewTransition={{ types: ["warp"] }}>
<Button className=" text-[18px] w-[106px] cursor-pointer">
Sign in
</Button>
</Link>
</header>
)}
<Chat />
</div>
);