Skip to content

Commit 45430f4

Browse files
authored
Merge pull request #125 from GetTechAPI/fix/site-playground-resources
feat(site): complete playground and branding
2 parents 1ebd555 + 96c932b commit 45430f4

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

site/public/techapi-mark.png

1.13 MB
Loading

site/src/pages/index.astro

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const endpoints = [
1111
{ label: "/v1/smartphones/{slug}", desc: "Phone detail + scores", href: `${base}v1/smartphones/galaxy-s26-ultra/index.json` },
1212
{ label: "/v1/smartphones/{slug}/score", desc: "Computed scores", href: `${base}v1/smartphones/galaxy-s26-ultra/score/index.json` },
1313
{ label: "/v1/tablets", desc: "List all tablets", href: `${base}v1/tablets/index.json` },
14+
{ label: "/v1/laptops", desc: "List all laptops", href: `${base}v1/laptops/index.json` },
15+
{ label: "/v1/monitors", desc: "List all monitors", href: `${base}v1/monitors/index.json` },
1416
{ label: "/v1/watches", desc: "List all watches", href: `${base}v1/watches/index.json` },
1517
{ label: "/v1/pdas", desc: "List all PDAs", href: `${base}v1/pdas/index.json` },
1618
{ label: "/v1/socs/{slug}", desc: "System-on-chip detail", href: `${base}v1/socs/snapdragon-8-elite-gen-5/index.json` },
@@ -49,7 +51,7 @@ const endpoints = [
4951
<nav class="nav">
5052
<div class="wrap nav-inner">
5153
<a class="brand" href={base}>
52-
<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>
5355
</a>
5456
<div class="nav-links">
5557
<a href="#history">History</a>
@@ -161,8 +163,11 @@ const endpoints = [
161163
<select id="pg-resource">
162164
<option value="smartphones">smartphones</option>
163165
<option value="tablets">tablets</option>
166+
<option value="laptops">laptops</option>
167+
<option value="monitors">monitors</option>
164168
<option value="watches">watches</option>
165169
<option value="pdas">pdas</option>
170+
<option value="software">software</option>
166171
<option value="socs">socs</option>
167172
<option value="gpus">gpus</option>
168173
<option value="cpus">cpus</option>
@@ -310,7 +315,7 @@ const endpoints = [
310315
<footer>
311316
<div class="wrap">
312317
<div class="foot-inner">
313-
<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>
314319
<div class="lic">code <strong>MIT</strong> · data <strong>CC-BY-SA 4.0</strong></div>
315320
<div class="foot-links">
316321
<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)