diff --git a/src/App.js b/src/App.js index 8d212c1..fe047fb 100644 --- a/src/App.js +++ b/src/App.js @@ -4,6 +4,7 @@ import Compte from './pages/Compte'; import Connexion from './pages/Connexion'; import Admin_modif from './pages/Admin_modif'; import Admin_supp from './pages/Admin_supp'; +import Admin_devis from './pages/Admin_devis'; import Dashboard from './pages/Dashboard'; import Analyse from './pages/Analyse'; import Admin_list from './pages/Admin_list'; @@ -24,6 +25,7 @@ const App = () => { } /> } /> } /> + } /> } /> } /> } /> diff --git a/src/components/NavigationAdmin.js b/src/components/NavigationAdmin.js index f41a9ca..301cc1b 100644 --- a/src/components/NavigationAdmin.js +++ b/src/components/NavigationAdmin.js @@ -6,16 +6,23 @@ const NavigationAdmin = (props) => { return (
- - - - - - - - - - +
+ +
+
+ + + + + + + + + + + + +
); }; diff --git a/src/pages/Admin_devis.js b/src/pages/Admin_devis.js new file mode 100644 index 0000000..2ef9ed5 --- /dev/null +++ b/src/pages/Admin_devis.js @@ -0,0 +1,34 @@ +import React, { useState, useEffect } from 'react'; +import axios from 'axios' +import NavigationAdmin from '../components/NavigationAdmin.js'; +import { TableContainer,Table,TableHead,TableBody,TableRow,TableCell } from '@mui/material'; +import { Paper } from '@mui/material'; + +const api = axios.create({ + baseURL: 'http://localhost:8080' + }) + +const Admin_devis = () => { + + return ( +
+ + {/* Create a page to delete an user in the admin page*/} + +
+

Admin

+

Supression d'utilisateur

+
+
+ + + + +
+
+
+
+ ); +}; + +export default Admin_devis; \ No newline at end of file diff --git a/src/pages/Admin_supp.js b/src/pages/Admin_supp.js index 5279a0d..c652765 100644 --- a/src/pages/Admin_supp.js +++ b/src/pages/Admin_supp.js @@ -39,28 +39,6 @@ const Admin_supp = () => { - {/* -
- - -
-

- Dupont Jacques -

-

- Carreau Alexis -

-
- - -
- - -
- -
-
- */} diff --git a/src/styles/components/_admin.scss b/src/styles/components/_admin.scss index 14763cb..af13e60 100644 --- a/src/styles/components/_admin.scss +++ b/src/styles/components/_admin.scss @@ -13,63 +13,86 @@ body { .nav_bar_verticale { display: flex; flex-direction: column; - width: 200px; + justify-content: space-around; + margin: 10px; + width: 230px; background: rgba(255, 255, 255, 0.143); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(1.5px); border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.18); - margin: 10px; + .logoCRM { + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: center; - .create_user { - padding: 5px; - text-decoration: none; - align-self: center; - } - - .modify_user { - padding: 5px; - text-decoration: none; - align-self: center; - } - - .delete_user { - padding: 5px; - text-decoration: none; - align-self: center; + .logo { + max-width: 150px; + max-height: 150px; + } } - - .bouton { + .BoutonNav { display: flex; - justify-content: center; - align-items: center; - position: relative; - width: 180px; - height: 100px; - border-radius: 10px; - font-size: 13.5px; - font-weight: bold; - transition: 1s box-shadow; - border: none; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); - background-color: rgb(163, 163, 163, 0.371); - border: 1px solid rgba(255,255,255,0.1); - backdrop-filter: blur(30px); - color: rgb(255, 255, 255); - cursor: pointer; - font-size: 17px; - - &:hover{ - box-shadow: 0, 5px, 35px, 0 rgba(0, 0, 0, 1); - color: white; - background-color: rgba(114, 114, 114, 0.371); + flex-direction: column; + justify-content: space-evenly; + height: 450px; + margin-bottom: 180px; + + .create_user { + display: flex; + padding: 5px; + text-decoration: none; + align-self: center; } + + .modify_user { + display: flex; + padding: 5px; + text-decoration: none; + align-self: center; + } + + .delete_user { + display: flex; + padding: 5px; + text-decoration: none; + align-self: center; + } + + .list_devis { + display: flex; + padding: 5px; + text-decoration: none; + align-self: center; + } + + .bouton { + display: flex; + justify-content: center; + align-items: center; + width: 150px; + height: 60px; + font-size: 17px; + font-weight: bold; + transition: 1s box-shadow; + border: none; + cursor: pointer; + color: white; + background-color: grey; + border-radius: 15px; - &:active{ - background-color:rgba(68, 68, 68, 0.972); + &:hover { + color: white; + background-color: rgba(114, 114, 114, 0.371); + } + + &:active { + background-color: rgba(68, 68, 68, 0.972); + } } } }