返回 CodeWhale
seal.tsx
根目录 / web / components / seal.tsx
1 /**
2 * <Seal> — one Han glyph in a small square stamp, inked in the logo's ombre.
3 *
4 * A seal names the subject of a page or section at a glance (问 questions,
5 * 接 integrations, 数 facts, 信 trust, 集 surfaces, 法 law, 序 rank, 证 evidence,
6 * 动 activity, 深 depth). It is a mark, not a word: the heading beside it
7 * says the same thing, so the seal is hidden from assistive technology.
8 */
9 export function Seal({ char = "深", size = "md" }: { char?: string; size?: "sm" | "md" | "lg" }) {
10 return (
11 <span className={`seal seal-${size}`} aria-hidden="true" lang="zh">
12 {char}
13 </span>
14 );
15 }
16
16 lines Plain Text