This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
Files
scoresaber-reloadedv3/projects/website/src/components/home/site-stats.tsx

27 lines
1.0 KiB
TypeScript
Raw Normal View History

2024-10-29 16:34:16 -04:00
import { ChartNoAxesCombined, Database } from "lucide-react";
2024-10-28 22:47:45 -04:00
import { kyFetch } from "@ssr/common/utils/utils";
import { AppStatistics } from "@ssr/common/types/backend/app-statistics";
import { Config } from "@ssr/common/config";
import { AppStats } from "@/components/app-statistics";
export default async function SiteStats() {
const statistics = await kyFetch<AppStatistics>(Config.apiUrl + "/statistics");
return (
<div className="px-5 -mt-20 flex flex-col gap-10 select-none">
{/* Header */}
<div className="flex flex-col gap-2.5">
2024-10-29 15:50:58 -04:00
<div className="flex gap-3 items-center text-orange-600">
2024-10-29 16:34:16 -04:00
<ChartNoAxesCombined className="p-2 size-11 bg-orange-800/15 rounded-lg" />
2024-10-29 15:50:58 -04:00
<h1 className="text-3xl sm:text-4xl font-bold">Site Statistics</h1>
2024-10-28 22:47:45 -04:00
</div>
2024-10-29 15:50:58 -04:00
<p className="max-w-5xl text-sm sm:text-base opacity-85">
posidonium novum ancillae ius conclusionemque splendide vel.
</p>
2024-10-28 22:47:45 -04:00
</div>
{/* Content */}
{statistics && <AppStats initialStatistics={statistics} />}
</div>
);
}