Skip to content

fix(footer): restore the shared Erigon footer - #18

Merged
bloxster merged 1 commit into
mainfrom
fix/footer-canonical
Aug 3, 2026
Merged

bloxster merged 1 commit into
mainfrom
fix/footer-canonical

Conversation

@bloxster

@bloxster bloxster commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

The terminal-green theme (#12, #16) rewrote the site footer into a single horizontal row, dropping the four canonical link columns, the company address and the contact address, and swapping the shared treatment for a monospace $ … ▊ terminal motif.

The footer is the shared Erigon corporate footer — docusaurus-design-spec.md §6 specifies it as identical across docs.erigon.tech, cocoon.erigon.tech and zilkworm.erigon.tech. This restores it.

The green theme is not touched. --ifm-color-primary stays #1F9D3E, the boxy/terminal site chrome is unchanged (none of those rules target the footer). Only the footer reverts.

What comes back

Section Content
Products Erigon Client, Zilkworm, Cocoon, R&D
Developers Zilkworm Docs, Cocoon Docs, Erigon Docs, Blog
Company About Us, Services, Contact, Privacy Policy, Cookie Policy
Community X / Discord / GitHub / LinkedIn as labelled pills, not bare icon boxes
Brand 32px logo + Quantify wordmark, tagline, Erigon Technologies AG, Dammstrasse 16, 6300 Zug
Bottom bar copyright + hello@erigon.tech

Files

  • src/theme/Footer/index.tsx — restored to the shared version.
  • src/css/custom.css (6 lines) — .footer-social-btn:hover back to #EF7716. The theme PR recolored this rule green but then stopped using the class, so restoring only the TSX would have left the footer half-orange, half-green.

Parity

After this change src/theme/Footer/index.tsx is byte-identical to:

  • cocoon's copy, except cocoon still carries a dead import Link from '@docusaurus/Link' that is dropped here;
  • erigon's copy, except the wordmark — zilkworm keeps 'Quantify', 700 where erigon has 'Montserrat', 800.

That last one is deliberate. Erigon dropped Quantify while a licensing question was open; it was resolved in Quantify's favour (Erigon Technologies AG holds a commercial extended license), spec §7 mandates Quantify for the wordmark, and this repo already vendors static/fonts/Quantify.woff2. Zilkworm is on the correct side of that; erigon is the one still to be re-synced.

Verification

  • tsc --noEmit — clean
  • npm run build — clean
  • Built HTML contains all four column headers, the Zug address and hello@erigon.tech
  • Built CSS confirms --ifm-color-primary:#1f9d3e still in force, and .footer-social-btn:hover orange

🤖 Generated with Claude Code

The terminal-green theme (#12, #16) rewrote the footer into a single
horizontal row, dropping the four canonical link columns (Products /
Developers / Company / Community), the Erigon Technologies AG address and
the hello@erigon.tech contact, and replacing the shared Nunito Sans /
black-background treatment with a monospace "$ ... " terminal motif.

The footer is the shared Erigon corporate footer: docusaurus-design-spec.md
section 6 specifies it as identical across docs.erigon.tech,
cocoon.erigon.tech and zilkworm.erigon.tech. Restore it.

The green theme is untouched -- --ifm-color-primary stays #1F9D3E and the
site chrome is unchanged. Only the footer reverts, including its #EF7716
hover accent on .footer-social-btn, so the corporate footer matches its
siblings rather than being half-recolored.

src/theme/Footer/index.tsx is now identical to cocoon's copy except for a
dead `import Link` that cocoon still carries, and identical to erigon's
except for the Quantify wordmark -- erigon dropped Quantify during a
licensing question that was later resolved in Quantify's favour; spec
section 7 mandates it and zilkworm already vendors Quantify.woff2.

Verified: tsc --noEmit clean, npm run build clean, and the built HTML
contains all four columns, the Zug address and hello@erigon.tech.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bloxster
bloxster merged commit 5090b0a into main Aug 3, 2026
1 check passed
bloxster added a commit that referenced this pull request Aug 7, 2026
* revert(footer): restore Somnath's original single-row terminal footer

Reverts #18 (5090b0a), which had replaced the footer Somnath introduced in
#12 with the five-column shared corporate footer. This puts his design back
exactly as he authored it — src/theme/Footer/index.tsx is byte-identical to
his 06f3677 — as a reference point for comparison.

His design, restored verbatim:
- Single horizontal row: brand lockup, tagline, social icons pushed right.
- Monospace throughout (--ifm-font-family-monospace), Quantify wordmark.
- Terminal motif on the copyright line: a green "$" prompt and a "▊" block
  cursor bracketing the text.
- Square 38x38 social buttons, borderRadius 0, accent-tinted on hover.
- 2px Zilkworm Green top rule.
- Zilkworm Green accent throughout, via --brand-accent.

The custom.css hunk is the other half of the same revert: .footer-social-btn
hover goes back to green #1F9D3E. Note that rule is dead code against this
footer — it styles inline and never sets that class — so it has no visual
effect either way; it is included only to make the revert complete.

Authorship note: the footer content here is Somnath Banerjee's work from
06f3677; this commit only restores it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* feat(footer): link the brand lockup and drop the dead social-button CSS

Two additions on top of the restored footer, plus one cleanup.

- Link the brand lockup (logo + erigon.tech wordmark) to erigon.tech. One
  anchor wraps both so it is a single hit target rather than two adjacent
  links to the same URL, with an aria-label because the visible content is a
  wordmark plus an image. Hover tints it corporate orange via a new
  footer-scoped --footer-accent; --brand-accent (the site-wide Zilkworm
  Green, which also drives the sidebar, TOC and menu) is deliberately not
  touched. Without this var the hover would resolve to nothing and silently
  do nothing.
- Remove .footer-social-btn and its :hover rule from custom.css. They are
  dead against this footer, which styles its social buttons inline and never
  sets that class; grep finds no remaining references. This also removes the
  malformed rgba(31, 157, 62,0.15) that lived inside the dead block.

Typography stays monospace throughout, as in the original design. An
automated reviewer flagged that as contradicting the brand font roles in
docusaurus-design-spec.md section 7; keeping it is a product decision, not
an oversight.

Verified: tsc clean, and the lockup hover probed over CDP in both colour
modes at rgb(239, 119, 22), with --brand-accent still green (#1F9D3E light,
#29AE4A dark).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(footer): make the mobile rule actually stack, correct a stale comment

Both reviewers flagged this: .footer-top-grid is a flex container, but the
mobile rule set grid-template-columns, which is a no-op there. The footer
therefore never stacked at <=768px — it kept the desktop row plus a stale
2.5rem gap and old padding, and the socials stayed pushed right by
margin-left:auto with no reset.

The rule is a leftover from the five-column footer this design replaced. Now
flex-direction: column with the margin reset, matching what docs.erigon.tech
and cocoon.erigon.tech do.

Also corrected the CSS header comment, which still claimed "the corporate
footer stays Erigon Orange #EF7716". Not true of this footer: green drives the
social and legal hovers, and only the brand lockup hovers orange via the
footer-scoped --footer-accent.

Verified: tsc clean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(footer): CSS interaction states, scope --footer-accent, canonical About URL

Addresses all four Copilot review comments on this PR.

- **Keyboard accessibility.** The brand lockup and the social buttons styled
  hover with onMouseEnter/onMouseLeave, which only fire for a mouse — tabbing
  through the footer produced no accent state and no focus indicator. Moved to
  .footer-brand / .footer-social / .footer-legal with :hover and :focus-visible
  declared together, plus an explicit focus outline. Colours are unchanged:
  socials and legal links hover Zilkworm Green, only the lockup hovers orange.
- **--footer-accent is now genuinely scoped.** It was declared on :root while
  the comment claimed it was footer-scoped — true in intent (kept separate from
  --brand-accent) but not in CSS. Now declared on `footer`, so the name matches
  the behaviour.
- **color-mix() fallback.** A flat rgba green is declared before the color-mix
  line; color-mix is Chrome 111+, so older engines keep the tint instead of
  losing it silently.
- **About Us URL** gains its trailing slash, matching the other legal links and
  avoiding a redirect.

Also replaced the mobile `.footer-top-grid > div:last-child` selector with the
dedicated .footer-socials class, and dropped a constant left unused once the
lockup hover moved to CSS.

Verified: tsc + build clean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(footer): black surface in dark mode, AA-legible fine print, no hover underline

- **Surface now matches docs.erigon.tech and cocoon.erigon.tech**: white in light
  mode, black in dark, via --footer-bg / --footer-fg declared on `footer`. It was
  --ifm-background-surface-color, which is the Infima grey #141414 in dark rather
  than black. This removes one of the divergences listed in design spec §6.2.
- **Fine print raised from --ifm-color-emphasis-600 to -700.** Measured on the
  light surface, -600 is 3.06:1 — below WCAG AA's 4.5:1 for 0.8rem text, and it
  covers the copyright line and all three legal links. -700 measures 5.72:1
  light / 15.41:1 dark. Pre-existing, surfaced while verifying the new surface.
- **Hover underline removed.** Infima's `a:hover` sets text-decoration: underline
  and outranks a plain class selector, so the base `text-decoration: none` did
  not survive the hover state. Cleared on :hover and :focus-visible.

The underline was a regression from moving the footer's interactive states off
inline styles into CSS: inline styles beat Infima's a:hover, stylesheet classes
do not. Verified by stripping the declaration at runtime and re-hovering — the
underline returns without it, on all three docs sites.

Verified: tsc + build clean; footer probed over CDP in both colour modes —
bg #FFFFFF light / #000000 dark, contrast 5.72:1 / 15.41:1, hover
text-decoration-line: none.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bloxster
bloxster deleted the fix/footer-canonical branch August 7, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant