Some checks failed
Branch Build CE / Build Setup (push) Has been cancelled
Branch Build CE / Build-Push Admin Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Web Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Space Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Live Collaboration Docker Image (push) Has been cancelled
Branch Build CE / Build-Push API Server Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Proxy Docker Image (push) Has been cancelled
Branch Build CE / Build-Push AIO Docker Image (push) Has been cancelled
Branch Build CE / Upload Build Assets (push) Has been cancelled
Branch Build CE / Build Release (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Codespell / Check for spelling errors (push) Has been cancelled
Sync Repositories / sync_changes (push) Has been cancelled
Synced from upstream: 8853637e981ed7d8a6cff32bd98e7afe20f54362
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
"use client";
|
|
|
|
import type { FC } from "react";
|
|
import Image from "next/image";
|
|
import { useTheme } from "next-themes";
|
|
// assets
|
|
import maintenanceModeDarkModeImage from "@/app/assets/instance/maintenance-mode-dark.svg?url";
|
|
import maintenanceModeLightModeImage from "@/app/assets/instance/maintenance-mode-light.svg?url";
|
|
// layouts
|
|
import DefaultLayout from "@/layouts/default-layout";
|
|
// components
|
|
import { MaintenanceMessage } from "@/plane-web/components/instance";
|
|
|
|
export const MaintenanceView: FC = () => {
|
|
// hooks
|
|
const { resolvedTheme } = useTheme();
|
|
// derived values
|
|
const maintenanceModeImage = resolvedTheme === "dark" ? maintenanceModeDarkModeImage : maintenanceModeLightModeImage;
|
|
return (
|
|
<DefaultLayout>
|
|
<div className="relative container mx-auto h-full w-full max-w-xl flex flex-col gap-2 items-center justify-center gap-y-6 bg-custom-background-100 text-center">
|
|
<div className="relative w-full">
|
|
<Image
|
|
src={maintenanceModeImage}
|
|
height="176"
|
|
width="288"
|
|
alt="ProjectSettingImg"
|
|
className="w-full h-full object-fill object-center"
|
|
/>
|
|
</div>
|
|
<div className="w-full relative flex flex-col gap-4 mt-4">
|
|
<MaintenanceMessage />
|
|
</div>
|
|
</div>
|
|
</DefaultLayout>
|
|
);
|
|
};
|