feat: update stats and add download metadata

This commit is contained in:
DecDuck
2025-11-22 16:06:11 +11:00
parent 59c5bc0aa0
commit 1bdea73cdb
2 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -61,14 +61,14 @@ function Header() {
<div className="flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4"> <div className="flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4">
<dt className="text-sm/6 text-gray-600">Docker pulls</dt> <dt className="text-sm/6 text-gray-600">Docker pulls</dt>
<dd className="order-first text-6xl font-medium tracking-tight"> <dd className="order-first text-6xl font-medium tracking-tight">
<AnimatedNumber start={0} end={12.2} decimals={1} />k <AnimatedNumber start={0} end={48.8} decimals={1} />k
</dd> </dd>
</div> </div>
<div className="flex flex-col gap-y-2"> <div className="flex flex-col gap-y-2">
<dt className="text-sm/6 text-gray-600">Contributors</dt> <dt className="text-sm/6 text-gray-600">Contributors</dt>
<dd className="order-first text-6xl font-medium tracking-tight"> <dd className="order-first text-6xl font-medium tracking-tight">
&gt; &gt;
<AnimatedNumber start={0} end={10} /> <AnimatedNumber start={0} end={15} />
</dd> </dd>
</div> </div>
</dl> </dl>
+7 -3
View File
@@ -179,7 +179,7 @@ const downloads: {
}, },
'v0.3.4': { 'v0.3.4': {
x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.4/Drop.Desktop.Client_0.3.4_amd64.deb', x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.4/Drop.Desktop.Client_0.3.4_amd64.deb',
ARM: "https://github.com/Drop-OSS/drop-app/releases/download/v0.3.4/Drop.Desktop.Client_0.3.4_arm64.deb", ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.4/Drop.Desktop.Client_0.3.4_arm64.deb',
}, },
}, },
}, },
@@ -209,8 +209,8 @@ const downloads: {
ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.3/Drop.Desktop.Client_0.3.3_aarch64.dmg', ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.3/Drop.Desktop.Client_0.3.3_aarch64.dmg',
}, },
'v0.3.4': { 'v0.3.4': {
x86: "https://github.com/Drop-OSS/drop-app/releases/download/v0.3.4/Drop.Desktop.Client_0.3.4_x64.dmg", x86: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.4/Drop.Desktop.Client_0.3.4_x64.dmg',
ARM: "https://github.com/Drop-OSS/drop-app/releases/download/v0.3.4/Drop.Desktop.Client_0.3.4_aarch64.dmg", ARM: 'https://github.com/Drop-OSS/drop-app/releases/download/v0.3.4/Drop.Desktop.Client_0.3.4_aarch64.dmg',
}, },
}, },
}, },
@@ -259,6 +259,10 @@ export default function DownloadCards() {
return ( return (
<div className="relative py-24"> <div className="relative py-24">
<pre className="hidden" id="download-matrix">
{JSON.stringify(downloads)}
</pre>
<Container> <Container>
<div className="flex flex-col items-center"> <div className="flex flex-col items-center">
<Listbox value={currentVersion} onChange={setCurrentVersion}> <Listbox value={currentVersion} onChange={setCurrentVersion}>