-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename agent connect to pro connect (#29)
* replace apostrophes * rename AgentConnect to ProConnect everywhere * add new design for landing pages * make hide notice permanent * delete useless import * change icon on landing page * redirect help to crisp * delete mention simplification acces
- Loading branch information
1 parent
43ff400
commit 1e3f09f
Showing
30 changed files
with
601 additions
and
603 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 was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Result from "./Result"; | ||
|
||
export function PrivateResult() { | ||
return ( | ||
<Result subtitle="Collaborez facilement avec l'administration sur les sites et services qui l'acceptent." /> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Result from "./Result"; | ||
|
||
export function PublicResult() { | ||
return ( | ||
<Result | ||
subtitle="Vous pouvez dès maintenant utiliser ProConnect pour vous | ||
connecter à de nombreux outils et sites de l'administration." | ||
/> | ||
); | ||
} |
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,14 +1,16 @@ | ||
import eligibility from "../../assets/eligibility.svg"; | ||
import { RadioButtons } from "@codegouvfr/react-dsfr/RadioButtons"; | ||
import Button from "@codegouvfr/react-dsfr/Button"; | ||
import coding from "../../assets/coding.svg"; | ||
import { useState } from "react"; | ||
import { bosses, bossNames, bossNameType } from "./constants"; | ||
import eligibility from "../../assets/eligibility.svg"; | ||
import WantToIntegrateProConnect from "../../components/WantToIntegrateProConnect/WantToIntegrateProConnect"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
export function WhoIsYourBoss() { | ||
const [selectedOption, setSelectedOption] = useState< | ||
bossNameType | undefined | ||
>(undefined); | ||
const navigate = useNavigate(); | ||
return ( | ||
<> | ||
<div className="container fr-mt-8w"> | ||
|
@@ -34,51 +36,23 @@ export function WhoIsYourBoss() { | |
})} | ||
state="default" | ||
/> | ||
<a | ||
href={ | ||
selectedOption && bosses[selectedOption].isEligible | ||
? "/eligibilite/eligible" | ||
: "/eligibilite/non-eligible" | ||
} | ||
> | ||
<Button>Valider</Button> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="fr-container fr-col-12 fr-col-md-8 fr-py-6w fr-py-md-2w fr-mt-4w fr-mb-8w card-radius"> | ||
<div className="fr-container centered-content"> | ||
<div className="fr-grid-row fr-grid-row--center fr-grid-row--middle"> | ||
<div className="fr-col-1 fr-hidden fr-unhidden-md "> | ||
<img src={coding} alt="" /> | ||
</div> | ||
<div className="fr-ml-3w"> | ||
<p className="centered-content delete-margin-bottom bold"> | ||
Vous voulez intégrer AgentConnect sur votre site ? | ||
</p> | ||
|
||
<Button disabled={!selectedOption} onClick={navigateToResult}> | ||
Valider | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="fr-container centered-text fr-my-2w"> | ||
<a | ||
className="fr-raw-link" | ||
href="mailto:[email protected]" | ||
> | ||
<Button className="fr-mr-2w fr-mb-2w" iconId="fr-icon-mail-line"> | ||
Nous écrire | ||
</Button> | ||
</a> | ||
<a | ||
className="fr-raw-link" | ||
href="https://github.com/numerique-gouv/agentconnect-documentation/blob/main/README.md#-agentconnect---documentation" | ||
> | ||
<Button priority="secondary" iconId="fr-icon-code-s-slash-line"> | ||
Commencer vos tests | ||
</Button> | ||
</a> | ||
</div> | ||
</div> | ||
<WantToIntegrateProConnect /> | ||
</> | ||
); | ||
|
||
function navigateToResult() { | ||
if (!selectedOption) { | ||
return; | ||
} | ||
|
||
navigate(`/eligibilite/${bosses[selectedOption].category}`); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.