Skip to content

Commit 7f04ff0

Browse files
committed
feat(candidate): add pictogram on the no organism page and improve wording and style
1 parent 9c03e7a commit 7f04ff0

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

packages/reva-candidate/src/app/(project)/(accompagne)/set-organism/page.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { useCandidacy } from "@/components/candidacy/candidacy.context";
1414
import { SearchBar } from "@/components/legacy/molecules/SearchBar/SearchBar";
1515
import { OrganismCard } from "@/components/legacy/organisms/OrganismCard/OrganismCard";
1616
import { OrganismFilters } from "@/components/legacy/organisms/OrganismFilters/OrganismFilters";
17+
import { PICTOGRAMS } from "@/components/pictograms/Pictograms";
1718

1819
import { useSetOrganism } from "./set-organism.hooks";
1920
import { graphqlErrorToast } from "@/components/toast/toast";
@@ -161,12 +162,15 @@ export default function SetOrganism() {
161162
: `Résultats filtrés : ${organisms.totalRows} accompagnateurs`}
162163
</p>
163164
) : (
164-
<div className="min-h-80 h-full flex flex-col items-center justify-center">
165-
<h3 className="text-2xl font-bold mb-4">Pas de résultats</h3>
166-
<p className="text-lg max-w-md text-center leading-relaxed">
167-
Nous ne trouvons pas d’accompagnateurs sur votre diplôme
168-
avec les critères sélectionnés.
169-
</p>
165+
<div className="min-h-80 h-full flex flex-col items-center">
166+
<div className="my-12">{PICTOGRAMS.searchLG}</div>
167+
<h3>Aucun résultat trouvé</h3>
168+
<div className="max-w-md [&_p]:text-lg text-center text-balance leading-relaxed">
169+
<p>
170+
Nous ne trouvons pas d’accompagnateurs qui correspondent
171+
aux critères sélectionnés.
172+
</p>
173+
</div>
170174
</div>
171175
)}
172176
</>

packages/reva-candidate/src/components/pictograms/Pictograms.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export const PICTOGRAMS = {
113113
internet: generateSvg(internet),
114114
mailSend: generateSvg(mailSend),
115115
search: generateSvg(search),
116+
searchLG: generateSvg(search, { width: 98, height: 98 }),
116117
contract: generateSvg(contract),
117118
documentDownload: generateSvg(documentDownload),
118119
documentSignature: generateSvg(documentSignature),

0 commit comments

Comments
 (0)