2 Commits

Author SHA1 Message Date
lerko de74019e48 Merge pull request 'feat(design): reader view' (#8) from feat/reader-view into staging 2026-05-24 22:35:35 +00:00
lerko 32455bf7a7 feat(design): reader view — strip terminal chrome, add typography controls
Replace monospace-terminal aesthetic with clean reader layout. System
sans-serif default, typeface picker (sans/serif/mono) with per-face
optical tuning. Warm color palettes (slate dark, bone light), crafted
link underlines, WCAG AA contrast on all text tiers. Semantic HTML
throughout: proper heading hierarchy, <time> elements, role=group,
<dl>/<table>/<article> where appropriate. Net -140 lines.
2026-05-24 18:28:02 -04:00
14 changed files with 324 additions and 568 deletions
-51
View File
@@ -1,51 +0,0 @@
---
const items = [
{
label: "studying",
title: "comptia network+",
meta: "ch. 7 · ipv6 addressing",
progress: 0.62,
progressText: "62%",
},
{
label: "shipping",
title: "portfolio site v2",
meta: "astro 5 · gitea actions ci · dmz lxc",
},
{
label: "maintaining",
title: "32 services across 4 vlans",
meta: "last alert 11d ago · backups green",
},
];
---
<section class="border-r border-[var(--color-border)]">
<div class="flex items-baseline justify-between px-5 py-3.5 border-b border-[var(--color-border)]">
<span class="text-[var(--color-text-fg)] text-[11px] tracking-[0.16em] uppercase">active</span>
<span class="text-[var(--color-text-label)] text-[11px]">updated 4m ago</span>
</div>
<div>
{items.map((it, i) => (
<div class:list={[
"px-5 py-4",
i < items.length - 1 && "border-b border-[var(--color-border)]",
]}>
<div class="flex items-baseline justify-between gap-2.5">
<span class="text-[var(--color-text-label)] text-[10px] tracking-[0.16em] uppercase">{it.label}</span>
{it.progress != null && (
<span class="text-[var(--color-text-fg)] text-[11px] tabular-nums">{it.progressText}</span>
)}
</div>
<div class="text-[var(--color-text-heading)] text-[15px] mt-1">{it.title}</div>
<div class="text-[var(--color-text)] text-xs mt-0.5">{it.meta}</div>
{it.progress != null && (
<div class="mt-2.5 h-[3px] bg-[var(--color-border-bright)]">
<div class="h-full bg-[var(--color-accent)]" style={`width: ${it.progress * 100}%`} />
</div>
)}
</div>
))}
</div>
</section>
+13 -11
View File
@@ -2,38 +2,40 @@
const year = new Date().getFullYear(); const year = new Date().getFullYear();
--- ---
<footer class="flex flex-col sm:flex-row justify-between items-center gap-2 px-6 py-3.5 border-t border-[var(--color-border)] bg-[var(--color-surface-raised)] text-[var(--color-text-label)] text-xs"> <footer class="border-t border-[var(--color-border)] py-1lh mt-2lh">
<span>&copy; {year} tyler koenig &middot; self-hosted in a dmz lxc</span> <div class="px-4ch flex items-center justify-between text-[var(--color-text-dim)]">
<div class="flex items-center gap-5"> <span>&copy; {year} Tyler Koenig</span>
<nav class="flex items-center gap-2ch">
<a <a
href="https://github.com/lerko96" href="https://github.com/lerko96"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="hover:text-[var(--color-text-fg)]" class="underline hover:text-[var(--color-text)]"
> >
github GitHub
</a> </a>
<a <a
href="https://gitea.lerkolabs.com/lerko" href="https://gitea.lerkolabs.com/lerko"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="hover:text-[var(--color-text-fg)]" class="underline hover:text-[var(--color-text)]"
> >
gitea Gitea
</a> </a>
<a <a
href="https://www.linkedin.com/in/tyler-koenig" href="https://www.linkedin.com/in/tyler-koenig"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="hover:text-[var(--color-text-fg)]" class="underline hover:text-[var(--color-text)]"
> >
linkedin LinkedIn
</a> </a>
<a <a
href="mailto:tyler@lerkolabs.com" href="mailto:tyler@lerkolabs.com"
class="hover:text-[var(--color-text-fg)]" class="underline hover:text-[var(--color-text)]"
> >
email Email
</a> </a>
</nav>
</div> </div>
</footer> </footer>
+38 -55
View File
@@ -1,62 +1,45 @@
--- <section class="mb-3lh">
const identity = [ <h1 class="text-xl font-bold mb-half-lh">Tyler Koenig</h1>
["role", "soc analyst i · fortress srm"], <p class="text-[var(--color-text-label)] mb-1lh">
["based", "cleveland, oh · est. 2021"], Security Operations · Self-Hosted Infrastructure
["stack", "go · react · typescript · linux"],
["infra", "proxmox · pfsense · authentik · nginx"],
["observ", "victoriametrics · grafana · beszel · ntfy"],
["certs", "comptia a+ · network+ (in progress)"],
];
const contact = [
{ key: "github", value: "lerko96", href: "https://github.com/lerko96", glyph: "↗" },
{ key: "gitea", value: "gitea.lerkolabs.com/lerko", href: "https://gitea.lerkolabs.com/lerko", glyph: "↗" },
{ key: "linkedin", value: "tyler-koenig", href: "https://www.linkedin.com/in/tyler-koenig", glyph: "↗" },
{ key: "email", value: "tyler@lerkolabs.com", href: "mailto:tyler@lerkolabs.com", glyph: "✉" },
];
---
<section class="border-b border-[var(--color-border)]">
<div class="flex items-baseline justify-between px-5 py-3.5 border-b border-[var(--color-border)]">
<span class="text-[var(--color-text-fg)] text-[11px] tracking-[0.16em] uppercase">identity</span>
<span class="text-[var(--color-text-label)] text-[11px]">~/identity.toml</span>
</div>
<div class="px-6 py-6 grid grid-cols-1 md:grid-cols-[1.4fr_1fr] gap-9">
<div>
<h1 class="text-[var(--color-text-heading)] text-[38px] leading-[1.05] tracking-tight font-semibold">
tyler koenig
</h1>
<p class="text-[var(--color-text)] text-sm mt-2 leading-relaxed max-w-[540px]">
security operations, self-hosted infrastructure, and the software that holds it together.
</p> </p>
<dl class="mt-6 grid grid-cols-[auto_1fr] gap-x-6 gap-y-1.5 text-[13px] tabular-nums"> <p class="text-[var(--color-text-label)] leading-relaxed mb-1lh">
{identity.map(([k, v]) => ( Homelab runs 30+ services across segmented VLANs — pfSense, Authentik SSO,
<Fragment> full observability stack. Write software too: mobile apps, Go backends, open
<dt class="text-[var(--color-text-label)] tracking-wide">{k}</dt> protocols. Daily drivers, all of it.
<dd class="text-[var(--color-text-fg)]">{v}</dd> </p>
</Fragment>
))}
</dl>
</div>
<aside> <nav class="flex flex-wrap items-center gap-x-2ch gap-y-half-lh text-[var(--color-text-label)]">
<div class="text-[var(--color-text-label)] text-[11px] tracking-[0.12em] mb-2.5">CONTACT</div>
<div class="grid gap-px">
{contact.map(({ key, value, href, glyph }) => (
<a <a
href={href} href="https://github.com/lerko96"
target={href.startsWith("mailto") ? undefined : "_blank"} target="_blank"
rel={href.startsWith("mailto") ? undefined : "noopener noreferrer"} rel="noopener noreferrer"
class="grid grid-cols-[90px_1fr_16px] gap-x-2.5 items-baseline py-[7px] border-b border-[var(--color-border)] text-[13px] no-underline hover:bg-[var(--color-surface)]" class="underline hover:text-[var(--color-text)]"
> >
<span class="text-[var(--color-text-label)] tracking-wide">{key}</span> GitHub
<span class="text-[var(--color-text-fg)] overflow-hidden text-ellipsis whitespace-nowrap">{value}</span>
<span class="text-[var(--color-accent)] text-right">{glyph}</span>
</a> </a>
))} <a
</div> href="https://gitea.lerkolabs.com/lerko"
</aside> target="_blank"
</div> rel="noopener noreferrer"
class="underline hover:text-[var(--color-text)]"
>
Gitea
</a>
<a
href="https://www.linkedin.com/in/tyler-koenig"
target="_blank"
rel="noopener noreferrer"
class="underline hover:text-[var(--color-text)]"
>
LinkedIn
</a>
<a
href="mailto:tyler@lerkolabs.com"
class="underline hover:text-[var(--color-text)]"
>
Email
</a>
</nav>
</section> </section>
-67
View File
@@ -1,67 +0,0 @@
---
const vlans = [
{
id: "vlan10",
label: "management",
services: [
{ name: "pfsense", kind: "firewall" },
{ name: "authentik", kind: "sso" },
{ name: "proxmox", kind: "hypervisor" },
{ name: "pbs", kind: "backup" },
],
},
{
id: "vlan20",
label: "public-facing",
services: [
{ name: "gitea", kind: "scm/ci" },
{ name: "caddy", kind: "proxy" },
{ name: "lerkolabs.com", kind: "web" },
],
},
{
id: "vlan30",
label: "internal services",
services: [
{ name: "victoriametrics", kind: "tsdb" },
{ name: "grafana", kind: "dashboards" },
{ name: "beszel", kind: "host-mon" },
{ name: "ntfy", kind: "alerts" },
{ name: "jellyfin", kind: "media" },
],
},
];
const totalSvc = vlans.reduce((n, v) => n + v.services.length, 0);
---
<section>
<div class="flex items-baseline justify-between px-5 py-3.5 border-b border-[var(--color-border)]">
<span class="text-[var(--color-text-fg)] text-[11px] tracking-[0.16em] uppercase">infrastructure</span>
<span class="text-[var(--color-text-label)] text-[11px]">{totalSvc} up · 0 failed</span>
</div>
<div>
{vlans.map((vlan, gi) => (
<div class:list={[gi < vlans.length - 1 && "border-b border-[var(--color-border)]"]}>
<div class="flex items-baseline gap-2.5 px-5 pt-2.5 pb-1 text-[var(--color-text-label)] text-[10px] tracking-[0.14em]">
<span class="text-[var(--color-text-fg)]">{vlan.id}</span>
<span>·</span>
<span class="uppercase">{vlan.label}</span>
<span class="ml-auto text-[var(--color-text-faint)]">{vlan.services.length} svc</span>
</div>
{vlan.services.map((s) => (
<div class="grid grid-cols-[12px_1fr_110px_60px] gap-x-2.5 px-5 py-1.5 text-[13px] items-baseline tabular-nums">
<span class="w-1.5 h-1.5 rounded-full bg-[var(--color-accent-green)] self-center" />
<span class="text-[var(--color-text-fg)]">{s.name}</span>
<span class="text-[var(--color-text-label)] text-[11px]">{s.kind}</span>
<span class="text-[var(--color-text-label)] text-[11px] text-right">up</span>
</div>
))}
<div class="h-2" />
</div>
))}
</div>
</section>
+53 -37
View File
@@ -8,44 +8,42 @@ const links = [
]; ];
--- ---
<header class="sticky top-0 z-50 bg-[var(--color-surface-raised)] border-b border-[var(--color-border)]"> <header class="sticky top-0 z-50 bg-[var(--color-bg)] border-b border-[var(--color-border)]">
<nav class="max-w-[960px] mx-auto px-6 h-11 flex items-center justify-between text-xs tabular-nums"> <nav class="max-w-[740px] mx-auto px-4ch h-11 flex items-center justify-between">
<div class="flex items-center gap-4"> <ul class="flex items-center gap-2ch">
<a href="/" class="text-[var(--color-text-fg)] tracking-wide hover:text-[var(--color-text-heading)]">
lerkolabs
</a>
<span class="text-[var(--color-text-faint)]">/</span>
<span class="text-[var(--color-text-label)]">tyler</span>
<span class="text-[var(--color-text-faint)]">/</span>
<span class="text-[var(--color-text-label)]">~</span>
</div>
<div class="flex items-center gap-5">
<span class="hidden sm:inline-flex items-center gap-1.5">
<span class="inline-block w-1.5 h-1.5 rounded-full bg-[var(--color-accent-green)] status-pip" />
<span class="text-[var(--color-text-fg)]">available</span>
</span>
{links.map(({ href, label }) => { {links.map(({ href, label }) => {
const active = pathname === href || pathname === href.replace(/\/$/, ""); const active = pathname === href || pathname === href.replace(/\/$/, "");
return ( return (
<li>
<a <a
href={href} href={href}
aria-current={active ? "page" : undefined} aria-current={active ? "page" : undefined}
class:list={[ class:list={[
active active
? "text-[var(--color-text-fg)]" ? "text-[var(--color-text)]"
: "text-[var(--color-text-label)] hover:text-[var(--color-text-fg)]", : "text-[var(--color-text-label)] hover:text-[var(--color-text)]",
]} ]}
> >
{label} {label}
</a> </a>
</li>
); );
})} })}
</ul>
<div class="flex items-center gap-2ch">
<div role="group" aria-label="Typeface" class="flex items-center gap-[0.5ch] text-[var(--color-text-dim)]">
<button data-typeface-btn="sans" class="hover:text-[var(--color-text)] cursor-pointer">sans</button>
<span aria-hidden="true">/</span>
<button data-typeface-btn="serif" class="hover:text-[var(--color-text)] cursor-pointer">serif</button>
<span aria-hidden="true">/</span>
<button data-typeface-btn="mono" class="hover:text-[var(--color-text)] cursor-pointer">mono</button>
</div>
<button <button
data-theme-toggle data-theme-toggle
aria-label="Switch to light mode" aria-label="Switch to light mode"
class="text-[var(--color-text-fg)] hover:text-[var(--color-accent)] cursor-pointer" class="text-[var(--color-text-label)] hover:text-[var(--color-text)] cursor-pointer"
> >
light light
</button> </button>
@@ -53,33 +51,51 @@ const links = [
</nav> </nav>
</header> </header>
<style>
.status-pip {
box-shadow: 0 0 6px color-mix(in srgb, var(--color-accent-green) 67%, transparent);
}
:root:not(.dark) .status-pip {
box-shadow: none;
}
</style>
<script> <script>
const btn = document.querySelector("[data-theme-toggle]") as HTMLButtonElement; const themeBtn = document.querySelector("[data-theme-toggle]") as HTMLButtonElement;
function update() { function updateTheme() {
const isDark = document.documentElement.classList.contains("dark"); const isDark = document.documentElement.classList.contains("dark");
btn.textContent = isDark ? "light" : "dark"; themeBtn.textContent = isDark ? "light" : "dark";
btn.setAttribute( themeBtn.setAttribute(
"aria-label", "aria-label",
isDark ? "Switch to light mode" : "Switch to dark mode", isDark ? "Switch to light mode" : "Switch to dark mode",
); );
} }
btn.addEventListener("click", () => { themeBtn.addEventListener("click", () => {
const next = !document.documentElement.classList.contains("dark"); const next = !document.documentElement.classList.contains("dark");
document.documentElement.classList.toggle("dark", next); document.documentElement.classList.toggle("dark", next);
localStorage.setItem("lerko96-dark-mode", String(next)); localStorage.setItem("lerko96-dark-mode", String(next));
update(); updateTheme();
}); });
update(); updateTheme();
const tfBtns = document.querySelectorAll("[data-typeface-btn]");
function updateTypeface() {
const current = document.documentElement.dataset.typeface || "sans";
tfBtns.forEach((b) => {
const val = b.getAttribute("data-typeface-btn");
if (val === current) {
b.classList.add("font-bold", "text-[var(--color-text)]");
b.classList.remove("text-[var(--color-text-dim)]");
} else {
b.classList.remove("font-bold", "text-[var(--color-text)]");
b.classList.add("text-[var(--color-text-dim)]");
}
});
}
tfBtns.forEach((b) => {
b.addEventListener("click", () => {
const val = b.getAttribute("data-typeface-btn")!;
document.documentElement.dataset.typeface = val;
localStorage.setItem("lerko96-typeface", val);
updateTypeface();
});
});
updateTypeface();
</script> </script>
+11 -32
View File
@@ -8,49 +8,28 @@ interface Props {
const { project } = Astro.props; const { project } = Astro.props;
--- ---
<article class="bg-[var(--color-surface)] hover:bg-[var(--color-surface-raised)] flex flex-col gap-3 p-5"> <article class="mb-2lh">
<div class="flex items-start justify-between gap-3"> <div class="flex items-baseline gap-1ch mb-half-lh">
<h3>
<a <a
href={project.githubUrl} href={project.githubUrl}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="text-sm font-semibold text-[var(--color-text-fg)] hover:text-[var(--color-accent)]" class="font-semibold underline hover:text-[var(--color-text-label)]"
> >
{project.title} {project.title}
</a> </a>
<div class="flex items-center gap-3 shrink-0"> </h3>
{project.stats && (
<span class="text-xs text-[var(--color-text-label)]">
{project.stats}
</span>
)}
<a
href={project.githubUrl}
target="_blank"
rel="noopener noreferrer"
aria-label={`View ${project.title} on GitHub`}
class="text-sm text-[var(--color-text-label)] hover:text-[var(--color-accent)]"
>
</a>
</div>
</div>
{project.statusBadge && ( {project.statusBadge && (
<span class="text-xs text-[var(--color-accent)] border border-[var(--color-accent)] px-2 py-0.5 w-fit opacity-80"> <span class="text-[var(--color-text-dim)]">({project.statusBadge})</span>
{project.statusBadge}
</span>
)} )}
</div>
<p class="text-sm text-[var(--color-text)] leading-relaxed flex-1"> <p class="text-[var(--color-text-label)] leading-relaxed mb-half-lh">
{project.description} {project.description}
</p> </p>
<div class="flex flex-wrap gap-x-3 gap-y-1 mt-1"> <p class="text-[var(--color-text-dim)]">
{project.tags.map((tag) => ( {project.tags.join(" · ")}
<span class="text-xs text-[var(--color-text-label)]"> </p>
{tag}
</span>
))}
</div>
</article> </article>
+3 -3
View File
@@ -27,14 +27,14 @@ const skillGroups = [
const totalCount = skillGroups.reduce((n, g) => n + g.skills.length, 0); const totalCount = skillGroups.reduce((n, g) => n + g.skills.length, 0);
--- ---
<Widget title="tyler/skills" badge={totalCount} as="section"> <Widget title="Skills" badge={totalCount} as="section">
<div class="flex flex-col"> <div class="flex flex-col">
{skillGroups.map(({ label, skills }) => ( {skillGroups.map(({ label, skills }) => (
<div class="flex flex-col xs:flex-row gap-1ch xs:gap-2ch py-half-lh"> <div class="flex flex-col xs:flex-row gap-1ch xs:gap-2ch py-half-lh">
<span class="font-mono text-sm text-[var(--color-text-dim)] w-28 shrink-0"> <span class="text-[var(--color-text-dim)] w-28 shrink-0">
{label} {label}
</span> </span>
<span class="font-mono text-sm text-[var(--color-text)]"> <span>
{skills.join(" · ")} {skills.join(" · ")}
</span> </span>
</div> </div>
+33 -91
View File
@@ -1,101 +1,43 @@
--- ---
import { timeline } from "@/data/timeline"; import Widget from "./Widget.astro";
import { timeline, type TimelineType } from "@/data/timeline";
const branchColor: Record<string, string> = { const isDate = (d: string) => /^\d{4}/.test(d);
career: "var(--color-timeline-career)",
education: "var(--color-timeline-education)", const typeLabel: Record<TimelineType, string> = {
cert: "var(--color-timeline-cert)", career: "career",
project: "var(--color-timeline-project)", education: "education",
homelab: "var(--color-timeline-homelab)", cert: "cert",
project: "project",
homelab: "homelab",
}; };
const hashes = [
"a14c2e1", "8f9b3d2", "7a02b41", "4c1f0aa", "3e9d8c0",
"2b6a51f", "9d4c12a", "6e0b8a3", "1c7a4ff", "d5b3e92",
"5a8f1ee", "e2b71ac", "f0a39db", "0000000",
];
--- ---
<section class="border-t border-[var(--color-border)]"> <Widget title="Journey">
<div class="flex items-baseline justify-between px-5 py-3.5 border-b border-[var(--color-border)]"> <ol class="flex flex-col gap-0">
<span class="text-[var(--color-text-fg)] text-[11px] tracking-[0.16em] uppercase">journey</span> {timeline.map((entry) => (
<span class="text-[var(--color-text-label)] text-[11px]">{timeline.length} commits · 5 branches · git log --all</span> <li class="pb-2lh last:pb-0">
</div> <p class="text-[var(--color-text-dim)] mb-qtr-lh">
{isDate(entry.date)
? <time datetime={entry.date}>{entry.date}</time>
: <span>{entry.date}</span>
}
<span class="mx-[0.5ch]">·</span>
<em>{typeLabel[entry.type]}</em>
</p>
<!-- Desktop: tabular grid --> <h3 class="font-semibold mb-half-lh">{entry.title}</h3>
<div class="hidden md:grid grid-cols-[92px_86px_92px_1fr] text-[13px] tabular-nums">
{["date", "commit", "scope", "message"].map((h) => ( <p class="text-[var(--color-text-label)] leading-relaxed mb-half-lh">
<div class:list={[ {entry.description}
"text-[var(--color-text-label)] text-[10px] tracking-[0.16em] uppercase py-3 px-3 border-b border-[var(--color-border)]", </p>
h === "date" && "pl-6",
]}>
{h}
</div>
))}
{timeline.map((entry, i) => {
const color = branchColor[entry.type] || "var(--color-text-fg)";
const hash = hashes[i] || "0000000";
const last = i === timeline.length - 1;
const borderClass = last ? "" : "border-b border-[var(--color-border)]";
return (
<Fragment>
<div class:list={["py-3.5 px-3 pl-6", borderClass]}>
<span class="text-[var(--color-text-fg)]">{entry.date}</span>
</div>
<div class:list={["py-3.5 px-3", borderClass]}>
<span class="text-[var(--color-accent)]">{hash}</span>
</div>
<div class:list={["py-3.5 px-3", borderClass]}>
<span class="text-[11px] border-b border-dotted pb-px" style={`color: ${color}; border-color: ${color}`}>
{entry.type}
</span>
</div>
<div class:list={["py-3.5 px-3 pr-6", borderClass]}>
<span class="text-[var(--color-text-heading)]">{entry.title}</span>
<div class="text-[var(--color-text)] text-xs mt-0.5 leading-relaxed">{entry.description}</div>
{entry.tags && entry.tags.length > 0 && ( {entry.tags && entry.tags.length > 0 && (
<div class="mt-1.5 flex gap-3.5 flex-wrap text-[var(--color-text-label)] text-[10px]"> <p class="text-[var(--color-text-dim)]">
{entry.tags.map((t) => ( {entry.tags.join(" · ")}
<span>· {t}</span> </p>
))}
</div>
)} )}
</div> </li>
</Fragment>
);
})}
</div>
<!-- Mobile: stacked cards -->
<div class="md:hidden">
{timeline.map((entry, i) => {
const color = branchColor[entry.type] || "var(--color-text-fg)";
const hash = hashes[i] || "0000000";
const last = i === timeline.length - 1;
return (
<div class:list={[
"px-5 py-4",
!last && "border-b border-[var(--color-border)]",
]}>
<div class="flex items-center gap-3 mb-1.5 text-xs">
<span class="text-[var(--color-text-fg)]">{entry.date}</span>
<span class="text-[var(--color-accent)]">{hash}</span>
<span class="border-b border-dotted pb-px text-[11px]" style={`color: ${color}; border-color: ${color}`}>
{entry.type}
</span>
</div>
<div class="text-[var(--color-text-heading)] text-sm">{entry.title}</div>
<div class="text-[var(--color-text)] text-xs mt-0.5 leading-relaxed">{entry.description}</div>
{entry.tags && entry.tags.length > 0 && (
<div class="mt-1.5 flex gap-3 flex-wrap text-[var(--color-text-label)] text-[10px]">
{entry.tags.map((t) => (
<span>· {t}</span>
))} ))}
</div> </ol>
)} </Widget>
</div>
);
})}
</div>
</section>
+11 -7
View File
@@ -10,13 +10,17 @@ interface Props {
const { title, badge, meta, as: Tag = "section", class: className } = Astro.props; const { title, badge, meta, as: Tag = "section", class: className } = Astro.props;
--- ---
<Tag class:list={["mb-0", className]}> <Tag class:list={["mb-4lh", className]}>
<div class="flex items-baseline justify-between px-5 py-3.5 border-b border-[var(--color-border)]"> <div class="mb-2lh">
<span class="text-[var(--color-text-fg)] text-[11px] tracking-[0.16em] uppercase">{title}</span> <h2 class="text-lg font-semibold">
<span class="text-[var(--color-text-label)] text-[11px]"> {title}
{badge !== undefined && <span>[{badge}]</span>} {badge !== undefined && (
{meta && <span>{meta}</span>} <span class="text-[var(--color-text-dim)] font-normal"> ({badge})</span>
</span> )}
</h2>
{meta && (
<p class="text-[var(--color-text-dim)]">{meta}</p>
)}
</div> </div>
<slot /> <slot />
</Tag> </Tag>
+9 -3
View File
@@ -25,13 +25,19 @@ const {
if (dark) document.documentElement.classList.add("dark"); if (dark) document.documentElement.classList.add("dark");
})(); })();
</script> </script>
<script is:inline>
(function () {
var tf = localStorage.getItem("lerko96-typeface") || "sans";
document.documentElement.dataset.typeface = tf;
})();
</script>
</head> </head>
<body <body
class="bg-[var(--color-bg)] text-[var(--color-text)] font-mono min-h-screen" class="bg-[var(--color-bg)] text-[var(--color-text)] min-h-screen"
> >
<slot name="nav" /> <slot name="nav" />
<div class="max-w-[960px] mx-auto"> <div class="max-w-[740px] mx-auto">
<main> <main class="px-4ch py-3lh">
<slot /> <slot />
</main> </main>
<slot name="footer" /> <slot name="footer" />
+43 -67
View File
@@ -85,9 +85,9 @@ const adrs = [
> >
<Nav slot="nav" /> <Nav slot="nav" />
<div class="px-6 py-6 border-b border-[var(--color-border)]"> <div class="mb-4lh">
<h1 class="text-[var(--color-text-heading)] text-lg font-semibold mb-2">homelab</h1> <h1 class="text-xl font-bold mb-half-lh">Homelab</h1>
<p class="text-[var(--color-text)] text-sm leading-relaxed max-w-2xl"> <p class="text-[var(--color-text-label)] leading-relaxed max-w-2xl">
Personal infrastructure environment for learning, self-hosting, and Personal infrastructure environment for learning, self-hosting, and
operational practice. Running 24/7 on production-grade hardware with operational practice. Running 24/7 on production-grade hardware with
real network segmentation, SSO, monitoring, and IaC-style real network segmentation, SSO, monitoring, and IaC-style
@@ -95,53 +95,43 @@ const adrs = [
</p> </p>
</div> </div>
<Widget title="homelab/overview" badge={glanceStats.length} as="section"> <Widget title="Overview" badge={glanceStats.length} as="section">
<div class="grid grid-cols-1 xs:grid-cols-2 md:grid-cols-3 gap-px bg-[var(--color-border)]"> <dl class="flex flex-col">
{glanceStats.map(({ label, value }) => ( {glanceStats.map(({ label, value }) => (
<div class="bg-[var(--color-surface)] px-5 py-3"> <div class="flex gap-2ch py-qtr-lh">
<p class="text-sm text-[var(--color-text-label)] mb-1"> <dt class="text-[var(--color-text-dim)] w-[16ch] shrink-0">{label}</dt>
{label} <dd>{value}</dd>
</p>
<p class="text-sm text-[var(--color-text-fg)]">
{value}
</p>
</div> </div>
))} ))}
</div> </dl>
</Widget> </Widget>
<Widget <Widget
title="homelab/network" title="Network"
meta="8 network segments · default deny" meta="8 segments, default deny"
as="section" as="section"
> >
<div class="overflow-x-auto px-5"> <div class="overflow-x-auto">
<table class="w-full text-sm border-collapse"> <table class="w-full border-collapse">
<thead> <thead>
<tr class="border-b border-[var(--color-border)]"> <tr class="border-b border-[var(--color-border)]">
<th class="text-[var(--color-text-label)] text-left py-2 pr-8 text-[10px] tracking-[0.16em] uppercase"> <th class="text-[var(--color-text-dim)] text-left py-qtr-lh pr-[3ch]">
Segment Segment
</th> </th>
<th class="text-[var(--color-text-label)] text-left py-2 pr-8 text-[10px] tracking-[0.16em] uppercase"> <th class="text-[var(--color-text-dim)] text-left py-qtr-lh pr-[3ch]">
Name Name
</th> </th>
<th class="text-[var(--color-text-label)] text-left py-2 text-[10px] tracking-[0.16em] uppercase"> <th class="text-[var(--color-text-dim)] text-left py-qtr-lh">
Purpose Purpose
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{vlans.map((v) => ( {vlans.map((v) => (
<tr class="border-b border-[var(--color-border)] hover:bg-[var(--color-surface)]"> <tr class="border-b border-[var(--color-border)]">
<td class="text-[var(--color-accent)] py-2.5 pr-8 text-sm"> <td class="py-half-lh pr-[3ch]">{v.id}</td>
{v.id} <td class="py-half-lh pr-[3ch]">{v.name}</td>
</td> <td class="text-[var(--color-text-label)] py-half-lh">{v.purpose}</td>
<td class="text-[var(--color-text-fg)] py-2.5 pr-8 text-sm">
{v.name}
</td>
<td class="text-[var(--color-text)] py-2.5 text-sm">
{v.purpose}
</td>
</tr> </tr>
))} ))}
</tbody> </tbody>
@@ -149,27 +139,23 @@ const adrs = [
</div> </div>
</Widget> </Widget>
<Widget title="homelab/services" badge={services.length} as="section"> <Widget title="Services" badge={services.length} as="section">
<div class="flex flex-col gap-6 px-5 py-4"> <div class="flex flex-col gap-2lh">
{categoryOrder.map((cat) => { {categoryOrder.map((cat) => {
const catServices = services.filter((s) => s.category === cat); const catServices = services.filter((s) => s.category === cat);
return ( return (
<div> <div>
<p class="text-[var(--color-text-label)] text-[10px] tracking-[0.14em] uppercase mb-2 px-1"> <h3 class="text-[var(--color-text-dim)] font-semibold mb-half-lh">
{categoryLabels[cat]} {categoryLabels[cat]}
</p> </h3>
<div class="grid grid-cols-1 xs:grid-cols-2 md:grid-cols-3 gap-px bg-[var(--color-border)]"> <ul class="flex flex-col">
{catServices.map((svc) => ( {catServices.map((svc) => (
<div class="bg-[var(--color-surface)] hover:bg-[var(--color-surface-raised)] px-5 py-3"> <li class="py-qtr-lh">
<p class="text-sm text-[var(--color-text-fg)] mb-0.5"> <span class="font-semibold">{svc.name}</span>
{svc.name} <span class="text-[var(--color-text-label)]"> — {svc.description}</span>
</p> </li>
<p class="text-xs text-[var(--color-text)] leading-relaxed">
{svc.description}
</p>
</div>
))} ))}
</div> </ul>
</div> </div>
); );
})} })}
@@ -177,48 +163,38 @@ const adrs = [
</Widget> </Widget>
<Widget <Widget
title="homelab/ADRs" title="ADRs"
meta="why things are configured the way they are" meta="why things are configured the way they are"
badge={adrs.length} badge={adrs.length}
as="section" as="section"
> >
<div class="flex flex-col gap-px bg-[var(--color-border)] mx-5 my-4"> <div class="flex flex-col gap-2lh">
{adrs.map((adr) => ( {adrs.map((adr) => (
<div class="bg-[var(--color-surface)] hover:bg-[var(--color-surface-raised)] px-5 py-4"> <div>
<p class="text-sm text-[var(--color-text-fg)] mb-3"> <h3 class="font-semibold mb-half-lh">{adr.title}</h3>
{adr.title} <p class="text-[var(--color-text-label)] leading-relaxed mb-half-lh">
<strong>Decision:</strong> {adr.decision}
</p> </p>
<p class="text-sm text-[var(--color-text)] leading-relaxed mb-2"> <p class="text-[var(--color-text-label)] leading-relaxed">
<span class="text-[var(--color-text-label)]"> <strong>Why:</strong> {adr.why}
decision:{" "}
</span>
{adr.decision}
</p>
<p class="text-sm text-[var(--color-text)] leading-relaxed">
<span class="text-[var(--color-text-label)]">
why:{" "}
</span>
{adr.why}
</p> </p>
</div> </div>
))} ))}
</div> </div>
</Widget> </Widget>
<section class="px-5 py-6"> <section class="mb-4lh">
<p class="text-[var(--color-text-label)] text-[10px] tracking-[0.14em] uppercase mb-2"> <h2 class="text-lg font-semibold mb-half-lh">Docs</h2>
homelab/docs <p class="text-[var(--color-text-label)] mb-half-lh">
</p>
<p class="text-sm text-[var(--color-text)] mb-3">
VLAN maps, runbooks, service registry, config exports, and setup guides. VLAN maps, runbooks, service registry, config exports, and setup guides.
</p> </p>
<a <a
href="https://gitea.lerkolabs.com/lerko/homelab" href="https://gitea.lerkolabs.com/lerko/homelab"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="text-sm text-[var(--color-text-label)] hover:text-[var(--color-accent)]" class="underline hover:text-[var(--color-text-label)]"
> >
<span class="text-[var(--color-accent)]">↗</span> gitea.lerkolabs.com/lerko/homelab gitea.lerkolabs.com/lerko/homelab
</a> </a>
</section> </section>
-6
View File
@@ -3,18 +3,12 @@ import Base from "@/layouts/Base.astro";
import Nav from "@/components/Nav.astro"; import Nav from "@/components/Nav.astro";
import Footer from "@/components/Footer.astro"; import Footer from "@/components/Footer.astro";
import Hero from "@/components/Hero.astro"; import Hero from "@/components/Hero.astro";
import Active from "@/components/Active.astro";
import HomeServices from "@/components/HomeServices.astro";
import Timeline from "@/components/Timeline.astro"; import Timeline from "@/components/Timeline.astro";
--- ---
<Base> <Base>
<Nav slot="nav" /> <Nav slot="nav" />
<Hero /> <Hero />
<div class="grid grid-cols-1 md:grid-cols-[1fr_1.2fr] border-b border-[var(--color-border)]">
<Active />
<HomeServices />
</div>
<Timeline /> <Timeline />
<Footer slot="footer" /> <Footer slot="footer" />
</Base> </Base>
+22 -32
View File
@@ -13,59 +13,49 @@ import { featuredProjects, archiveProjects } from "@/data/projects";
> >
<Nav slot="nav" /> <Nav slot="nav" />
<div class="px-6 py-6 border-b border-[var(--color-border)]"> <div class="mb-4lh">
<h1 class="text-[var(--color-text-heading)] text-lg font-semibold mb-2">projects</h1> <h1 class="text-xl font-bold mb-half-lh">Projects</h1>
<p class="text-[var(--color-text)] text-sm leading-relaxed max-w-xl"> <p class="text-[var(--color-text-label)] leading-relaxed max-w-xl">
Featured work first. Earlier experiments, browser extensions, and bootcamp projects below — kept for context. Featured work first. Earlier experiments, browser extensions, and bootcamp projects below — kept for context.
</p> </p>
</div> </div>
<Widget title="projects/featured" badge={featuredProjects.length} as="section"> <Widget title="Featured" badge={featuredProjects.length} as="section">
<div class="grid grid-cols-1 sm:grid-cols-2 gap-px bg-[var(--color-border)] m-5"> <div class="flex flex-col">
{featuredProjects.map((project) => ( {featuredProjects.map((project) => (
<ProjectCard project={project} /> <ProjectCard project={project} />
))} ))}
</div> </div>
</Widget> </Widget>
<Widget title="projects/archive" badge={archiveProjects.length} as="section"> <Widget title="Archive" badge={archiveProjects.length} as="section">
<div class="flex flex-col gap-px bg-[var(--color-border)] m-5"> <div class="flex flex-col gap-2lh">
{archiveProjects.map((project) => ( {archiveProjects.map((project) => (
<div>
<div class="flex items-baseline gap-1ch mb-half-lh">
{project.year && (
<span class="text-[var(--color-text-dim)] shrink-0">
{project.year}
</span>
)}
<h3>
<a <a
href={project.githubUrl} href={project.githubUrl}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="bg-[var(--color-surface)] hover:bg-[var(--color-surface-raised)] flex items-start justify-between gap-5 px-5 py-4 group" class="font-semibold underline hover:text-[var(--color-text-label)]"
> >
<div class="flex flex-col gap-2 flex-1 min-w-0">
<div class="flex items-center gap-3">
{project.year && (
<span class="text-sm text-[var(--color-text-label)] shrink-0">
{project.year}
</span>
)}
<span class="text-sm text-[var(--color-text-fg)] group-hover:text-[var(--color-accent)] truncate">
{project.title} {project.title}
</span> </a>
</h3>
</div> </div>
<p class="text-sm text-[var(--color-text)] leading-relaxed"> <p class="text-[var(--color-text-label)] leading-relaxed mb-half-lh">
{project.description} {project.description}
</p> </p>
<div class="flex flex-wrap gap-x-3 gap-y-0.5"> <p class="text-[var(--color-text-dim)]">
{project.tags.map((tag) => ( {project.tags.join(" · ")}
<span class="text-xs text-[var(--color-text-label)]"> </p>
{tag}
</span>
))}
</div> </div>
</div>
<span
class="text-sm text-[var(--color-text-label)] group-hover:text-[var(--color-accent)] shrink-0 mt-0.5"
aria-hidden="true"
>
</span>
</a>
))} ))}
</div> </div>
</Widget> </Widget>
+39 -57
View File
@@ -3,32 +3,21 @@
@variant dark (&:where(.dark, .dark *)); @variant dark (&:where(.dark, .dark *));
@theme { @theme {
/* Console Dark (default) */ /* Slate (dark, default) */
--color-bg: #0a0c0f; --color-bg: #1A1B1E;
--color-surface: #0e1116; --color-surface: #22242A;
--color-surface-raised: #11151b; --color-surface-raised: #2A2D34;
--color-border: #1c2128; --color-border: #33363E;
--color-border-bright: #2a3038; --color-border-bright: #3E4148;
--color-text: #c1bdb3; --color-text: #D4D4D8;
--color-text-fg: #e8e4d8; --color-text-label: #9CA0AA;
--color-text-heading: #ffffff; --color-text-dim: #888D9B;
--color-text-label: #6a675f;
--color-text-dim: #6a675f;
--color-text-faint: #3a3830;
--color-accent: #d4a259;
--color-accent-green: #7b9e7b;
--color-accent-red: #c74028;
/* Timeline branch colors — dark */
--color-timeline-career: #b390a8;
--color-timeline-education: #999999;
--color-timeline-cert: #cba76c;
--color-timeline-project: #8ba8c0;
--color-timeline-homelab: #9ab494;
/* Typography */ /* Typography */
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
--font-mono: "Source Code Pro", ui-monospace, monospace; --font-mono: "Source Code Pro", ui-monospace, monospace;
--font-sans: ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-sans);
/* Breakpoints */ /* Breakpoints */
--breakpoint-xs: 576px; --breakpoint-xs: 576px;
@@ -46,27 +35,22 @@
--spacing-2lh: 2lh; --spacing-2lh: 2lh;
--spacing-3lh: 3lh; --spacing-3lh: 3lh;
--spacing-4lh: 4lh; --spacing-4lh: 4lh;
/* Animations */
--animate-fade-in: fadeIn 120ms linear forwards;
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
} }
/* Base */ /* Base */
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
font-size: 15px; font-size: 16px;
line-height: 1.5; line-height: 1.5;
background-color: var(--color-bg); background-color: var(--color-bg);
color: var(--color-text); color: var(--color-text);
font-family: var(--font-mono); font-family: var(--font-body);
font-variant-ligatures: none;
} }
/* Typeface picker overrides */
html[data-typeface="sans"] { --font-body: var(--font-sans); }
html[data-typeface="serif"] { --font-body: var(--font-serif); line-height: 1.6; }
html[data-typeface="mono"] { --font-body: var(--font-mono); font-size: 15px; letter-spacing: -0.01em; }
@layer base { @layer base {
* { * {
@@ -76,35 +60,33 @@ html {
} }
} }
/* Console Light overrides */ /* Bone (light) overrides */
:root:not(.dark) { :root:not(.dark) {
--color-bg: #f3f0e8; --color-bg: #FAF8F5;
--color-surface: #faf6ec; --color-surface: #F3F0EB;
--color-surface-raised: #f6f2e7; --color-surface-raised: #EBE8E3;
--color-border: #d8d2c2; --color-border: #E0DCD5;
--color-border-bright: #b8b2a2; --color-border-bright: #D4D0C8;
--color-text: #3a3c40; --color-text: #2C2C2C;
--color-text-fg: #1c1e22; --color-text-label: #6B6560;
--color-text-heading: #000000; --color-text-dim: #787068;
--color-text-label: #8a857a;
--color-text-dim: #8a857a;
--color-text-faint: #c0bba8;
--color-accent: #b1631c;
--color-accent-green: #3d7048;
--color-accent-red: #d21f07;
--color-timeline-career: #6e3d7a;
--color-timeline-education: #595959;
--color-timeline-cert: #9c6620;
--color-timeline-project: #355d8a;
--color-timeline-homelab: #3d7048;
} }
/* Default transitions — linear, fast */ /* Link underlines */
a {
text-decoration-thickness: 1px;
text-underline-offset: 3px;
text-decoration-color: var(--color-border-bright);
}
a:hover {
text-decoration-color: currentColor;
}
/* Default transitions */
a, a,
button { button {
transition: color 120ms linear, border-color 120ms linear, transition: color 120ms linear, border-color 120ms linear,
background-color 120ms linear, opacity 120ms linear; opacity 120ms linear, text-decoration-color 120ms linear;
} }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {