diff --git a/Frontend/bun.lockb b/Frontend/bun.lockb index bc4fc25..2b0c3e5 100644 Binary files a/Frontend/bun.lockb and b/Frontend/bun.lockb differ diff --git a/Frontend/src/app/(pages)/player/[[...slug]]/page.tsx b/Frontend/src/app/(pages)/player/[[...slug]]/page.tsx index 0c9beff..e8be845 100644 --- a/Frontend/src/app/(pages)/player/[[...slug]]/page.tsx +++ b/Frontend/src/app/(pages)/player/[[...slug]]/page.tsx @@ -80,7 +80,7 @@ export const generateMetadata = async ({ const player: CachedPlayer = await getPlayer(query); // Get the player to embed return Embed({ title: `${player.username}'s Player`, - description: "Click to view data about this player.", + description: `UUID: ${player.uniqueId}\n\nClick to view data about this player.`, thumbnail: player.skin.parts.HEAD, }); } catch (err) { diff --git a/Frontend/src/app/components/player/player-search.tsx b/Frontend/src/app/components/player/player-search.tsx index 88093c4..764e3c3 100644 --- a/Frontend/src/app/components/player/player-search.tsx +++ b/Frontend/src/app/components/player/player-search.tsx @@ -1,6 +1,7 @@ import MinecraftButton from "@/components/minecraft-button"; import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; import { redirect } from "next/navigation"; /** @@ -23,12 +24,16 @@ const PlayerSearch = ({ className="flex flex-col gap-7 justify-center items-center" action={handleRedirect} > - +
+ + +
Search ); diff --git a/Frontend/src/app/components/ui/label.tsx b/Frontend/src/app/components/ui/label.tsx new file mode 100644 index 0000000..a992f60 --- /dev/null +++ b/Frontend/src/app/components/ui/label.tsx @@ -0,0 +1,26 @@ +"use client"; + +import * as LabelPrimitive from "@radix-ui/react-label"; +import { cva, type VariantProps } from "class-variance-authority"; +import * as React from "react"; + +import { cn } from "@/app/lib/utils"; + +const labelVariants = cva( + "text-sm font-medium text-zinc-300 leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" +); + +const Label = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef & + VariantProps +>(({ className, ...props }, ref) => ( + +)); +Label.displayName = LabelPrimitive.Root.displayName; + +export { Label };