mirror of
https://github.com/meshtastic/meshtastic.git
synced 2024-11-13 00:54:15 -08:00
Merge pull request #415 from sigmahour/master
Added fdroid repo badge to downloads page
This commit is contained in:
commit
f7159eca91
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue