Fixed
All checks were successful
Ascently - Docs Deploy / build-and-push (push) Successful in 3m58s

This commit is contained in:
2025-10-20 00:03:35 -06:00
parent eba503eb5e
commit 862622b07b
2 changed files with 19 additions and 23 deletions

View File

@@ -2,6 +2,7 @@
import { Tabs, TabItem } from "@astrojs/starlight/components";
import { Card, CardGrid } from "@astrojs/starlight/components";
import { LinkButton } from "@astrojs/starlight/components";
import { Badge } from "@astrojs/starlight/components";
import QRCode from "./QRCode.astro";
import { downloadLinks, requirements } from "../config";
@@ -15,27 +16,26 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
---
<Tabs syncKey="platform">
<TabItem label="Android" icon="laptop">
<TabItem label="Android" icon="star">
<CardGrid>
{
hasLink(downloadLinks.android.releases) && (
<Card title="Direct APK Download" icon="download">
<p>Download the latest APK from the Releases page.</p>
hasLink(downloadLinks.android.playStore) && (
<Card title="Google Play Store" icon="star">
<p style="text-align: center;">
<LinkButton
href={downloadLinks.android.releases}
href={downloadLinks.android.playStore}
variant="primary"
icon="external"
>
Download APK
Get on Play Store
</LinkButton>
</p>
{showQR && (
<p style="text-align: center;">
<QRCode
data={downloadLinks.android.releases}
data={downloadLinks.android.playStore}
size={200}
alt="QR code for APK download"
alt="QR code for Play Store"
/>
</p>
)}
@@ -45,8 +45,7 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
{
hasLink(downloadLinks.android.obtainium) && (
<Card title="Obtainium" icon="setting">
<p>Use Obtainium for automatic updates.</p>
<Card title="Obtainium" icon="rocket">
<p style="text-align: center;">
<LinkButton
href={downloadLinks.android.obtainium}
@@ -70,24 +69,23 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
}
{
hasLink(downloadLinks.android.playStore) && (
<Card title="Google Play Store" icon="rocket">
<p>Download from the official Google Play Store.</p>
hasLink(downloadLinks.android.releases) && (
<Card title="Direct Download" icon="download">
<p style="text-align: center;">
<LinkButton
href={downloadLinks.android.playStore}
variant="primary"
href={downloadLinks.android.releases}
variant="secondary"
icon="external"
>
Get on Play Store
Download APK
</LinkButton>
</p>
{showQR && (
<p style="text-align: center;">
<QRCode
data={downloadLinks.android.playStore}
data={downloadLinks.android.releases}
size={200}
alt="QR code for Play Store"
alt="QR code for APK download"
/>
</p>
)}
@@ -103,8 +101,7 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
<CardGrid>
{
hasLink(downloadLinks.ios.appStore) && (
<Card title="App Store" icon="apple">
<p>Download from the official App Store.</p>
<Card title="App Store" icon="rocket">
<p style="text-align: center;">
<LinkButton
href={downloadLinks.ios.appStore}
@@ -129,8 +126,7 @@ const hasLink = (link: string | undefined) => link && link.trim() !== "";
{
hasLink(downloadLinks.ios.testFlight) && (
<Card title="TestFlight Beta" icon="rocket">
<p>Join the TestFlight beta program.</p>
<Card title="TestFlight Beta" icon="warning">
<p style="text-align: center;">
<LinkButton
href={downloadLinks.ios.testFlight}

View File

@@ -8,7 +8,7 @@ export const downloadLinks = {
releases: "https://git.atri.dad/atridad/Ascently/releases",
obtainium:
"https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://git.atri.dad/atridad/Ascently/releases",
playStore: "https://google.com",
playStore: "",
},
ios: {
appStore: "https://apps.apple.com/ca/app/ascently/id6753959144",