Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User profile model #31

Merged
merged 3 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions frontend/src/components/Headers/HeaderLongResearch.jsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import "./header.css";
import PropTypes from "prop-types";
import Input from "../Inputs/Input";
import InputSearch from "../Inputs/InputSearch";

function HeaderLongResearch({ textTitle, textTitle2 }) {
return (
<header className="header">
<header className="header with-round-bottom">
<nav>
<i className="fa-solid fa-arrow-left" />
<i className="fa-solid fa-bars" />
</nav>
<div className="header-content">
<h1>{textTitle}</h1>
<h2>{textTitle2}</h2>
</div>
<div className="input-research-container">
<Input className="input-research" showInput />
<InputSearch holderText="Recherche..." />
</div>
</header>
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Headers/HeaderLongUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function HeaderLongUser() {
<img src="/src/assets/no-profile.jpg" alt="" />
</div>
<button type="button">Modifier</button>
<h1>Marie Delaire</h1>
<h1>Nom Prénom</h1>
</div>
</header>
);
Expand Down
8 changes: 3 additions & 5 deletions frontend/src/components/Headers/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ border-radius 24%
border-radius: 50px;
}
.input-research-container {
width: 100%;
height: 40px;
border-radius: 30px;
width: 80%;
justify-content: center;
background-color: var(--background-input);
padding: 15px 20px;
Expand All @@ -84,7 +86,3 @@ border-radius 24%
font-weight: 500;
margin-top: 5px;
}

.input-research {
width: 80%;
}
14 changes: 14 additions & 0 deletions frontend/src/components/Inputs/InputSearch.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import "./input-search.css";

function inputsearch() {
return (
<div>
<div className="background-search">
<label htmlFor="searchInput">Search:</label>
<input type="text" id="searchInput" name="searchInput" />
</div>
</div>
);
}

export default inputsearch;
24 changes: 24 additions & 0 deletions frontend/src/components/Inputs/input-search.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.container-search {
margin: 40px 0 10px 0;
}

.background-search {
background-color: white;
padding: 10px 20px;
border-radius: 100px;
border: none;
color: var(--second-color);
font-size: 16px;
font-weight: 500;
width: 80%;
margin-top: 10px;
margin-left: 20px;
}
.background-search input {
width: 100%;
border-style: none;
}
::placeholder {
color: var(--text-exemple);
font-style: italic;
}
5 changes: 3 additions & 2 deletions frontend/src/pages/HomeOffer/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import CardOffre from "../../components/CardModel/CardOffre";
import HeaderLongTitreSsTitre from "../../components/Headers/HeaderLongTitreSsTitre";
import HeaderLongResearch from "../../components/Headers/HeaderLongResearch";

function Home() {
return (
<>
<HeaderLongTitreSsTitre />
<HeaderLongResearch textTitle="Bienvenue sur" textTitle2="nos offres" />
<div className="container-page">
<h2>Les offres qui matchent !</h2>
<CardOffre />
<CardOffre />
<CardOffre />
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/ProfileUser/UserProfileModel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import Input from "../../components/Inputs/Input";
import ButtonMaxi from "../../components/Boutons/ButtonMaxi";
import CompetenceSwitch from "../../components/Competence Switch/CompetenceSwitch";
import AddSomething from "../../components/Add Something/AddSomething";
import HeaderLongResearch from "../../components/Headers/HeaderLongResearch";
import HeaderLongUser from "../../components/Headers/HeaderLongUser";

function UserProfileUser() {
return window.location.pathname === "/edit-profil" ? (
<>
<HeaderLongResearch />
<HeaderLongUser />
<div className="container-page">
<Title titleText="Vos coordonnées" />
<Input titleInput="Nom *" holderText="Votre nom" showInput />
Expand Down