|
1 |
| -import { Alert, Button, Col, Form, Modal, Stack } from "../bootstrap" |
2 |
| -import { useAppDispatch } from "../hooks" |
3 |
| -import { |
4 |
| - SignInWithButton, |
5 |
| - signOutAndRedirectToHome, |
6 |
| - useAuth |
7 |
| -} from "components/auth" |
8 |
| -import { AuthFlowStep, authStepChanged } from "components/auth/redux" |
9 | 1 | import { useTranslation } from "next-i18next"
|
10 |
| -import { useContext, useEffect, useState } from "react" |
11 |
| -import { useNavigate } from "react-router-dom" |
12 |
| -import { useLocation } from "react-router-dom" |
13 |
| -import { useRouter } from "next/router" |
| 2 | +import styled from "styled-components" |
| 3 | +import { Container } from "../bootstrap" |
| 4 | +import { SignInWithButton } from "components/auth" |
14 | 5 |
|
15 | 6 | export default function LoginPage() {
|
16 | 7 | const { t } = useTranslation("auth")
|
17 |
| - // const dispatch = useAppDispatch() |
18 |
| - // const setCurrentModal = (step: AuthFlowStep) => |
19 |
| - // dispatch(authStepChanged(step)) |
20 | 8 |
|
21 |
| - // useEffect(() => { |
22 |
| - // setCurrentModal("start") |
23 |
| - // }) |
24 |
| - |
25 |
| - // const navigate = useNavigate() |
26 |
| - // const handleGoBack = () => { |
27 |
| - // navigate(-1) // Navigates back one entry in the history stack |
28 |
| - // } |
29 |
| - |
30 |
| - const router = useRouter() |
31 |
| - |
32 |
| - // const location = useLocation() |
| 9 | + const StyledContainer = styled(Container)` |
| 10 | + @media (min-width: 768px) { |
| 11 | + } |
| 12 | + ` |
33 | 13 |
|
34 | 14 | return (
|
35 |
| - <div> |
36 |
| - <p>Hello Login World</p> |
37 |
| - <br /> |
38 |
| - <p> |
39 |
| - You were possibly signed out while trying to go to a page that needs you |
40 |
| - to be signed in |
41 |
| - </p> |
42 |
| - <br /> |
43 |
| - <div>Please consider logging in first:</div> |
44 |
| - <div className="" style={{ width: "100px" }}> |
45 |
| - <SignInWithButton /> |
| 15 | + <StyledContainer> |
| 16 | + <div className={`bg-white my-3 overflow-hidden rounded-3`}> |
| 17 | + <div className={`align-items-center d-flex px-2 pt-2 pb-0`}> |
| 18 | + <div className={`px-3 py-0`}> |
| 19 | + <div className={`align-items-start fs-5 lh-sm mb-1 text-secondary`}> |
| 20 | + You were possibly signed out while trying to go to a page that |
| 21 | + needs to be signed in to function |
| 22 | + </div> |
| 23 | + <br /> |
| 24 | + <div className={`align-items-start fs-5 lh-sm mb-1 text-secondary`}> |
| 25 | + Please consider logging in first: |
| 26 | + </div> |
| 27 | + <div className={`justify-content-center d-flex w-100`}> |
| 28 | + <SignInWithButton /> |
| 29 | + </div> |
| 30 | + <br /> |
| 31 | + </div> |
| 32 | + </div> |
46 | 33 | </div>
|
47 |
| - <br /> |
48 |
| - {/* <p>If logged in, try and provide user with link to prior navpoint</p> |
49 |
| - <p>Current Pathname: {router.pathname}</p> */} |
50 |
| - </div> |
| 34 | + </StyledContainer> |
51 | 35 | )
|
52 | 36 | }
|
0 commit comments