Skip to content

Commit 332e5df

Browse files
committed
feat: add inline SVG logo to journal page nav bar
1 parent cc6da9a commit 332e5df

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

docs/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,15 @@
522522

523523
.nav-logo span { color: var(--amber); }
524524

525+
.nav-icon {
526+
width: 22px;
527+
height: 22px;
528+
vertical-align: middle;
529+
margin-right: 6px;
530+
position: relative;
531+
top: -1px;
532+
}
533+
525534
.nav-links {
526535
display: flex;
527536
gap: 6px;
@@ -606,7 +615,7 @@
606615
<body>
607616
<div class="container">
608617
<nav class="site-nav">
609-
<a href="#" class="nav-logo">NEX<span>US</span></a>
618+
<a href="#" class="nav-logo"><svg class="nav-icon" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="6" fill="#070a0e"/><rect width="32" height="32" rx="6" fill="none" stroke="#f5a623" stroke-width="1.5"/><text x="16" y="23" font-family="monospace" font-size="18" font-weight="bold" fill="#f5a623" text-anchor="middle">N</text></svg>NEX<span>US</span></a>
610619
<div class="nav-links">
611620
<a href="#journal">journal</a>
612621
<a href="#identity">identity</a>

src/journal.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,15 @@ function buildPageHTML(
818818
819819
.nav-logo span { color: var(--amber); }
820820
821+
.nav-icon {
822+
width: 22px;
823+
height: 22px;
824+
vertical-align: middle;
825+
margin-right: 6px;
826+
position: relative;
827+
top: -1px;
828+
}
829+
821830
.nav-links {
822831
display: flex;
823832
gap: 6px;
@@ -902,7 +911,7 @@ function buildPageHTML(
902911
<body>
903912
<div class="container">
904913
<nav class="site-nav">
905-
<a href="#" class="nav-logo">NEX<span>US</span></a>
914+
<a href="#" class="nav-logo"><svg class="nav-icon" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="6" fill="#070a0e"/><rect width="32" height="32" rx="6" fill="none" stroke="#f5a623" stroke-width="1.5"/><text x="16" y="23" font-family="monospace" font-size="18" font-weight="bold" fill="#f5a623" text-anchor="middle">N</text></svg>NEX<span>US</span></a>
906915
<div class="nav-links">
907916
<a href="#journal">journal</a>
908917
<a href="#identity">identity</a>

0 commit comments

Comments
 (0)