add grafana panel link
All checks were successful
deploy / deploy (push) Successful in 58s

This commit is contained in:
Lee 2023-10-27 20:09:35 +01:00
parent dc9db379e1
commit 679b5e73bb

@ -6,6 +6,7 @@ import { ssrSettings } from "@/ssrSettings";
import { formatNumber } from "@/utils/number"; import { formatNumber } from "@/utils/number";
import { isProduction } from "@/utils/utils"; import { isProduction } from "@/utils/utils";
import { Metadata } from "next"; import { Metadata } from "next";
import Link from "next/link";
async function getData() { async function getData() {
const response = await fetch( const response = await fetch(
@ -65,6 +66,18 @@ export default async function Analytics() {
<p className="text-center text-gray-300"> <p className="text-center text-gray-300">
Scoresaber metrics and statistics over the last 30 days. Scoresaber metrics and statistics over the last 30 days.
</p> </p>
<p className="text-gray-300">
Want more in-depth data? Click{" "}
<span className="text-pp-blue">
<Link
href="https://grafana.fascinated.cc/d/c40febe5-6779-4f91-b85e-0a46b3865041/beatsaber-metrics"
target="_blank"
rel="noopener noreferrer"
>
here
</Link>
</span>
</p>
<div className="mt-3 h-[400px] w-full"> <div className="mt-3 h-[400px] w-full">
<AnalyticsChart historyData={historyData} /> <AnalyticsChart historyData={historyData} />
</div> </div>