Skip to content

Show the OpenDLP logo in the site header - #5

Merged
gazdagergo merged 1 commit into
mainfrom
1089-opendlp-logo
Nov 12, 2026
Merged

gazdagergo merged 1 commit into
mainfrom
1089-opendlp-logo

Conversation

@gazdagergo

Copy link
Copy Markdown
Contributor

Shortcut: sc-1089
Companion to sortitionfoundation/opendlp#429, which puts the same logo in the app.

Summary

The header of the docs site shows the OpenDLP logo in place of the Sortition Foundation logo. It is the compact logo from Klára's Figma frame (OpenDLP - UI, node 5878-5972), the same file the OpenDLP app's header now uses; the companion PR in sortitionfoundation/opendlp (branch 1089-opendlp-logo) puts it in the app. Only the header changes.

  1. The file: themes/govuk-sortition/static/img/opendlp-small-sized-logo.svg, a byte-for-byte copy of the app's backend/static/img/opendlp-small-sized-logo.svg, the logo set's "compact logo for tight spaces such as a header bar".
  2. The header (layouts/partials/header.html): the logo's <img> points at it, with the alt text "OpenDLP" and its size, 142×64.
  3. The stylesheet (static/css/style.css): .header-logo draws it at its own size, 64px high, with negative margins of 12px at the top, bottom and left. The file keeps 12px of space around the mark, so the header keeps its height and the arch lines up with the page's left edge, where the old logo sat.

Left as it is, deliberately:

  • logosortition.svg stays in the theme, for pages about the Sortition Foundation.
  • The algorithm animations in static/files/animations/ keep their Sortition Foundation logo, which links to the Foundation's site.

Found on the way, not changed: the site has no favicon (/favicon.ico answers 404). Linking opendlp-favicon.svg, as the app now does, would be a small follow-up.

Testing

  • Not built locally, as Hugo was not at hand; the PR's GitHub Actions build (hugo --minify, Hugo 0.123.7) is the build check.
  • git grep logosortition: the header no longer refers to it; only the animations do.
  • Checked in Chromium at 1440 and 390 wide on the live site, with this branch's header <img>, stylesheet and logo file swapped into the page: the logo is 142×64 and loads, the header keeps its height (70px at 1440, 120px at 390, where the search box wraps under the logo), and the arch starts at the content's left edge (240px and 15px), where the old logo started.

🤖 Generated with Claude Code

https://claude.ai/code/session_0114sGRp4g2kzKCWqprxHhVc

The header showed the Sortition Foundation logo. It now shows the
compact OpenDLP logo, opendlp-small-sized-logo.svg, the same file the
OpenDLP app's header uses (sc-1089), with the alt text "OpenDLP".

The logo file is 142x64 and keeps 12px of space around the mark.
Negative margins take that space back, so the header keeps its height
and the arch lines up with the page's left edge, where the old logo
sat.

logosortition.svg stays in the theme for pages about the Sortition
Foundation. Nothing else on the site changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114sGRp4g2kzKCWqprxHhVc
@gazdagergo
gazdagergo requested a review from foobacca November 11, 2026 10:44

@foobacca foobacca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gazdagergo
gazdagergo merged commit 37133ee into main Nov 12, 2026
3 checks passed
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.

2 participants