Job Board — Candidate Detail
A recruiter-facing candidate detail page for an applicant tracking system, built with vanilla HTML, CSS, and JavaScript. It pairs a profile header showing name, role, stage pill, and star rating with tabbed sections for resume, scorecard, activity, and notes. Interview criteria sliders feed a live average back into the overall rating, while a sticky action bar advances, rejects, or schedules the candidate with toast confirmations and a self-updating activity feed.
MCP
Code
:root {
--brand: #2563eb;
--brand-d: #1d4ed8;
--brand-50: #eaf1ff;
--ink: #0f172a;
--ink-2: #475569;
--muted: #64748b;
--bg: #f6f8fb;
--surface: #ffffff;
--line: rgba(15, 23, 42, 0.1);
--line-2: rgba(15, 23, 42, 0.18);
--ok: #16a34a;
--warn: #d97706;
--danger: #dc2626;
--new: #2563eb;
--r-sm: 8px;
--r-md: 14px;
--r-lg: 20px;
--sh-1: 0 1px 2px rgba(15, 23, 42, 0.06);
--sh-2: 0 6px 20px rgba(15, 23, 42, 0.08);
--sh-3: 0 12px 36px rgba(15, 23, 42, 0.12);
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
}
body {
font-family: "Inter", system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--ink);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.sr-only {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.shell {
max-width: 980px;
margin: 0 auto;
padding: 0 16px 120px;
min-height: 100vh;
}
/* Top bar */
.topbar {
position: sticky;
top: 0;
z-index: 20;
display: flex;
align-items: center;
gap: 16px;
padding: 14px 4px;
background: rgba(246, 248, 251, 0.86);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--line);
}
.brand {
display: flex;
align-items: center;
gap: 8px;
font-weight: 800;
}
.brand-mark { color: var(--brand); font-size: 18px; }
.brand-name { font-size: 15px; letter-spacing: -0.01em; }
.crumbs {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--muted);
overflow: hidden;
white-space: nowrap;
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
width: 34px; height: 34px;
border: 1px solid var(--line);
background: var(--surface);
border-radius: var(--r-sm);
color: var(--ink-2);
font-size: 18px;
cursor: pointer;
display: grid;
place-items: center;
transition: background .15s, border-color .15s, transform .1s;
}
.icon-btn:hover { background: var(--brand-50); border-color: var(--line-2); color: var(--brand-d); }
.icon-btn:active { transform: scale(.94); }
/* Layout */
.layout { padding-top: 22px; }
/* Profile header */
.profile {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-lg);
box-shadow: var(--sh-2);
padding: 22px;
display: flex;
gap: 18px;
align-items: flex-start;
flex-wrap: wrap;
}
.profile-main { display: flex; gap: 18px; flex: 1 1 320px; }
.avatar {
width: 64px; height: 64px;
border-radius: 18px;
background: linear-gradient(135deg, var(--brand), #6366f1);
color: #fff;
display: grid;
place-items: center;
font-weight: 800;
font-size: 22px;
letter-spacing: 0.02em;
flex-shrink: 0;
box-shadow: var(--sh-1);
}
.name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile h1 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.role { margin: 4px 0 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.meta-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 12.5px;
font-weight: 600;
color: var(--ink-2);
background: #f1f5f9;
border: 1px solid var(--line);
padding: 5px 10px;
border-radius: 999px;
}
.chip-ico { font-size: 12px; }
.chip-remote { color: var(--ok); background: #ecfdf3; border-color: rgba(22, 163, 74, 0.2); }
.pill {
display: inline-flex;
align-items: center;
font-size: 12px;
font-weight: 700;
padding: 4px 11px;
border-radius: 999px;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.pill-stage[data-stage="applied"] { background: #f1f5f9; color: var(--ink-2); }
.pill-stage[data-stage="interview"] { background: var(--brand-50); color: var(--brand-d); }
.pill-stage[data-stage="offer"] { background: #ecfdf3; color: var(--ok); }
.pill-stage[data-stage="rejected"] { background: #fef2f2; color: var(--danger); }
.profile-side { flex: 0 0 auto; }
.rating-block {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 4px;
text-align: right;
}
.rating-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.stars { font-size: 19px; letter-spacing: 1px; color: var(--line-2); }
.star.on { color: var(--warn); }
.rating-num { font-size: 12.5px; color: var(--muted); }
.rating-num strong { color: var(--ink); }
/* Tabs */
.tabs-wrap { margin: 22px 0 16px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; overflow-x: auto; }
.tab {
appearance: none;
border: none;
background: none;
font: inherit;
font-weight: 600;
font-size: 14px;
color: var(--muted);
padding: 10px 14px;
cursor: pointer;
position: relative;
border-radius: var(--r-sm) var(--r-sm) 0 0;
white-space: nowrap;
transition: color .15s, background .15s;
}
.tab:hover { color: var(--ink); background: rgba(15, 23, 42, 0.03); }
.tab.is-active { color: var(--brand-d); }
.tab.is-active::after {
content: "";
position: absolute;
left: 10px; right: 10px; bottom: -1px;
height: 2.5px;
background: var(--brand);
border-radius: 3px;
}
.tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Panels & cards */
.panel { display: none; animation: fade .22s ease; }
.panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-md);
box-shadow: var(--sh-1);
padding: 18px;
margin-bottom: 14px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.prose { margin: 0; color: var(--ink-2); font-size: 14px; }
.prose.muted { color: var(--muted); margin-bottom: 14px; }
.muted { color: var(--muted); }
/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.timeline li { display: flex; gap: 12px; }
.tl-logo {
width: 38px; height: 38px;
border-radius: 10px;
background: #f1f5f9;
border: 1px solid var(--line);
display: grid;
place-items: center;
font-weight: 700;
font-size: 12px;
color: var(--ink-2);
flex-shrink: 0;
}
.tl-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl-head strong { font-size: 14.5px; }
.tl-date { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tl-co { font-size: 13px; color: var(--brand-d); font-weight: 600; display: block; margin: 2px 0 4px; }
.tl-body p { margin: 0; font-size: 13px; color: var(--ink-2); }
/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
font-size: 12.5px;
font-weight: 600;
color: var(--brand-d);
background: var(--brand-50);
border: 1px solid rgba(37, 99, 235, 0.16);
padding: 5px 11px;
border-radius: 999px;
}
/* Scorecard */
.score-summary { font-size: 13px; color: var(--muted); }
.score-summary strong { color: var(--ink); font-size: 15px; }
.criteria { display: flex; flex-direction: column; gap: 18px; margin: 6px 0 22px; }
.crit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.crit-head label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.crit-val {
font-size: 13px;
font-weight: 700;
color: var(--brand-d);
background: var(--brand-50);
border-radius: var(--r-sm);
min-width: 26px;
text-align: center;
padding: 1px 7px;
}
input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 6px;
border-radius: 999px;
background: linear-gradient(var(--brand), var(--brand)) no-repeat,
#e2e8f0;
background-size: 75% 100%;
cursor: pointer;
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px; height: 20px;
border-radius: 50%;
background: var(--surface);
border: 2px solid var(--brand);
box-shadow: var(--sh-2);
transition: transform .1s;
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
width: 18px; height: 18px;
border-radius: 50%;
background: var(--surface);
border: 2px solid var(--brand);
box-shadow: var(--sh-2);
}
input[type="range"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
/* Recommendation segmented control */
.recommend { margin-bottom: 20px; }
.recommend-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.seg {
display: inline-flex;
background: #f1f5f9;
border: 1px solid var(--line);
border-radius: var(--r-sm);
padding: 3px;
gap: 2px;
flex-wrap: wrap;
}
.seg-btn {
appearance: none;
border: none;
background: none;
font: inherit;
font-weight: 600;
font-size: 13px;
color: var(--ink-2);
padding: 7px 13px;
border-radius: 6px;
cursor: pointer;
transition: background .15s, color .15s, box-shadow .15s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-on { background: var(--surface); color: var(--brand-d); box-shadow: var(--sh-1); }
.seg-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Activity */
.activity { list-style: none; margin: 0; padding: 0; position: relative; }
.activity::before {
content: "";
position: absolute;
left: 6px; top: 8px; bottom: 8px;
width: 2px;
background: var(--line);
}
.act { display: flex; gap: 14px; padding: 8px 0; position: relative; }
.act-dot {
width: 14px; height: 14px;
border-radius: 50%;
background: var(--surface);
border: 3px solid var(--line-2);
flex-shrink: 0;
margin-top: 3px;
z-index: 1;
}
.act-interview .act-dot { border-color: var(--brand); }
.act-body { font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; }
.act-body strong { color: var(--ink); }
.act-time { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* Notes */
.notes { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.note {
background: #f8fafc;
border: 1px solid var(--line);
border-radius: var(--r-sm);
padding: 12px 14px;
}
.note-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.note-head strong { font-size: 13.5px; }
.note-time { font-size: 12px; color: var(--muted); }
.note p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.note.is-fresh { animation: pop .3s ease; border-color: rgba(37, 99, 235, 0.3); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.note-form { display: flex; flex-direction: column; gap: 10px; }
.note-form textarea {
width: 100%;
resize: vertical;
font: inherit;
font-size: 14px;
padding: 11px 13px;
border: 1px solid var(--line-2);
border-radius: var(--r-sm);
color: var(--ink);
background: var(--surface);
}
.note-form textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.note-form .btn { align-self: flex-start; }
/* Buttons */
.btn {
appearance: none;
border: 1px solid transparent;
font: inherit;
font-weight: 600;
font-size: 14px;
padding: 10px 16px;
border-radius: var(--r-sm);
cursor: pointer;
transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--brand-d); box-shadow: var(--sh-2); }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { background: #f1f5f9; color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: rgba(220, 38, 38, 0.3); }
.btn-danger:hover { background: #fef2f2; border-color: var(--danger); }
/* Action bar */
.action-bar {
position: fixed;
left: 0; right: 0; bottom: 0;
z-index: 30;
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-top: 1px solid var(--line);
box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
}
.action-bar .action-spacer { flex: 1; }
.action-bar > .btn { white-space: nowrap; }
.action-bar-inner { max-width: 980px; margin: 0 auto; }
/* Toasts */
.toast-host {
position: fixed;
bottom: 78px;
left: 50%;
transform: translateX(-50%);
z-index: 50;
display: flex;
flex-direction: column;
gap: 8px;
width: max-content;
max-width: calc(100vw - 32px);
}
.toast {
background: var(--ink);
color: #fff;
font-size: 13.5px;
font-weight: 600;
padding: 11px 16px;
border-radius: var(--r-sm);
box-shadow: var(--sh-3);
display: flex;
align-items: center;
gap: 9px;
animation: toastIn .25s ease;
}
.toast.is-out { animation: toastOut .3s ease forwards; }
.toast::before { content: "✓"; font-weight: 800; }
.toast.t-danger { background: var(--danger); }
.toast.t-danger::before { content: "✕"; }
.toast.t-warn { background: var(--warn); }
.toast.t-warn::before { content: "!"; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
/* Responsive */
@media (max-width: 520px) {
.shell { padding: 0 12px 130px; }
.crumbs { display: none; }
.profile { padding: 16px; }
.profile-main { flex: 1 1 100%; }
.profile-side { width: 100%; }
.rating-block { align-items: flex-start; text-align: left; }
.avatar { width: 52px; height: 52px; font-size: 18px; border-radius: 14px; }
.profile h1 { font-size: 19px; }
.action-bar { flex-wrap: wrap; padding: 10px 12px; }
.action-bar .action-spacer { display: none; }
.action-bar > .btn { flex: 1 1 auto; text-align: center; }
#btnSchedule { flex-basis: 100%; }
.toast-host { bottom: 110px; }
}(function () {
"use strict";
/* ---------- Toast helper ---------- */
var toastHost = document.getElementById("toastHost");
function toast(msg, kind) {
var el = document.createElement("div");
el.className = "toast" + (kind ? " t-" + kind : "");
el.textContent = msg;
toastHost.appendChild(el);
setTimeout(function () {
el.classList.add("is-out");
setTimeout(function () { el.remove(); }, 300);
}, 2600);
}
/* ---------- Tabs ---------- */
var tabs = Array.prototype.slice.call(document.querySelectorAll(".tab"));
var panels = {
resume: document.getElementById("panel-resume"),
scorecard: document.getElementById("panel-scorecard"),
activity: document.getElementById("panel-activity"),
notes: document.getElementById("panel-notes")
};
function activateTab(name) {
tabs.forEach(function (t) {
var on = t.dataset.tab === name;
t.classList.toggle("is-active", on);
t.setAttribute("aria-selected", on ? "true" : "false");
});
Object.keys(panels).forEach(function (key) {
var p = panels[key];
var on = key === name;
p.classList.toggle("is-active", on);
if (on) { p.removeAttribute("hidden"); } else { p.setAttribute("hidden", ""); }
});
}
tabs.forEach(function (t, i) {
t.addEventListener("click", function () { activateTab(t.dataset.tab); });
t.addEventListener("keydown", function (e) {
if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
e.preventDefault();
var dir = e.key === "ArrowRight" ? 1 : -1;
var next = (i + dir + tabs.length) % tabs.length;
tabs[next].focus();
activateTab(tabs[next].dataset.tab);
}
});
});
/* ---------- Scorecard sliders ---------- */
var ranges = Array.prototype.slice.call(document.querySelectorAll('.criteria input[type="range"]'));
var avgEl = document.getElementById("avgScore");
function paintRange(input) {
var pct = ((input.value - input.min) / (input.max - input.min)) * 100;
input.style.backgroundSize = pct + "% 100%";
var out = document.getElementById("v-" + input.id.replace("c-", ""));
if (out) out.textContent = input.value;
}
function recalcAvg() {
var sum = ranges.reduce(function (a, r) { return a + Number(r.value); }, 0);
var avg = ranges.length ? sum / ranges.length : 0;
avgEl.textContent = avg.toFixed(1);
// Reflect into the profile overall rating
var overallNum = document.getElementById("overallNum");
var stars = document.querySelectorAll("#overallStars .star");
overallNum.textContent = avg.toFixed(1);
var rounded = Math.round(avg);
stars.forEach(function (s, idx) { s.classList.toggle("on", idx < rounded); });
document.getElementById("overallStars").setAttribute(
"aria-label", "Rated " + avg.toFixed(1) + " of 5"
);
}
ranges.forEach(function (r) {
paintRange(r);
r.addEventListener("input", function () {
paintRange(r);
recalcAvg();
});
});
recalcAvg();
/* ---------- Recommendation segmented control ---------- */
var segBtns = Array.prototype.slice.call(document.querySelectorAll(".seg-btn"));
segBtns.forEach(function (b) {
b.addEventListener("click", function () {
segBtns.forEach(function (x) {
x.classList.remove("is-on");
x.setAttribute("aria-checked", "false");
});
b.classList.add("is-on");
b.setAttribute("aria-checked", "true");
});
});
document.getElementById("saveScore").addEventListener("click", function () {
var rec = document.querySelector(".seg-btn.is-on");
toast("Scorecard saved — avg " + avgEl.textContent + "/5 (" + (rec ? rec.textContent : "—") + ")");
});
/* ---------- Notes ---------- */
var noteForm = document.getElementById("noteForm");
var noteInput = document.getElementById("noteInput");
var notesList = document.getElementById("notesList");
noteForm.addEventListener("submit", function (e) {
e.preventDefault();
var text = noteInput.value.trim();
if (!text) {
toast("Note is empty", "warn");
noteInput.focus();
return;
}
var li = document.createElement("li");
li.className = "note is-fresh";
var time = new Date().toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
var head = document.createElement("div");
head.className = "note-head";
var who = document.createElement("strong");
who.textContent = "You";
var when = document.createElement("span");
when.className = "note-time";
when.textContent = "Just now · " + time;
head.appendChild(who);
head.appendChild(when);
var p = document.createElement("p");
p.textContent = text;
li.appendChild(head);
li.appendChild(p);
notesList.appendChild(li);
noteInput.value = "";
toast("Note posted to the team");
});
/* ---------- Stage actions ---------- */
var stagePill = document.getElementById("stagePill");
var advanceBtn = document.getElementById("btnAdvance");
function setStage(stage, label) {
stagePill.dataset.stage = stage;
stagePill.textContent = label;
}
function logActivity(text, fresh) {
var list = document.getElementById("activityList");
var li = document.createElement("li");
li.className = "act" + (fresh ? " act-interview" : "");
var dot = document.createElement("span");
dot.className = "act-dot";
dot.setAttribute("aria-hidden", "true");
var body = document.createElement("div");
body.className = "act-body";
var strong = document.createElement("strong");
strong.textContent = text;
var time = document.createElement("span");
time.className = "act-time";
time.textContent = "Just now · " + new Date().toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
body.appendChild(strong);
body.appendChild(document.createTextNode(" by You"));
body.appendChild(time);
li.appendChild(dot);
li.appendChild(body);
list.insertBefore(li, list.firstChild);
}
advanceBtn.addEventListener("click", function () {
var stage = stagePill.dataset.stage;
if (stage === "interview") {
setStage("offer", "Offer");
advanceBtn.textContent = "Mark as Hired →";
logActivity("Advanced to Offer", true);
toast("Maya advanced to Offer");
} else if (stage === "offer") {
setStage("offer", "Hired");
advanceBtn.disabled = true;
advanceBtn.textContent = "Hired ✓";
advanceBtn.style.opacity = ".7";
logActivity("Marked as Hired", true);
toast("Offer accepted — candidate hired");
} else {
setStage("interview", "Interview");
toast("Moved back to Interview");
}
});
document.getElementById("btnReject").addEventListener("click", function () {
if (stagePill.dataset.stage === "rejected") {
toast("Candidate already rejected", "warn");
return;
}
setStage("rejected", "Rejected");
advanceBtn.disabled = true;
advanceBtn.style.opacity = ".5";
logActivity("Rejected", false);
toast("Maya moved to Rejected", "danger");
});
document.getElementById("btnSchedule").addEventListener("click", function () {
activateTab("activity");
toast("Interview invite drafted — opening calendar");
});
/* ---------- Prev / Next (demo) ---------- */
document.getElementById("prevCand").addEventListener("click", function () {
toast("No earlier candidate in this stage", "warn");
});
document.getElementById("nextCand").addEventListener("click", function () {
toast("Next: Dario Velasco — Interview", undefined);
});
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Candidate Detail — TalentDesk</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>
<div class="shell">
<!-- Top bar -->
<header class="topbar" aria-label="Application bar">
<div class="brand">
<span class="brand-mark" aria-hidden="true">◆</span>
<span class="brand-name">TalentDesk</span>
</div>
<nav class="crumbs" aria-label="Breadcrumb">
<a href="#">Pipelines</a>
<span aria-hidden="true">/</span>
<a href="#">Senior Product Designer</a>
<span aria-hidden="true">/</span>
<span aria-current="page">Maya Okonkwo</span>
</nav>
<div class="topbar-actions">
<button class="icon-btn" type="button" id="prevCand" aria-label="Previous candidate" title="Previous candidate">‹</button>
<button class="icon-btn" type="button" id="nextCand" aria-label="Next candidate" title="Next candidate">›</button>
</div>
</header>
<main class="layout">
<!-- Profile header -->
<section class="profile" aria-label="Candidate profile">
<div class="profile-main">
<div class="avatar" aria-hidden="true">MO</div>
<div class="profile-id">
<div class="name-row">
<h1 id="candName">Maya Okonkwo</h1>
<span class="pill pill-stage" id="stagePill" data-stage="interview">Interview</span>
</div>
<p class="role">Senior Product Designer · 7 yrs experience</p>
<ul class="meta-chips" aria-label="Candidate details">
<li class="chip"><span class="chip-ico" aria-hidden="true">📍</span> Lisbon, PT</li>
<li class="chip chip-remote">Remote OK</li>
<li class="chip"><span class="chip-ico" aria-hidden="true">€</span> 78k–92k expected</li>
<li class="chip"><span class="chip-ico" aria-hidden="true">🔗</span> Referred by J. Adeyemi</li>
</ul>
</div>
</div>
<div class="profile-side">
<div class="rating-block" aria-label="Overall rating">
<span class="rating-label">Overall</span>
<div class="stars" id="overallStars" role="img" aria-label="Rated 4 of 5">
<span class="star on">★</span><span class="star on">★</span><span class="star on">★</span><span class="star on">★</span><span class="star">★</span>
</div>
<span class="rating-num"><strong id="overallNum">4.0</strong> / 5 · 3 reviews</span>
</div>
</div>
</section>
<!-- Tabs -->
<div class="tabs-wrap">
<div class="tabs" role="tablist" aria-label="Candidate sections">
<button class="tab is-active" role="tab" aria-selected="true" id="tab-resume" data-tab="resume">Résumé</button>
<button class="tab" role="tab" aria-selected="false" id="tab-scorecard" data-tab="scorecard">Scorecard</button>
<button class="tab" role="tab" aria-selected="false" id="tab-activity" data-tab="activity">Activity</button>
<button class="tab" role="tab" aria-selected="false" id="tab-notes" data-tab="notes">Notes</button>
</div>
</div>
<!-- Panels -->
<div class="panels">
<!-- Résumé -->
<section class="panel is-active" id="panel-resume" role="tabpanel" aria-labelledby="tab-resume">
<div class="card">
<h2 class="card-title">Summary</h2>
<p class="prose">Product designer specialising in B2B SaaS and complex data tooling. Led the redesign of a fintech dashboard used by 40k daily operators, lifting task completion by 23%. Strong systems thinker, comfortable owning research through shipped UI.</p>
</div>
<div class="card">
<h2 class="card-title">Experience</h2>
<ol class="timeline">
<li>
<div class="tl-logo" aria-hidden="true">NV</div>
<div class="tl-body">
<div class="tl-head">
<strong>Lead Product Designer</strong>
<span class="tl-date">2021 — Present</span>
</div>
<span class="tl-co">Novaledger · Lisbon</span>
<p>Owns the design system and core ledger experience for a 12-person product squad.</p>
</div>
</li>
<li>
<div class="tl-logo" aria-hidden="true">FX</div>
<div class="tl-body">
<div class="tl-head">
<strong>Product Designer</strong>
<span class="tl-date">2018 — 2021</span>
</div>
<span class="tl-co">Fluxio · Remote</span>
<p>Shipped onboarding and billing flows for a payments API platform.</p>
</div>
</li>
<li>
<div class="tl-logo" aria-hidden="true">BH</div>
<div class="tl-body">
<div class="tl-head">
<strong>UX Designer</strong>
<span class="tl-date">2016 — 2018</span>
</div>
<span class="tl-co">Brightharbor · Porto</span>
<p>Designed mobile-first booking experiences for travel clients.</p>
</div>
</li>
</ol>
</div>
<div class="card">
<h2 class="card-title">Skills</h2>
<div class="tags">
<span class="tag">Design Systems</span>
<span class="tag">User Research</span>
<span class="tag">Figma</span>
<span class="tag">Prototyping</span>
<span class="tag">Data Viz</span>
<span class="tag">Accessibility</span>
<span class="tag">Front-end (HTML/CSS)</span>
</div>
</div>
</section>
<!-- Scorecard -->
<section class="panel" id="panel-scorecard" role="tabpanel" aria-labelledby="tab-scorecard" hidden>
<div class="card">
<div class="card-head">
<h2 class="card-title">Interview Scorecard</h2>
<span class="score-summary">Avg <strong id="avgScore">—</strong> / 5</span>
</div>
<p class="prose muted">Rate each criterion from your interview. Scores aggregate into the overall rating.</p>
<div class="criteria" id="criteria">
<div class="criterion" data-crit="craft">
<div class="crit-head">
<label for="c-craft">Craft & visual quality</label>
<output class="crit-val" id="v-craft">4</output>
</div>
<input type="range" id="c-craft" min="1" max="5" step="1" value="4" aria-label="Craft and visual quality rating" />
</div>
<div class="criterion" data-crit="systems">
<div class="crit-head">
<label for="c-systems">Systems thinking</label>
<output class="crit-val" id="v-systems">5</output>
</div>
<input type="range" id="c-systems" min="1" max="5" step="1" value="5" aria-label="Systems thinking rating" />
</div>
<div class="criterion" data-crit="comms">
<div class="crit-head">
<label for="c-comms">Communication</label>
<output class="crit-val" id="v-comms">4</output>
</div>
<input type="range" id="c-comms" min="1" max="5" step="1" value="4" aria-label="Communication rating" />
</div>
<div class="criterion" data-crit="collab">
<div class="crit-head">
<label for="c-collab">Collaboration</label>
<output class="crit-val" id="v-collab">3</output>
</div>
<input type="range" id="c-collab" min="1" max="5" step="1" value="3" aria-label="Collaboration rating" />
</div>
</div>
<div class="recommend">
<span class="recommend-label">Recommendation</span>
<div class="seg" role="radiogroup" aria-label="Hiring recommendation">
<button class="seg-btn" type="button" role="radio" aria-checked="false" data-rec="no">No hire</button>
<button class="seg-btn" type="button" role="radio" aria-checked="false" data-rec="lean-no">Lean no</button>
<button class="seg-btn is-on" type="button" role="radio" aria-checked="true" data-rec="lean-yes">Lean yes</button>
<button class="seg-btn" type="button" role="radio" aria-checked="false" data-rec="yes">Strong yes</button>
</div>
</div>
<button class="btn btn-primary" type="button" id="saveScore">Save scorecard</button>
</div>
</section>
<!-- Activity -->
<section class="panel" id="panel-activity" role="tabpanel" aria-labelledby="tab-activity" hidden>
<div class="card">
<h2 class="card-title">Activity timeline</h2>
<ul class="activity" id="activityList">
<li class="act act-interview">
<span class="act-dot" aria-hidden="true"></span>
<div class="act-body"><strong>Moved to Interview</strong> by Priya Nair<span class="act-time">Today · 09:14</span></div>
</li>
<li class="act">
<span class="act-dot" aria-hidden="true"></span>
<div class="act-body"><strong>Phone screen completed</strong> — 30 min with R. Costa<span class="act-time">Yesterday · 15:40</span></div>
</li>
<li class="act">
<span class="act-dot" aria-hidden="true"></span>
<div class="act-body"><strong>Application reviewed</strong> by Priya Nair<span class="act-time">Mon · 11:02</span></div>
</li>
<li class="act">
<span class="act-dot" aria-hidden="true"></span>
<div class="act-body"><strong>Applied</strong> via referral link<span class="act-time">Last week · 18:25</span></div>
</li>
</ul>
</div>
</section>
<!-- Notes -->
<section class="panel" id="panel-notes" role="tabpanel" aria-labelledby="tab-notes" hidden>
<div class="card">
<h2 class="card-title">Private notes</h2>
<p class="prose muted">Visible to the hiring team only.</p>
<ul class="notes" id="notesList">
<li class="note">
<div class="note-head"><strong>Priya Nair</strong><span class="note-time">Today · 09:20</span></div>
<p>Portfolio is exceptionally strong on systems work. Push on stakeholder conflict in the loop.</p>
</li>
<li class="note">
<div class="note-head"><strong>Rui Costa</strong><span class="note-time">Yesterday · 16:05</span></div>
<p>Great phone screen. Clear communicator, asked sharp questions about the product roadmap.</p>
</li>
</ul>
<form class="note-form" id="noteForm">
<label class="sr-only" for="noteInput">Add a note</label>
<textarea id="noteInput" rows="2" placeholder="Add a note for the team…"></textarea>
<button class="btn btn-primary" type="submit">Post note</button>
</form>
</div>
</section>
</div>
</main>
<!-- Action bar -->
<footer class="action-bar" aria-label="Candidate actions">
<button class="btn btn-ghost" type="button" id="btnSchedule">📅 Schedule</button>
<div class="action-spacer"></div>
<button class="btn btn-danger" type="button" id="btnReject">Reject</button>
<button class="btn btn-primary" type="button" id="btnAdvance">Advance to Offer →</button>
</footer>
</div>
<div class="toast-host" id="toastHost" aria-live="polite" aria-atomic="true"></div>
<script src="script.js"></script>
</body>
</html>Candidate Detail
A focused recruiter view for a single applicant inside an applicant tracking system. The profile header anchors everything: avatar, name, current pipeline stage, expected salary and location chips, a remote badge, and an overall star rating. Below it, four keyboard-navigable tabs split the dossier into Résumé, Scorecard, Activity, and Notes so reviewers can scan without scrolling past noise.
The Scorecard tab is the interactive heart. Each evaluation criterion — craft, systems thinking, communication, collaboration — has a slider whose value paints a fill track and updates a live badge. The running average recomputes instantly and writes straight back into the profile’s overall star rating, and a segmented control captures the hire recommendation from “No hire” through “Strong yes”.
The sticky action bar advances the candidate to Offer (then Hired), rejects them, or drafts an interview invite — every action fires a toast and prepends a fresh entry to the Activity timeline. Notes can be posted to the team inline, and prev/next controls hint at moving through the pipeline. Everything runs on a single small vanilla script with no dependencies.
Illustrative UI only — fictional jobs & companies, not a real hiring platform.