万圣节&圣诞节皮肤

This commit is contained in:
eafonyang
2026-09-30 17:48:27 +08:00
parent 65f9be4f64
commit db76456ee0
31 changed files with 1038 additions and 27 deletions
@@ -0,0 +1,27 @@
import { cn } from "@/lib/utils";
const SRC = `${import.meta.env.BASE_URL}images/festival/halloween/pumpkin.png`;
/** 万圣节音量两端的南瓜灯:与铃铛一样固定 24px 占位,视觉尺寸独立于布局。 */
export default function HalloweenPumpkinIcon({
dim = false,
className,
}: {
dim?: boolean;
className?: string;
}) {
return (
<span className="halloween-pumpkin-slot" aria-hidden="true">
<img
src={SRC}
alt=""
draggable={false}
className={cn(
"pointer-events-none select-none object-contain",
dim ? "halloween-pumpkin-dim h-5 w-5 opacity-70" : "halloween-pumpkin h-7 w-7",
className,
)}
/>
</span>
);
}