Skip to content

Commit

Permalink
Merge pull request #37 from WildCodeSchool/titledash
Browse files Browse the repository at this point in the history
Titledash
  • Loading branch information
cassiopeelaurie authored Dec 19, 2023
2 parents 3dd9505 + f4767ae commit 8b9b295
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 20 deletions.
24 changes: 12 additions & 12 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions frontend/src/components/Dashboards/TitleDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import "./title-dashboard.css";

function TitleDashboard() {
return (
<div>
<h4>ID Offres</h4>
<h4>Entreprises</h4>
<h4>Candidats</h4>
<h4>Statut offre</h4>
<h4>Référent</h4>
<h4>Actions</h4>
<div className="title-container">
<h4 className="title-dash">ID Offres</h4>
<h4 className="title-dash">Entreprises</h4>
<h4 className="title-dash">Candidats</h4>
<h4 className="title-dash">Statut offre</h4>
<h4 className="title-dash">Référent</h4>
<h4 className="title-dash">Actions</h4>
</div>
);
}
Expand Down
12 changes: 12 additions & 0 deletions frontend/src/components/Dashboards/title-dashboard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.title-container {
width: 70%;
margin-left: 25px;
display: flex;
justify-content: space-between;
}

.title-dash {
font-size: 20px;
color: var(--texte-default);
font-weight: 400;
}
8 changes: 7 additions & 1 deletion frontend/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from "react";
import ReactDOM from "react-dom/client";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import "mdb-react-ui-kit/dist/css/mdb.min.css";
import "@fortawesome/fontawesome-free/css/all.min.css";
import "mdb-react-ui-kit/dist/css/mdb.min.css";

// Import des composants pour les routes.
import App from "./App";
import SignIn from "./pages/Connexion/SignIn";
Expand All @@ -15,6 +16,7 @@ import AddFormation from "./pages/Formation/AddFormation";
import Offer from "./pages/Offer/Offer";
import History from "./pages/Historique/History";
import Favoris from "./pages/Favoris/Favoris";
import TitleDashboard1 from "./pages/Dashboard/Dashboard1";

const router = createBrowserRouter([
{
Expand Down Expand Up @@ -64,6 +66,10 @@ const router = createBrowserRouter([
},
],
},
{
path: "/dashboard",
element: <TitleDashboard1 />,
},
],
},
]);
Expand Down
11 changes: 11 additions & 0 deletions frontend/src/pages/Dashboard/Dashboard1.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import TitleDashboard from "../../components/Dashboards/TitleDashboard";

function TitleDashboard1() {
return (
<div>
<TitleDashboard />
</div>
);
}

export default TitleDashboard1;

0 comments on commit 8b9b295

Please sign in to comment.