2023-09-01 11:12:30 +00:00
|
|
|
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
|
2024-03-19 14:38:35 +00:00
|
|
|
import IssueNavbar from "@/components/issues/navbar";
|
2023-09-01 11:12:30 +00:00
|
|
|
|
|
|
|
const ProjectLayout = ({ children }: { children: React.ReactNode }) => (
|
2023-12-10 10:18:10 +00:00
|
|
|
<div className="relative flex h-screen min-h-[500px] w-screen flex-col overflow-hidden">
|
|
|
|
<div className="relative flex h-[60px] flex-shrink-0 select-none items-center border-b border-custom-border-300 bg-custom-sidebar-background-100">
|
2023-09-01 11:12:30 +00:00
|
|
|
<IssueNavbar />
|
|
|
|
</div>
|
2023-12-10 10:18:10 +00:00
|
|
|
<div className="relative h-full w-full overflow-hidden bg-custom-background-90">{children}</div>
|
2023-09-04 09:17:28 +00:00
|
|
|
|
|
|
|
<a
|
|
|
|
href="https://plane.so"
|
2023-12-10 10:18:10 +00:00
|
|
|
className="fixed bottom-2.5 right-5 !z-[999999] flex items-center gap-1 rounded border border-custom-border-200 bg-custom-background-100 px-2 py-1 shadow-custom-shadow-2xs"
|
2023-09-04 09:17:28 +00:00
|
|
|
target="_blank"
|
|
|
|
rel="noreferrer noopener"
|
|
|
|
>
|
2023-12-10 10:18:10 +00:00
|
|
|
<div className="relative grid h-6 w-6 place-items-center">
|
|
|
|
<Image src={planeLogo} alt="Plane logo" className="h-6 w-6" height="24" width="24" />
|
2023-09-04 09:17:28 +00:00
|
|
|
</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);
|