2026-06-14 16:50:20 +08:00
|
|
|
---
|
2026-07-01 12:32:33 +08:00
|
|
|
// biome-ignore-all lint/correctness/noUnusedVariables: Astro template consumes frontmatter values.
|
2026-06-22 14:11:48 +08:00
|
|
|
import { formatCompact, getImagePulls, getStarCount } from "@/lib/stats";
|
2026-06-14 16:50:20 +08:00
|
|
|
|
2026-06-22 14:11:48 +08:00
|
|
|
// Fetched at build time; refreshed by the scheduled landing rebuild.
|
|
|
|
|
const starCount = await getStarCount();
|
|
|
|
|
const { display: pullsDisplay } = await getImagePulls();
|
2026-06-15 21:55:00 +08:00
|
|
|
|
2026-06-14 16:50:20 +08:00
|
|
|
const stats = [
|
|
|
|
|
{
|
2026-07-04 13:17:25 +08:00
|
|
|
value: "200+",
|
2026-06-14 16:50:20 +08:00
|
|
|
label: "Processing Tools",
|
|
|
|
|
sublabel: "Across 5 file modalities",
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-06-22 14:11:48 +08:00
|
|
|
value: formatCompact(starCount),
|
2026-06-14 16:50:20 +08:00
|
|
|
label: "GitHub Stars",
|
|
|
|
|
sublabel: "Open-source & growing",
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-06-15 21:55:00 +08:00
|
|
|
value: pullsDisplay,
|
|
|
|
|
label: "Image Pulls",
|
|
|
|
|
sublabel: "Deployed worldwide",
|
2026-06-14 16:50:20 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-06-15 21:55:00 +08:00
|
|
|
value: "20+",
|
2026-06-14 16:50:20 +08:00
|
|
|
label: "Languages",
|
2026-06-15 21:55:00 +08:00
|
|
|
sublabel: "Speaks your language",
|
2026-06-14 16:50:20 +08:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
---
|
|
|
|
|
|
2026-07-06 23:58:02 +08:00
|
|
|
<div class="relative mx-auto mt-6 max-w-5xl">
|
2026-06-14 16:50:20 +08:00
|
|
|
|
|
|
|
|
<!-- Stats grid -->
|
|
|
|
|
<div class="reveal grid grid-cols-2 gap-10 sm:gap-12 lg:grid-cols-4">
|
|
|
|
|
{stats.map((stat) => {
|
|
|
|
|
const inner = (
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<p class="font-display text-5xl font-extrabold tracking-tight text-primary md:text-6xl">
|
|
|
|
|
{stat.value}
|
|
|
|
|
</p>
|
|
|
|
|
<p class="mt-2 text-sm font-semibold text-foreground">{stat.label}</p>
|
|
|
|
|
<p class="mt-0.5 text-xs text-muted">{stat.sublabel}</p>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
|
2026-06-15 21:55:00 +08:00
|
|
|
return <div class="p-3">{inner}</div>;
|
2026-06-14 16:50:20 +08:00
|
|
|
})}
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-06-15 21:55:00 +08:00
|
|
|
</div>
|