diff --git a/web/index.html b/web/index.html index 03aa3226..dff7fd24 100644 --- a/web/index.html +++ b/web/index.html @@ -8,6 +8,7 @@ content="CodeXray reads a repository’s written and enforced architecture decisions, measures how well the code keeps them over time, and ranks the exceptions worth fixing, with evidence for every claim." /> + CodeXray diff --git a/web/public/favicon.svg b/web/public/favicon.svg new file mode 100644 index 00000000..f815a401 --- /dev/null +++ b/web/public/favicon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/web/src/assets/fonts/Supreme-Variable.woff2 b/web/src/assets/fonts/Supreme-Variable.woff2 new file mode 100644 index 00000000..5fb9f4b2 Binary files /dev/null and b/web/src/assets/fonts/Supreme-Variable.woff2 differ diff --git a/web/src/components/cx/primitives.tsx b/web/src/components/cx/primitives.tsx index f61b39ac..bccac6c5 100644 --- a/web/src/components/cx/primitives.tsx +++ b/web/src/components/cx/primitives.tsx @@ -1,30 +1,44 @@ -import type { ReactNode } from "react"; +import { type ReactNode, useId } from "react"; import { STATUS } from "../../cx/meta"; import type { Status } from "../../cx/types"; import { cn } from "./cn"; +/** + * The CodeXray mark: an X whose rising stroke is cut where the falling one crosses it. Drawn in + * the current text colour so it follows the theme. + */ export function Logo({ className }: { className?: string }) { - // 3×3 dependency grid: upper cells with the grain, one lower cell against it. - const cells = [0, 1, 1, 0, 0, 1, 2, 0, 0]; + const id = useId(); return ( - - {cells.map((c, i) => ( - - ))} + + + + + + + + + + + + + + + + ); +} + +/** The mark and the name together, as on the brand image. */ +export function Wordmark({ className }: { className?: string }) { + return ( + + + + CodeXray + ); } diff --git a/web/src/components/cx/site-header.tsx b/web/src/components/cx/site-header.tsx index fc8e08fd..e8b9c5e1 100644 --- a/web/src/components/cx/site-header.tsx +++ b/web/src/components/cx/site-header.tsx @@ -4,7 +4,7 @@ import { repoPath } from "../../cx/address"; import type { RepoSummary } from "../../cx/types"; import { loadRepoSummaries } from "../../data/repo"; import { FOCUS, cn } from "./cn"; -import { Logo } from "./primitives"; +import { Wordmark } from "./primitives"; import { useLoaded } from "./use-page"; const shortName = (name: string) => name.slice(name.lastIndexOf("/") + 1); @@ -22,13 +22,10 @@ export function SiteHeader({ current }: { current?: string }) {
- - CodeXray +