2023-08-30 08:11:25 +00:00
|
|
|
import Link from "next/link";
|
|
|
|
import Image from "next/image";
|
2023-08-31 17:54:03 +00:00
|
|
|
|
|
|
|
// mobx
|
2023-08-30 12:09:11 +00:00
|
|
|
import { observer } from "mobx-react-lite";
|
2023-09-02 06:59:14 +00:00
|
|
|
import planeLogo from "public/plane-logo.svg"
|
2023-08-30 08:11:25 +00:00
|
|
|
// components
|
|
|
|
import IssueNavbar from "components/issues/navbar";
|
|
|
|
|
|
|
|
const ProjectLayout = ({ children }: { children: React.ReactNode }) => (
|
|
|
|
<div className="relative w-screen min-h-[500px] h-screen overflow-hidden flex flex-col">
|
2023-08-31 17:54:03 +00:00
|
|
|
<div className="flex-shrink-0 h-[60px] border-b border-custom-border-300 relative flex items-center bg-custom-sidebar-background-100 select-none">
|
2023-08-30 08:11:25 +00:00
|
|
|
<IssueNavbar />
|
|
|
|
</div>
|
2023-08-31 17:54:03 +00:00
|
|
|
<div className="w-full h-full relative bg-custom-background-90 overflow-hidden">{children}</div>
|
|
|
|
<div className="absolute z-[99999] bottom-[10px] right-[10px] bg-custom-background-100 rounded-sm shadow-lg border border-custom-border-300">
|
2023-09-02 06:59:14 +00:00
|
|
|
<Link href="https://plane.so" as="https://plane.so">
|
2023-08-30 08:11:25 +00:00
|
|
|
<a className="p-1 px-2 flex items-center gap-1" target="_blank">
|
|
|
|
<div className="w-[24px] h-[24px] relative flex justify-center items-center">
|
2023-09-02 06:59:14 +00:00
|
|
|
<Image src={planeLogo} alt="plane logo" className="w-[24px] h-[24px]" height="24" width="24" />
|
2023-08-30 08:11:25 +00:00
|
|
|
</div>
|
|
|
|
<div className="text-xs">
|
|
|
|
Powered by <b>Plane Deploy</b>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
2023-08-30 12:09:11 +00:00
|
|
|
export default observer(ProjectLayout);
|