app/components/site-logo.tsx
32 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.
Functions
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| SiteLogoHeader | 21 to 34 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No data: no mutants in this code |
Imports
It imports no other module of this repo. Imported by app/components/shell-footer.tsx, app/components/site-header.tsx.
Source
// Inline, not an `<img>`: the theme is a data attribute, so a `<picture>` with
// `prefers-color-scheme` would ignore the manual toggle. The warm three keep literal fills
// because they are identical in both variants. Generated from public/dustin-edwards-logo.svg:
// never hand-edit the path data.
/** The eight paths, in the spec's paint order: ring, bowl, base, arc, tube, amber, pale, cap. */
const MARK = (
<>
<path className="site-logo-brand" d="M 271.75 306.65 A 112.5 112.5 0 1 1 167.85 117.27 L 177.21 159.48 A 69.2 69.2 0 1 0 238.83 273.73 L 271.75 306.65 Z" />
<path className="site-logo-brand" d="M 212.00 273.20 L 290.80 273.20 A 39.4 39.4 0 0 1 212.00 273.20 Z" />
<path className="site-logo-brand" d="M 81.40 341.70 A 44.9 44.9 0 0 1 119.10 312.62 L 271.60 312.62 A 44.9 44.9 0 0 1 309.30 341.70 L 81.40 341.70 Z" />
<path fill="#CE7F44" d="M 173.37 117.10 A 111.6 111.6 0 0 1 288.36 170.46 L 306.63 201.48 L 275.44 219.85 L 257.17 188.83 A 75.4 75.4 0 0 0 193.75 151.72 Z" />
<path className="site-logo-brand" d="M 109.47 86.65 L 143.59 66.56 L 217.44 191.92 L 183.32 212.02 Z" />
<path fill="#E0A428" d="M 225.72 207.36 L 257.51 188.63 L 275.78 219.65 L 243.99 238.38 Z" />
<path fill="#E2BC6B" d="M 192.20 227.10 L 226.06 207.15 L 244.33 238.17 L 210.47 258.12 Z" />
<path className="site-logo-brand" d="M 134.88 51.38 L 100.42 71.68 L 80.12 37.21 L 114.58 16.91 Z" />
</>
);
// The viewBox and intrinsic size are copied from dustin-edwards-logo-header.svg.
export function SiteLogoHeader({ className }: { className?: string }) {
return (
<svg
className={className}
viewBox="78 15 232 328"
width="36"
height="50"
aria-hidden="true"
focusable="false"
>
{MARK}
</svg>
);
}