feat(videos): add shared animation components (grain, clip reveal, tool pill, counter, etc.)

This commit is contained in:
SnapOtter
2026-05-08 16:12:05 +08:00
parent dfeb358bb8
commit 447ef3a07e
9 changed files with 303 additions and 4 deletions
+28
View File
@@ -0,0 +1,28 @@
import type React from "react";
import { COLOR } from "@/lib/colors";
import { TEXT } from "@/lib/fonts";
export const ToolPill: React.FC<{
name: string;
category: string;
style?: React.CSSProperties;
}> = ({ name, category, style }) => {
const color = COLOR.category[category] ?? COLOR.accent;
return (
<div
style={{
display: "inline-flex",
alignItems: "center",
padding: "4px 12px",
borderRadius: 6,
backgroundColor: color,
color: "white",
...TEXT.toolPill,
whiteSpace: "nowrap",
...style,
}}
>
{name}
</div>
);
};