1
0
Fork 0
freesewing/sites/org/components/help-us.js

57 lines
2.1 KiB
JavaScript
Raw Normal View History

2021-12-31 11:33:57 +01:00
import Popout from 'shared/components/popout.js'
2022-12-03 11:25:02 -06:00
const HelpUs = ({ mdx = false, slug = '/' }) => (
2021-12-31 11:33:57 +01:00
<details className="mt-4">
<summary>Click here to learn how you can help us improve this page</summary>
{mdx && (
2022-12-03 11:25:02 -06:00
<Popout tip className="max-w-prose">
2021-12-31 11:33:57 +01:00
<h6>Found a mistake?</h6>
2022-12-03 11:25:02 -06:00
You can{' '}
<a
2021-12-31 11:33:57 +01:00
href={`https://github.com/freesewing/freesewing/edit/develop/markdown/dev/${slug}/en.md`}
className="text-secondary font-bold"
2022-12-03 11:25:02 -06:00
>
edit this page on Github
</a>{' '}
and help us improve our documentation.
2021-12-31 11:33:57 +01:00
</Popout>
)}
2022-12-03 11:25:02 -06:00
<Popout comment by="joost" className="max-w-prose">
2021-12-31 11:33:57 +01:00
<h6>Does this look ok?</h6>
<img
className="my-4 rounded"
src={`https://canary.backend.freesewing.org/og-img/en/dev${slug}`}
2022-12-03 11:25:02 -06:00
alt="auto-generated banner"
2021-12-31 11:33:57 +01:00
/>
<p>
2022-12-03 11:25:02 -06:00
If it looks ok, great! But if not, please let me know about it. Either by{' '}
<a href="https://discord.freesewing.org/" className="text-secondary">
2021-12-31 11:33:57 +01:00
reaching out on Discord
2022-12-03 11:25:02 -06:00
</a>{' '}
or feel free to{' '}
<a
2021-12-31 11:33:57 +01:00
href="https://github.com/freesewing/freesewing/issues/new/choose"
className="text-secondary"
2022-12-03 11:25:02 -06:00
>
create an issue on Github
</a>
.
2021-12-31 11:33:57 +01:00
</p>
<h6>Why do you ask?</h6>
<p className="text-base">
2022-12-03 11:25:02 -06:00
I recently added a backend endpoint to auto-generate pretty (I hope) Open Graph images. They
are those little preview images you see when you paste a link in Discord (for example).
2021-12-31 11:33:57 +01:00
</p>
<p className="text-base">
This idea is that it will auto-generate an image, but I am certain there are some edge cases
2022-12-03 11:25:02 -06:00
where that will not work. There are hundreds of pages on this website and checking them all
one by one is not something I see myself doing. But since you are here on this page, perhaps
you could see if the image above looks ok.
2021-12-31 11:33:57 +01:00
</p>
<p className="text-base">Thank you, I really appreciate your help with this.</p>
</Popout>
</details>
)
export default HelpUs