Skip to content

Commit

Permalink
Add liberapay logo
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Jul 4, 2020
1 parent 613e460 commit 38d4ba6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions public/lp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/sass/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,13 @@ nav {
}
}
}

.lp {
height: 13px;
display: block;
fill: var(--fg_nav);

&:hover {
fill: var(--accent_light);
}
}
5 changes: 4 additions & 1 deletion src/views/general.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import ../utils, ../types, ../prefs, ../formatters

import jester

const doctype = "<!DOCTYPE html>\n"
const
doctype = "<!DOCTYPE html>\n"
lp = readFile("public/lp.svg")

proc renderNavbar*(title, rss: string; req: Request): VNode =
let twitterPath = getTwitterLink(req.path, req.params)
Expand All @@ -25,6 +27,7 @@ proc renderNavbar*(title, rss: string; req: Request): VNode =
if rss.len > 0:
icon "rss-feed", title="RSS Feed", href=rss
icon "bird", title="Open in Twitter", href=twitterPath
a(href="https://liberapay.com/zedeus"): verbatim lp
icon "info-circled", title="About", href="/about"
iconReferer "cog", "/settings", path, title="Preferences"

Expand Down

0 comments on commit 38d4ba6

Please sign in to comment.