Skip to content

Commit 4cac48a

Browse files
committed
feat: redesign the landing page and brand
The home page now says what Commit Check does in its first line and walks a visitor to the entry point that fits them: CLI, pre-commit hook, GitHub Action, GitHub App or MCP server. Two animated demos show the tool at work: a commit-msg hook rejecting and then accepting a message, and the GitHub Action's PR comment, job summary, PR-title, message and branch checks. Both are plain HTML driven by a small timeline script, rest on their final frame without JavaScript or under reduced motion, and pause while off screen. The brand is one system across the site: a new mark (a commit on a history line, ticked), an Ink header and footer on every page, Signal Blue kept at the README badge's #2c9ccd, Bricolage Grotesque for headings and Instrument Sans for text. Favicon, touch icon and social cards follow it. The Team plan is shown as coming soon, on the home page and in the App guide, since it is not on sale yet.
1 parent e867fb5 commit 4cac48a

11 files changed

Lines changed: 3141 additions & 523 deletions

File tree

‎docs/assets/extra.css‎

Lines changed: 64 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,42 @@
11
/* Brand palette -----------------------------------------------------------
2-
Material's "custom" primary/accent read these variables. */
2+
Material's "custom" primary/accent read these variables.
3+
4+
Ink is the brand's dark and Signal Blue its accent. The header and footer
5+
are Ink on every page, so the docs and the landing page share one frame;
6+
Signal Blue is the same #2c9ccd the README badge has always used, so badges
7+
already in the wild still match. */
38
:root {
9+
--cc-ink: #0b1620;
10+
--cc-ink-raised: #13212c;
411
--cc-brand: #2c9ccd;
512
--cc-brand-dark: #1e85a8;
613
--cc-brand-light: #5bb3d9;
7-
/* The brand blue only reaches 4.2:1 on white; links need 4.5:1. */
14+
/* The brand blue only reaches 3.1:1 on white; links need 4.5:1. */
815
--cc-link: #176b89;
916

10-
/* The hero sits on brand blue, so its button is white rather than branded. */
11-
--cc-hero-button-bg: #ffffff;
12-
13-
--md-primary-fg-color: var(--cc-brand);
14-
--md-primary-fg-color--light: var(--cc-brand-light);
15-
--md-primary-fg-color--dark: var(--cc-brand-dark);
17+
--md-primary-fg-color: var(--cc-ink);
18+
--md-primary-fg-color--light: var(--cc-ink-raised);
19+
--md-primary-fg-color--dark: #060d13;
1620
--md-accent-fg-color: var(--cc-brand-dark);
21+
22+
/* A literal stack: the theme defines --md-text-font-family below :root,
23+
so a var() of it here would resolve to nothing. */
24+
--cc-display-font: "Bricolage Grotesque", "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
25+
}
26+
27+
/* The theme sets the footer colours per scheme, so they are overridden per
28+
scheme too; on :root alone they would lose to the theme's own. */
29+
[data-md-color-scheme="default"],
30+
[data-md-color-scheme="slate"] {
31+
--md-footer-bg-color: #081119;
32+
--md-footer-bg-color--dark: #060d13;
1733
}
1834

1935
[data-md-color-scheme="slate"] {
20-
--md-primary-fg-color: var(--cc-brand);
36+
/* Material tints every slate grey from one hue; 205 is Ink's. */
37+
--md-hue: 205;
38+
--md-default-bg-color: #0e1a23;
39+
--md-primary-fg-color: var(--cc-ink);
2140
--md-accent-fg-color: var(--cc-brand-light);
2241
--md-typeset-a-color: var(--cc-brand-light);
2342
}
@@ -26,6 +45,42 @@
2645
--md-typeset-a-color: var(--cc-link);
2746
}
2847

48+
/* A primary button is Signal Blue with Ink text: white on this blue is 3.1:1,
49+
under the 4.5:1 a button label needs; Ink on it is 5.9:1. */
50+
.md-typeset .md-button--primary {
51+
background-color: var(--cc-brand);
52+
border-color: var(--cc-brand);
53+
color: var(--cc-ink);
54+
}
55+
56+
.md-typeset .md-button--primary:focus,
57+
.md-typeset .md-button--primary:hover {
58+
background-color: var(--cc-brand-light);
59+
border-color: var(--cc-brand-light);
60+
color: var(--cc-ink);
61+
}
62+
63+
/* Display face for page titles, section headings and the site name. Body text
64+
stays in the theme's text font. */
65+
.md-typeset h1,
66+
.md-typeset h2 {
67+
font-family: var(--cc-display-font);
68+
font-weight: 700;
69+
letter-spacing: -0.02em;
70+
}
71+
72+
/* The theme draws page titles in a light grey at weight 300; in the display
73+
face they read as headings only at full strength. */
74+
.md-typeset h1 {
75+
color: var(--md-default-fg-color);
76+
}
77+
78+
.md-header__title {
79+
font-family: var(--cc-display-font);
80+
font-weight: 700;
81+
letter-spacing: -0.01em;
82+
}
83+
2984
/* Feature grid: uses Material's card grid, tightened up a little. */
3085
.md-typeset .grid.cards > ul > li {
3186
border-radius: 0.4rem;

‎docs/assets/favicon.svg‎

Lines changed: 5 additions & 7 deletions
Loading

‎docs/assets/logo.svg‎

Lines changed: 7 additions & 12 deletions
Loading

‎docs/guides/github-app.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ without a wall of red.
181181

182182
Public repositories are free on any account, and everything on a personal
183183
account is free, and both stay free. Only an organization's private
184-
repositories are paid:
184+
repositories will be paid, on a Team plan that is not on sale yet:
185185

186186
| Plan | Price | Covers |
187187
|---|---|---|
188188
| Open Source | Free | Public repositories, on any account |
189189
| Personal | Free | Private repositories on a personal account |
190-
| Team | $19 / month | Private repositories in an organization, 14-day free trial |
190+
| Team | Coming soon | Private repositories in an organization |
191191

192192
The Team plan is not tiered by seat count. Twenty of you and twenty thousand of
193193
you pay the same, so growing the team never changes the bill.

0 commit comments

Comments
 (0)