-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support avec email client, fix cleaned worker avant la fin, fix unlin…
…k mastodon
- Loading branch information
1 parent
6c97fe2
commit de5b441
Showing
18 changed files
with
511 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,5 +306,31 @@ | |
"hqxNewsletter": "Receive updates from HelloQuitX", | ||
"oepNewsletter": "Be informed about On est prêt initiatives" | ||
} | ||
}, | ||
"support": { | ||
"modal": { | ||
"title": "A problem occured ?", | ||
"description": "Send us a message and we'll get back to you as soon as possible.", | ||
"error": { | ||
"send": "Error sending message", | ||
"unknown": "An unexpected error occurred" | ||
}, | ||
"form": { | ||
"email": { | ||
"label": "Your email address", | ||
"placeholder": "[email protected]" | ||
}, | ||
"subject": { | ||
"label": "Subject", | ||
"placeholder": "Your subject" | ||
}, | ||
"message": { | ||
"label": "Message", | ||
"placeholder": "Your message" | ||
}, | ||
"submit": "Send", | ||
"submitting": "Sending..." | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -294,5 +294,31 @@ | |
"hqxNewsletter": "Recevoir les updates de HelloQuitteX", | ||
"oepNewsletter": "Être informé.e des initiatives de On est prêt" | ||
} | ||
}, | ||
"support": { | ||
"modal": { | ||
"title": "Un problème ?", | ||
"description": "Envoyez-nous un message et nous vous répondrons dans les plus brefs délais.", | ||
"error": { | ||
"send": "Erreur lors de l'envoi du message", | ||
"unknown": "Une erreur inattendue s'est produite" | ||
}, | ||
"form": { | ||
"email": { | ||
"label": "Votre adresse email", | ||
"placeholder": "[email protected]" | ||
}, | ||
"subject": { | ||
"label": "Sujet", | ||
"placeholder": "Votre sujet" | ||
}, | ||
"message": { | ||
"label": "Message", | ||
"placeholder": "Votre message" | ||
}, | ||
"submit": "Envoyer", | ||
"submitting": "Envoi en cours..." | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
'use client'; | ||
|
||
import { useTranslations } from 'next-intl'; | ||
import { memo } from 'react'; | ||
import { memo, useState } from 'react'; | ||
import { Github, Mail } from 'lucide-react'; | ||
import SupportModal from './SupportModale'; | ||
|
||
const FooterLink = memo(({ href, children }: { href: string; children: React.ReactNode }) => ( | ||
<a | ||
href={href} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="text-indigo-300 hover:text-pink-400 transition-colors duration-200" | ||
> | ||
{children} | ||
|
@@ -20,6 +19,7 @@ FooterLink.displayName = 'FooterLink'; | |
const Footer = memo(() => { | ||
const t = useTranslations('footer'); | ||
const year = new Date().getFullYear(); | ||
const [isSupportModalOpen, setIsSupportModalOpen] = useState(false); | ||
|
||
const hostedText = t.raw('hosted.text'); | ||
const cnrsText = t.raw('hosted.cnrs'); | ||
|
@@ -58,12 +58,19 @@ const Footer = memo(() => { | |
<FooterLink href="https://github.com/FannyCaulfield/helloquittex"> | ||
<Github className="w-5 h-5" /> | ||
</FooterLink> | ||
<FooterLink href="mailto:[email protected]"> | ||
<button | ||
onClick={() => setIsSupportModalOpen(true)} | ||
className="text-indigo-300 hover:text-pink-400 transition-colors duration-200" | ||
> | ||
<Mail className="w-5 h-5" /> | ||
</FooterLink> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<SupportModal | ||
isOpen={isSupportModalOpen} | ||
onClose={() => setIsSupportModalOpen(false)} | ||
/> | ||
</footer> | ||
); | ||
}); | ||
|
Oops, something went wrong.