2023-09-01 11:12:30 +00:00
|
|
|
import Link from "next/link";
|
|
|
|
import Image from "next/image";
|
|
|
|
|
|
|
|
// mobx
|
|
|
|
import { observer } from "mobx-react-lite";
|
2023-09-03 13:20:30 +00:00
|
|
|
import planeLogo from "public/plane-logo.svg";
|
2023-09-01 11:12:30 +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">
|
|
|
|
<div className="flex-shrink-0 h-[60px] border-b border-custom-border-300 relative flex items-center bg-custom-sidebar-background-100 select-none">
|
|
|
|
<IssueNavbar />
|
|
|
|
</div>
|
|
|
|
<div className="w-full h-full relative bg-custom-background-90 overflow-hidden">{children}</div>
|
2023-09-04 09:17:28 +00:00
|
|
|
|
|
|
|
<a
|
|
|
|
href="https://plane.so"
|
|
|
|
className="fixed !z-[999999] bottom-2.5 right-5 bg-custom-background-100 rounded shadow-custom-shadow-2xs border border-custom-border-200 py-1 px-2 flex items-center gap-1"
|
|
|
|
target="_blank"
|
|
|
|
rel="noreferrer noopener"
|
|
|
|
>
|
|
|
|
<div className="w-6 h-6 relative grid place-items-center">
|
|
|
|
<Image src={planeLogo} alt="Plane logo" className="w-6 h-6" height="24" width="24" />
|
|
|
|
</div>
|
|
|
|
<div className="text-xs">
|
|
|
|
Powered by <span className="font-semibold">Plane Deploy</span>
|
|
|
|
</div>
|
|
|
|
</a>
|
2023-09-01 11:12:30 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default observer(ProjectLayout);
|