Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:WildCodeSchool/2023-09-JS-BDX-P3-La_…
Browse files Browse the repository at this point in the history
…Rive_Droite into UserProfileModel
  • Loading branch information
cassiopeelaurie committed Dec 14, 2023
2 parents d432be6 + 19662a8 commit 90f1f83
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 4 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions frontend/src/contexts/LogContext.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { createContext, useContext } from "react";

const LogContext = createContext();

function LogContextProvider() {}

export default LogContextProvider;
export const useLogContext = () => useContext(LogContext);
Empty file.
23 changes: 19 additions & 4 deletions frontend/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,24 @@ import { createBrowserRouter, RouterProvider } from "react-router-dom";
import App from "./App";
import SignIn from "./pages/Connexion/SignIn";
import LogIn from "./pages/Connexion/LogIn";
import Home from "./pages/HomeOffer/Home";
import UserProfileModel from "./pages/ProfileUser/UserProfileModel";
import CreateCV from "./pages/CV/CreateCV";
import AddExperience from "./pages/Experience/AddExperience";
import AddFormation from "./pages/Formation/AddFormation";
import Offer from "./pages/Offer/Offer";
import History from "./pages/Historique/History";
import Favoris from "./pages/Favoris/Favoris";

const router = createBrowserRouter([
{
path: "/",
element: <App />,
children: [
{
path: "/",
element: <Home />,
},
{
path: "/signin",
element: <SignIn />,
Expand All @@ -24,6 +31,18 @@ const router = createBrowserRouter([
path: "/login",
element: <LogIn />,
},
{
path: "/profil/history",
element: <History />,
},
{
path: "/profil/favorite",
element: <Favoris />,
},
{
path: "/offer",
element: <Offer />,
},
{
path: "/edit-profil",
element: <UserProfileModel />,
Expand All @@ -42,10 +61,6 @@ const router = createBrowserRouter([
},
],
},
{
path: "/history",
element: <History />,
},
],
},
]);
Expand Down
Empty file.
File renamed without changes.
33 changes: 33 additions & 0 deletions frontend/src/pages/Offer/Offer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import ButtonMaxi from "../../components/Boutons/ButtonMaxi";
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 Offer() {
return (
<div>
<HeaderCourt />
<div className="container-page with-rounded-border">
<h1>Ajouter une offre</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>
);
}

export default Offer;

0 comments on commit 90f1f83

Please sign in to comment.