-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: notify users about new design (#300)
* feat: notify users about new design * feat: applay message only for search page * feat: notify users about new design
- Loading branch information
1 parent
64e17aa
commit c171806
Showing
5 changed files
with
54 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import "./header.scss"; | ||
|
||
import { faChevronLeft, faPlus } from "@fortawesome/free-solid-svg-icons"; | ||
import { | ||
faChevronLeft, | ||
faInfoCircle, | ||
faPlus, | ||
} from "@fortawesome/free-solid-svg-icons"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
|
@@ -9,6 +13,7 @@ import { withRouter } from "react-router"; | |
import { Link } from "react-router-dom"; | ||
|
||
import logo from "../../../assets/img/logo_gouv-65w38h.png"; | ||
import Config from "../../../services/Config"; | ||
import { resetSearch } from "../../../services/Store/actions"; | ||
|
||
const Header = ({ resetSearch, location, showBetaMessage }) => { | ||
|
@@ -59,16 +64,27 @@ const Header = ({ resetSearch, location, showBetaMessage }) => { | |
{showBetaMessage && ( | ||
<div className="beta-message"> | ||
<div> | ||
<span>Ce site est en beta-test. </span> | ||
<span className="beta-message__nouveaute"> | ||
{" "} | ||
<FontAwesomeIcon icon={faInfoCircle} /> Une nouvelle version de | ||
notre portail FCE sera déployée le 15 novembre 2023 :{" "} | ||
</span> | ||
{location.pathname !== "/login" && ( | ||
<span> | ||
Aidez-nous à l{"'"}améliorer en{" "} | ||
<a | ||
className="beta-message__feedback-link" | ||
href="#user-feedback" | ||
> | ||
donnant votre avis | ||
</a> | ||
{`Cette mise à jour est une refonte ergonomique visant à aligner notre site avec la charte graphique de l'État. | ||
Nous tenons à souligner que cette mise à jour n'affectera en rien le contenu actuel de notre portail, | ||
qui restera inchangé. Vous continuerez d'accéder à toutes les informations et fonctionnalités auxquelles | ||
vous êtes habitués. `} | ||
<br /> | ||
<span> | ||
Questions ou préoccupations ➜ | ||
<a | ||
className="beta-message__feedback-link" | ||
href={`mailto:${Config.get("contact.mailto")}`} | ||
> | ||
[email protected] | ||
</a> | ||
</span> | ||
</span> | ||
)} | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters