Skip to content

Commit

Permalink
Tech - Correction de la page de login (#3954)
Browse files Browse the repository at this point in the history
## Linked issues

- Corrige le bouton de connexion ne s'affichant pas

----

- [ ] Tests E2E (Cypress)
  • Loading branch information
louptheron authored Dec 5, 2024
2 parents 80d1c0b + cf5bc66 commit e2e3572
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions frontend/src/auth/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function Login() {
{!!auth?.isLoading || isLoading ? (
<LoadingSpinnerWall isVesselShowed />
) : (
<div>
<>
<Head>MonitorFish</Head>

<Button onClick={() => auth?.signinRedirect()} title="Se connecter avec Cerbère">
Expand All @@ -68,7 +68,7 @@ export function Login() {
d&apos;amende&quot;.
</Warning>
<Footer>Centre National de Surveillance des Pêches (CNSP) – CROSS Etel</Footer>
</div>
</>
)}
{auth?.error && <div>Oops... {auth.error?.message}</div>}
<ToastContainer />
Expand All @@ -79,12 +79,11 @@ export function Login() {
const Warning = styled.p`
max-width: 600px;
font-style: italic;
bottom: 120px;
position: absolute;
left: 50%;
transform: translateX(-50%);
height: 130px;
background-color: #8aa4bd;
padding: 32px;
margin-top: auto;
margin-bottom: 6vh;
`

const WarningHeader = styled.span`
Expand All @@ -93,28 +92,29 @@ const WarningHeader = styled.span`
`

const Head = styled.div`
margin-top: 40vh;
margin-bottom: 16px;
font-size: 32px;
font-weight: 800;
color: ${p => p.theme.color.gunMetal};
`

const Footer = styled.div`
bottom: 16px;
position: absolute;
left: 50%;
transform: translateX(-50%);
background-color: #8aa4bd;
padding: 8px;
height: 34px;
margin-bottom: 0;
`

export const LoginBackground = styled.div`
font-size: 13px;
text-align: center;
width: 100vw;
padding-top: 40vh;
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
background: url('landing_background.png') no-repeat center center fixed;
-webkit-background-size: cover;
Expand Down

0 comments on commit e2e3572

Please sign in to comment.