diff --git a/web/src/app/_components/loginpage.tsx b/web/src/app/_components/loginpage.tsx deleted file mode 100644 index 7150d80..0000000 --- a/web/src/app/_components/loginpage.tsx +++ /dev/null @@ -1,24 +0,0 @@ -"use client" - -import { Button } from "@mui/material" -import "./styles/loginpage.scss" - -let logged_in: boolean = false - -function login() { - //This would instead send you to the auth page - window.location.reload() -} - -export default function LoginPage() { - return <main className="login-page"> - <section> - <h1>Login to continue</h1> - <Button variant="outlined" className="login-button" onClick={login}>Login</Button> - </section> - </main> -} - -export { - logged_in -} \ No newline at end of file diff --git a/web/src/app/_components/styles/loginpage.scss b/web/src/app/_components/styles/loginpage.scss deleted file mode 100644 index 3797ed8..0000000 --- a/web/src/app/_components/styles/loginpage.scss +++ /dev/null @@ -1,21 +0,0 @@ -.login-page { - width: 100vw; - height: 100vh; - display: flex; - justify-content: center; - align-items: center; - - .login-button { - margin-inline: auto; - width: 70%; - height: 40px; - } - - h1 { - font-size: 2.3rem; - } - - section { - display: grid; - } -} \ No newline at end of file diff --git a/web/src/app/_components/webpage.tsx b/web/src/app/_components/webpage.tsx index 0dbd458..daa6c33 100644 --- a/web/src/app/_components/webpage.tsx +++ b/web/src/app/_components/webpage.tsx @@ -1,9 +1,8 @@ "use client" import Header from "./header"; -import LoginPage from "./loginpage" -import { logged_in } from "./loginpage"; +const logged_in: boolean = false export default function Webpage({children}: Readonly<{children?: React.ReactNode}>) { if (logged_in) { @@ -12,5 +11,6 @@ export default function Webpage({children}: Readonly<{children?: React.ReactNode {children} </> } - return <LoginPage/> + window.location.href = "https://auth.staging.strafes.net/" + return <></> } \ No newline at end of file