~gitpocket/gitpocket

1

feat(ui): use the full wordmark in the header

commit
cfa115946f3f1f3b1ff788084a2a03af6f133121 browse tree
parent
848b01705f7ec92ce5590f2759ab7d8c903df208
author
obscurejames <354576047+obscurejames@users.noreply.github.com>
signature
Verified ~james signed with a key registered by ~james
date
2026-10-30 22:27 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>