diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/App.js b/GrossesMitaines/grosses-mitaines-ui/src/components/App.js
index 7cf22a0..11de21f 100644
--- a/GrossesMitaines/grosses-mitaines-ui/src/components/App.js
+++ b/GrossesMitaines/grosses-mitaines-ui/src/components/App.js
@@ -9,6 +9,7 @@ import MorceauDetail from "../pages/MorceauDetail";
import Inventaire from "../pages/Inventaire";
import Login from "../pages/Login";
import Logout from "../pages/Logout";
+import Register from "../pages/Register";
const App = () => {
return (
@@ -23,6 +24,7 @@ const App = () => {
}/>
}/>
}/>
+ }/>
diff --git a/GrossesMitaines/grosses-mitaines-ui/src/pages/Login.js b/GrossesMitaines/grosses-mitaines-ui/src/pages/Login.js
index 2b37d2d..3ca38bc 100644
--- a/GrossesMitaines/grosses-mitaines-ui/src/pages/Login.js
+++ b/GrossesMitaines/grosses-mitaines-ui/src/pages/Login.js
@@ -63,6 +63,9 @@ const Login = () => {
onChange={(e) => setPassword(e.target.value)} />
+
)
diff --git a/GrossesMitaines/grosses-mitaines-ui/src/pages/Register.js b/GrossesMitaines/grosses-mitaines-ui/src/pages/Register.js
new file mode 100644
index 0000000..08092b4
--- /dev/null
+++ b/GrossesMitaines/grosses-mitaines-ui/src/pages/Register.js
@@ -0,0 +1,49 @@
+import { useState } from "react";
+import { Button } from "react-bootstrap";
+
+const Register = () => {
+
+ const [username, setUsername] = useState("");
+ const [password, setPassword] = useState("");
+
+ const handleLogin = async (e) => {
+ e.preventDefault();
+
+ const response = await fetch(`https://localhost:7292/api/Login?rememberme=true`, {
+ method: 'POST',
+ headers: {
+ 'Accept': 'application/json',
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify({ username, password })
+ })
+
+ // Partie de display d'erreur ou de redirection (faudrait checker pour se faire un state de connexion).
+
+ }
+
+ return (
+
+ )
+}
+
+export default Register;
\ No newline at end of file
diff --git a/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css b/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css
index 30c2e38..6f5ffc9 100644
--- a/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css
+++ b/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css
@@ -15,6 +15,11 @@ html {
height: 100%;
}
+a {
+ color: white;
+ text-decoration: none;
+}
+
.contactUs {
height: 100vh;
}