- TrickFire Robotics -
-- Documentation and guides for technologies and repositories Trickfire +
TrickFire Robotics
++ Documentation and guides for technologies and repositories TrickFire uses.
- Documentation and guides for technologies and repositories Trickfire +
+ Documentation and guides for technologies and repositories TrickFire uses.
+
{iconEl} {title}
@@ -185,6 +189,60 @@ function Callout({ ); } +interface CardProps { + /** Already resolved to a URL by the link remark plugin before it lands here. */ + href: string; + title: ReactNode; + icon?: ReactNode; + children?: ReactNode; + className?: string; +} + +/** + * Navigation card. + * + * fumadocs' default stacks the icon in a bordered box on its own row above a + * 14px title. Condensed Barlow at 14px is narrower than the 14px Overpass + * description beneath it, so the title ends up looking like the subordinate + * element, and the stacked rows make every card ~115px tall. + * + * Here the icon shares the title's row and the title carries the weight. + */ +export function Card({ href, title, icon, children, className }: CardProps) { + return ( + + {icon && {icon}} +