Skip to content

Commit

Permalink
feat: maintaince mode for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Irere123 committed Sep 5, 2024
1 parent 40e7113 commit ea92ea2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
6 changes: 5 additions & 1 deletion api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ GITLAB_APP_SECRET=
GITLAB_REDIRECT_URI=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URI=
GITHUB_REDIRECT_URI=
WEB_APP_URL=
API_URL=
PORT=
RABBITMQ_URL=
6 changes: 0 additions & 6 deletions api/deploy.sh

This file was deleted.

2 changes: 2 additions & 0 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Metadata } from "next";
import "./globals.css";
import { Providers } from "./providers";
import { ProgressBar } from "@/components/ProgressBar";
import { MaintainceMode } from "@/components/MaintainceMode";

export const metadata: Metadata = {
metadataBase: new URL("https://withspek.netlify.app"),
Expand All @@ -24,6 +25,7 @@ export default function RootLayout({
<html lang="en">
<body>
<div id="__app">
<MaintainceMode />
<ProgressBar />
<Providers>{children}</Providers>
</div>
Expand Down
19 changes: 19 additions & 0 deletions apps/web/src/components/MaintainceMode.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { useMediaQuery } from "@spek/ui";

export const MaintainceMode: React.FC = () => {
const { isMobile } = useMediaQuery();

return (
<>
{isMobile && (
<div className="absolute w-full h-full flex flex-col justify-center items-center bg-primary-800 z-50">
<p className="text-3xl">😓😓</p>
<p className="text-xl text-center px-3">
The mobile version of spek is still underdevelopment but you can use
a Laptop...
</p>
</div>
)}
</>
);
};

0 comments on commit ea92ea2

Please sign in to comment.