Skip to content

Commit 47088be

Browse files
committed
feat(site): add brand mark
1 parent d32109d commit 47088be

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

site/public/techapi-mark.png

1.13 MB
Loading

site/src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const endpoints = [
5151
<nav class="nav">
5252
<div class="wrap nav-inner">
5353
<a class="brand" href={base}>
54-
<span class="mark">T</span>TechAPI<span class="cursor" aria-hidden="true"></span>
54+
<img class="brand-mark" src={`${base}techapi-mark.png`} alt="" aria-hidden="true" />TechAPI<span class="cursor" aria-hidden="true"></span>
5555
</a>
5656
<div class="nav-links">
5757
<a href="#history">History</a>
@@ -315,7 +315,7 @@ const endpoints = [
315315
<footer>
316316
<div class="wrap">
317317
<div class="foot-inner">
318-
<a class="brand" href={base}><span class="mark">T</span>TechAPI</a>
318+
<a class="brand" href={base}><img class="brand-mark" src={`${base}techapi-mark.png`} alt="" aria-hidden="true" />TechAPI</a>
319319
<div class="lic">code <strong>MIT</strong> · data <strong>CC-BY-SA 4.0</strong></div>
320320
<div class="foot-links">
321321
<a href={ghUrl} target="_blank" rel="noopener">GitHub</a>

site/src/styles/techapi.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,10 @@ code, .mono { font-family: var(--mono); }
120120
}
121121
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
122122
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
123-
.brand .mark {
124-
width: 26px; height: 26px; flex: none;
125-
display: grid; place-items: center;
126-
background: var(--accent); color: var(--accent-ink);
127-
font-weight: 800; font-size: 15px; border-radius: 3px;
123+
.brand .brand-mark {
124+
width: 30px; height: 30px; flex: none;
125+
object-fit: cover; border-radius: 6px;
126+
box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 35%, transparent);
128127
}
129128
.brand .cursor {
130129
width: 9px; height: 17px; background: var(--accent);

0 commit comments

Comments
 (0)