Skip to content

Commit

Permalink
Merge pull request #27 from WildCodeSchool/routes
Browse files Browse the repository at this point in the history
Routes
  • Loading branch information
Hepsox authored Dec 14, 2023
2 parents 7efa3b7 + faff4ea commit 155a759
Show file tree
Hide file tree
Showing 11 changed files with 101 additions and 42 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ body {
.container-page.with-rounded-border {
border-top-left-radius: 50px;
border-top-right-radius: 50px;
padding-top: 0;
padding-top: 70px;
margin-top: -170px;
}
2 changes: 1 addition & 1 deletion frontend/src/components/Inputs/text-area.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.container-input {
margin: 10px 0px;
margin: 40px 0 10px 0;
}
.background-input {
background-color: var(--background-input);
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import History from "./pages/Historique/History";
import JobPosteDelail from "./pages/JobPosteDetail/JobPosteDetail";
import Home from "./pages/Home/Home";
import Favoris from "./pages/Favoris/Favoris";
import ResultatAnnonces from "./pages/ResultatAnnonce/ResultatsAnnonce";
import Search from "./pages/Search/Search";

const router = createBrowserRouter([
{
Expand All @@ -39,6 +41,14 @@ const router = createBrowserRouter([
path: "/job",
element: <JobPosteDelail />,
},
{
path: "/results",
element: <ResultatAnnonces />,
},
{
path: "/search",
element: <Search />,
},
{
path: "/edit-profil",
element: <UserProfileModel />,
Expand Down
28 changes: 16 additions & 12 deletions frontend/src/pages/CV/CreateCV.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@ import React from "react";
import Input from "../../components/Inputs/Input";
import ButtonMaxi from "../../components/Boutons/ButtonMaxi";
import AddDetailsCV from "../../components/Add Something/AddSomething";
import HeaderCourt from "../../components/Headers/HeaderCourt";

function CreateCV() {
return (
<div>
<h1>Créer son CV</h1>
<Input titleInput="Titre du CV *" holderText="Curuculum vitae" />
<Input titleInput="Nom *" holderText="Doe" />
<Input titleInput="Prénom *" holderText="John" />
<Input titleInput="E-mail *" holderText="[email protected]" />
<Input titleInput="Numéro *" holderText="06 00 00 00 00 00" />
<Input titleInput="Adresse *" holderText="75 Rue Boétoile" />
<AddDetailsCV objectToAdd="Expériences professionnelles" />
<AddDetailsCV objectToAdd="Formations" />
<ButtonMaxi textBtn="Enregistrer" />
</div>
<>
<HeaderCourt />
<div className="container-page with-rounded-border">
<h1>Créer son CV</h1>
<Input titleInput="Titre du CV *" holderText="Curuculum vitae" />
<Input titleInput="Nom *" holderText="Doe" />
<Input titleInput="Prénom *" holderText="John" />
<Input titleInput="E-mail *" holderText="[email protected]" />
<Input titleInput="Numéro *" holderText="06 00 00 00 00 00" />
<Input titleInput="Adresse *" holderText="75 Rue Boétoile" />
<AddDetailsCV objectToAdd="Expériences professionnelles" />
<AddDetailsCV objectToAdd="Formations" />
<ButtonMaxi textBtn="Enregistrer" />
</div>
</>
);
}

Expand Down
13 changes: 7 additions & 6 deletions frontend/src/pages/Experience/AddExperience.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import Select from "../../components/Inputs/Select";
import CheckboxCondition from "../../components/Inputs/CheckboxCondition";
import Date from "../../components/Inputs/Date";
import TextArea from "../../components/Inputs/TextArea";
import HeaderCourt from "../../components/Headers/HeaderCourt";

function AddExperience() {
return (
<div className="container-page-experience">
<div>
<div className="offre-container">
<h1>Ajouter une expérience</h1>
</div>
<>
<HeaderCourt />
<div className="container-page with-rounded-border">
<h1>Ajouter une expérience</h1>

<div className="container-input">
<Input titleInput="Intitulé du poste *" holderText="Chef de projet" />
<Input titleInput="Entreprise *" holderText="Inoxia" />
Expand All @@ -30,7 +31,7 @@ function AddExperience() {
</div>
<ButtonMaxi textBtn="Ajouter l'expérience" />
</div>
</div>
</>
);
}

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Favoris/Favoris.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import HeaderLongTitreSsTitre from "../../components/Headers/HeaderLongTitreSsTitre";
import CardFavoris from "../../components/CardModel/CardFavoris";

function History() {
function Favoris() {
return (
<>
<HeaderLongTitreSsTitre />
Expand All @@ -17,4 +17,4 @@ function History() {
);
}

export default History;
export default Favoris;
34 changes: 19 additions & 15 deletions frontend/src/pages/Formation/AddFormation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,29 @@ import Date from "../../components/Inputs/Date";
import Input from "../../components/Inputs/Input";
import Select from "../../components/Inputs/Select";
import TextArea from "../../components/Inputs/TextArea";
import HeaderCourt from "../../components/Headers/HeaderCourt";

function AddFormation() {
return (
<div>
<h1>Ajouter une formation</h1>
<Select titleSelect="Niveau d'étude *" valueSelect="Master 2" />
<Select titleSelect="Domaine *" />
<Input
titleInput="Nom de l'établissement *"
holderText="Sup de pub"
inputType="text"
/>
<Date titleCalendar="Date de début *" />
<Date titleCalendar="Date de fin *" />
<TextArea
titleInput="Description de la formation *"
holderText="Lorem ipsum dolor si amet"
/>
<ButtonMaxi textBtn="Ajouter une formation" />
<HeaderCourt />
<div className="container-page with-rounded-border">
<h1>Ajouter une formation</h1>
<Select titleSelect="Niveau d'étude *" valueSelect="Master 2" />
<Select titleSelect="Domaine *" />
<Input
titleInput="Nom de l'établissement *"
holderText="Sup de pub"
inputType="text"
/>
<Date titleCalendar="Date de début *" />
<Date titleCalendar="Date de fin *" />
<TextArea
titleInput="Description de la formation *"
holderText="Lorem ipsum dolor si amet"
/>
<ButtonMaxi textBtn="Ajouter une formation" />
</div>
</div>
);
}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/JobPosteDetail/JobPosteDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function JobPosteDetail() {
return (
<>
<HeaderCourt />

<div className="container-page with-rounded-border">
<div>
<div className="offre-date-container">
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/pages/JobPosteDetail/job-poste-detail.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@
.offre-date-container {
padding-left: 15px;
padding-right: 40px;
padding-top: 50px;

display: flex;
flex-direction: column;
justify-content: center;
margin-top: 50px;
}
17 changes: 15 additions & 2 deletions frontend/src/pages/ResultatAnnonce/ResultatsAnnonce.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
export default function ResultatsAnnonce() {
return <div>ResultatsAnnonce</div>;
import CardOffre from "../../components/CardModel/CardOffre";
import HeaderLongTitreSsTitre from "../../components/Headers/HeaderLongTitreSsTitre";

function ResultatAnnonces() {
return (
<>
<HeaderLongTitreSsTitre />
<div className="container-page">
<CardOffre />
<CardOffre />
<CardOffre />
</div>
</>
);
}
export default ResultatAnnonces;
30 changes: 30 additions & 0 deletions frontend/src/pages/Search/Search.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import HeaderCourt from "../../components/Headers/HeaderCourt";
import ButtonMaxi from "../../components/Boutons/ButtonMaxi";
import Input from "../../components/Inputs/Input";
import CheckboxCondition from "../../components/Inputs/CheckboxCondition";

function Search() {
return (
<div>
<HeaderCourt />
<div className="container-page with-rounded-border">
<h1>Ajouter une expérience</h1>

<div className="container-input">
<Input titleInput="Intitulé du poste *" holderText="Chef de projet" />
<Input titleInput="Entreprise *" holderText="Inoxia" />

<div className="container-checkbox-experience">
<CheckboxCondition textCondition="J'occupe ce poste actuellement" />
<CheckboxCondition textCondition="J'occupe ce poste actuellement" />
<CheckboxCondition textCondition="J'occupe ce poste actuellement" />
<CheckboxCondition textCondition="J'occupe ce poste actuellement" />
</div>

<ButtonMaxi textBtn="Ajouter l'expérience" />
</div>
</div>
</div>
);
}
export default Search;

0 comments on commit 155a759

Please sign in to comment.