Create congratulations bot (#5404)

- Created congratulations bot :
<img width="939" alt="Screenshot 2024-05-14 at 12 47 13"
src="https://github.com/twentyhq/twenty/assets/102751374/5138515f-fe4d-4c6d-9c7a-0240accbfca9">

- Modified OG image

- Added png extension to OG image route

To be noted: The bot will not work until the new API route is not
deployed. Please check OG image with Cloudflare cache.

---------

Co-authored-by: Ady Beraud <a.beraud96@gmail.com>
This commit is contained in:
Ady Beraud
2024-05-21 23:56:25 +03:00
committed by GitHub
parent 3deda2f29a
commit 5ad59b5845
17 changed files with 277 additions and 73 deletions

View File

@ -55,7 +55,7 @@ interface ProfileProps {
export const ProfileSharing = ({ username }: ProfileProps) => {
const [loading, setLoading] = useState(false);
const baseUrl = `${window.location.protocol}//${window.location.host}`;
const baseUrl = 'https://twenty.com';
const contributorUrl = `${baseUrl}/contributors/${username}`;
const handleDownload = async () => {
@ -101,7 +101,7 @@ export const ProfileSharing = ({ username }: ProfileProps) => {
)}
</StyledButton>
<StyledButton
href={`http://www.twitter.com/share?url=${contributorUrl}`}
href={`https://www.twitter.com/share?url=${contributorUrl}`}
target="blank"
>
<XIcon color="black" size="24px" /> Share on X