Refactor PK page and add Trellis setup

This commit is contained in:
2026-06-30 21:03:33 +08:00
parent 908bad097c
commit 1d566bd3c0
119 changed files with 17053 additions and 538 deletions
+24
View File
@@ -0,0 +1,24 @@
import { isImageSource } from "../utils";
type WordImageProps = {
value: string;
label: string;
};
export function WordImage({ value, label }: WordImageProps) {
if (!value) {
return null;
}
if (isImageSource(value)) {
return (
<img
src={value}
alt={label}
className="pk-word-image size-[clamp(54px,7vw,92px)] rounded-lg object-contain"
/>
);
}
return <span className="pk-word-emoji text-[clamp(44px,6vw,76px)] leading-none">{value}</span>;
}