-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OPIK-86] Change layout for get started page (#241)
* [OPIK-86] Change layout for get started page * Fix ESLint
- Loading branch information
Showing
4 changed files
with
70 additions
and
26 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
apps/opik-frontend/src/components/layout/EmptyLayout/EmptyLayout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import useAppStore from "@/store/AppStore"; | ||
import usePluginsStore from "@/store/PluginsStore"; | ||
import { Link, Outlet } from "@tanstack/react-router"; | ||
import imageLogoUrl from "/images/logo_and_text.png"; | ||
|
||
const PageLayout = () => { | ||
const UserMenu = usePluginsStore((state) => state.UserMenu); | ||
const workspaceName = useAppStore((state) => state.activeWorkspaceName); | ||
|
||
return ( | ||
<section className="relative flex h-screen min-h-0 w-screen min-w-0 flex-col overflow-hidden"> | ||
<main> | ||
<nav className="comet-header-height flex w-full items-center justify-between gap-6 border-b pl-4 pr-6"> | ||
<div className="flex-1"> | ||
<Link to="/$workspaceName/projects" params={{ workspaceName }}> | ||
<img | ||
className="h-8 w-[26px] object-cover object-left" | ||
src={imageLogoUrl} | ||
alt="comet logo" | ||
/> | ||
</Link> | ||
</div> | ||
|
||
{UserMenu ? <UserMenu /> : null} | ||
</nav> | ||
|
||
<section className="comet-header-inset absolute inset-x-0 bottom-0 overflow-auto bg-[#FCFCFD] px-6"> | ||
<Outlet /> | ||
</section> | ||
</main> | ||
</section> | ||
); | ||
}; | ||
|
||
export default PageLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters