Portfolio — Minimal / Swiss Portfolio
A full one-page portfolio in a Minimal/Swiss style — white and ink with a single blue accent, a grotesque sans, and a strict baseline grid. It composes a hero, a filterable index-row work list with live counts and an accessible quick-look dialog, an about block with count-up stats, an experience timeline, and a validated contact form. Includes a light/dark toggle, copy-email, and toasts. Vanilla JS, no images, no dependencies.
MCP
Code
/* =========================================================
Maya Okafor — Minimal / Swiss portfolio
White + ink + one accent · grotesque sans · strict grid
========================================================= */
:root {
/* palette */
--paper: #ffffff;
--paper-2: #fafafa;
--ink: #111111;
--ink-2: #545454;
--ink-3: #8a8a8a;
--line: #e6e6e6;
--line-2: #d6d6d6;
--accent: #1a3aff; /* the single accent */
--accent-ink: #ffffff;
/* type */
--display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
/* layout: strict baseline grid */
--wrap: 1120px;
--gutter: clamp(20px, 5vw, 56px);
--baseline: 8px;
--pad-section: clamp(56px, 9vw, 128px);
/* radius / motion */
--r: 2px;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="dark"] {
--paper: #0c0c0d;
--paper-2: #131315;
--ink: #f4f4f4;
--ink-2: #b4b4b6;
--ink-3: #8a8a8c;
--line: #262628;
--line-2: #333335;
--accent: #6f86ff;
--accent-ink: #07070a;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: var(--body);
font-size: 16px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-feature-settings: "ss01", "cv01";
transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
em { font-style: normal; color: var(--accent); }
.anchor { display: block; position: relative; top: -88px; visibility: hidden; }
.wrap {
width: 100%;
max-width: var(--wrap);
margin-inline: auto;
padding-inline: var(--gutter);
}
/* accessibility helpers */
.skip-link {
position: absolute;
left: 12px; top: -48px;
background: var(--ink);
color: var(--paper);
padding: 10px 16px;
border-radius: var(--r);
z-index: 100;
transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
border-radius: 1px;
}
/* =================== HEADER =================== */
.site-head {
position: sticky;
top: 0;
z-index: 50;
background: color-mix(in srgb, var(--paper) 88%, transparent);
backdrop-filter: saturate(140%) blur(10px);
border-bottom: 1px solid var(--line);
}
.head-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
height: 72px;
}
.wordmark {
font-family: var(--display);
font-weight: 600;
font-size: 1rem;
letter-spacing: -0.01em;
display: inline-flex;
align-items: center;
gap: 9px;
white-space: nowrap;
}
.wordmark-dot {
width: 9px; height: 9px;
background: var(--accent);
border-radius: 50%;
flex: none;
}
.site-nav {
display: flex;
gap: clamp(14px, 3vw, 36px);
font-size: 0.875rem;
color: var(--ink-2);
}
.site-nav a {
position: relative;
padding: 4px 0;
transition: color 0.2s var(--ease);
}
.site-nav a::after {
content: "";
position: absolute;
left: 0; bottom: -2px;
width: 100%; height: 1px;
background: var(--ink);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.28s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.theme-toggle {
font: inherit;
font-size: 0.8125rem;
color: var(--ink-2);
background: transparent;
border: 1px solid var(--line-2);
border-radius: 999px;
padding: 6px 14px;
cursor: pointer;
transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
/* =================== HERO =================== */
.hero { padding-block: clamp(60px, 11vw, 132px) clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); }
.eyebrow {
display: flex;
align-items: center;
gap: 14px;
font-size: 0.8125rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--ink-3);
}
.eyebrow-rule { width: 44px; height: 1px; background: var(--line-2); flex: none; }
.hero-title {
font-size: clamp(2.4rem, 7.2vw, 5.2rem);
line-height: 1.02;
letter-spacing: -0.035em;
max-width: 16ch;
}
.hero-meta {
display: grid;
grid-template-columns: 1fr auto;
align-items: end;
gap: 32px;
padding-top: clamp(20px, 4vw, 40px);
border-top: 1px solid var(--line);
}
.hero-facts {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: clamp(16px, 4vw, 48px);
max-width: 640px;
}
.hero-facts dt {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--ink-3);
margin-bottom: 6px;
}
.hero-facts dd {
font-family: var(--display);
font-size: clamp(0.95rem, 1.6vw, 1.1rem);
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
}
.status-dot {
width: 8px; height: 8px;
background: var(--accent);
border-radius: 50%;
box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
flex: none;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* buttons */
.btn {
font-family: var(--display);
font-size: 0.9rem;
font-weight: 500;
padding: 13px 22px;
border-radius: var(--r);
border: 1px solid transparent;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: transform 0.18s var(--ease), background 0.2s var(--ease),
color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }
.btn:active { transform: translateY(0) scale(0.99); }
/* =================== STRIP =================== */
.strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.strip-inner {
display: flex;
align-items: center;
gap: clamp(16px, 4vw, 40px);
padding-block: 22px;
flex-wrap: wrap;
}
.strip-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ink-3);
flex: none;
}
.strip-list {
display: flex;
gap: clamp(16px, 4vw, 44px);
flex-wrap: wrap;
font-family: var(--display);
font-weight: 500;
color: var(--ink-2);
}
.strip-list li { transition: color 0.2s var(--ease); }
.strip-list li:hover { color: var(--ink); }
/* =================== SECTIONS =================== */
.section { padding-block: var(--pad-section); border-top: 1px solid var(--line); }
.section-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
margin-bottom: clamp(28px, 5vw, 48px);
}
.section-title {
font-size: clamp(1.5rem, 3.4vw, 2.2rem);
letter-spacing: -0.03em;
display: flex;
align-items: baseline;
gap: 14px;
}
.section-index {
font-size: 0.8125rem;
font-weight: 500;
color: var(--accent);
letter-spacing: 0.04em;
transform: translateY(-0.3em);
}
/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
font: inherit;
font-size: 0.875rem;
color: var(--ink-2);
background: transparent;
border: 1px solid var(--line-2);
border-radius: 999px;
padding: 7px 15px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 7px;
transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
background 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
background: var(--ink);
color: var(--paper);
border-color: var(--ink);
}
.chip-count {
font-size: 0.75rem;
color: var(--ink-3);
font-variant-numeric: tabular-nums;
}
.chip.is-active .chip-count { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.result-line {
font-size: 0.8125rem;
color: var(--ink-3);
margin-bottom: 18px;
font-variant-numeric: tabular-nums;
}
/* project list — index-row layout */
.project-list { border-top: 1px solid var(--line); }
.project-row {
display: grid;
grid-template-columns: 56px 1.4fr 1fr auto;
align-items: center;
gap: 24px;
width: 100%;
text-align: left;
background: transparent;
border: none;
border-bottom: 1px solid var(--line);
padding: clamp(20px, 3vw, 30px) 6px;
cursor: pointer;
font: inherit;
color: inherit;
position: relative;
transition: padding-left 0.3s var(--ease), background 0.3s var(--ease);
}
.project-row::before {
content: "";
position: absolute;
left: 0; top: 0; bottom: -1px;
width: 2px;
background: var(--accent);
transform: scaleY(0);
transform-origin: top;
transition: transform 0.3s var(--ease);
}
.project-row:hover,
.project-row:focus-visible {
background: var(--paper-2);
padding-left: 22px;
}
.project-row:hover::before,
.project-row:focus-visible::before { transform: scaleY(1); }
.pr-num {
font-family: var(--display);
font-size: 0.8125rem;
color: var(--ink-3);
font-variant-numeric: tabular-nums;
}
.pr-main { min-width: 0; }
.pr-title {
font-family: var(--display);
font-size: clamp(1.15rem, 2.6vw, 1.65rem);
font-weight: 600;
letter-spacing: -0.02em;
display: flex;
align-items: baseline;
gap: 12px;
flex-wrap: wrap;
}
.pr-year {
font-size: 0.8125rem;
font-weight: 400;
color: var(--ink-3);
font-variant-numeric: tabular-nums;
}
.pr-sub { font-size: 0.9rem; color: var(--ink-2); margin-top: 4px; }
.pr-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-tag {
font-size: 0.75rem;
color: var(--ink-2);
border: 1px solid var(--line-2);
border-radius: 999px;
padding: 3px 10px;
white-space: nowrap;
}
.pr-arrow {
font-family: var(--display);
font-size: 1.25rem;
color: var(--ink-3);
transition: transform 0.3s var(--ease), color 0.2s var(--ease);
}
.project-row:hover .pr-arrow,
.project-row:focus-visible .pr-arrow { transform: translateX(5px); color: var(--accent); }
/* FLIP reflow + enter animation */
.project-row.is-entering { animation: rowIn 0.4s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* empty state */
.empty-state {
text-align: center;
padding: clamp(40px, 8vw, 80px) 16px;
border-bottom: 1px solid var(--line);
}
.empty-state p { color: var(--ink-2); margin-bottom: 16px; }
/* =================== ABOUT =================== */
.about-grid {
display: grid;
grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
gap: clamp(24px, 5vw, 64px);
}
.about-body { display: grid; gap: 20px; max-width: 60ch; }
.lead {
font-family: var(--display);
font-size: clamp(1.25rem, 2.8vw, 1.7rem);
line-height: 1.3;
letter-spacing: -0.02em;
}
.about-body > p:not(.lead) { color: var(--ink-2); font-size: 1.0625rem; }
.about-stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 20px;
padding-top: 24px;
margin-top: 8px;
border-top: 1px solid var(--line);
}
.about-stats strong {
font-family: var(--display);
font-size: clamp(1.8rem, 5vw, 2.8rem);
font-weight: 700;
letter-spacing: -0.04em;
display: block;
font-variant-numeric: tabular-nums;
}
.about-stats span { font-size: 0.8125rem; color: var(--ink-3); }
/* =================== EXPERIENCE =================== */
.timeline { border-top: 1px solid var(--line); }
.tl-item {
display: grid;
grid-template-columns: 160px 1fr;
gap: clamp(16px, 4vw, 48px);
padding: clamp(22px, 3.5vw, 34px) 0;
border-bottom: 1px solid var(--line);
transition: background 0.3s var(--ease);
}
.tl-item:hover { background: var(--paper-2); }
.tl-year {
font-family: var(--display);
font-size: 0.9rem;
font-weight: 500;
color: var(--ink-3);
font-variant-numeric: tabular-nums;
padding-top: 3px;
}
.tl-body h3 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); }
.tl-org { font-size: 0.9rem; color: var(--accent); margin-top: 4px; }
.tl-desc { color: var(--ink-2); margin-top: 10px; max-width: 56ch; }
/* =================== CONTACT =================== */
.contact-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: clamp(28px, 6vw, 72px);
align-items: start;
}
.contact-pitch {
font-size: 1.0625rem;
color: var(--ink-2);
margin-top: 18px;
max-width: 40ch;
}
.contact-links {
display: grid;
gap: 10px;
margin-top: 28px;
font-family: var(--display);
font-size: 1.05rem;
}
.contact-links a {
display: inline-block;
border-bottom: 1px solid transparent;
padding-bottom: 2px;
transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-links a:hover { border-color: var(--ink); }
.copy-link { color: var(--ink-2); cursor: pointer; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--ink-3);
}
.field input,
.field textarea {
font: inherit;
font-size: 1rem;
color: var(--ink);
background: var(--paper);
border: none;
border-bottom: 1px solid var(--line-2);
border-radius: 0;
padding: 10px 2px;
resize: vertical;
transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field.has-error input,
.field.has-error textarea { border-color: #d23b3b; }
.field-error { font-size: 0.8125rem; color: #d23b3b; min-height: 1em; }
[data-theme="dark"] .field-error { color: #ff8a8a; }
[data-theme="dark"] .field.has-error input,
[data-theme="dark"] .field.has-error textarea { border-color: #ff8a8a; }
/* =================== FOOTER =================== */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); }
.foot-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
padding-block: 28px;
font-size: 0.8125rem;
color: var(--ink-3);
}
.foot-note { font-family: var(--display); }
.to-top { color: var(--ink-2); transition: color 0.2s var(--ease); }
.to-top:hover { color: var(--ink); }
/* =================== MODAL =================== */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-scrim {
position: absolute; inset: 0;
background: color-mix(in srgb, var(--ink) 42%, transparent);
backdrop-filter: blur(3px);
animation: fade 0.25s var(--ease) both;
}
.modal-panel {
position: relative;
width: min(560px, 100%);
max-height: 88vh;
overflow: auto;
background: var(--paper);
border: 1px solid var(--line);
border-radius: var(--r);
padding: clamp(24px, 5vw, 44px);
animation: panelIn 0.32s var(--ease) both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-close {
position: absolute; top: 14px; right: 16px;
width: 36px; height: 36px;
font-size: 1.4rem;
line-height: 1;
background: transparent;
border: 1px solid var(--line-2);
border-radius: 50%;
color: var(--ink-2);
cursor: pointer;
transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-kicker {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--accent);
margin-bottom: 8px;
}
.modal-title { font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: -0.03em; }
.modal-thumb {
height: 168px;
border-radius: var(--r);
margin: 20px 0;
border: 1px solid var(--line);
}
.modal-desc { color: var(--ink-2); }
.modal-meta {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
margin-top: 22px;
padding-top: 20px;
border-top: 1px solid var(--line);
}
.modal-meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 4px; }
.modal-meta dd { font-family: var(--display); font-weight: 500; font-size: 0.95rem; }
/* =================== TOAST =================== */
.toast {
position: fixed;
bottom: 24px; left: 50%;
transform: translateX(-50%) translateY(16px);
background: var(--ink);
color: var(--paper);
padding: 12px 20px;
border-radius: 999px;
font-size: 0.875rem;
z-index: 90;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* =================== RESPONSIVE =================== */
@media (max-width: 860px) {
.site-nav { display: none; }
.hero-meta { grid-template-columns: 1fr; align-items: start; gap: 24px; }
.hero-facts { grid-template-columns: 1fr 1fr; }
.about-grid { grid-template-columns: 1fr; }
.contact-grid { grid-template-columns: 1fr; }
.project-row { grid-template-columns: 40px 1fr auto; }
.pr-tags-cell { display: none; }
}
@media (max-width: 560px) {
.hero-facts { grid-template-columns: 1fr; }
.about-stats { grid-template-columns: 1fr; gap: 14px; text-align: left; }
.tl-item { grid-template-columns: 1fr; gap: 8px; }
.project-row { grid-template-columns: 32px 1fr auto; gap: 14px; }
.pr-arrow { display: none; }
.foot-inner { justify-content: flex-start; }
.modal-meta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}/* =========================================================
Maya Okafor — Minimal / Swiss portfolio · vanilla JS
========================================================= */
(function () {
"use strict";
var prefersReduced =
window.matchMedia &&
window.matchMedia("(prefers-reduced-motion: reduce)").matches;
/* ---------- data (fictional) ---------- */
var PROJECTS = [
{
id: "aperture",
title: "Aperture Design System",
cat: "systems",
year: 2025,
sub: "Tokens, 60 components and docs for the Northwind platform.",
tags: ["Design system", "Tokens", "Docs"],
desc: "A from-scratch design system unifying nine product surfaces under one set of tokens, components and writing rules. Built theming, density modes and a contribution model that let 14 engineers ship UI without a designer in the room.",
meta: { Role: "Lead designer", Team: "6 people", Timeline: "10 months", Impact: "−38% UI bugs" },
grad: "linear-gradient(135deg,#1a3aff 0%,#0a1f99 100%)"
},
{
id: "vitals",
title: "Clinician Vitals Dashboard",
cat: "product",
year: 2024,
sub: "Real-time monitoring redesign for Atlas Health.",
tags: ["Product", "Data viz", "Health"],
desc: "Reworked a dense vitals dashboard used in 12 clinics. Re-prioritised the information hierarchy around alert severity and cut the time to spot a deteriorating patient by nearly half in usability testing.",
meta: { Role: "Senior designer", Team: "4 people", Timeline: "5 months", Impact: "−41% time-to-alert" },
grad: "linear-gradient(135deg,#0d9488 0%,#064e44 100%)"
},
{
id: "ledger",
title: "Volt Ledger",
cat: "product",
year: 2023,
sub: "Reconciliation flow for a payments back-office.",
tags: ["Product", "Fintech", "Tables"],
desc: "Designed a reconciliation workspace that turns thousands of transactions into a calm, scannable ledger. Inline editing, keyboard-first navigation and a forgiving undo model made finance teams trust the tool on day one.",
meta: { Role: "Product designer", Team: "5 people", Timeline: "7 months", Impact: "+2.3× throughput" },
grad: "linear-gradient(135deg,#7c3aed 0%,#3b1480 100%)"
},
{
id: "forma",
title: "Forma Identity",
cat: "brand",
year: 2022,
sub: "Wordmark, grid system and motion for a studio.",
tags: ["Brand", "Type", "Motion"],
desc: "A monospace-meets-grotesque identity built on a strict 8px grid. Defined a flexible logo system, a two-weight type pairing and a small set of motion principles that scale from a favicon to a conference stage.",
meta: { Role: "Designer", Team: "Solo", Timeline: "3 months", Impact: "Full rebrand" },
grad: "linear-gradient(135deg,#111111 0%,#3a3a3a 100%)"
},
{
id: "atlasweb",
title: "Atlas Marketing Site",
cat: "brand",
year: 2021,
sub: "Editorial marketing site with a typographic grid.",
tags: ["Web", "Editorial", "Brand"],
desc: "An editorial, type-led marketing site rebuilt on a baseline grid. Replaced stock imagery with structured layout and confident typography, lifting demo requests through a clearer narrative and faster pages.",
meta: { Role: "Lead designer", Team: "3 people", Timeline: "4 months", Impact: "+27% demo signups" },
grad: "linear-gradient(135deg,#2563eb 0%,#0c2d6b 100%)"
},
{
id: "kestrel",
title: "Kestrel Mobile Onboarding",
cat: "product",
year: 2020,
sub: "First-run experience for a logistics app.",
tags: ["Product", "Mobile", "Onboarding"],
desc: "Rebuilt a five-step onboarding into a progressive, low-friction flow with smart defaults and inline validation. Activation in the first session climbed sharply and support tickets about setup dropped.",
meta: { Role: "Product designer", Team: "4 people", Timeline: "3 months", Impact: "+34% activation" },
grad: "linear-gradient(135deg,#ea580c 0%,#7c2d12 100%)"
}
];
/* ---------- DOM helpers ---------- */
function $(sel, ctx) { return (ctx || document).querySelector(sel); }
function $all(sel, ctx) { return Array.prototype.slice.call((ctx || document).querySelectorAll(sel)); }
/* ---------- toast ---------- */
var toastEl = $("#toast");
var toastTimer;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.hidden = false;
requestAnimationFrame(function () { toastEl.classList.add("show"); });
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("show");
setTimeout(function () { toastEl.hidden = true; }, 280);
}, 2200);
}
/* ---------- render projects ---------- */
var listEl = $("#projectList");
var resultLine = $("#resultLine");
var currentFilter = "all";
function visibleProjects() {
return PROJECTS.filter(function (p) {
return currentFilter === "all" || p.cat === currentFilter;
});
}
function rowMarkup(p, index) {
var num = String(index + 1).padStart(2, "0");
var tags = p.tags
.map(function (t) { return '<span class="pr-tag">' + t + "</span>"; })
.join("");
return (
'<li>' +
'<button class="project-row" type="button" data-id="' + p.id + '" aria-haspopup="dialog">' +
'<span class="pr-num">' + num + "</span>" +
'<span class="pr-main">' +
'<span class="pr-title">' + p.title +
'<span class="pr-year">' + p.year + "</span>" +
"</span>" +
'<span class="pr-sub">' + p.sub + "</span>" +
"</span>" +
'<span class="pr-tags pr-tags-cell">' + tags + "</span>" +
'<span class="pr-arrow" aria-hidden="true">→</span>' +
"</button>" +
"</li>"
);
}
function renderList(animateEnter) {
var items = visibleProjects();
if (!items.length) {
listEl.innerHTML =
'<div class="empty-state">' +
"<p>No projects in this discipline yet.</p>" +
'<button class="btn btn-ghost" type="button" id="resetFilter">Show all work</button>' +
"</div>";
var rb = $("#resetFilter");
if (rb) rb.addEventListener("click", function () { setFilter("all"); });
} else {
listEl.innerHTML = items
.map(function (p, i) { return rowMarkup(p, i); })
.join("");
if (animateEnter && !prefersReduced) {
$all(".project-row", listEl).forEach(function (row, i) {
row.classList.add("is-entering");
row.style.animationDelay = i * 45 + "ms";
row.addEventListener("animationend", function () {
row.classList.remove("is-entering");
row.style.animationDelay = "";
}, { once: true });
});
}
}
resultLine.textContent =
items.length === PROJECTS.length
? "Showing all " + PROJECTS.length + " projects"
: "Showing " + items.length + " of " + PROJECTS.length + " projects";
}
/* ---------- filters ---------- */
var chips = $all(".chip");
function updateCounts() {
$all(".chip-count").forEach(function (el) {
var f = el.getAttribute("data-count");
var n =
f === "all"
? PROJECTS.length
: PROJECTS.filter(function (p) { return p.cat === f; }).length;
el.textContent = "(" + n + ")";
});
}
function setFilter(f) {
currentFilter = f;
chips.forEach(function (c) {
var on = c.getAttribute("data-filter") === f;
c.classList.toggle("is-active", on);
c.setAttribute("aria-pressed", on ? "true" : "false");
});
renderList(true);
}
chips.forEach(function (c) {
c.addEventListener("click", function () {
setFilter(c.getAttribute("data-filter"));
});
});
/* ---------- modal / quick-look ---------- */
var modal = $("#modal");
var modalKicker = $("#modalKicker");
var modalTitle = $("#modalTitle");
var modalThumb = $("#modalThumb");
var modalDesc = $("#modalDesc");
var modalMeta = $("#modalMeta");
var lastFocused = null;
function openModal(id) {
var p = PROJECTS.find(function (x) { return x.id === id; });
if (!p) return;
lastFocused = document.activeElement;
modalKicker.textContent =
p.cat.charAt(0).toUpperCase() + p.cat.slice(1) + " · " + p.year;
modalTitle.textContent = p.title;
modalThumb.style.background = p.grad;
modalDesc.textContent = p.desc;
modalMeta.innerHTML = Object.keys(p.meta)
.map(function (k) {
return "<div><dt>" + k + "</dt><dd>" + p.meta[k] + "</dd></div>";
})
.join("");
modal.hidden = false;
document.body.style.overflow = "hidden";
var closeBtn = $(".modal-close", modal);
if (closeBtn) closeBtn.focus();
document.addEventListener("keydown", onKeydown);
}
function closeModal() {
modal.hidden = true;
document.body.style.overflow = "";
document.removeEventListener("keydown", onKeydown);
if (lastFocused && lastFocused.focus) lastFocused.focus();
}
function onKeydown(e) {
if (e.key === "Escape") { closeModal(); return; }
if (e.key === "Tab") {
var f = $all(
'button, a[href], input, textarea, [tabindex]:not([tabindex="-1"])',
modal
).filter(function (el) { return el.offsetParent !== null; });
if (!f.length) return;
var first = f[0];
var last = f[f.length - 1];
if (e.shiftKey && document.activeElement === first) {
e.preventDefault(); last.focus();
} else if (!e.shiftKey && document.activeElement === last) {
e.preventDefault(); first.focus();
}
}
}
listEl.addEventListener("click", function (e) {
var row = e.target.closest(".project-row");
if (row) openModal(row.getAttribute("data-id"));
});
$all("[data-close]", modal).forEach(function (el) {
el.addEventListener("click", closeModal);
});
/* ---------- theme toggle ---------- */
var themeToggle = $("#themeToggle");
var themeLabel = $("[data-theme-label]");
function applyTheme(dark) {
document.documentElement.setAttribute("data-theme", dark ? "dark" : "light");
themeToggle.setAttribute("aria-pressed", dark ? "true" : "false");
if (themeLabel) themeLabel.textContent = dark ? "Light" : "Dark";
}
var startDark =
window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches;
applyTheme(startDark);
themeToggle.addEventListener("click", function () {
var isDark = document.documentElement.getAttribute("data-theme") === "dark";
applyTheme(!isDark);
toast(!isDark ? "Dark mode on" : "Light mode on");
});
/* ---------- copy email ---------- */
$all(".copy-link").forEach(function (link) {
link.addEventListener("click", function (e) {
e.preventDefault();
var text = link.getAttribute("data-copy");
var done = function () { toast("Email copied to clipboard"); };
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(text).then(done).catch(function () {
fallbackCopy(text); done();
});
} else {
fallbackCopy(text); done();
}
});
});
function fallbackCopy(text) {
var ta = document.createElement("textarea");
ta.value = text;
ta.style.position = "fixed";
ta.style.opacity = "0";
document.body.appendChild(ta);
ta.select();
try { document.execCommand("copy"); } catch (err) {}
document.body.removeChild(ta);
}
/* ---------- contact form validation ---------- */
var form = $("#contactForm");
function setError(field, msg) {
var wrap = field.closest(".field");
var err = $('[data-error-for="' + field.id + '"]');
if (wrap) wrap.classList.toggle("has-error", !!msg);
if (err) err.textContent = msg || "";
field.setAttribute("aria-invalid", msg ? "true" : "false");
}
function validateField(field) {
var v = field.value.trim();
if (!v) { setError(field, "This field is required."); return false; }
if (field.type === "email" && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)) {
setError(field, "Enter a valid email address.");
return false;
}
setError(field, "");
return true;
}
$all("#contactForm input, #contactForm textarea").forEach(function (f) {
f.addEventListener("blur", function () { validateField(f); });
f.addEventListener("input", function () {
if (f.closest(".field").classList.contains("has-error")) validateField(f);
});
});
form.addEventListener("submit", function (e) {
e.preventDefault();
var fields = $all("#contactForm input, #contactForm textarea");
var ok = true;
fields.forEach(function (f) { if (!validateField(f)) ok = false; });
if (!ok) {
var firstBad = form.querySelector(".has-error input, .has-error textarea");
if (firstBad) firstBad.focus();
toast("Please fix the highlighted fields");
return;
}
var name = $("#cName").value.trim().split(" ")[0];
form.reset();
fields.forEach(function (f) { setError(f, ""); });
toast("Thanks " + name + " — message sent (demo)");
});
/* ---------- count-up stats ---------- */
function runCountUp(el) {
var target = parseInt(el.getAttribute("data-countup"), 10) || 0;
if (prefersReduced) { el.textContent = target; return; }
var start = null;
var dur = 1100;
function step(ts) {
if (!start) start = ts;
var prog = Math.min((ts - start) / dur, 1);
var eased = 1 - Math.pow(1 - prog, 3);
el.textContent = Math.round(eased * target);
if (prog < 1) requestAnimationFrame(step);
else el.textContent = target;
}
requestAnimationFrame(step);
}
var countEls = $all("[data-countup]");
if (countEls.length && "IntersectionObserver" in window) {
var io = new IntersectionObserver(
function (entries) {
entries.forEach(function (entry) {
if (entry.isIntersecting) {
runCountUp(entry.target);
io.unobserve(entry.target);
}
});
},
{ threshold: 0.5 }
);
countEls.forEach(function (el) { io.observe(el); });
} else {
countEls.forEach(runCountUp);
}
/* ---------- init ---------- */
updateCounts();
renderList(false);
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Maya Okafor — Product Designer</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<header class="site-head" role="banner">
<div class="wrap head-inner">
<a class="wordmark" href="#top" aria-label="Maya Okafor, home">
<span class="wordmark-dot" aria-hidden="true"></span>Maya Okafor
</a>
<nav class="site-nav" aria-label="Primary">
<a href="#work">Work</a>
<a href="#about">About</a>
<a href="#experience">Experience</a>
<a href="#contact">Contact</a>
</nav>
<button class="theme-toggle" id="themeToggle" type="button" aria-pressed="false" aria-label="Toggle dark mode">
<span class="theme-toggle-label" data-theme-label>Dark</span>
</button>
</div>
</header>
<main id="main">
<span id="top" class="anchor" aria-hidden="true"></span>
<!-- HERO -->
<section class="hero" aria-labelledby="hero-title">
<div class="wrap">
<div class="hero-grid">
<p class="eyebrow"><span class="eyebrow-rule" aria-hidden="true"></span>Selected work · 2018—2026</p>
<h1 id="hero-title" class="hero-title">
Product designer building <em>calm,</em> precise interfaces for complex tools.
</h1>
<div class="hero-meta">
<dl class="hero-facts">
<div><dt>Based in</dt><dd>Lisbon, PT</dd></div>
<div><dt>Focus</dt><dd>Design systems · 0→1 product</dd></div>
<div><dt>Status</dt><dd><span class="status-dot" aria-hidden="true"></span>Open to select work</dd></div>
</dl>
<div class="hero-actions">
<a class="btn btn-primary" href="#contact">Start a project</a>
<a class="btn btn-ghost" href="#work">View work <span aria-hidden="true">↓</span></a>
</div>
</div>
</div>
</div>
</section>
<!-- MARQUEE / CLIENTS -->
<section class="strip" aria-label="Selected clients">
<div class="wrap strip-inner">
<span class="strip-label">Trusted by</span>
<ul class="strip-list">
<li>Northwind</li>
<li>Atlas Health</li>
<li>Volt</li>
<li>Kestrel</li>
<li>Meridian</li>
<li>Forma</li>
</ul>
</div>
</section>
<!-- WORK -->
<section id="work" class="section work" aria-labelledby="work-title">
<div class="wrap">
<div class="section-head">
<h2 id="work-title" class="section-title"><span class="section-index">01</span> Selected work</h2>
<div class="filters" role="group" aria-label="Filter projects by discipline">
<button class="chip is-active" type="button" data-filter="all" aria-pressed="true">All <span class="chip-count" data-count="all"></span></button>
<button class="chip" type="button" data-filter="product" aria-pressed="false">Product <span class="chip-count" data-count="product"></span></button>
<button class="chip" type="button" data-filter="systems" aria-pressed="false">Systems <span class="chip-count" data-count="systems"></span></button>
<button class="chip" type="button" data-filter="brand" aria-pressed="false">Brand <span class="chip-count" data-count="brand"></span></button>
</div>
</div>
<p class="result-line" id="resultLine" role="status" aria-live="polite"></p>
<ol class="project-list" id="projectList"></ol>
</div>
</section>
<!-- ABOUT -->
<section id="about" class="section about" aria-labelledby="about-title">
<div class="wrap about-grid">
<h2 id="about-title" class="section-title"><span class="section-index">02</span> About</h2>
<div class="about-body">
<p class="lead">
I design the parts of software people rarely notice and never want to fight:
the table that loads instantly, the form that forgives, the system that holds
its shape across forty screens.
</p>
<p>
For eight years I've worked at the seam between design and engineering —
translating dense, regulated domains (health, fintech, logistics) into
interfaces that feel obvious. I prototype in code, document my decisions,
and treat a tidy component library as a love letter to the next person.
</p>
<ul class="about-stats">
<li><strong data-countup="8">0</strong><span>years shipping</span></li>
<li><strong data-countup="40">0</strong><span>products launched</span></li>
<li><strong data-countup="3">0</strong><span>design systems built</span></li>
</ul>
</div>
</div>
</section>
<!-- EXPERIENCE -->
<section id="experience" class="section experience" aria-labelledby="exp-title">
<div class="wrap">
<div class="section-head">
<h2 id="exp-title" class="section-title"><span class="section-index">03</span> Experience</h2>
</div>
<ol class="timeline">
<li class="tl-item">
<span class="tl-year">2022—now</span>
<div class="tl-body">
<h3>Principal Product Designer</h3>
<p class="tl-org">Northwind · Remote</p>
<p class="tl-desc">Lead designer for the platform org. Built the Aperture design system and shipped the analytics rebuild used by 30k operators daily.</p>
</div>
</li>
<li class="tl-item">
<span class="tl-year">2019—2022</span>
<div class="tl-body">
<h3>Senior Product Designer</h3>
<p class="tl-org">Atlas Health · Lisbon</p>
<p class="tl-desc">Owned the clinician scheduling suite end-to-end; cut booking time 41% and grew adoption across 12 clinics.</p>
</div>
</li>
<li class="tl-item">
<span class="tl-year">2018—2019</span>
<div class="tl-body">
<h3>Product Designer</h3>
<p class="tl-org">Volt · Berlin</p>
<p class="tl-desc">Designed onboarding and the first design tokens for a payments dashboard used across three markets.</p>
</div>
</li>
</ol>
</div>
</section>
<!-- CONTACT -->
<section id="contact" class="section contact" aria-labelledby="contact-title">
<div class="wrap contact-grid">
<div class="contact-left">
<h2 id="contact-title" class="section-title"><span class="section-index">04</span> Contact</h2>
<p class="contact-pitch">Have a complex product that needs a steady design hand? Tell me about it — I read every message.</p>
<ul class="contact-links">
<li><a href="mailto:[email protected]">[email protected]</a></li>
<li><a href="#contact" data-copy="[email protected]" class="copy-link">Copy email</a></li>
<li><a href="#contact" rel="nofollow">LinkedIn ↗</a></li>
<li><a href="#contact" rel="nofollow">Read.cv ↗</a></li>
</ul>
</div>
<form class="contact-form" id="contactForm" novalidate>
<div class="field">
<label for="cName">Name</label>
<input id="cName" name="name" type="text" autocomplete="name" required />
<span class="field-error" data-error-for="cName"></span>
</div>
<div class="field">
<label for="cEmail">Email</label>
<input id="cEmail" name="email" type="email" autocomplete="email" required />
<span class="field-error" data-error-for="cEmail"></span>
</div>
<div class="field">
<label for="cMsg">Project</label>
<textarea id="cMsg" name="message" rows="4" required></textarea>
<span class="field-error" data-error-for="cMsg"></span>
</div>
<button class="btn btn-primary btn-block" type="submit">Send message</button>
</form>
</div>
</section>
</main>
<footer class="site-foot" role="contentinfo">
<div class="wrap foot-inner">
<span>© 2026 Maya Okafor</span>
<span class="foot-note">Designed on a strict grid. Built without frameworks.</span>
<a href="#top" class="to-top">Back to top ↑</a>
</div>
</footer>
<!-- Quick-look dialog -->
<div class="modal" id="modal" role="dialog" aria-modal="true" aria-labelledby="modalTitle" hidden>
<div class="modal-scrim" data-close></div>
<div class="modal-panel" role="document">
<button class="modal-close" type="button" data-close aria-label="Close">×</button>
<p class="modal-kicker" id="modalKicker"></p>
<h3 class="modal-title" id="modalTitle"></h3>
<div class="modal-thumb" id="modalThumb" aria-hidden="true"></div>
<p class="modal-desc" id="modalDesc"></p>
<dl class="modal-meta" id="modalMeta"></dl>
</div>
</div>
<div class="toast" id="toast" role="status" aria-live="polite" hidden></div>
<script src="script.js"></script>
</body>
</html>Minimal / Swiss Portfolio
A complete single-person portfolio rebuilt in a restrained Swiss idiom: a white and ink ground, one confident blue accent, a grotesque sans (Space Grotesk over Inter), and a strict baseline grid with generous whitespace. The same content — hero, selected work, about, experience, and contact — is composed into one quiet, type-driven page where hierarchy comes from size and weight rather than ornament.
Selected work renders as a numbered index list. Discipline chips (All, Product, Systems, Brand) carry live counts and filter the rows with a soft FLIP-style enter animation, while a status line announces how many projects are showing and an empty state offers a one-click reset. Each row opens a focus-trapped quick-look dialog — dismissed with Escape, the scrim, or the close button — detailing role, team, timeline, and impact against a CSS-gradient thumbnail.
The page also ships a light/dark toggle that respects the system preference, count-up stats that animate when scrolled into view, a copy-to-clipboard email link with graceful fallback, and a contact form with inline validation and toast feedback. Everything is keyboard-usable with visible focus rings, ARIA pressed states, a live region, and full reduced-motion support — pure HTML, CSS, and vanilla JavaScript, no images or dependencies.
Illustrative portfolio — fictional person and projects.