From 91a88d8f28b1610037f4e827c85d0f58dfc6cc5a Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 27 Oct 2023 23:16:31 +0100 Subject: [PATCH] update pp-blue and more accessibility stuff --- src/components/Avatar.tsx | 1 + src/components/Pagination.tsx | 8 ++++---- src/components/player/PlayerInfo.tsx | 9 +++++---- tailwind.config.ts | 3 +++ 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx index 95ba2bd..38f777c 100644 --- a/src/components/Avatar.tsx +++ b/src/components/Avatar.tsx @@ -22,6 +22,7 @@ export default function Avatar({ src={url} width={size} height={size} + priority /> ); diff --git a/src/components/Pagination.tsx b/src/components/Pagination.tsx index 7f681b6..7b8c55a 100644 --- a/src/components/Pagination.tsx +++ b/src/components/Pagination.tsx @@ -31,7 +31,7 @@ export default function Pagination(props: PaginationProps) { @@ -44,7 +44,7 @@ export default function Pagination(props: PaginationProps) { @@ -81,7 +81,7 @@ export default function Pagination(props: PaginationProps) { @@ -94,7 +94,7 @@ export default function Pagination(props: PaginationProps) { diff --git a/src/components/player/PlayerInfo.tsx b/src/components/player/PlayerInfo.tsx index 6962dab..9e7efb9 100644 --- a/src/components/player/PlayerInfo.tsx +++ b/src/components/player/PlayerInfo.tsx @@ -192,13 +192,14 @@ export default function PlayerInfo({ playerData }: PlayerInfoProps) { countryCode={playerData.country} svg className="!h-7 !w-7" + alt="Country Flag" />

#{formatNumber(playerData.countryRank)}

{/* PP */} -
+

{formatNumber(playerData.pp)}pp

@@ -237,7 +238,7 @@ export default function PlayerInfo({ playerData }: PlayerInfoProps) { <>