~gitpocket/gitpocket

8

feat(ui): use the full gitpocket wordmark in the header, recoloured to the site palette

commit
33e17b91232eaa23f31753d54d476eb680ceaa27 browse tree
parent
dcdc19f797c1cea091a621e954b9cc870283ace7
author
~james <[email protected]>
signature
Signed by: ~james SHA256:KlzJ0P0gvJcnOYpaxD5yCUw52ImHttTKRjVAEnnYnKg
date
2026-11-13 13:35 UTC

3 files changed, +3 −2

static/style.css modified

@@ -26,7 +26,8 @@ h4 a{color:var(--fg)}
2626 header{margin-bottom:1rem}
2727 nav.site{display:flex;gap:1rem;align-items:center;padding-top:.5rem;padding-bottom:.5rem;flex-wrap:wrap}
2828 nav.site .brand{display:inline-flex;align-items:center;font-size:1.3rem;color:var(--fg);margin-right:.5rem;text-decoration:none;letter-spacing:-.01em}
29-nav.site .brand img{height:2.8rem;width:auto;margin:-.6rem -.3rem -.6rem 0;position:relative;top:.45rem}
29+nav.site .brand img{height:2.3rem;width:auto;margin:-.4rem 0}
30+nav.site .brand img.mark{height:2.8rem;margin:-.6rem -.3rem -.6rem 0;position:relative;top:.45rem}
3031 nav.site{color:var(--muted)}
3132 nav.site a{color:var(--muted)}
3233 nav.site .brand{color:var(--fg)}

static/wordmark.png added

Binary file.

templates/layout.html modified

@@ -18,7 +18,7 @@
1818 <body{{if .Fluid}} class="fluid"{{end}}>
1919 <header>
2020 <nav class="site">
21-<a class="brand" href="/" aria-label="{{.Name}}"><img src="/static/logo.png" alt="" width="35" height="36">{{if eq .Name "gitpocket"}}itpocket{{else}}{{.Name}}{{end}}</a>
21+<a class="brand" href="/" aria-label="{{.Name}}">{{if eq .Name "gitpocket"}}<img src="/static/wordmark.png" alt="gitpocket" width="311" height="80">{{else}}<img class="mark" src="/static/logo.png" alt="" width="35" height="36">{{.Name}}{{end}}</a>
2222 <a href="/search">explore</a>
2323 {{if not (and .Data (index .Data "Facets"))}}<form class="navsearch" method="get" action="/search" role="search"><input name="q" placeholder="Search repositories, people, languages" aria-label="Search"></form>{{end}}
2424 <span class="spacer"></span>