SPB Git

Repository Public

Logo.tsx 1.4 KB 33 lines tsx

1/** SPBoucherBot mark: a framed route that advances in right-angled steps between two nodes. */2export function Mark({ size = 28 }: { size?: number }) {3  return (4    <svg className="mark" width={size} height={size} viewBox="0 0 32 32" aria-hidden="true" focusable="false">5      <rect x="2" y="2" width="28" height="28" fill="none" stroke="currentColor" strokeWidth="2.5" />6      <path className="mark-route" d="M9 23v-7h7V9h7" />7      <rect x="6" y="20" width="6" height="6" fill="currentColor" />8      <rect x="20" y="6" width="6" height="6" fill="currentColor" />9    </svg>10  );11}1213const PICTOS = {14  robots: 'M6 3h9l4 4v14H6zM15 3v4h4M9 12h7M9 16h7',15  get: 'M12 4v12M7 11l5 5 5-5M5 20h14',16  one: 'M3 12h6M15 12h6M12 9a3 3 0 100 6 3 3 0 000-6z',17  delay: 'M12 4a8 8 0 100 16 8 8 0 000-16zM12 8v4.5l3 2',18  nojs: 'M9 7l-4 5 4 5M15 7l4 5-4 5M4 4l16 16',19  lock: 'M6 11h12v9H6zM9 11V8a3 3 0 016 0v3',20  size: 'M6 3h9l4 4v14H6zM15 3v4h4M9 17h7M9 13h4',21  noarchive: 'M4 7h16v4H4zM6 11v9h12v-9M10 15h4M3 3l18 18',22} as const;23export type PictoName = keyof typeof PICTOS;2425/** Small rule pictogram (stroke = currentColor). */26export function Picto({ name }: { name: PictoName }) {27  return (28    <svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="square" aria-hidden="true" focusable="false">29      <path d={PICTOS[name]} />30    </svg>31  );32}33
Files main
Menu

Theme