-
Notifications
You must be signed in to change notification settings - Fork 7
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
Mises à jour sur la mise en forme du site #3186
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f74675b
Corrige le format des portraits sur la page outil numérique
mariheck f55f0d2
Rend tout le titre collectivité clickable
mariheck 8b5707d
Cleaning du code
mariheck 122ec5b
Remplace les composants button par le composant DS
mariheck 1725be9
Ajout d'une page erreur
mariheck c59cdb9
Change le label d'un bouton
mariheck 322664c
Utilisation du composant Accordion du DS
mariheck c8fd1a3
Mise à jour du footer
mariheck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
2 changes: 0 additions & 2 deletions
2
packages/site/app/collectivites/[code]/[name]/IndicateurCard.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
'use client'; | ||
|
||
import {Button} from '@tet/ui'; | ||
import {useEffect} from 'react'; | ||
|
||
const Error = ({ | ||
error, | ||
reset, | ||
}: { | ||
error: Error & {digest?: string}; | ||
reset: () => void; | ||
}) => { | ||
useEffect(() => { | ||
// Optionally log the error | ||
console.error(error); | ||
}, [error]); | ||
|
||
return ( | ||
<main className="flex h-full flex-col gap-6 items-center justify-center my-16"> | ||
<h2 className="text-center text-lg font-normal"> | ||
Une erreur est survenue lors du chargement de la page... | ||
</h2> | ||
<Button | ||
size="sm" | ||
onClick={ | ||
// Attempt to recover by trying to re-render | ||
() => reset() | ||
} | ||
> | ||
Réessayer | ||
</Button> | ||
</main> | ||
); | ||
}; | ||
|
||
export default Error; |
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,29 @@ | ||
'use client'; | ||
|
||
/* eslint-disable react/no-unescaped-entities */ | ||
import Section from '@components/sections/Section'; | ||
import {Button} from '@tet/ui'; | ||
import CommunityPicto from 'public/pictogrammes/CommunityPicto'; | ||
import PictoWithBackground from 'public/pictogrammes/PictoWithBackground'; | ||
|
||
const ContactEquipe = () => { | ||
return ( | ||
<Section | ||
className="!flex-row justify-between items-center gap-8 flex-wrap" | ||
containerClassName="bg-primary-1" | ||
> | ||
<p className="mb-0 flex-auto text-center"> | ||
Cette page n’a pas répondu à votre question ? Notre équipe est à votre | ||
écoute ! | ||
</p> | ||
<div className="flex-auto flex justify-center items-center gap-8 flex-wrap"> | ||
<PictoWithBackground pictogram={<CommunityPicto />} /> | ||
<Button href="/contact" variant="outlined"> | ||
Contacter l'équipe | ||
</Button> | ||
</div> | ||
</Section> | ||
); | ||
}; | ||
|
||
export default ContactEquipe; |
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,32 @@ | ||
'use client'; | ||
|
||
import {Accordion} from '@tet/ui'; | ||
import {FaqData} from './page'; | ||
import Markdown from '@components/markdown/Markdown'; | ||
|
||
type ListeQuestionsProps = { | ||
questions: FaqData[]; | ||
}; | ||
|
||
const ListeQuestions = ({questions}: ListeQuestionsProps) => { | ||
return ( | ||
<div className="flex flex-col gap-4"> | ||
{questions.map(q => ( | ||
<div key={q.id}> | ||
<Accordion | ||
id={q.id.toString()} | ||
title={q.titre} | ||
content={ | ||
<Markdown | ||
texte={q.contenu} | ||
className="px-10 pt-6 border border-t-0 border-grey-4 rounded-b-lg" | ||
/> | ||
} | ||
/> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default ListeQuestions; |
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'aurais directement mis le code ici mais j'imagine que c'est pour pouvoir utiliser le
use client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est bien ça, j'ai besoin du
use client
sur les composants du design system.. :/