Improvements to the UI

This commit is contained in:
pricewowen
2026-05-24 08:49:37 -06:00
parent d35b4e57d9
commit ec1bfa3fbe
60 changed files with 669 additions and 391 deletions

View File

@@ -0,0 +1,35 @@
"use client";
import type { AvatarMood } from "@/lib/avatar-state";
import { getPetEmotionMessage } from "@/lib/pet-status";
import { cn } from "@/lib/utils";
type PetEmotionCaptionProps = {
mood: AvatarMood;
visible: boolean;
className?: string;
};
export function PetEmotionCaption({
mood,
visible,
className,
}: PetEmotionCaptionProps) {
if (!visible) {
return null;
}
return (
<div
className={cn(
"pointer-events-none absolute inset-x-2 bottom-2 z-30 flex justify-center",
"animate-emotion-pop",
className,
)}
role="status"
aria-live="polite"
>
<p className="lcd-readable-label max-w-full">{getPetEmotionMessage(mood)}</p>
</div>
);
}