Portfolio — Skills / Tools Display
A drop-in portfolio skills panel for a fictional product designer that lists eighteen capabilities grouped into Design, Code and Tools, each with a proficiency bar, a years-of-practice tag and an honest level label instead of fake percentages. Vanilla JS powers a category filter that dims the off-topic groups, a bars-versus-cloud view toggle, and a live readout that surfaces years, level and a short note as you hover, focus or tap a skill. Neutral Inter base, keyboard-friendly, fully responsive.
MCP
Code
:root {
--ink: #16181d;
--ink-soft: #4a4f5a;
--ink-faint: #868c98;
--paper: #ffffff;
--surface: #f6f7f9;
--surface-2: #eef0f3;
--line: #e4e7ec;
--line-strong: #d3d8e0;
--accent: #4f46e5;
--accent-soft: #eef0ff;
--design: #d6428b;
--design-soft: #fdeef5;
--code: #2f8f6b;
--code-soft: #e8f6ef;
--tools: #c2740e;
--tools-soft: #fcf2e2;
--radius: 14px;
--radius-sm: 9px;
--shadow: 0 1px 2px rgba(16, 18, 24, 0.05), 0 8px 24px rgba(16, 18, 24, 0.06);
--ring: 0 0 0 3px rgba(79, 70, 229, 0.35);
--font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
font-family: var(--font);
color: var(--ink);
line-height: 1.5;
background:
radial-gradient(120% 90% at 100% 0%, #f0f1ff 0%, transparent 45%),
radial-gradient(110% 80% at 0% 0%, #fdf1f7 0%, transparent 40%),
var(--surface);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
.skip-link {
position: absolute;
left: 12px;
top: -48px;
background: var(--ink);
color: #fff;
padding: 8px 14px;
border-radius: 8px;
z-index: 50;
transition: top 0.18s ease;
text-decoration: none;
font-weight: 600;
}
.skip-link:focus { top: 12px; }
.wrap {
max-width: 960px;
margin: 0 auto;
padding: clamp(28px, 6vw, 64px) clamp(18px, 5vw, 40px) 80px;
}
/* ---------- Intro ---------- */
.eyebrow {
margin: 0 0 6px;
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 0.72rem;
font-weight: 700;
color: var(--accent);
}
.intro h1 {
margin: 0 0 12px;
font-size: clamp(2rem, 5.5vw, 3rem);
font-weight: 800;
letter-spacing: -0.025em;
line-height: 1.05;
}
.lede {
margin: 0 0 28px;
max-width: 56ch;
color: var(--ink-soft);
font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}
/* ---------- Controls ---------- */
.controls {
display: flex;
flex-wrap: wrap;
gap: 14px;
align-items: center;
justify-content: space-between;
margin-bottom: 28px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-filter {
display: inline-flex;
align-items: center;
gap: 7px;
border: 1px solid var(--line-strong);
background: var(--paper);
color: var(--ink-soft);
font: inherit;
font-weight: 600;
font-size: 0.86rem;
padding: 7px 13px;
border-radius: 999px;
cursor: pointer;
transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
transform 0.12s ease;
}
.chip-filter:hover { border-color: var(--ink-faint); transform: translateY(-1px); }
.chip-filter.is-active {
background: var(--ink);
border-color: var(--ink);
color: #fff;
}
.chip-filter .count {
font-size: 0.72rem;
font-weight: 700;
background: var(--surface-2);
color: var(--ink-soft);
border-radius: 999px;
padding: 1px 7px;
}
.chip-filter.is-active .count { background: rgba(255, 255, 255, 0.18); color: #fff; }
.swatch {
width: 9px;
height: 9px;
border-radius: 50%;
display: inline-block;
}
.swatch-design { background: var(--design); }
.swatch-code { background: var(--code); }
.swatch-tools { background: var(--tools); }
.view-toggle {
display: inline-flex;
background: var(--paper);
border: 1px solid var(--line-strong);
border-radius: 999px;
padding: 3px;
gap: 2px;
}
.toggle-btn {
display: inline-flex;
align-items: center;
gap: 6px;
border: 0;
background: transparent;
color: var(--ink-soft);
font: inherit;
font-weight: 600;
font-size: 0.84rem;
padding: 6px 13px;
border-radius: 999px;
cursor: pointer;
transition: background 0.16s ease, color 0.16s ease;
}
.toggle-btn svg { fill: currentColor; }
.toggle-btn.is-active {
background: var(--accent);
color: #fff;
}
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 999px; }
.chip-filter:focus-visible,
.toggle-btn:focus-visible,
.skill:focus-visible { box-shadow: var(--ring); }
/* ---------- Bars view ---------- */
.board { position: relative; }
.bars-view {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 18px;
}
.group {
background: var(--paper);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 20px 20px 8px;
box-shadow: var(--shadow);
transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}
.group.dimmed { opacity: 0.32; filter: saturate(0.5); }
.group-head {
display: flex;
align-items: center;
gap: 9px;
margin-bottom: 14px;
}
.group-dot {
width: 11px;
height: 11px;
border-radius: 4px;
}
.group[data-cat="design"] .group-dot { background: var(--design); }
.group[data-cat="code"] .group-dot { background: var(--code); }
.group[data-cat="tools"] .group-dot { background: var(--tools); }
.group-head h2 {
margin: 0;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--ink-soft);
}
.group-head .group-n {
margin-left: auto;
font-size: 0.74rem;
font-weight: 600;
color: var(--ink-faint);
}
.skill {
display: block;
width: 100%;
text-align: left;
border: 0;
background: transparent;
font: inherit;
color: inherit;
padding: 9px 6px;
border-radius: var(--radius-sm);
cursor: pointer;
border-bottom: 1px solid var(--line);
transition: background 0.14s ease;
}
.group .skill:last-child { border-bottom: 0; }
.skill:hover { background: var(--surface); }
.skill.active { background: var(--accent-soft); }
.skill-top {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
margin-bottom: 7px;
}
.skill-name { font-weight: 600; font-size: 0.95rem; }
.skill-meta {
font-size: 0.74rem;
color: var(--ink-faint);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.bar {
height: 7px;
border-radius: 999px;
background: var(--surface-2);
overflow: hidden;
}
.bar-fill {
height: 100%;
border-radius: 999px;
width: 0;
transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.group[data-cat="design"] .bar-fill { background: linear-gradient(90deg, #e878b1, var(--design)); }
.group[data-cat="code"] .bar-fill { background: linear-gradient(90deg, #5cba93, var(--code)); }
.group[data-cat="tools"] .bar-fill { background: linear-gradient(90deg, #e0a141, var(--tools)); }
/* proficiency dots */
.dots {
display: inline-flex;
gap: 3px;
vertical-align: middle;
}
.dots::before,
.dots { --d: 5; }
.dots span,
.dots i {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--line-strong);
display: inline-block;
}
.dots i.on { background: var(--ink-soft); }
/* ---------- Cloud view ---------- */
.cloud-view { text-align: center; }
.cloud {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 8px 12px;
padding: 14px;
min-height: 220px;
background: var(--paper);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.cloud-chip {
--c: var(--accent);
--cs: var(--accent-soft);
border: 1px solid var(--line);
background: var(--cs);
color: var(--c);
font: inherit;
font-weight: 700;
border-radius: 999px;
padding: 6px 14px;
cursor: pointer;
line-height: 1.2;
transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease,
opacity 0.2s ease, filter 0.2s ease;
animation: float 1s ease both;
}
.cloud-chip[data-cat="design"] { --c: var(--design); --cs: var(--design-soft); }
.cloud-chip[data-cat="code"] { --c: var(--code); --cs: var(--code-soft); }
.cloud-chip[data-cat="tools"] { --c: var(--tools); --cs: var(--tools-soft); }
.cloud-chip:hover,
.cloud-chip.active {
transform: translateY(-3px) scale(1.06);
box-shadow: 0 6px 16px rgba(16, 18, 24, 0.12);
}
.cloud-chip:focus-visible { box-shadow: var(--ring); }
.cloud-chip.dimmed { opacity: 0.28; filter: grayscale(0.4); transform: none; }
@keyframes float {
from { opacity: 0; transform: translateY(8px) scale(0.92); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.cloud-note {
margin: 14px 0 0;
font-size: 0.82rem;
color: var(--ink-faint);
}
.cloud-sr-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.empty-state {
text-align: center;
color: var(--ink-faint);
padding: 40px 0;
font-weight: 500;
}
/* ---------- Readout ---------- */
.readout {
margin-top: 22px;
background: var(--ink);
color: #fff;
border-radius: var(--radius);
padding: 16px 20px;
min-height: 58px;
display: flex;
align-items: center;
gap: 14px;
box-shadow: var(--shadow);
}
.readout-default { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.readout-card {
display: flex;
align-items: center;
gap: 14px;
width: 100%;
flex-wrap: wrap;
}
.readout-tag {
font-size: 0.66rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 3px 9px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.12);
}
.readout-tag[data-cat="design"] { color: #ffc4e0; }
.readout-tag[data-cat="code"] { color: #b6f0d5; }
.readout-tag[data-cat="tools"] { color: #ffdca0; }
.readout-name { font-weight: 700; font-size: 1.05rem; }
.readout-stats {
margin-left: auto;
display: flex;
gap: 18px;
font-size: 0.84rem;
color: rgba(255, 255, 255, 0.8);
}
.readout-stats b { color: #fff; }
.readout-note {
flex-basis: 100%;
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.72);
}
/* ---------- Legend ---------- */
.legend {
margin-top: 28px;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 22px;
padding-top: 20px;
border-top: 1px solid var(--line);
}
.legend-title {
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--ink-faint);
}
.legend-list {
display: flex;
flex-wrap: wrap;
gap: 8px 18px;
margin: 0;
padding: 0;
list-style: none;
font-size: 0.82rem;
color: var(--ink-soft);
}
.legend-list li { display: inline-flex; align-items: center; gap: 7px; }
/* ---------- Toast ---------- */
.toast {
position: fixed;
left: 50%;
bottom: 26px;
transform: translateX(-50%) translateY(20px);
background: var(--ink);
color: #fff;
padding: 11px 18px;
border-radius: 10px;
font-size: 0.88rem;
font-weight: 500;
box-shadow: 0 10px 30px rgba(16, 18, 24, 0.28);
opacity: 0;
pointer-events: none;
transition: opacity 0.22s ease, transform 0.22s ease;
z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* ---------- Responsive ---------- */
@media (max-width: 560px) {
.controls { flex-direction: column; align-items: stretch; }
.view-toggle { align-self: flex-start; }
.readout-stats { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
}(function () {
"use strict";
/* ---------- Data: honest, fictional ---------- */
// level: 1-5 proficiency | years: hands-on experience
var CATS = {
design: { label: "Design", className: "design" },
code: { label: "Code", className: "code" },
tools: { label: "Tools", className: "tools" },
};
var SKILLS = [
{ name: "Product & UX design", cat: "design", level: 5, years: 9, note: "End-to-end flows, IA and prototyping — where I'm most at home." },
{ name: "Design systems", cat: "design", level: 5, years: 6, note: "Tokens, components and docs that scale across teams." },
{ name: "Interaction & motion", cat: "design", level: 4, years: 5, note: "Micro-interactions and transitions that aid comprehension." },
{ name: "Visual & type", cat: "design", level: 4, years: 8, note: "Grids, hierarchy and restrained, legible typography." },
{ name: "User research", cat: "design", level: 3, years: 4, note: "Interviews and usability tests; I lean on partners for stats." },
{ name: "Accessibility (WCAG)", cat: "design", level: 4, years: 5, note: "Contrast, focus order and screen-reader passes baked in early." },
{ name: "HTML & semantic markup", cat: "code", level: 5, years: 10, note: "Accessible, landmark-driven structure by default." },
{ name: "CSS & layout", cat: "code", level: 5, years: 10, note: "Grid, flexbox, custom props and fluid responsive systems." },
{ name: "JavaScript (vanilla)", cat: "code", level: 4, years: 7, note: "Comfortable shipping framework-free interaction." },
{ name: "TypeScript", cat: "code", level: 3, years: 4, note: "Typed components; still leveling up on advanced generics." },
{ name: "React", cat: "code", level: 4, years: 6, note: "Hooks, composition and design-system component work." },
{ name: "Node tooling", cat: "code", level: 3, years: 4, note: "Build scripts and small APIs; not my deepest area." },
{ name: "Figma", cat: "tools", level: 5, years: 7, note: "Auto-layout, variables and component libraries daily." },
{ name: "Git & GitHub", cat: "tools", level: 4, years: 9, note: "Branching, reviews and clean, readable history." },
{ name: "Storybook", cat: "tools", level: 4, years: 5, note: "Component docs and visual regression coverage." },
{ name: "Linear & Jira", cat: "tools", level: 3, years: 6, note: "Planning and triage — a means, not a craft." },
{ name: "Framer", cat: "tools", level: 3, years: 3, note: "High-fidelity prototypes for stakeholder reviews." },
{ name: "Notion", cat: "tools", level: 4, years: 5, note: "Specs, research repos and lightweight handoff." },
];
var LEVEL_LABEL = { 1: "Learning", 2: "Working", 3: "Confident", 4: "Strong", 5: "Expert" };
/* ---------- Refs ---------- */
var barsPanel = document.querySelector('[data-view-panel="bars"]');
var cloudPanel = document.querySelector('[data-view-panel="cloud"]');
var cloudEl = cloudPanel.querySelector(".cloud");
var srList = cloudPanel.querySelector(".cloud-sr-list");
var readout = document.querySelector(".readout");
var emptyState = document.querySelector(".empty-state");
var filterBtns = Array.prototype.slice.call(document.querySelectorAll(".chip-filter"));
var viewBtns = Array.prototype.slice.call(document.querySelectorAll(".toggle-btn"));
var toastEl = document.querySelector(".toast");
var currentFilter = "all";
var currentView = "bars";
/* ---------- Toast helper ---------- */
var toastTimer;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.hidden = false;
void toastEl.offsetWidth;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("show");
setTimeout(function () { toastEl.hidden = true; }, 240);
}, 1900);
}
/* ---------- Build dot indicator ---------- */
function dotsHtml(level) {
var html = "";
for (var i = 1; i <= 5; i++) {
html += '<i class="' + (i <= level ? "on" : "") + '"></i>';
}
return html;
}
/* ---------- Render bars view ---------- */
function renderBars() {
var order = ["design", "code", "tools"];
var frag = document.createDocumentFragment();
order.forEach(function (cat) {
var items = SKILLS.filter(function (s) { return s.cat === cat; });
var group = document.createElement("section");
group.className = "group";
group.setAttribute("data-cat", cat);
var head = document.createElement("div");
head.className = "group-head";
head.innerHTML =
'<span class="group-dot"></span>' +
"<h2>" + CATS[cat].label + "</h2>" +
'<span class="group-n">' + items.length + " skills</span>";
group.appendChild(head);
items.forEach(function (s) {
var btn = document.createElement("button");
btn.type = "button";
btn.className = "skill";
btn.setAttribute("data-cat", cat);
btn.setAttribute("data-name", s.name);
var pct = (s.level / 5) * 100;
btn.setAttribute(
"aria-label",
s.name + ", " + LEVEL_LABEL[s.level] + ", " + s.years + " years"
);
btn.innerHTML =
'<span class="skill-top">' +
'<span class="skill-name">' + s.name + "</span>" +
'<span class="skill-meta">' + s.years + "y · " + LEVEL_LABEL[s.level] + "</span>" +
"</span>" +
'<span class="bar"><span class="bar-fill" data-pct="' + pct + '"></span></span>';
bindSkill(btn, s);
group.appendChild(btn);
});
frag.appendChild(group);
});
barsPanel.innerHTML = "";
barsPanel.appendChild(frag);
// animate fills after paint
requestAnimationFrame(function () {
requestAnimationFrame(function () {
barsPanel.querySelectorAll(".bar-fill").forEach(function (f) {
f.style.width = f.getAttribute("data-pct") + "%";
});
});
});
}
/* ---------- Render cloud view ---------- */
function renderCloud() {
cloudEl.innerHTML = "";
srList.innerHTML = "";
// sort by level desc so bigger chips cluster — feels like a cloud
var sorted = SKILLS.slice().sort(function (a, b) { return b.level - a.level || b.years - a.years; });
sorted.forEach(function (s, i) {
var chip = document.createElement("button");
chip.type = "button";
chip.className = "cloud-chip";
chip.setAttribute("data-cat", s.cat);
chip.setAttribute("data-name", s.name);
// size scales with level (honest: never identical, capped sensibly)
var size = 0.82 + (s.level - 1) * 0.13; // 0.82rem .. 1.34rem
chip.style.fontSize = size.toFixed(2) + "rem";
chip.style.animationDelay = Math.min(i * 28, 500) + "ms";
chip.textContent = s.name;
chip.setAttribute(
"aria-label",
s.name + ", " + CATS[s.cat].label + ", " + LEVEL_LABEL[s.level] + ", " + s.years + " years"
);
bindSkill(chip, s);
cloudEl.appendChild(chip);
var li = document.createElement("li");
li.textContent = s.name + " — " + CATS[s.cat].label + ", " + LEVEL_LABEL[s.level] + ", " + s.years + " years";
srList.appendChild(li);
});
}
/* ---------- Skill interaction (hover / focus / click) ---------- */
function bindSkill(el, skill) {
var enter = function () { showReadout(skill, el); };
el.addEventListener("mouseenter", enter);
el.addEventListener("focus", enter);
el.addEventListener("mouseleave", clearActive);
el.addEventListener("blur", clearActive);
el.addEventListener("click", function () {
// jump filter to this category for quick exploration
setFilter(skill.cat);
toast("Filtered to " + CATS[skill.cat].label);
});
}
function clearActive() {
document.querySelectorAll(".skill.active, .cloud-chip.active").forEach(function (n) {
n.classList.remove("active");
});
}
function showReadout(skill, el) {
clearActive();
if (el) el.classList.add("active");
readout.innerHTML =
'<div class="readout-card">' +
'<span class="readout-tag" data-cat="' + skill.cat + '">' + CATS[skill.cat].label + "</span>" +
'<span class="readout-name">' + skill.name + "</span>" +
'<span class="readout-stats">' +
"<span><b>" + skill.years + "</b> yrs</span>" +
"<span><b>" + LEVEL_LABEL[skill.level] + "</b></span>" +
"</span>" +
'<span class="readout-note">' + skill.note + "</span>" +
"</div>";
}
function resetReadout() {
readout.innerHTML = '<span class="readout-default">Hover or focus a skill to see the detail.</span>';
}
/* ---------- Filtering ---------- */
function applyFilter() {
var anyVisible = false;
// bars: dim non-matching groups
barsPanel.querySelectorAll(".group").forEach(function (g) {
var match = currentFilter === "all" || g.getAttribute("data-cat") === currentFilter;
g.classList.toggle("dimmed", !match);
if (match) anyVisible = true;
});
// cloud: dim non-matching chips
cloudEl.querySelectorAll(".cloud-chip").forEach(function (c) {
var match = currentFilter === "all" || c.getAttribute("data-cat") === currentFilter;
c.classList.toggle("dimmed", !match);
if (match) anyVisible = true;
});
emptyState.hidden = anyVisible;
}
function setFilter(filter) {
currentFilter = filter;
filterBtns.forEach(function (b) {
var on = b.getAttribute("data-filter") === filter;
b.classList.toggle("is-active", on);
b.setAttribute("aria-pressed", on ? "true" : "false");
});
applyFilter();
}
filterBtns.forEach(function (b) {
b.addEventListener("click", function () {
setFilter(b.getAttribute("data-filter"));
});
});
/* ---------- View toggle ---------- */
function setView(view) {
currentView = view;
viewBtns.forEach(function (b) {
var on = b.getAttribute("data-view") === view;
b.classList.toggle("is-active", on);
b.setAttribute("aria-pressed", on ? "true" : "false");
});
var bars = view === "bars";
barsPanel.hidden = !bars;
cloudPanel.hidden = bars;
resetReadout();
applyFilter();
if (bars) {
requestAnimationFrame(function () {
barsPanel.querySelectorAll(".bar-fill").forEach(function (f) {
f.style.width = f.getAttribute("data-pct") + "%";
});
});
}
}
viewBtns.forEach(function (b) {
b.addEventListener("click", function () {
setView(b.getAttribute("data-view"));
});
});
/* ---------- Legend dots (decorative samples) ---------- */
document.querySelectorAll(".legend .dots").forEach(function (d) {
var lvl = parseInt(d.getAttribute("data-level"), 10) || 0;
d.innerHTML = dotsHtml(lvl);
});
/* ---------- Init ---------- */
renderBars();
renderCloud();
setFilter("all");
setView("bars");
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Maya Okafor — Skills & Tools</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=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a class="skip-link" href="#skills">Skip to skills</a>
<main class="wrap" role="main">
<header class="intro">
<p class="eyebrow">Capabilities</p>
<h1>Skills & tools</h1>
<p class="lede">
An honest snapshot of what I reach for every day — designing, building and
shipping product. No fake hundred-percents; the dots show roughly where I am
and the years I’ve spent there.
</p>
<div class="controls" role="region" aria-label="Skill display controls">
<div class="filters" role="group" aria-label="Filter by category">
<button type="button" class="chip-filter is-active" data-filter="all" aria-pressed="true">
All
<span class="count" aria-hidden="true">18</span>
</button>
<button type="button" class="chip-filter" data-filter="design" aria-pressed="false">
<span class="swatch swatch-design" aria-hidden="true"></span> Design
</button>
<button type="button" class="chip-filter" data-filter="code" aria-pressed="false">
<span class="swatch swatch-code" aria-hidden="true"></span> Code
</button>
<button type="button" class="chip-filter" data-filter="tools" aria-pressed="false">
<span class="swatch swatch-tools" aria-hidden="true"></span> Tools
</button>
</div>
<div class="view-toggle" role="group" aria-label="View mode">
<button type="button" class="toggle-btn is-active" data-view="bars" aria-pressed="true">
<svg viewBox="0 0 16 16" width="15" height="15" aria-hidden="true">
<rect x="1" y="9" width="3" height="6" rx="1" />
<rect x="6.5" y="5" width="3" height="10" rx="1" />
<rect x="12" y="2" width="3" height="13" rx="1" />
</svg>
Bars
</button>
<button type="button" class="toggle-btn" data-view="cloud" aria-pressed="false">
<svg viewBox="0 0 16 16" width="15" height="15" aria-hidden="true">
<circle cx="4" cy="6" r="2.4" />
<circle cx="11" cy="4.5" r="1.9" />
<circle cx="8.5" cy="10.5" r="2.8" />
<circle cx="13" cy="11" r="1.4" />
</svg>
Cloud
</button>
</div>
</div>
</header>
<section id="skills" class="board" aria-label="Skills">
<!-- BARS VIEW -->
<div class="bars-view" data-view-panel="bars">
<!-- groups injected by script.js -->
</div>
<!-- CLOUD VIEW -->
<div class="cloud-view" data-view-panel="cloud" hidden>
<div class="cloud" aria-hidden="true"><!-- chips injected --></div>
<p class="cloud-note">
Bigger & bolder = more years of practice. Hover or tap a skill for detail.
</p>
<ul class="cloud-sr-list" aria-label="Skills list"><!-- sr fallback injected --></ul>
</div>
<p class="empty-state" hidden>No skills match that filter.</p>
</section>
<!-- Floating detail readout -->
<div class="readout" role="status" aria-live="polite">
<span class="readout-default">Hover or focus a skill to see the detail.</span>
</div>
<footer class="legend">
<span class="legend-title">Proficiency</span>
<ul class="legend-list">
<li><span class="dots" data-level="2" aria-hidden="true"></span> Working</li>
<li><span class="dots" data-level="3" aria-hidden="true"></span> Confident</li>
<li><span class="dots" data-level="4" aria-hidden="true"></span> Strong</li>
<li><span class="dots" data-level="5" aria-hidden="true"></span> Expert</li>
</ul>
</footer>
</main>
<div class="toast" role="status" aria-live="polite" hidden></div>
<script src="script.js"></script>
</body>
</html>Skills / Tools Display
A compact, paste-in skills section for a single-person portfolio. Eighteen real-feeling capabilities are grouped into Design, Code and Tools, and each one carries a proficiency bar, a years-of-practice tag and a plain-language level — Working, Confident, Strong or Expert — so the picture stays honest. No skill is pinned at a hollow 100%.
Every control works. The category filter dims the groups that don’t match instead of hiding the rest, so the layout never jumps; a view toggle flips the whole board between a tidy bars layout and an animated cloud where chip size grows with experience. Hovering, focusing or tapping any skill drives a live readout that reports the years, level and a one-line note, and clicking a skill jumps the filter to its category with a toast.
It is built neutral on an Inter base so it can sit inside any portfolio. The grid collapses to a
single column on phones, the controls stack cleanly, every interactive element is a real button with
visible focus rings and aria-pressed state, the cloud ships a screen-reader list, and motion is
softened under prefers-reduced-motion.
Illustrative portfolio — fictional person and projects.