This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import { Tabs, TabItem } from "@astrojs/starlight/components";
|
import { Tabs, TabItem } from "@astrojs/starlight/components";
|
||||||
import { Card, CardGrid } from "@astrojs/starlight/components";
|
import { Card, CardGrid } from "@astrojs/starlight/components";
|
||||||
import { LinkButton } from "@astrojs/starlight/components";
|
import { LinkButton } from "@astrojs/starlight/components";
|
||||||
|
import { Badge } from "@astrojs/starlight/components";
|
||||||
import QRCode from "./QRCode.astro";
|
import QRCode from "./QRCode.astro";
|
||||||
import { downloadLinks, requirements } from "../config";
|
import { downloadLinks, requirements } from "../config";
|
||||||
|
|
||||||
@@ -15,27 +16,26 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
|
|||||||
---
|
---
|
||||||
|
|
||||||
<Tabs syncKey="platform">
|
<Tabs syncKey="platform">
|
||||||
<TabItem label="Android" icon="laptop">
|
<TabItem label="Android" icon="star">
|
||||||
<CardGrid>
|
<CardGrid>
|
||||||
{
|
{
|
||||||
hasLink(downloadLinks.android.releases) && (
|
hasLink(downloadLinks.android.playStore) && (
|
||||||
<Card title="Direct APK Download" icon="download">
|
<Card title="Google Play Store" icon="star">
|
||||||
<p>Download the latest APK from the Releases page.</p>
|
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href={downloadLinks.android.releases}
|
href={downloadLinks.android.playStore}
|
||||||
variant="primary"
|
variant="primary"
|
||||||
icon="external"
|
icon="external"
|
||||||
>
|
>
|
||||||
Download APK
|
Get on Play Store
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
</p>
|
</p>
|
||||||
{showQR && (
|
{showQR && (
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<QRCode
|
<QRCode
|
||||||
data={downloadLinks.android.releases}
|
data={downloadLinks.android.playStore}
|
||||||
size={200}
|
size={200}
|
||||||
alt="QR code for APK download"
|
alt="QR code for Play Store"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
@@ -45,8 +45,7 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
|
|||||||
|
|
||||||
{
|
{
|
||||||
hasLink(downloadLinks.android.obtainium) && (
|
hasLink(downloadLinks.android.obtainium) && (
|
||||||
<Card title="Obtainium" icon="setting">
|
<Card title="Obtainium" icon="rocket">
|
||||||
<p>Use Obtainium for automatic updates.</p>
|
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href={downloadLinks.android.obtainium}
|
href={downloadLinks.android.obtainium}
|
||||||
@@ -70,24 +69,23 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
hasLink(downloadLinks.android.playStore) && (
|
hasLink(downloadLinks.android.releases) && (
|
||||||
<Card title="Google Play Store" icon="rocket">
|
<Card title="Direct Download" icon="download">
|
||||||
<p>Download from the official Google Play Store.</p>
|
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href={downloadLinks.android.playStore}
|
href={downloadLinks.android.releases}
|
||||||
variant="primary"
|
variant="secondary"
|
||||||
icon="external"
|
icon="external"
|
||||||
>
|
>
|
||||||
Get on Play Store
|
Download APK
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
</p>
|
</p>
|
||||||
{showQR && (
|
{showQR && (
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<QRCode
|
<QRCode
|
||||||
data={downloadLinks.android.playStore}
|
data={downloadLinks.android.releases}
|
||||||
size={200}
|
size={200}
|
||||||
alt="QR code for Play Store"
|
alt="QR code for APK download"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
@@ -103,8 +101,7 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
|
|||||||
<CardGrid>
|
<CardGrid>
|
||||||
{
|
{
|
||||||
hasLink(downloadLinks.ios.appStore) && (
|
hasLink(downloadLinks.ios.appStore) && (
|
||||||
<Card title="App Store" icon="apple">
|
<Card title="App Store" icon="rocket">
|
||||||
<p>Download from the official App Store.</p>
|
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href={downloadLinks.ios.appStore}
|
href={downloadLinks.ios.appStore}
|
||||||
@@ -129,8 +126,7 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
|
|||||||
|
|
||||||
{
|
{
|
||||||
hasLink(downloadLinks.ios.testFlight) && (
|
hasLink(downloadLinks.ios.testFlight) && (
|
||||||
<Card title="TestFlight Beta" icon="rocket">
|
<Card title="TestFlight Beta" icon="warning">
|
||||||
<p>Join the TestFlight beta program.</p>
|
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<LinkButton
|
<LinkButton
|
||||||
href={downloadLinks.ios.testFlight}
|
href={downloadLinks.ios.testFlight}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export const downloadLinks = {
|
|||||||
releases: "https://git.atri.dad/atridad/Ascently/releases",
|
releases: "https://git.atri.dad/atridad/Ascently/releases",
|
||||||
obtainium:
|
obtainium:
|
||||||
"https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://git.atri.dad/atridad/Ascently/releases",
|
"https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://git.atri.dad/atridad/Ascently/releases",
|
||||||
playStore: "https://google.com",
|
playStore: "",
|
||||||
},
|
},
|
||||||
ios: {
|
ios: {
|
||||||
appStore: "https://apps.apple.com/ca/app/ascently/id6753959144",
|
appStore: "https://apps.apple.com/ca/app/ascently/id6753959144",
|
||||||
|
|||||||
Reference in New Issue
Block a user