Use https://auth.staging.strafes.net instead as the login page
This commit is contained in:
parent
68a9555724
commit
f205a16ee8
web/src/app/_components
@ -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
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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 <></>
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user