diff --git a/src/App.js b/src/App.js index 5f16a79..8709486 100644 --- a/src/App.js +++ b/src/App.js @@ -1,16 +1,18 @@ import React from 'react'; import { BrowserRouter, Routes, Route } from 'react-router-dom'; -/*import Connexion from './pages/Connexion'; -import Admin from './pages/Admin.js';*/ -import Compte from './pages/Compte.js'; +import Compte from './pages/Compte'; +//import Connexion from './pages/Connexion'; +// import Admin from './pages/Admin.js'; const App = () => { return ( - - - } /> - - + // + // + // } /> + // + // + + ); } diff --git a/src/pages/Admin.js b/src/pages/Admin.js index 7a687c4..a83d08b 100644 --- a/src/pages/Admin.js +++ b/src/pages/Admin.js @@ -8,17 +8,17 @@ const Admin = () => {
- +
- +
- +
+

Admin

-

Admin

@@ -52,4 +52,20 @@ const Admin = () => { ); }; +function Create_user() { + document.getElementById("user").onclick = function() {Create_user()}; + document.location.href = "http://localhost:3000/"; +} + +function Modify_user(){ + document.getElementById("user").onclick = function() {Modify_user()}; + document.location.href = "http://localhost:3000/"; +} + +function Delete_user(){ + //document.getElementById("user").onclick = function() {Delete_user()}; + document.location = './pages/Admin_supp'; + console.log(document.location); +} + export default Admin; \ No newline at end of file diff --git a/src/pages/Admin_modif.js b/src/pages/Admin_modif.js new file mode 100644 index 0000000..02a6ecc --- /dev/null +++ b/src/pages/Admin_modif.js @@ -0,0 +1,54 @@ +import React from 'react'; + +const Admin_modif = () => { + return ( +
+ {/* Create a page to delete an user in the admin page*/} +
+ +
+ +
+
+ +
+
+ +
+
+
+

Admin

+ +
+ +

Nom :

+ + + +

Prénom :

+ + + +

Rôle dans l'entreprise :

+ + + +

Identifiant :

+ + + +

Mot de passe (par défaut) :

+ + + + + + +
+
+
+ + ); +}; + +export default Admin_modif; \ No newline at end of file diff --git a/src/pages/Admin_supp.js b/src/pages/Admin_supp.js new file mode 100644 index 0000000..bbedf63 --- /dev/null +++ b/src/pages/Admin_supp.js @@ -0,0 +1,42 @@ +import React from 'react'; + +const Admin_supp = () => { + return ( +
+ {/* Create a page to delete an user in the admin page*/} +
+ +
+ +
+
+ +
+
+ +
+
+

Admin

+
+ + + + + + + +
+
+
+ ); +}; + +/*function tab(){ + var tab = new Array(); + if(Create_user()){ + tab.push(nom, prenom); + } + console.log(tab); +}*/ + +export default Admin_supp; \ No newline at end of file diff --git a/src/styles/components/_admin.scss b/src/styles/components/_admin.scss index 0630151..b79c831 100644 --- a/src/styles/components/_admin.scss +++ b/src/styles/components/_admin.scss @@ -68,23 +68,33 @@ } } - .Titre { - display: flex; - font-weight: bold; - font-size: 80px; - margin: 20px; - } + /*.form{ + align-self: center; + font-size: 30px; + }*/ + .Formulaire { display: flex; flex-direction: column; + align-items: center; width: 100%; } - .form { + .Formulaire{ + display: flex; + flex-direction: column; + margin: 100px; + padding: 30px; + align-items: center; + } + + .form{ align-self: center; flex-direction: row; - font-size: 30px; + font-weight: bold; + font-size: 80px; + margin: 20px; } .texte { @@ -125,4 +135,13 @@ background-color: rgba(68, 68, 68, 0.972); } } -} \ No newline at end of file + + .texte_barre{ + display: flex; + width: 400px; + } +} + + + + \ No newline at end of file