Merge pull request #415 from sigmahour/master

Added fdroid repo badge to downloads page
This commit is contained in:
Andre K 2022-09-22 22:40:32 -03:00 committed by GitHub
commit f7159eca91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -4,6 +4,8 @@ export interface downloadCardProps {
client: string;
imgUrl: string;
url: string;
imgUrl2: string;
url2: string;
notes: string;
buttonText: string;
}
@ -12,6 +14,8 @@ export const DownloadCard = ({
client,
imgUrl,
url,
imgUrl2,
url2,
notes,
buttonText,
}: downloadCardProps): JSX.Element => {
@ -32,9 +36,14 @@ export const DownloadCard = ({
{buttonText}
</a>
) : (
<div>
<a href={url}>
<img style={{ height: '4rem' }} src={imgUrl}></img>
</a>
<a href={url2}>
<img style={{ height: '4rem' }} src={imgUrl2}></img>
</a>
</div>
)}
</div>
<div className="card__footer">{notes ? notes : null}</div>

View file

@ -70,8 +70,10 @@ const Firmware = (): JSX.Element => {
>
<DownloadCard
client="Android"
imgUrl="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png"
url="https://play.google.com/store/apps/details?id=com.geeksville.mesh&referrer=utm_source=downloads-page"
imgUrl="https://f-droid.org/badge/get-it-on.png"
url="https://mesh.tastic.app/fdroid/repo"
imgUrl2="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png"
url2="https://play.google.com/store/apps/details?id=com.geeksville.mesh&referrer=utm_source=downloads-page"
notes={[
'To sideload, ',
<a