mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-17 21:40:30 +00:00
modif login page
This commit is contained in:
parent
3dd69d9d65
commit
2aebc424d9
BIN
src/assets/loginpp.png
Normal file
BIN
src/assets/loginpp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
@ -1,6 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { auth, googleProvider, signInWithPopup } from './firebase';
|
import { auth, googleProvider, signInWithPopup } from './firebase';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
|
import styles from './LoginPage.module.scss';
|
||||||
|
|
||||||
const LoginPage = () => {
|
const LoginPage = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@ -15,9 +16,13 @@ const LoginPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className={styles.container}>
|
||||||
<h1>Page de connexion</h1>
|
<div className={styles.mainCard}>
|
||||||
<button onClick={handleLogin}>Se connecter avec Google</button>
|
<h1>Page de connexion</h1>
|
||||||
|
<button onClick={handleLogin} className={styles.logbtn}>
|
||||||
|
Se connecter avec Google
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: 'Roboto', sans-serif;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainCard{
|
||||||
|
width: 20rem;
|
||||||
|
padding: 1rem;
|
||||||
|
background-color: white;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user