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

View file

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