Add footer with donate link

This commit is contained in:
Misode
2022-06-06 03:32:59 +02:00
parent 986cca9191
commit 4379cb9bba
14 changed files with 85 additions and 9 deletions
+23
View File
@@ -0,0 +1,23 @@
import { Octicon } from '.'
import { useLocale } from '../contexts'
interface Props {
donate?: boolean,
}
export function Footer({ donate }: Props) {
const { locale } = useLocale()
return <footer>
<p>
<span>{locale('developed_by')} <a href="https://github.com/misode" target="_blank" rel="noreferrer">Misode</a></span>
</p>
{donate !== false && <p class="donate">
{Octicon.heart}
<a href="https://ko-fi.com/misode" target="_blank" rel="noreferrer">{locale('donate')}</a>
</p>}
<p>
{Octicon.mark_github}
<span>{locale('source_code_on')} <a href="https://github.com/misode/misode.github.io" target="_blank" rel="noreferrer">{locale('github')}</a></span>
</p>
</footer>
}