Real Estate — Agent Dashboard
An editorial real-estate agent dashboard with animated KPI cards for active listings, new leads, pending deals, and monthly GCI, plus a leads pipeline summary, a filterable list of active listings showing status and view counts, a today's follow-ups checklist, and a recent-activity feed. A serif-led, brass-accented sidebar layout simulates premium listing photography with CSS gradients. Built with plain HTML, CSS, and vanilla JavaScript — no frameworks, no build step, fully responsive.
MCP
Codice
:root {
--ivory: #f7f4ec;
--paper: #fffdf8;
--white: #ffffff;
--green: #1f3d34;
--green-d: #16302a;
--green-700: #26493e;
--green-50: #e8efea;
--brass: #b08d57;
--brass-d: #94733f;
--brass-50: #f3ead9;
--ink: #1c2a25;
--ink-2: #33433d;
--muted: #6b7a72;
--line: rgba(31, 61, 52, 0.12);
--line-2: rgba(31, 61, 52, 0.22);
--ok: #2f9e6f;
--warn: #c98a2b;
--danger: #c4503e;
--r-sm: 8px;
--r-md: 14px;
--r-lg: 22px;
--sh-1: 0 1px 2px rgba(28, 42, 37, 0.05), 0 1px 1px rgba(28, 42, 37, 0.04);
--sh-2: 0 6px 18px rgba(28, 42, 37, 0.08), 0 2px 5px rgba(28, 42, 37, 0.05);
--sh-3: 0 18px 48px rgba(22, 48, 42, 0.16), 0 6px 14px rgba(22, 48, 42, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
font-family: "Inter", system-ui, sans-serif;
background: var(--ivory);
color: var(--ink);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 {
font-family: "Cormorant Garamond", Georgia, serif;
margin: 0;
letter-spacing: 0.2px;
}
/* ============ LAYOUT ============ */
.shell {
display: grid;
grid-template-columns: 260px 1fr;
min-height: 100vh;
}
/* ============ SIDEBAR ============ */
.sidebar {
background: var(--green);
color: #e9efe9;
padding: 26px 18px;
display: flex;
flex-direction: column;
gap: 26px;
position: sticky;
top: 0;
height: 100vh;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
padding: 4px 6px 18px;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-mark {
width: 42px;
height: 42px;
flex: 0 0 42px;
border-radius: 12px;
display: grid;
place-items: center;
font-family: "Cormorant Garamond", serif;
font-weight: 700;
font-size: 15px;
color: var(--green-d);
background: linear-gradient(145deg, #d8b67f, var(--brass));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name strong { font-size: 16px; letter-spacing: 0.3px; }
.brand-name small { font-size: 11px; color: rgba(233, 239, 233, 0.6); text-transform: uppercase; letter-spacing: 1.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-radius: var(--r-sm);
color: rgba(233, 239, 233, 0.78);
text-decoration: none;
font-size: 14px;
font-weight: 500;
transition: background 0.18s, color 0.18s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-item:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.nav-item.is-active {
background: var(--green-700);
color: #fff;
box-shadow: inset 3px 0 0 var(--brass);
}
.nav-ico { width: 18px; text-align: center; opacity: 0.85; font-size: 14px; }
.agent-card {
margin-top: auto;
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
border-radius: var(--r-md);
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.agent-avatar {
width: 40px; height: 40px; flex: 0 0 40px;
border-radius: 50%;
display: grid; place-items: center;
font-weight: 600; font-size: 14px;
color: var(--green-d);
background: linear-gradient(145deg, var(--brass-50), var(--brass));
}
.agent-meta { display: flex; flex-direction: column; line-height: 1.25; }
.agent-meta strong { font-size: 13.5px; color: #fff; }
.agent-meta small { font-size: 11px; color: rgba(233, 239, 233, 0.6); }
/* ============ MAIN ============ */
.main { padding: 34px 40px 56px; max-width: 1320px; }
.topbar {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 24px;
margin-bottom: 30px;
flex-wrap: wrap;
}
.eyebrow {
margin: 0 0 4px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--brass-d);
font-weight: 600;
}
.page-title { font-size: 34px; font-weight: 600; color: var(--ink); }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.search {
display: flex; align-items: center; gap: 8px;
background: var(--white);
border: 1px solid var(--line);
border-radius: 999px;
padding: 9px 16px;
box-shadow: var(--sh-1);
transition: border-color 0.18s, box-shadow 0.18s;
}
.search:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-50); }
.search-ico { color: var(--muted); font-size: 15px; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; width: 200px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.btn {
font: inherit; font-weight: 600; font-size: 14px;
border: 1px solid transparent; border-radius: var(--r-sm);
padding: 10px 18px; cursor: pointer;
transition: transform 0.12s, box-shadow 0.18s, background 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn-primary {
background: linear-gradient(180deg, var(--green-700), var(--green));
color: #fff;
box-shadow: var(--sh-2);
}
.btn-primary:hover { box-shadow: var(--sh-3); }
/* ============ KPIs ============ */
.kpis {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 18px;
margin-bottom: 24px;
}
.kpi {
background: var(--paper);
border: 1px solid var(--line);
border-radius: var(--r-lg);
padding: 20px 22px;
box-shadow: var(--sh-1);
position: relative;
overflow: hidden;
transition: transform 0.18s, box-shadow 0.18s;
}
.kpi::before {
content: "";
position: absolute; left: 22px; top: 0;
width: 34px; height: 3px;
background: linear-gradient(90deg, var(--brass), transparent);
border-radius: 0 0 4px 4px;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.kpi-label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; }
.kpi-value {
margin: 8px 0 6px;
font-family: "Cormorant Garamond", Georgia, serif;
font-size: 40px; font-weight: 700; line-height: 1;
color: var(--green);
font-variant-numeric: tabular-nums;
}
.kpi-delta { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.kpi-delta.up { color: var(--ok); }
.kpi-delta.flat { color: var(--muted); }
.kpi-feature {
background: linear-gradient(160deg, var(--green), var(--green-d));
border-color: var(--green-d);
}
.kpi-feature::before { background: linear-gradient(90deg, #e0c08a, transparent); }
.kpi-feature .kpi-label { color: rgba(243, 234, 217, 0.7); }
.kpi-feature .kpi-value { color: #f3ead9; }
.kpi-feature .kpi-delta.up { color: #8fdcb6; }
/* ============ GRID ============ */
.grid {
display: grid;
grid-template-columns: 1.55fr 1fr;
gap: 22px;
align-items: start;
}
.rail { display: flex; flex-direction: column; gap: 22px; }
.panel {
background: var(--paper);
border: 1px solid var(--line);
border-radius: var(--r-lg);
padding: 20px 22px 22px;
box-shadow: var(--sh-1);
}
.panel-head {
display: flex; align-items: center; justify-content: space-between;
gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.panel-title { font-size: 23px; font-weight: 600; color: var(--ink); }
.muted-link { font-size: 12.5px; color: var(--muted); font-weight: 500; }
/* ====== filters / chips ====== */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
font: inherit; font-size: 12.5px; font-weight: 600;
border: 1px solid var(--line-2);
background: var(--white); color: var(--ink-2);
border-radius: 999px; padding: 5px 13px; cursor: pointer;
transition: all 0.16s;
}
.chip:hover { border-color: var(--brass); color: var(--brass-d); }
.chip:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.chip.is-on { background: var(--green); color: #fff; border-color: var(--green); }
/* ====== listings ====== */
.listings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.listing {
display: grid;
grid-template-columns: 96px 1fr auto;
gap: 16px;
align-items: center;
padding: 12px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--white);
transition: transform 0.16s, box-shadow 0.18s, border-color 0.18s;
}
.listing:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.photo {
position: relative;
display: block;
width: 96px; height: 72px;
border-radius: var(--r-sm);
overflow: hidden;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.photo-tag {
position: absolute; left: 6px; bottom: 6px;
font-size: 9.5px; font-weight: 600; letter-spacing: 0.4px;
background: rgba(22, 48, 42, 0.78); color: #f3ead9;
padding: 2px 7px; border-radius: 999px;
backdrop-filter: blur(2px);
}
/* simulated property photography */
.photo-1 { background:
radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,0.35), transparent 50%),
linear-gradient(160deg, #c8a06a 0%, #8a5a3c 45%, #4a3324 100%); }
.photo-2 { background:
radial-gradient(110% 90% at 80% 0%, rgba(255,240,210,0.4), transparent 55%),
linear-gradient(150deg, #9fb4a0 0%, #5a7a63 55%, #2c4a3a 100%); }
.photo-3 { background:
radial-gradient(120% 70% at 30% 0%, rgba(180,210,235,0.5), transparent 55%),
linear-gradient(165deg, #d9c8a8 0%, #b08d57 40%, #6c5a3e 100%); }
.photo-4 { background:
radial-gradient(100% 80% at 70% 20%, rgba(255,255,255,0.28), transparent 50%),
linear-gradient(155deg, #b59c84 0%, #7a5f4a 50%, #3a2c22 100%); }
.photo-5 { background:
radial-gradient(120% 90% at 25% 5%, rgba(210,230,240,0.5), transparent 55%),
linear-gradient(160deg, #a7bcc4 0%, #5f7e86 50%, #314a52 100%); }
.listing-body { min-width: 0; }
.listing-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.listing-addr { font-size: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price {
font-family: "Inter", sans-serif;
font-size: 14px; font-weight: 700; color: var(--green-700);
white-space: nowrap; font-variant-numeric: tabular-nums;
}
.listing-loc { margin: 1px 0 8px; font-size: 12.5px; color: var(--muted); }
.listing-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag {
font-size: 11.5px; font-weight: 500; color: var(--ink-2);
background: var(--green-50); border-radius: 6px; padding: 2px 8px;
}
.badge {
font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
padding: 2px 9px; border-radius: 999px; margin-left: 2px;
}
.status-active { background: rgba(47, 158, 111, 0.14); color: #1f7a53; }
.status-pending { background: rgba(201, 138, 43, 0.16); color: #9a6512; }
.status-new { background: rgba(176, 141, 87, 0.16); color: var(--brass-d); }
.listing-stat { text-align: center; padding-left: 6px; }
.listing-stat strong {
display: block; font-family: "Cormorant Garamond", serif;
font-size: 24px; font-weight: 700; color: var(--green); line-height: 1;
}
.listing-stat small { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.empty {
text-align: center; color: var(--muted); font-size: 14px;
padding: 26px 0; font-style: italic;
}
/* ====== pipeline ====== */
.pipeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.stage-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.stage-row strong { font-variant-numeric: tabular-nums; color: var(--green); }
.bar { height: 8px; background: var(--green-50); border-radius: 999px; overflow: hidden; }
.bar span {
display: block; height: 100%;
background: linear-gradient(90deg, var(--brass), var(--green-700));
border-radius: 999px;
transform-origin: left;
animation: grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* ====== tasks ====== */
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.task {
display: flex; align-items: center; justify-content: space-between; gap: 12px;
padding: 12px 0;
border-bottom: 1px solid var(--line);
}
.task:last-child { border-bottom: 0; padding-bottom: 0; }
.task:first-child { padding-top: 0; }
.check { display: flex; align-items: center; gap: 11px; cursor: pointer; min-width: 0; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.box {
width: 20px; height: 20px; flex: 0 0 20px;
border: 1.6px solid var(--line-2); border-radius: 6px;
display: grid; place-items: center;
transition: all 0.16s;
}
.box::after {
content: "✓"; font-size: 12px; font-weight: 700; color: #fff;
transform: scale(0); transition: transform 0.16s;
}
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box::after { transform: scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--brass); outline-offset: 2px; }
.task-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.task-text strong { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.task-text small { font-size: 11.5px; color: var(--muted); }
.task.is-done .task-text strong { text-decoration: line-through; color: var(--muted); }
.due {
font-size: 11px; font-weight: 600; color: var(--muted);
background: var(--ivory); padding: 3px 9px; border-radius: 999px;
white-space: nowrap;
}
.due-soon { color: var(--warn); background: rgba(201, 138, 43, 0.12); }
.task.is-done .due { color: var(--ok); background: rgba(47, 158, 111, 0.12); }
/* ====== activity feed ====== */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item {
display: flex; gap: 12px; padding: 11px 0;
border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-item:first-child { padding-top: 0; }
.dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; margin-top: 6px; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03); }
.dot-ok { background: var(--ok); }
.dot-brass { background: var(--brass); }
.dot-green { background: var(--green-700); }
.dot-warn { background: var(--warn); }
.feed-item p { margin: 0; font-size: 13px; color: var(--ink-2); }
.feed-item em { font-style: normal; font-weight: 600; color: var(--green-700); }
.feed-item time { font-size: 11px; color: var(--muted); }
/* ============ TOAST ============ */
.toast {
position: fixed; left: 50%; bottom: 28px;
transform: translate(-50%, 24px);
background: var(--green-d); color: #f3ead9;
font-size: 13.5px; font-weight: 500;
padding: 12px 20px; border-radius: 999px;
box-shadow: var(--sh-3);
opacity: 0; pointer-events: none;
transition: opacity 0.25s, transform 0.25s;
z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
.grid { grid-template-columns: 1fr; }
.kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
.shell { grid-template-columns: 1fr; }
.sidebar {
position: static; height: auto;
flex-direction: row; align-items: center; flex-wrap: wrap;
gap: 14px; padding: 16px 20px;
}
.brand { border-bottom: 0; padding: 0; flex: 1 1 auto; }
.nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
.nav-item.is-active { box-shadow: inset 0 -3px 0 var(--brass); }
.agent-card { margin-top: 0; }
.main { padding: 24px; }
}
@media (max-width: 520px) {
.main { padding: 18px 14px 40px; }
.page-title { font-size: 27px; }
.topbar { gap: 16px; }
.topbar-actions { width: 100%; }
.search { flex: 1; }
.search input { width: 100%; }
.kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { padding: 16px; border-radius: var(--r-md); }
.kpi-value { font-size: 32px; }
.listing { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; gap: 12px; }
.photo { width: 72px; height: 56px; }
.listing-stat {
grid-column: 2; grid-row: 2;
display: flex; align-items: baseline; gap: 6px; text-align: left; padding: 0;
}
.listing-stat strong { font-size: 18px; }
.nav { display: none; }
.agent-card { margin-left: auto; }
}(function () {
"use strict";
/* ---------- toast helper ---------- */
var toastEl = document.getElementById("toast");
var toastTimer;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("show");
}, 2400);
}
/* ---------- animated KPI counters ---------- */
function animateCount(el) {
var target = parseFloat(el.getAttribute("data-count")) || 0;
var prefix = el.getAttribute("data-prefix") || "";
var isMoney = el.getAttribute("data-money") === "1";
var duration = 1100;
var start = performance.now();
function fmt(n) {
if (isMoney) return prefix + Math.round(n).toLocaleString("en-US");
return prefix + Math.round(n).toLocaleString("en-US");
}
function frame(now) {
var p = Math.min((now - start) / duration, 1);
// easeOutExpo
var eased = p === 1 ? 1 : 1 - Math.pow(2, -10 * p);
el.textContent = fmt(target * eased);
if (p < 1) requestAnimationFrame(frame);
else el.textContent = fmt(target);
}
requestAnimationFrame(frame);
}
var kpiVals = document.querySelectorAll(".kpi-value");
if ("IntersectionObserver" in window) {
var io = new IntersectionObserver(
function (entries, obs) {
entries.forEach(function (e) {
if (e.isIntersecting) {
animateCount(e.target);
obs.unobserve(e.target);
}
});
},
{ threshold: 0.4 }
);
kpiVals.forEach(function (el) { io.observe(el); });
} else {
kpiVals.forEach(animateCount);
}
/* ---------- listing filters ---------- */
var chips = document.querySelectorAll(".chip");
var listings = document.querySelectorAll("#listings .listing");
var emptyState = document.getElementById("emptyState");
function applyFilter(filter) {
var shown = 0;
listings.forEach(function (li) {
var match = filter === "all" || li.getAttribute("data-status") === filter;
li.style.display = match ? "" : "none";
if (match) shown++;
});
if (emptyState) emptyState.hidden = shown !== 0;
}
chips.forEach(function (chip) {
chip.addEventListener("click", function () {
chips.forEach(function (c) {
c.classList.remove("is-on");
c.setAttribute("aria-selected", "false");
});
chip.classList.add("is-on");
chip.setAttribute("aria-selected", "true");
var f = chip.getAttribute("data-filter");
applyFilter(f);
toast(
f === "all"
? "Showing all listings"
: "Filtered to " + f + " listings"
);
});
});
/* ---------- tasks: toggle completion ---------- */
var taskList = document.getElementById("tasks");
var taskCountEl = document.getElementById("taskCount");
function syncTask(input) {
var li = input.closest(".task");
if (!li) return;
var due = li.querySelector(".due");
if (input.checked) {
li.classList.add("is-done");
if (due) {
if (due.getAttribute("data-orig") === null)
due.setAttribute("data-orig", due.textContent);
due.textContent = "Done";
}
} else {
li.classList.remove("is-done");
if (due && due.getAttribute("data-orig"))
due.textContent = due.getAttribute("data-orig");
}
}
function updateTaskCount() {
var inputs = taskList.querySelectorAll('input[type="checkbox"]');
var done = 0;
inputs.forEach(function (i) { if (i.checked) done++; });
if (taskCountEl) taskCountEl.textContent = done + "/" + inputs.length + " done";
}
if (taskList) {
// initialise data-orig + state
taskList.querySelectorAll(".task").forEach(function (li) {
var due = li.querySelector(".due");
var input = li.querySelector('input[type="checkbox"]');
if (due && due.getAttribute("data-orig") === null) {
due.setAttribute("data-orig", input && input.checked ? "Done" : due.textContent);
}
if (input && input.checked) li.classList.add("is-done");
});
taskList.addEventListener("change", function (e) {
var input = e.target;
if (input && input.type === "checkbox") {
syncTask(input);
updateTaskCount();
if (input.checked) {
var label = input.closest(".task").querySelector(".task-text strong");
toast("Completed: " + (label ? label.textContent : "task"));
}
}
});
updateTaskCount();
}
/* ---------- new listing button ---------- */
var newBtn = document.getElementById("newListingBtn");
if (newBtn) {
newBtn.addEventListener("click", function () {
toast("New listing draft started");
});
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Atelier & Vine — Agent Dashboard</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=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="shell">
<!-- ============ SIDEBAR ============ -->
<aside class="sidebar" aria-label="Primary navigation">
<div class="brand">
<span class="brand-mark" aria-hidden="true">A&V</span>
<span class="brand-name">
<strong>Atelier & Vine</strong>
<small>Estate Agency</small>
</span>
</div>
<nav class="nav" aria-label="Sections">
<a href="#" class="nav-item is-active" aria-current="page">
<span class="nav-ico" aria-hidden="true">◳</span> Dashboard
</a>
<a href="#" class="nav-item"><span class="nav-ico" aria-hidden="true">◉</span> Listings</a>
<a href="#" class="nav-item"><span class="nav-ico" aria-hidden="true">✦</span> Leads</a>
<a href="#" class="nav-item"><span class="nav-ico" aria-hidden="true">⬡</span> Deals</a>
<a href="#" class="nav-item"><span class="nav-ico" aria-hidden="true">✎</span> Tasks</a>
<a href="#" class="nav-item"><span class="nav-ico" aria-hidden="true">◷</span> Calendar</a>
<a href="#" class="nav-item"><span class="nav-ico" aria-hidden="true">⌗</span> Reports</a>
</nav>
<div class="agent-card">
<div class="agent-avatar" aria-hidden="true">EC</div>
<div class="agent-meta">
<strong>Elena Castellano</strong>
<small>Senior Broker · DRE #01998442</small>
</div>
</div>
</aside>
<!-- ============ MAIN ============ -->
<main class="main">
<header class="topbar">
<div class="topbar-head">
<p class="eyebrow">Tuesday · June 8, 2026</p>
<h1 class="page-title">Good afternoon, Elena</h1>
<p class="page-sub">Here's what's moving across your portfolio today.</p>
</div>
<div class="topbar-actions">
<label class="search" aria-label="Search listings and leads">
<span class="search-ico" aria-hidden="true">⌕</span>
<input type="search" placeholder="Search listings, leads…" />
</label>
<button class="btn btn-primary" id="newListingBtn" type="button">+ New listing</button>
</div>
</header>
<!-- ===== KPI CARDS ===== -->
<section class="kpis" aria-label="Key performance indicators">
<article class="kpi">
<p class="kpi-label">Active listings</p>
<p class="kpi-value" data-count="18" data-prefix="">0</p>
<p class="kpi-delta up">▲ 3 vs last month</p>
</article>
<article class="kpi">
<p class="kpi-label">New leads</p>
<p class="kpi-value" data-count="42" data-prefix="">0</p>
<p class="kpi-delta up">▲ 12 this week</p>
</article>
<article class="kpi">
<p class="kpi-label">Pending deals</p>
<p class="kpi-value" data-count="7" data-prefix="">0</p>
<p class="kpi-delta flat">2 closing this week</p>
</article>
<article class="kpi kpi-feature">
<p class="kpi-label">GCI this month</p>
<p class="kpi-value" data-count="86400" data-prefix="$" data-money="1">$0</p>
<p class="kpi-delta up">▲ 18% vs target</p>
</article>
</section>
<div class="grid">
<!-- ===== ACTIVE LISTINGS ===== -->
<section class="panel listings-panel" aria-label="Active listings">
<div class="panel-head">
<h2 class="panel-title">Active listings</h2>
<div class="filters" role="tablist" aria-label="Filter listings by status">
<button class="chip is-on" data-filter="all" role="tab" aria-selected="true">All</button>
<button class="chip" data-filter="active" role="tab" aria-selected="false">Active</button>
<button class="chip" data-filter="pending" role="tab" aria-selected="false">Pending</button>
<button class="chip" data-filter="new" role="tab" aria-selected="false">New</button>
</div>
</div>
<ul class="listings" id="listings">
<li class="listing" data-status="active">
<span class="photo photo-1" aria-label="Property photo"><span class="photo-tag">For sale</span></span>
<div class="listing-body">
<div class="listing-top">
<h3 class="listing-addr">214 Marigold Terrace</h3>
<span class="price">$1,485,000</span>
</div>
<p class="listing-loc">Hillcrest · Santa Vera, CA</p>
<div class="listing-meta">
<span class="tag">4 bd</span><span class="tag">3 ba</span><span class="tag">2,940 sqft</span>
<span class="badge status-active">Active</span>
</div>
</div>
<div class="listing-stat"><strong>312</strong><small>views</small></div>
</li>
<li class="listing" data-status="pending">
<span class="photo photo-2" aria-label="Property photo"><span class="photo-tag">Under offer</span></span>
<div class="listing-body">
<div class="listing-top">
<h3 class="listing-addr">7 Juniper Court</h3>
<span class="price">$925,000</span>
</div>
<p class="listing-loc">Old Mill District · Santa Vera, CA</p>
<div class="listing-meta">
<span class="tag">3 bd</span><span class="tag">2 ba</span><span class="tag">1,810 sqft</span>
<span class="badge status-pending">Pending</span>
</div>
</div>
<div class="listing-stat"><strong>588</strong><small>views</small></div>
</li>
<li class="listing" data-status="new">
<span class="photo photo-3" aria-label="Property photo"><span class="photo-tag">Just listed</span></span>
<div class="listing-body">
<div class="listing-top">
<h3 class="listing-addr">1490 Cypress Bluff Rd</h3>
<span class="price">$2,150,000</span>
</div>
<p class="listing-loc">Coastal Heights · Bellamar, CA</p>
<div class="listing-meta">
<span class="tag">5 bd</span><span class="tag">4 ba</span><span class="tag">3,620 sqft</span>
<span class="badge status-new">New</span>
</div>
</div>
<div class="listing-stat"><strong>74</strong><small>views</small></div>
</li>
<li class="listing" data-status="active">
<span class="photo photo-4" aria-label="Property photo"><span class="photo-tag">For sale</span></span>
<div class="listing-body">
<div class="listing-top">
<h3 class="listing-addr">38 Saffron Lane, #5B</h3>
<span class="price">$640,000</span>
</div>
<p class="listing-loc">Riverside Lofts · Santa Vera, CA</p>
<div class="listing-meta">
<span class="tag">2 bd</span><span class="tag">2 ba</span><span class="tag">1,180 sqft</span>
<span class="badge status-active">Active</span>
</div>
</div>
<div class="listing-stat"><strong>205</strong><small>views</small></div>
</li>
<li class="listing" data-status="pending">
<span class="photo photo-5" aria-label="Property photo"><span class="photo-tag">Under offer</span></span>
<div class="listing-body">
<div class="listing-top">
<h3 class="listing-addr">902 Heron View Dr</h3>
<span class="price">$1,275,000</span>
</div>
<p class="listing-loc">Lakeshore · Bellamar, CA</p>
<div class="listing-meta">
<span class="tag">4 bd</span><span class="tag">3 ba</span><span class="tag">2,510 sqft</span>
<span class="badge status-pending">Pending</span>
</div>
</div>
<div class="listing-stat"><strong>441</strong><small>views</small></div>
</li>
</ul>
<p class="empty" id="emptyState" hidden>No listings match this filter.</p>
</section>
<!-- ===== RIGHT RAIL ===== -->
<div class="rail">
<!-- Pipeline -->
<section class="panel" aria-label="Leads pipeline">
<div class="panel-head">
<h2 class="panel-title">Leads pipeline</h2>
<span class="muted-link">42 total</span>
</div>
<ul class="pipeline">
<li class="stage">
<div class="stage-row"><span>New inquiries</span><strong>19</strong></div>
<div class="bar"><span style="width:90%"></span></div>
</li>
<li class="stage">
<div class="stage-row"><span>Qualified</span><strong>12</strong></div>
<div class="bar"><span style="width:57%"></span></div>
</li>
<li class="stage">
<div class="stage-row"><span>Viewing booked</span><strong>7</strong></div>
<div class="bar"><span style="width:33%"></span></div>
</li>
<li class="stage">
<div class="stage-row"><span>Offer stage</span><strong>4</strong></div>
<div class="bar"><span style="width:19%"></span></div>
</li>
</ul>
</section>
<!-- Tasks -->
<section class="panel" aria-label="Tasks and follow-ups">
<div class="panel-head">
<h2 class="panel-title">Today's follow-ups</h2>
<span class="muted-link" id="taskCount">0/0 done</span>
</div>
<ul class="tasks" id="tasks">
<li class="task">
<label class="check">
<input type="checkbox" />
<span class="box" aria-hidden="true"></span>
<span class="task-text">
<strong>Call Marcus Devlin</strong>
<small>Re: offer on 7 Juniper Court · 2:30 PM</small>
</span>
</label>
<span class="due due-soon">2:30 PM</span>
</li>
<li class="task">
<label class="check">
<input type="checkbox" />
<span class="box" aria-hidden="true"></span>
<span class="task-text">
<strong>Send comps to the Okafors</strong>
<small>Cypress Bluff valuation packet</small>
</span>
</label>
<span class="due">4:00 PM</span>
</li>
<li class="task">
<label class="check">
<input type="checkbox" checked />
<span class="box" aria-hidden="true"></span>
<span class="task-text">
<strong>Confirm Saturday open house</strong>
<small>214 Marigold Terrace · 1–4 PM</small>
</span>
</label>
<span class="due">Done</span>
</li>
<li class="task">
<label class="check">
<input type="checkbox" />
<span class="box" aria-hidden="true"></span>
<span class="task-text">
<strong>Draft listing copy</strong>
<small>38 Saffron Lane photos in review</small>
</span>
</label>
<span class="due">Tomorrow</span>
</li>
</ul>
</section>
<!-- Activity -->
<section class="panel" aria-label="Recent activity">
<div class="panel-head">
<h2 class="panel-title">Recent activity</h2>
</div>
<ul class="feed">
<li class="feed-item"><span class="dot dot-ok" aria-hidden="true"></span><div><p><strong>Priya Okafor</strong> requested a viewing for <em>1490 Cypress Bluff Rd</em>.</p><time>18 min ago</time></div></li>
<li class="feed-item"><span class="dot dot-brass" aria-hidden="true"></span><div><p>Offer of <strong>$910,000</strong> received on <em>7 Juniper Court</em>.</p><time>1 hr ago</time></div></li>
<li class="feed-item"><span class="dot dot-green" aria-hidden="true"></span><div><p>Listing <em>1490 Cypress Bluff Rd</em> published to the MLS.</p><time>3 hrs ago</time></div></li>
<li class="feed-item"><span class="dot dot-warn" aria-hidden="true"></span><div><p>Price reduced on <em>38 Saffron Lane</em> by <strong>$15,000</strong>.</p><time>Yesterday</time></div></li>
<li class="feed-item"><span class="dot dot-ok" aria-hidden="true"></span><div><p>Inspection passed for <em>902 Heron View Dr</em>.</p><time>Yesterday</time></div></li>
</ul>
</section>
</div>
</div>
</main>
</div>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Agent Dashboard
A polished, editorial dashboard for a real-estate agent’s morning. A fixed green sidebar carries the brokerage brand, primary navigation, and the agent’s profile, while the main column opens with a serif greeting and four KPI cards — active listings, new leads, pending deals, and gross commission income this month — whose figures animate up from zero on load using an eased counter.
The body splits into a wide listings panel and a right rail. Each active listing renders a CSS-simulated property photo, address, price, bed/bath/sqft tags, a colour-coded status badge, and a view count; status chips at the top of the panel filter the list to Active, Pending, or New (with an empty-state message when nothing matches). The right rail stacks a leads pipeline with animated progress bars, a “today’s follow-ups” checklist, and a recent-activity feed.
Interactions are vanilla JavaScript only: KPI counters animate into view via an IntersectionObserver, listing filters update the visible rows and aria state, and ticking a follow-up strikes it through, flips its due chip to “Done”, and updates the running done count. A small toast helper confirms each action. The whole layout reflows gracefully down to roughly 360px wide.
Illustrative UI only — sample listings and data are fictional; not a real real-estate service.