diff --git a/src/app/(pages)/page.tsx b/src/app/(pages)/page.tsx index 607f00a..1e1e403 100644 --- a/src/app/(pages)/page.tsx +++ b/src/app/(pages)/page.tsx @@ -1,5 +1,18 @@ "use client"; +import Card from "@/components/card"; + export default function Home() { - return <>home page; + return ( +
+
+ +

hello

+
+ +

hello

+
+
+
+ ); } diff --git a/src/app/(pages)/player/[...slug]/page.tsx b/src/app/(pages)/player/[...slug]/page.tsx index e083c4f..ff49b04 100644 --- a/src/app/(pages)/player/[...slug]/page.tsx +++ b/src/app/(pages)/player/[...slug]/page.tsx @@ -1,6 +1,6 @@ +import { formatNumberWithCommas, formatPp } from "@/common/number-utils"; import { scoresaberService } from "@/common/service/impl/scoresaber"; import { ScoreSort } from "@/common/service/score-sort"; -import { formatNumberWithCommas } from "@/common/number-utils"; import PlayerData from "@/components/player/player-data"; import { format } from "@formkit/tempo"; import { Metadata } from "next"; @@ -12,9 +12,7 @@ type Props = { }; }; -export async function generateMetadata({ - params: { slug }, -}: Props): Promise { +export async function generateMetadata({ params: { slug } }: Props): Promise { const id = slug[0]; // The players id const player = await scoresaberService.lookupPlayer(id, false); if (player === undefined) { @@ -31,8 +29,8 @@ export async function generateMetadata({ openGraph: { title: `ScoreSaber Reloaded - ${player.name}`, description: ` - PP: ${formatNumberWithCommas(player.pp)}pp - Rank: #${formatNumberWithCommas(player.rank)} (#${formatNumberWithCommas(player.countryRank)} ${player.country}) + PP: ${formatPp(player.pp)}pp + Rank: #${formatNumberWithCommas(player.rank)} (#${formatPp(player.countryRank)} ${player.country}) Joined ScoreSaber: ${format(player.firstSeen, { date: "medium", time: "short" })} View the scores for ${player.name}!`, @@ -58,12 +56,7 @@ export default async function Search({ params: { slug } }: Props) { return (
- +
); } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f8fcacc..573b7f7 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -72,7 +72,7 @@ export default function RootLayout({
-
+
{children}