mockups/client-reports-dashboard/index.html
Rama main · réplica de lectura del repositorio original.
<!doctype html>
<html lang="en" data-theme="dark">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Client Reports Dashboard — Refinement Mockup</title>
<style>
:root {
color-scheme: light;
--canvas: #f7f7f6;
--surface: #ffffff;
--surface-subtle: #f3f3f1;
--surface-hover: #eeeeeb;
--ink: #191918;
--ink-supporting: #575754;
--ink-muted: #74746f;
--border: #e2e2de;
--border-strong: #cdcdc7;
--accent: #3658d4;
--accent-soft: #edf0fc;
--accent-ink: #2947b5;
--success: #168260;
--success-soft: #e9f6f1;
--warning: #b66b12;
--warning-soft: #fbf1e4;
--danger: #c1463f;
--danger-soft: #fbecea;
--sidebar-width: 232px;
--radius: 12px;
--font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="dark"] {
color-scheme: dark;
--canvas: #111211;
--surface: #181918;
--surface-subtle: #20211f;
--surface-hover: #272825;
--ink: #f1f1ee;
--ink-supporting: #c1c1bb;
--ink-muted: #95958e;
--border: #2a2b28;
--border-strong: #3a3b37;
--accent: #6f8cff;
--accent-soft: #202947;
--accent-ink: #9badff;
--success: #58c59b;
--success-soft: #19352d;
--warning: #e6a24f;
--warning-soft: #392a18;
--danger: #eb716a;
--danger-soft: #3b2220;
}
* {
box-sizing: border-box;
}
html {
background: var(--canvas);
}
body {
min-width: 320px;
min-height: 100vh;
margin: 0;
background: var(--canvas);
color: var(--ink);
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.5;
text-rendering: optimizeLegibility;
}
button,
a {
-webkit-tap-highlight-color: transparent;
}
button {
font: inherit;
}
a {
color: inherit;
text-decoration: none;
}
button:focus-visible,
a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
svg {
display: block;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
clip-path: inset(50%);
}
.app-shell {
min-height: 100vh;
padding-left: var(--sidebar-width);
}
.sidebar {
position: fixed;
z-index: 40;
inset: 0 auto 0 0;
display: flex;
width: var(--sidebar-width);
flex-direction: column;
border-right: 1px solid var(--border);
background: var(--surface);
padding: 14px 12px;
transition: width 180ms ease;
}
.brand {
display: flex;
min-height: 42px;
align-items: center;
gap: 10px;
padding: 0 6px;
}
.brand-mark {
display: grid;
width: 32px;
height: 32px;
flex: 0 0 32px;
place-items: center;
border-radius: 8px;
background: var(--accent);
color: #fff;
font-size: 11px;
font-weight: 750;
letter-spacing: -0.01em;
}
.brand-copy {
min-width: 0;
}
.brand-copy strong,
.brand-copy span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.brand-copy strong {
font-size: 13px;
font-weight: 700;
letter-spacing: -0.01em;
}
.brand-copy span {
margin-top: 1px;
color: var(--ink-muted);
font-size: 10px;
}
.sidebar-section {
margin-top: 24px;
}
.sidebar-label {
display: block;
margin: 0 7px 7px;
color: var(--ink-muted);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.045em;
text-transform: uppercase;
}
.nav-list {
display: grid;
gap: 3px;
}
.nav-link {
display: flex;
min-height: 38px;
align-items: center;
gap: 10px;
border-radius: 8px;
color: var(--ink-supporting);
font-size: 12px;
font-weight: 600;
padding: 7px 9px;
}
.nav-link:hover {
background: var(--surface-subtle);
color: var(--ink);
}
.nav-link.active {
background: var(--accent-soft);
color: var(--accent-ink);
}
.nav-link svg {
flex: 0 0 auto;
}
.sidebar-profile {
display: flex;
align-items: center;
gap: 9px;
margin-top: auto;
border-top: 1px solid var(--border);
padding: 14px 6px 2px;
}
.avatar {
display: grid;
width: 30px;
height: 30px;
flex: 0 0 30px;
place-items: center;
border-radius: 999px;
background: var(--accent-soft);
color: var(--accent-ink);
font-size: 10px;
font-weight: 750;
}
.profile-copy {
min-width: 0;
}
.profile-copy strong,
.profile-copy span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.profile-copy strong {
font-size: 11px;
font-weight: 650;
}
.profile-copy span {
margin-top: 1px;
color: var(--ink-muted);
font-size: 10px;
}
.main {
min-width: 0;
}
.app-header {
position: sticky;
z-index: 30;
top: 0;
display: flex;
min-height: 60px;
align-items: center;
justify-content: space-between;
gap: 20px;
border-bottom: 1px solid var(--border);
background: var(--surface);
padding: 0 24px;
}
.context-title,
.header-actions,
.action-row,
.button,
.icon-button {
display: flex;
align-items: center;
}
.context-title {
min-width: 0;
gap: 10px;
}
.context-icon {
display: grid;
width: 28px;
height: 28px;
place-items: center;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--surface-subtle);
color: var(--accent);
}
.context-title strong {
overflow: hidden;
font-size: 13px;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-actions {
gap: 7px;
}
.icon-button,
.button {
justify-content: center;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface);
color: var(--ink-supporting);
cursor: pointer;
}
.icon-button {
width: 34px;
height: 34px;
padding: 0;
}
.icon-button:hover,
.button:hover {
border-color: var(--border-strong);
background: var(--surface-subtle);
color: var(--ink);
}
.mobile-menu {
display: none;
}
.page-tabs {
display: flex;
min-height: 48px;
align-items: end;
gap: 24px;
border-bottom: 1px solid var(--border);
background: var(--surface);
padding: 0 24px;
}
.page-tab {
position: relative;
display: grid;
min-height: 48px;
place-items: center;
color: var(--ink-muted);
font-size: 12px;
font-weight: 650;
}
.page-tab:hover {
color: var(--ink);
}
.page-tab.active {
color: var(--ink);
}
.page-tab.active::after {
position: absolute;
right: 0;
bottom: -1px;
left: 0;
height: 2px;
background: var(--accent);
content: "";
}
.content {
width: min(100%, 1440px);
margin: 0 auto;
padding: 26px 28px 40px;
}
.report-heading {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 32px;
}
.report-copy {
min-width: 0;
}
.report-heading h1 {
margin: 0;
font-size: clamp(21px, 2vw, 26px);
font-weight: 720;
letter-spacing: -0.025em;
line-height: 1.15;
}
.report-heading p {
max-width: 70ch;
margin: 7px 0 0;
color: var(--ink-muted);
font-size: 12px;
}
.report-meta {
display: inline-flex;
align-items: center;
gap: 7px;
}
.report-meta i {
width: 5px;
height: 5px;
border-radius: 999px;
background: var(--success);
}
.action-row {
flex: 0 0 auto;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.button {
min-height: 36px;
gap: 7px;
padding: 7px 11px;
font-size: 11px;
font-weight: 650;
}
.button.primary {
border-color: var(--ink);
background: var(--ink);
color: var(--surface);
}
.button.primary:hover {
border-color: var(--ink-supporting);
background: var(--ink-supporting);
color: var(--surface);
}
.button.reset {
display: none;
}
body.editing .button.reset {
display: flex;
}
.review-flag {
display: inline-flex;
min-height: 22px;
align-items: center;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--surface-subtle);
color: var(--ink-muted);
font-size: 9px;
font-weight: 700;
letter-spacing: 0.04em;
padding: 3px 8px;
text-transform: uppercase;
}
.metric-ribbon {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
margin-top: 22px;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
}
.metric {
position: relative;
min-width: 0;
padding: 16px 18px 15px;
}
.metric + .metric {
border-left: 1px solid var(--border);
}
.metric-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.metric-label {
overflow: hidden;
color: var(--ink-muted);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.025em;
text-overflow: ellipsis;
text-transform: uppercase;
white-space: nowrap;
}
.metric-icon {
color: var(--ink-muted);
}
.metric-value {
display: block;
margin-top: 13px;
font-size: clamp(22px, 2.35vw, 31px);
font-weight: 720;
letter-spacing: -0.035em;
line-height: 1;
}
.metric-note {
display: block;
margin-top: 7px;
color: var(--ink-muted);
font-size: 10px;
}
.metric-note.status-warning {
color: var(--warning);
}
.metric-note.status-success {
color: var(--success);
}
.widget-grid {
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
gap: 14px;
margin-top: 14px;
}
.widget {
position: relative;
min-width: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
}
.widget.status {
grid-column: span 5;
}
.widget.budget {
grid-column: span 7;
}
.widget.trend {
grid-column: span 7;
}
.widget.list {
grid-column: span 5;
}
.widget-header {
display: flex;
min-height: 64px;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
border-bottom: 1px solid var(--border);
padding: 14px 16px 13px;
}
.widget-title {
min-width: 0;
}
.widget-title strong {
display: block;
overflow: hidden;
font-size: 12px;
font-weight: 700;
letter-spacing: -0.01em;
text-overflow: ellipsis;
white-space: nowrap;
}
.widget-title span {
display: block;
margin-top: 3px;
color: var(--ink-muted);
font-size: 10px;
}
.widget-total {
flex: 0 0 auto;
color: var(--ink);
font-family: var(--font-mono);
font-size: 15px;
font-variant-numeric: tabular-nums;
font-weight: 650;
letter-spacing: -0.03em;
}
.widget-body {
min-height: 252px;
padding: 18px 16px;
}
.status-layout {
display: grid;
min-height: 216px;
grid-template-columns: minmax(144px, 0.85fr) minmax(150px, 1fr);
align-items: center;
gap: 24px;
}
.donut-wrap {
position: relative;
width: min(100%, 176px);
margin: 0 auto;
}
.donut {
width: 100%;
transform: rotate(-90deg);
}
.donut circle {
fill: none;
stroke-width: 8;
}
.donut-track {
stroke: var(--surface-subtle);
}
.donut-segment {
transform-origin: center;
}
.donut-center {
position: absolute;
inset: 0;
display: grid;
place-content: center;
text-align: center;
}
.donut-center strong {
font-size: 25px;
font-weight: 720;
letter-spacing: -0.035em;
line-height: 1;
}
.donut-center span {
margin-top: 4px;
color: var(--ink-muted);
font-size: 9px;
font-weight: 650;
}
.legend {
display: grid;
gap: 5px;
}
.legend-row {
display: grid;
min-height: 34px;
grid-template-columns: 8px minmax(0, 1fr) auto;
align-items: center;
gap: 9px;
border-bottom: 1px solid var(--border);
}
.legend-row:last-child {
border-bottom: 0;
}
.legend-dot {
width: 7px;
height: 7px;
border-radius: 999px;
background: var(--dot);
}
.legend-row span {
overflow: hidden;
color: var(--ink-supporting);
font-size: 10px;
text-overflow: ellipsis;
white-space: nowrap;
}
.legend-row strong {
font-family: var(--font-mono);
font-size: 10px;
font-variant-numeric: tabular-nums;
font-weight: 650;
}
.bar-chart {
display: grid;
gap: 13px;
min-height: 216px;
align-content: center;
}
.bar-row {
display: grid;
grid-template-columns: minmax(108px, 0.8fr) minmax(140px, 2fr) 68px;
align-items: center;
gap: 12px;
}
.bar-label {
overflow: hidden;
color: var(--ink-supporting);
font-size: 10px;
font-weight: 600;
text-overflow: ellipsis;
white-space: nowrap;
}
.bar-track {
height: 7px;
overflow: hidden;
border-radius: 999px;
background: var(--surface-subtle);
}
.bar-fill {
display: block;
width: var(--width);
height: 100%;
border-radius: inherit;
background: var(--accent);
}
.bar-value {
color: var(--ink);
font-family: var(--font-mono);
font-size: 10px;
font-variant-numeric: tabular-nums;
font-weight: 600;
text-align: right;
}
.trend-body {
position: relative;
display: grid;
min-height: 216px;
grid-template-rows: 1fr auto;
gap: 13px;
}
.trend-chart {
width: 100%;
height: 174px;
overflow: visible;
}
.trend-gridline {
stroke: var(--border);
stroke-width: 1;
}
.trend-line {
fill: none;
stroke: var(--accent);
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.5;
}
.trend-point {
fill: var(--surface);
stroke: var(--accent);
stroke-width: 2;
}
.trend-axis {
display: grid;
grid-template-columns: repeat(6, 1fr);
color: var(--ink-muted);
font-family: var(--font-mono);
font-size: 9px;
text-align: center;
}
.record-list {
display: grid;
}
.record-row {
display: grid;
min-height: 54px;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 14px;
border-bottom: 1px solid var(--border);
padding: 8px 0;
}
.record-row:first-child {
padding-top: 0;
}
.record-row:last-child {
border-bottom: 0;
padding-bottom: 0;
}
.record-copy {
min-width: 0;
}
.record-copy strong,
.record-copy span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.record-copy strong {
font-size: 10px;
font-weight: 650;
}
.record-copy span {
margin-top: 3px;
color: var(--ink-muted);
font-size: 9px;
}
.status-badge {
display: inline-flex;
min-height: 22px;
align-items: center;
border-radius: 999px;
background: var(--badge-bg);
color: var(--badge-ink);
font-size: 9px;
font-weight: 650;
padding: 3px 8px;
}
.edit-handle {
position: absolute;
z-index: 3;
display: none;
width: 28px;
height: 28px;
place-items: center;
border: 1px solid var(--accent);
border-radius: 7px;
background: var(--surface);
color: var(--accent);
cursor: grab;
}
.edit-handle.move {
top: 8px;
right: 8px;
}
.edit-handle.resize {
right: 8px;
bottom: 8px;
cursor: nwse-resize;
}
body.editing .widget-grid {
outline: 1px dashed var(--border-strong);
outline-offset: 7px;
}
body.editing .widget {
border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
}
body.editing .edit-handle {
display: grid;
}
body.editing .widget-header {
padding-right: 52px;
}
.editing-note {
display: none;
margin: 12px 0 0;
color: var(--accent-ink);
font-size: 10px;
font-weight: 600;
}
body.editing .editing-note {
display: block;
}
.toast {
position: fixed;
z-index: 100;
right: 20px;
bottom: 20px;
display: flex;
max-width: min(360px, calc(100vw - 32px));
align-items: center;
gap: 9px;
border: 1px solid var(--border-strong);
border-radius: 10px;
background: var(--surface);
box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
color: var(--ink);
font-size: 11px;
font-weight: 600;
padding: 11px 13px;
transform: translateY(14px);
opacity: 0;
pointer-events: none;
transition:
opacity 160ms ease,
transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.visible {
transform: translateY(0);
opacity: 1;
}
.mobile-backdrop {
display: none;
}
@media (max-width: 1100px) {
.widget.status,
.widget.budget,
.widget.trend,
.widget.list {
grid-column: span 6;
}
.status-layout {
grid-template-columns: 1fr;
gap: 14px;
}
.donut-wrap {
width: 134px;
}
}
@media (max-width: 900px) {
.app-shell {
padding-left: 0;
}
.sidebar {
width: min(280px, calc(100vw - 44px));
transform: translateX(-100%);
transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
body.menu-open .sidebar {
transform: translateX(0);
}
.mobile-backdrop {
position: fixed;
z-index: 35;
inset: 0;
border: 0;
background: rgb(0 0 0 / 42%);
cursor: pointer;
}
body.menu-open .mobile-backdrop {
display: block;
}
.mobile-menu {
display: grid;
}
.content {
padding-inline: 20px;
}
.report-heading {
align-items: flex-start;
flex-direction: column;
gap: 18px;
}
.action-row {
justify-content: flex-start;
}
.metric-ribbon {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.metric:nth-child(3) {
border-left: 0;
}
.metric:nth-child(n + 3) {
border-top: 1px solid var(--border);
}
}
@media (max-width: 680px) {
.app-header,
.page-tabs {
padding-inline: 16px;
}
.content {
padding: 22px 16px 32px;
}
.widget.status,
.widget.budget,
.widget.trend,
.widget.list {
grid-column: 1 / -1;
}
.status-layout {
grid-template-columns: minmax(124px, 0.8fr) minmax(130px, 1fr);
}
.widget-body {
min-height: auto;
}
.bar-row {
grid-template-columns: minmax(84px, 0.75fr) minmax(80px, 1.4fr) 58px;
gap: 8px;
}
}
@media (max-width: 470px) {
.context-title strong {
max-width: 150px;
}
.header-actions .review-flag {
display: none;
}
.metric {
padding-inline: 14px;
}
.status-layout {
grid-template-columns: 1fr;
}
.action-row {
display: grid;
width: 100%;
grid-template-columns: 1fr;
}
.action-row .button {
width: 100%;
}
body.editing .action-row {
grid-template-columns: 1fr 1fr;
}
.action-row .button.primary {
grid-column: 1 / -1;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
}
}
</style>
</head>
<body>
<div class="app-shell">
<aside class="sidebar" aria-label="Client portal navigation">
<a class="brand" href="#" aria-label="Twenty Portal home">
<span class="brand-mark">TW</span>
<span class="brand-copy">
<strong>Twenty Portal</strong>
<span>Client workspace</span>
</span>
</a>
<nav aria-label="Workspace">
<section class="sidebar-section">
<span class="sidebar-label">Workspace</span>
<div class="nav-list">
<a class="nav-link" href="#">
<svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="m3 11 9-8 9 8"/><path d="M5 10v10h14V10"/><path d="M9 20v-6h6v6"/></svg>
Home
</a>
</div>
</section>
<section class="sidebar-section">
<span class="sidebar-label">Shared views</span>
<div class="nav-list">
<a class="nav-link active" href="#" aria-current="page">
<svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><rect x="5" y="4" width="14" height="17" rx="2"/><path d="M9 4V2h6v2M8 9h8M8 13h8M8 17h5"/></svg>
Projects
</a>
<a class="nav-link" href="#">
<svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M6 2h9l4 4v16H6z"/><path d="M14 2v5h5M9 12h7M9 16h7"/></svg>
Invoices
</a>
</div>
</section>
<section class="sidebar-section">
<span class="sidebar-label">Account</span>
<div class="nav-list">
<a class="nav-link" href="#">
<svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"/><path d="M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-2.12 2.12-.06-.06a1.7 1.7 0 0 0-1.88-.34 1.7 1.7 0 0 0-1.04 1.56V20.3h-3v-.08a1.7 1.7 0 0 0-1.04-1.56 1.7 1.7 0 0 0-1.88.34l-.06.06-2.12-2.12.06-.06A1.7 1.7 0 0 0 7 15a1.7 1.7 0 0 0-1.56-1.04h-.08v-3h.08A1.7 1.7 0 0 0 7 9.92a1.7 1.7 0 0 0-.34-1.88l-.06-.06 2.12-2.12.06.06A1.7 1.7 0 0 0 10.66 6a1.7 1.7 0 0 0 1.04-1.56v-.08h3v.08A1.7 1.7 0 0 0 15.74 6a1.7 1.7 0 0 0 1.88-.34l.06-.06 2.12 2.12-.06.06a1.7 1.7 0 0 0-.34 1.88 1.7 1.7 0 0 0 1.56 1.04h.08v3h-.08A1.7 1.7 0 0 0 19.4 15Z"/></svg>
Settings
</a>
</div>
</section>
</nav>
<div class="sidebar-profile">
<span class="avatar" aria-hidden="true">AV</span>
<span class="profile-copy">
<strong>Alex Vaughan</strong>
<span>Client contributor</span>
</span>
</div>
</aside>
<button class="mobile-backdrop" type="button" data-action="close-menu" aria-label="Close navigation"></button>
<main class="main">
<header class="app-header">
<div class="context-title">
<button class="icon-button mobile-menu" type="button" data-action="menu" aria-label="Open navigation">
<svg aria-hidden="true" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 7h16M4 12h16M4 17h16"/></svg>
</button>
<span class="context-icon">
<svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><rect x="5" y="4" width="14" height="17" rx="2"/><path d="M9 4V2h6v2M8 9h8M8 13h8M8 17h5"/></svg>
</span>
<strong>Projects</strong>
</div>
<div class="header-actions">
<span class="review-flag">Review mockup · demo data</span>
<button class="icon-button" type="button" data-action="theme" aria-label="Switch to light theme" aria-pressed="true">
<svg class="theme-icon-moon" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M20 15.4A9 9 0 0 1 8.6 4 9 9 0 1 0 20 15.4Z"/></svg>
</button>
<span class="avatar" aria-label="Signed in as Alex Vaughan">AV</span>
</div>
</header>
<nav class="page-tabs" aria-label="Projects sections">
<a class="page-tab" href="#">Records</a>
<a class="page-tab active" href="#" aria-current="page">Reports</a>
</nav>
<div class="content">
<section class="report-heading" aria-labelledby="report-title">
<div class="report-copy">
<h1 id="report-title">Project overview</h1>
<p>
A current summary of the 24 projects shared with your organization.
<span class="report-meta"><i aria-hidden="true"></i> Updated just now</span>
</p>
</div>
<div class="action-row" aria-label="Dashboard actions">
<button class="button" type="button" data-action="edit" aria-pressed="false">
<svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 7h10M18 7h2M4 17h2M10 17h10M12 4v6M8 14v6"/></svg>
<span>Edit layout</span>
</button>
<button class="button reset" type="button" data-action="reset">
<svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 3v5h5"/></svg>
Reset layout
</button>
<button class="button primary" type="button" data-action="export">
<svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M12 3v12M7 10l5 5 5-5"/><path d="M5 21h14"/></svg>
Export PDF
</button>
</div>
</section>
<p class="editing-note" role="status">Layout editing is active. Move and resize controls are now available on each widget.</p>
<section class="metric-ribbon" aria-label="Project summary">
<article class="metric">
<div class="metric-head">
<span class="metric-label">Active projects</span>
<svg class="metric-icon" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M5 3h14v18H5zM8 8h8M8 12h8M8 16h5"/></svg>
</div>
<strong class="metric-value">24</strong>
<span class="metric-note">Count of scoped records</span>
</article>
<article class="metric">
<div class="metric-head">
<span class="metric-label">Total budget</span>
<svg class="metric-icon" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M12 2v20M17 6.5c0-1.4-1.8-2.5-4-2.5S9 5.1 9 6.5 10.8 9 13 9s4 1.1 4 2.5S15.2 14 13 14s-4-1.1-4-2.5"/></svg>
</div>
<strong class="metric-value">$838,250</strong>
<span class="metric-note">Sum across shared projects</span>
</article>
<article class="metric">
<div class="metric-head">
<span class="metric-label">At risk</span>
<svg class="metric-icon" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M12 3 2.8 20h18.4L12 3Z"/><path d="M12 9v5M12 17h.01"/></svg>
</div>
<strong class="metric-value">5</strong>
<span class="metric-note status-warning">Needs attention</span>
</article>
<article class="metric">
<div class="metric-head">
<span class="metric-label">Complete</span>
<svg class="metric-icon" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><circle cx="12" cy="12" r="9"/><path d="m8 12 2.5 2.5L16 9"/></svg>
</div>
<strong class="metric-value">4</strong>
<span class="metric-note status-success">Current portfolio</span>
</article>
</section>
<section class="widget-grid" aria-label="Project report widgets">
<article class="widget status">
<button class="edit-handle move" type="button" aria-label="Move Portfolio status widget">
<svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M8 6h.01M16 6h.01M8 12h.01M16 12h.01M8 18h.01M16 18h.01"/></svg>
</button>
<header class="widget-header">
<div class="widget-title">
<strong>Portfolio status</strong>
<span>Projects grouped by current stage</span>
</div>
<span class="widget-total" aria-label="24 total projects">24</span>
</header>
<div class="widget-body status-layout">
<div class="donut-wrap">
<svg class="donut" viewBox="0 0 120 120" role="img" aria-label="10 in progress, 5 at risk, 5 planning, and 4 complete">
<circle class="donut-track" cx="60" cy="60" r="44" />
<circle class="donut-segment" cx="60" cy="60" r="44" pathLength="100" stroke="#5978ee" stroke-dasharray="41.67 58.33" stroke-dashoffset="0" />
<circle class="donut-segment" cx="60" cy="60" r="44" pathLength="100" stroke="#d98a2f" stroke-dasharray="20.83 79.17" stroke-dashoffset="-41.67" />
<circle class="donut-segment" cx="60" cy="60" r="44" pathLength="100" stroke="#8b8b84" stroke-dasharray="20.83 79.17" stroke-dashoffset="-62.5" />
<circle class="donut-segment" cx="60" cy="60" r="44" pathLength="100" stroke="#26956e" stroke-dasharray="16.67 83.33" stroke-dashoffset="-83.33" />
</svg>
<div class="donut-center" aria-hidden="true">
<strong>24</strong>
<span>Projects</span>
</div>
</div>
<div class="legend" aria-label="Portfolio status legend">
<div class="legend-row"><i class="legend-dot" style="--dot:#5978ee"></i><span>In progress</span><strong>10</strong></div>
<div class="legend-row"><i class="legend-dot" style="--dot:#d98a2f"></i><span>At risk</span><strong>5</strong></div>
<div class="legend-row"><i class="legend-dot" style="--dot:#8b8b84"></i><span>Planning</span><strong>5</strong></div>
<div class="legend-row"><i class="legend-dot" style="--dot:#26956e"></i><span>Complete</span><strong>4</strong></div>
</div>
</div>
<button class="edit-handle resize" type="button" aria-label="Resize Portfolio status widget">
<svg aria-hidden="true" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M15 4h5v5M9 20H4v-5M20 4l-7 7M4 20l7-7"/></svg>
</button>
</article>
<article class="widget budget">
<button class="edit-handle move" type="button" aria-label="Move Budget by project widget">
<svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M8 6h.01M16 6h.01M8 12h.01M16 12h.01M8 18h.01M16 18h.01"/></svg>
</button>
<header class="widget-header">
<div class="widget-title">
<strong>Budget by project</strong>
<span>Largest shared project budgets</span>
</div>
<span class="widget-total" aria-label="838,250 dollars total">$838k</span>
</header>
<div class="widget-body">
<div class="bar-chart" role="img" aria-label="Budget by project: Atlas 245 thousand dollars, Northstar 186 thousand, Orbit 156 thousand, Harbor 139 thousand, Cedar 112 thousand">
<div class="bar-row"><span class="bar-label">Atlas website launch</span><span class="bar-track"><i class="bar-fill" style="--width:100%"></i></span><strong class="bar-value">$245k</strong></div>
<div class="bar-row"><span class="bar-label">Northstar research</span><span class="bar-track"><i class="bar-fill" style="--width:76%"></i></span><strong class="bar-value">$186k</strong></div>
<div class="bar-row"><span class="bar-label">Orbit analytics</span><span class="bar-track"><i class="bar-fill" style="--width:64%"></i></span><strong class="bar-value">$156k</strong></div>
<div class="bar-row"><span class="bar-label">Harbor client portal</span><span class="bar-track"><i class="bar-fill" style="--width:57%"></i></span><strong class="bar-value">$139k</strong></div>
<div class="bar-row"><span class="bar-label">Cedar operations</span><span class="bar-track"><i class="bar-fill" style="--width:46%"></i></span><strong class="bar-value">$112k</strong></div>
</div>
</div>
<button class="edit-handle resize" type="button" aria-label="Resize Budget by project widget">
<svg aria-hidden="true" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M15 4h5v5M9 20H4v-5M20 4l-7 7M4 20l7-7"/></svg>
</button>
</article>
<article class="widget trend">
<button class="edit-handle move" type="button" aria-label="Move Project activity widget">
<svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M8 6h.01M16 6h.01M8 12h.01M16 12h.01M8 18h.01M16 18h.01"/></svg>
</button>
<header class="widget-header">
<div class="widget-title">
<strong>Project activity</strong>
<span>Record updates during the last six months</span>
</div>
<span class="widget-total" aria-label="82 updates">82</span>
</header>
<div class="widget-body">
<div class="trend-body">
<svg class="trend-chart" viewBox="0 0 640 174" role="img" aria-label="Project activity rose from 8 updates in February to 18 updates in July">
<line class="trend-gridline" x1="12" y1="18" x2="628" y2="18" />
<line class="trend-gridline" x1="12" y1="70" x2="628" y2="70" />
<line class="trend-gridline" x1="12" y1="122" x2="628" y2="122" />
<path class="trend-line" d="M18 128 C58 128, 82 112, 122 112 S182 84, 226 91 S286 64, 330 70 S390 43, 434 51 S494 70, 538 55 S586 29, 622 25" />
<circle class="trend-point" cx="18" cy="128" r="4" />
<circle class="trend-point" cx="122" cy="112" r="4" />
<circle class="trend-point" cx="226" cy="91" r="4" />
<circle class="trend-point" cx="330" cy="70" r="4" />
<circle class="trend-point" cx="434" cy="51" r="4" />
<circle class="trend-point" cx="538" cy="55" r="4" />
<circle class="trend-point" cx="622" cy="25" r="4" />
</svg>
<div class="trend-axis" aria-hidden="true"><span>Feb</span><span>Mar</span><span>Apr</span><span>May</span><span>Jun</span><span>Jul</span></div>
</div>
</div>
<button class="edit-handle resize" type="button" aria-label="Resize Project activity widget">
<svg aria-hidden="true" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M15 4h5v5M9 20H4v-5M20 4l-7 7M4 20l7-7"/></svg>
</button>
</article>
<article class="widget list">
<button class="edit-handle move" type="button" aria-label="Move Recently updated widget">
<svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M8 6h.01M16 6h.01M8 12h.01M16 12h.01M8 18h.01M16 18h.01"/></svg>
</button>
<header class="widget-header">
<div class="widget-title">
<strong>Recently updated</strong>
<span>Latest activity in shared projects</span>
</div>
<span class="widget-total">5</span>
</header>
<div class="widget-body">
<div class="record-list">
<div class="record-row"><span class="record-copy"><strong>Atlas website launch</strong><span>Updated 5 minutes ago</span></span><span class="status-badge" style="--badge-bg:var(--accent-soft);--badge-ink:var(--accent-ink)">In progress</span></div>
<div class="record-row"><span class="record-copy"><strong>Northstar research sprint</strong><span>Updated 42 minutes ago</span></span><span class="status-badge" style="--badge-bg:var(--warning-soft);--badge-ink:var(--warning)">At risk</span></div>
<div class="record-row"><span class="record-copy"><strong>Orbit analytics rollout</strong><span>Updated 1 hour ago</span></span><span class="status-badge" style="--badge-bg:var(--accent-soft);--badge-ink:var(--accent-ink)">In progress</span></div>
<div class="record-row"><span class="record-copy"><strong>Harbor client portal</strong><span>Updated 3 hours ago</span></span><span class="status-badge" style="--badge-bg:var(--success-soft);--badge-ink:var(--success)">Complete</span></div>
</div>
</div>
<button class="edit-handle resize" type="button" aria-label="Resize Recently updated widget">
<svg aria-hidden="true" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M15 4h5v5M9 20H4v-5M20 4l-7 7M4 20l7-7"/></svg>
</button>
</article>
</section>
</div>
</main>
</div>
<div class="toast" role="status" aria-live="polite">
<svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="var(--success)" stroke-width="1.8"><circle cx="12" cy="12" r="9"/><path d="m8 12 2.5 2.5L16 9"/></svg>
<span>Mockup interaction complete.</span>
</div>
<script>
const root = document.documentElement;
const previewParams = new URLSearchParams(window.location.search);
if (previewParams.get("theme") === "light") root.dataset.theme = "light";
const themeButton = document.querySelector('[data-action="theme"]');
const editButton = document.querySelector('[data-action="edit"]');
const editLabel = editButton.querySelector("span");
const toast = document.querySelector(".toast");
let toastTimer;
if (root.dataset.theme === "light") {
themeButton.setAttribute("aria-pressed", "false");
themeButton.setAttribute("aria-label", "Switch to dark theme");
}
function showToast(message) {
toast.querySelector("span").textContent = message;
toast.classList.add("visible");
window.clearTimeout(toastTimer);
toastTimer = window.setTimeout(() => toast.classList.remove("visible"), 2200);
}
themeButton.addEventListener("click", () => {
const next = root.dataset.theme === "dark" ? "light" : "dark";
root.dataset.theme = next;
themeButton.setAttribute("aria-pressed", String(next === "dark"));
themeButton.setAttribute("aria-label", `Switch to ${next === "dark" ? "light" : "dark"} theme`);
});
editButton.addEventListener("click", () => {
const editing = document.body.classList.toggle("editing");
editButton.setAttribute("aria-pressed", String(editing));
editLabel.textContent = editing ? "Done editing" : "Edit layout";
});
document.querySelector('[data-action="reset"]').addEventListener("click", () => {
showToast("Layout reset to the refined default.");
});
document.querySelector('[data-action="export"]').addEventListener("click", () => {
showToast("PDF preview would open from this action.");
});
document.querySelector('[data-action="menu"]').addEventListener("click", () => {
document.body.classList.add("menu-open");
});
document.querySelector('[data-action="close-menu"]').addEventListener("click", () => {
document.body.classList.remove("menu-open");
});
document.addEventListener("keydown", (event) => {
if (event.key === "Escape") {
document.body.classList.remove("menu-open");
toast.classList.remove("visible");
}
});
document.querySelectorAll('a[href="#"]').forEach((link) => {
link.addEventListener("click", (event) => event.preventDefault());
});
</script>
</body>
</html>