g1t/apps/web/app/components/logo.tsx
| 1 | /** |
| 2 | * g1t's mark, "the fleet": three 1s stepping back in depth, the agents at |
| 3 | * work behind the one change in front. The front 1 takes the text colour; |
| 4 | * the two behind it fade into lavender. The same shapes as the favicon and |
| 5 | * the brand files in .g1t/brand and public/brand. |
| 6 | */ |
| 7 | export function Mark({ className, tight = false }: { className?: string; tight?: boolean }) { |
| 8 | return ( |
| 9 | // Square for icons; `tight` crops to the figure itself, for setting it |
| 10 | // beside type, where it must stand on the baseline. |
| 11 | <svg viewBox={tight ? "6.9 5 18.2 22" : "0 0 32 32"} className={className} aria-hidden="true"> |
| 12 | <g transform="translate(0.7 0.5)"> |
| 13 | {/* The agents behind */} |
| 14 | <rect x="6.2" y="9.5" width="4.4" height="17" rx="2.2" fill="var(--g1t-merged)" fillOpacity="0.35" /> |
| 15 | <rect x="12.4" y="7" width="4.8" height="19.5" rx="2.4" fill="var(--g1t-merged)" fillOpacity="0.65" /> |
| 16 | {/* The 1 in front */} |
| 17 | <rect x="19" y="4.5" width="5.4" height="22" rx="2.7" fill="currentColor" /> |
| 18 | <path d="M21.7 7.2 17.6 10.9" fill="none" stroke="currentColor" strokeWidth="4.6" strokeLinecap="round" /> |
| 19 | </g> |
| 20 | </svg> |
| 21 | ); |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * The lockup, as in the brand files: the mark as tall as the wordmark's |
| 26 | * capitals, standing on its baseline. Sized by its font size. |
| 27 | */ |
| 28 | export function Logo({ className = "text-[1.3rem]" }: { className?: string }) { |
| 29 | return ( |
| 30 | <span className={`inline-flex items-baseline gap-[0.3em] leading-none font-bold text-fg ${className}`}> |
| 31 | <Mark tight className="h-[0.74em] w-auto shrink-0 self-baseline" /> |
| 32 | <span className="tracking-[-0.045em]">g1t</span> |
| 33 | </span> |
| 34 | ); |
| 35 | } |