@vocdoni/skills 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.claude-plugin/marketplace.json +12 -2
  2. package/CHANGELOG.md +19 -0
  3. package/README.md +13 -0
  4. package/package.json +10 -2
  5. package/plugins/agentic-dev/.claude-plugin/plugin.json +1 -1
  6. package/plugins/agentic-dev/skills/subagent-driven-development/SKILL.md +10 -5
  7. package/plugins/agentic-dev/skills/subagent-driven-development/references/dispatch.md +20 -0
  8. package/plugins/agentic-dev/skills/subagent-driven-development/references/ledger.md +1 -0
  9. package/plugins/agentic-dev/skills/subagent-driven-development/scripts/task-brief.sh +2 -0
  10. package/plugins/agentic-dev/skills/subagent-driven-development/templates/plan.md +4 -0
  11. package/plugins/claude-pi-subagent/.claude-plugin/marketplace.json +1 -1
  12. package/plugins/claude-pi-subagent/plugins/pi-subagent/.claude-plugin/plugin.json +1 -1
  13. package/plugins/claude-pi-subagent/plugins/pi-subagent/dist/server.mjs +75 -12
  14. package/plugins/claude-pi-subagent/plugins/pi-subagent/package-lock.json +89 -89
  15. package/plugins/claude-pi-subagent/plugins/pi-subagent/package.json +2 -2
  16. package/plugins/claude-pi-subagent/plugins/pi-subagent/src/server.ts +1 -1
  17. package/plugins/vocdoni-ui-style/.claude-plugin/plugin.json +25 -0
  18. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/SKILL.md +99 -0
  19. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/chakra/product.tsx +263 -0
  20. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/brand.tsx +195 -0
  21. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/button.tsx +67 -0
  22. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/status-badge.tsx +93 -0
  23. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-ink.svg +15 -0
  24. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-white.svg +15 -0
  25. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo.svg +15 -0
  26. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-ink.svg +7 -0
  27. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-white.svg +7 -0
  28. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark.svg +7 -0
  29. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-footer.webp +0 -0
  30. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-home-hero.webp +0 -0
  31. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-mobile.webp +0 -0
  32. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-stats-and-panels.webp +0 -0
  33. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-vertical-hero.webp +0 -0
  34. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-washes-and-comparison.webp +0 -0
  35. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-process-results.webp +0 -0
  36. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-signin.webp +0 -0
  37. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.chakra.ts +285 -0
  38. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.css +847 -0
  39. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.tailwind.css +352 -0
  40. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.chakra.ts +410 -0
  41. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.css +1116 -0
  42. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.tailwind.css +289 -0
  43. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/editorial-landing.html +358 -0
  44. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/email-vote-invitation.html +58 -0
  45. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-auth.html +81 -0
  46. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-builder.html +147 -0
  47. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-dashboard.html +185 -0
  48. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-voting.html +326 -0
  49. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/brand-core.md +166 -0
  50. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/editorial.md +198 -0
  51. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/product.md +173 -0
  52. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/recipes.md +264 -0
  53. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/stacks.md +196 -0
  54. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/ux-flows.md +110 -0
  55. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-editorial.tsx +15 -0
  56. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-product.tsx +9 -0
  57. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/doc.md +10 -0
  58. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/escaped.json +1 -0
  59. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-editorial.tsx +16 -0
  60. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-product.css +6 -0
  61. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/locale.json +1 -0
  62. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-attr.tsx +8 -0
  63. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-copy.tsx +10 -0
  64. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/regex-literal.tsx +5 -0
  65. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style.mjs +436 -0
@@ -0,0 +1,147 @@
1
+ <!doctype html>
2
+ <!--
3
+ Product mode reference: the vote builder (vocdoni-app /admin/processes/create), plain HTML +
4
+ assets/tokens/product.css. A document-style canvas (borderless title, description, question
5
+ boxes with choice previews) and a settings panel with every form control the product uses:
6
+ switches, date/time pair, radio cards, select, step markers, security level, dropzone, inline
7
+ min/max selects, field validation. Not a wizard: one page, configuration on the side.
8
+ -->
9
+ <html lang="en">
10
+ <head>
11
+ <meta charset="utf-8" />
12
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
13
+ <title>New vote - Vocdoni</title>
14
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
15
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
16
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" />
17
+ <link rel="stylesheet" href="../assets/tokens/product.css" />
18
+ <style>
19
+ .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
20
+ .layout { display: grid; min-height: 100dvh; }
21
+ @media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 380px; } }
22
+ .bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 24px; background: color-mix(in oklab, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
23
+ .bar .vp-badge { margin-right: auto; }
24
+ .canvas { max-width: 760px; margin: 0 auto; padding: 32px 24px 96px; display: grid; gap: 20px; }
25
+ .q-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
26
+ .opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); }
27
+ .opt + .opt { margin-top: 8px; }
28
+ .opt .fake { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-emphasized); flex-shrink: 0; }
29
+ .opt input { border: 0; background: none; font: inherit; font-size: 16px; color: var(--fg); flex: 1; padding: 0; }
30
+ @media (min-width: 768px) { .opt input, #desc { font-size: 15px !important; } }
31
+ .opt input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 2px; }
32
+ .inline-select { width: auto; height: 32px; display: inline-block; margin: 0 4px; padding-left: 10px; }
33
+ .panel { border-left: 1px solid var(--border); background: var(--bg); }
34
+ .panel__body { padding: 20px; display: grid; gap: 24px; }
35
+ .group { display: grid; gap: 14px; }
36
+ .group h2 { font-size: 16px; font-weight: 500; letter-spacing: normal; display: flex; align-items: center; justify-content: space-between; }
37
+ .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
38
+ .step-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
39
+ .grip { color: var(--fg-subtle); cursor: grab; }
40
+ </style>
41
+ </head>
42
+ <body>
43
+ <svg style="display: none" aria-hidden="true">
44
+ <symbol id="i-grip" viewBox="0 0 24 24"><circle cx="9" cy="12" r="1" /><circle cx="9" cy="5" r="1" /><circle cx="9" cy="19" r="1" /><circle cx="15" cy="12" r="1" /><circle cx="15" cy="5" r="1" /><circle cx="15" cy="19" r="1" /></symbol>
45
+ <symbol id="i-plus" viewBox="0 0 24 24"><path d="M5 12h14" /><path d="M12 5v14" /></symbol>
46
+ <symbol id="i-x" viewBox="0 0 24 24"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
47
+ <symbol id="i-upload" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><path d="m17 8-5-5-5 5" /><path d="M12 3v12" /></symbol>
48
+ <symbol id="i-key" viewBox="0 0 24 24"><path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z" /><circle cx="16.5" cy="7.5" r=".5" /></symbol>
49
+ <symbol id="i-check" viewBox="0 0 24 24"><path d="M20 6 9 17l-5-5" /></symbol>
50
+ </svg>
51
+
52
+ <form class="layout" novalidate onsubmit="event.preventDefault()">
53
+ <div style="min-width: 0">
54
+ <div class="bar">
55
+ <span class="vp-badge">Draft</span>
56
+ <button class="vp-btn vp-btn--outline vp-btn--sm" type="button">Save</button>
57
+ <button class="vp-btn vp-btn--sm" type="submit">Publish</button>
58
+ </div>
59
+
60
+ <main class="canvas">
61
+ <label class="vp-sr-only" for="title">Voting process title</label>
62
+ <input class="vp-input vp-input--borderless" id="title" placeholder="Voting process title" value="General assembly 2026" style="font-size: 28px" />
63
+ <label class="vp-sr-only" for="desc">Description</label>
64
+ <textarea class="vp-textarea vp-input--borderless" id="desc" rows="2" placeholder="Add a description..." style="font-size: 16px; min-height: 0; color: var(--fg-muted)">The board submits the 2025 accounts and two board seats to the members.</textarea>
65
+
66
+ <section class="vp-box" aria-labelledby="q1label">
67
+ <div class="q-head">
68
+ <span id="q1label" class="vp-text-xs vp-muted">Question 1 of 2</span>
69
+ <span style="display: flex; gap: 8px; align-items: center">
70
+ <label class="vp-sr-only" for="q1type">Question type</label>
71
+ <select class="vp-select" id="q1type" style="height: 32px; width: auto"><option>Single choice</option><option>Multiple choice</option></select>
72
+ <span class="grip" title="Drag to reorder"><svg class="i"><use href="#i-grip" /></svg></span>
73
+ </span>
74
+ </div>
75
+ <input class="vp-input vp-input--borderless" aria-label="Question title" value="Do you approve the 2025 accounts?" style="font-size: 18px; font-weight: 500; margin-bottom: 12px" />
76
+ <div class="opt"><span class="fake"></span><input aria-label="Option 1" value="Yes" /><button class="vp-btn vp-btn--ghost vp-btn--icon vp-btn--xs" type="button" aria-label="Remove option"><svg class="i"><use href="#i-x" /></svg></button></div>
77
+ <div class="opt"><span class="fake"></span><input aria-label="Option 2" value="No" /><button class="vp-btn vp-btn--ghost vp-btn--icon vp-btn--xs" type="button" aria-label="Remove option"><svg class="i"><use href="#i-x" /></svg></button></div>
78
+ <div class="opt"><span class="fake"></span><input aria-label="Option 3" placeholder="Option 3" /></div>
79
+ <button class="vp-btn vp-btn--ghost vp-btn--sm" type="button" style="margin-top: 8px"><svg class="i"><use href="#i-plus" /></svg>Add option</button>
80
+ </section>
81
+
82
+ <section class="vp-box" aria-labelledby="q2label">
83
+ <div class="q-head"><span id="q2label" class="vp-text-xs vp-muted">Question 2 of 2</span><span class="vp-badge">Multiple choice</span></div>
84
+ <input class="vp-input vp-input--borderless" aria-label="Question title" value="Elect two board members" style="font-size: 18px; font-weight: 500; margin-bottom: 12px" />
85
+ <p class="vp-text-sm" style="margin-bottom: 12px">
86
+ Voters must select at least
87
+ <select class="vp-select inline-select" aria-label="Minimum selections"><option>1</option><option>2</option></select>
88
+ and at most
89
+ <select class="vp-select inline-select" aria-label="Maximum selections"><option>2</option><option>3</option></select>
90
+ options.
91
+ </p>
92
+ <div class="vp-dropzone"><svg class="i" style="width: 20px; height: 20px"><use href="#i-upload" /></svg><span><strong style="font-weight: 500; color: var(--fg)">Drop a candidate photo</strong> or browse</span><span class="vp-text-xs">PNG or JPG, up to 5 MB</span></div>
93
+ </section>
94
+
95
+ <button class="vp-btn vp-btn--outline vp-btn--block" type="button"><svg class="i"><use href="#i-plus" /></svg>Add question</button>
96
+ </main>
97
+ </div>
98
+
99
+ <aside class="panel" aria-label="Settings">
100
+ <div class="panel__body">
101
+ <div class="group">
102
+ <h2>Basic configuration</h2>
103
+ <label class="vp-switch"><span>Start immediately<br /><span class="vp-helper">Turn off to schedule the start.</span></span><input type="checkbox" role="switch" checked /></label>
104
+ <div class="vp-field">
105
+ <span class="vp-label" id="endLabel">End date and time</span>
106
+ <div class="pair" role="group" aria-labelledby="endLabel">
107
+ <input class="vp-input" type="date" aria-label="End date" value="2026-10-20" aria-invalid="true" aria-describedby="endErr" />
108
+ <input class="vp-input" type="time" aria-label="End time" value="20:00" />
109
+ </div>
110
+ <span class="vp-field-error" id="endErr">End date must be greater than start date.</span>
111
+ </div>
112
+ </div>
113
+
114
+ <div class="group">
115
+ <h2>Results visibility</h2>
116
+ <label class="vp-radio-card"><input type="radio" name="vis" /><span><span style="font-weight: 500">Live results</span><br /><span class="vp-muted vp-text-xs">Everyone sees the count while voting is open.</span></span></label>
117
+ <label class="vp-radio-card"><input type="radio" name="vis" checked /><span><span style="font-weight: 500">Hidden until the end</span><br /><span class="vp-muted vp-text-xs">Results are encrypted until the vote closes.</span></span></label>
118
+ <label class="vp-switch"><span>Anonymous voting<br /><span class="vp-helper">Nobody can link a vote to a voter.</span></span><input type="checkbox" role="switch" /></label>
119
+ </div>
120
+
121
+ <div class="group">
122
+ <h2>Census <span class="vp-badge vp-badge--orange">1 step left</span></h2>
123
+ <div class="step-row"><span class="vp-step" data-state="done"><svg class="i" style="width: 12px; height: 12px"><use href="#i-check" /></svg></span>
124
+ <div class="vp-field" style="flex: 1">
125
+ <label class="vp-label" for="group">Select a group of members</label>
126
+ <select class="vp-select" id="group"><option>All members (905)</option><option>Board (12)</option></select>
127
+ </div>
128
+ </div>
129
+ <div class="step-row"><span class="vp-step" data-state="current">2</span>
130
+ <div style="flex: 1; display: grid; gap: 10px">
131
+ <span class="vp-label">Set how voters prove who they are</span>
132
+ <div class="vp-alert vp-alert--warning"><svg class="i"><use href="#i-key" /></svg><div><div class="vp-alert__title">Required before publishing</div>Pick the member details voters must enter to vote, like their ID or member number.</div></div>
133
+ <button class="vp-btn vp-btn--outline vp-btn--sm" type="button">Configure voter authentication</button>
134
+ </div>
135
+ </div>
136
+ </div>
137
+
138
+ <div class="group">
139
+ <h2>Authentication guarantees</h2>
140
+ <div class="vp-security"><span data-level="weak">Weak</span><span data-level="mid" data-active>Mid</span><span data-level="strong">Strong</span></div>
141
+ <p class="vp-helper">Mid: three credentials, no second factor. Turn on email or SMS verification for strong guarantees.</p>
142
+ </div>
143
+ </div>
144
+ </aside>
145
+ </form>
146
+ </body>
147
+ </html>
@@ -0,0 +1,185 @@
1
+ <!doctype html>
2
+ <!--
3
+ Product mode reference: the organization dashboard (vocdoni-app /admin/processes), plain HTML +
4
+ assets/tokens/product.css. Shows the sidebar shell ("+ New vote" first, grouped nav, user card at
5
+ the bottom), page header, settings-tab rail, process table with status badges and row actions,
6
+ usage meter, and a destructive confirm dialog. Below 768px the table becomes cards.
7
+ -->
8
+ <html lang="en">
9
+ <head>
10
+ <meta charset="utf-8" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <title>Voting processes - Vocdoni</title>
13
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
14
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
15
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" />
16
+ <link rel="stylesheet" href="../assets/tokens/product.css" />
17
+ <style>
18
+ .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
19
+ .logo { height: 24px; width: auto; color: var(--fg); display: block; }
20
+ .sidebar-group { display: grid; gap: 2px; }
21
+ .user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); }
22
+ .user:hover { background: var(--bg-muted); }
23
+ .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-emphasized); display: grid; place-items: center; font-size: 12px; }
24
+ .tutorial { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 13px; color: var(--fg-muted); display: grid; gap: 8px; }
25
+ .grid-2 { display: grid; gap: 16px; margin-bottom: 24px; }
26
+ @media (min-width: 1024px) { .grid-2 { grid-template-columns: 2fr 1fr; } }
27
+ .meter-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
28
+ .row-title { color: var(--fg); text-decoration: none; font-weight: 400; }
29
+ .row-title:hover { text-decoration: underline; }
30
+ .cards { display: none; gap: 12px; }
31
+ .card-item { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); display: grid; gap: 8px; font-size: 14px; color: var(--fg-muted); }
32
+ @media (max-width: 767px) { .vp-table-wrap { display: none; } .cards { display: grid; } .vp-content { padding: 16px; } }
33
+ .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid var(--border); }
34
+ @media (min-width: 768px) { .mobile-bar { display: none; } }
35
+ .pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-muted); }
36
+ dialog { border: 0; padding: 0; background: transparent; }
37
+ dialog::backdrop { background: rgb(0 0 0 / 0.4); }
38
+ </style>
39
+ </head>
40
+ <body>
41
+ <svg style="display: none" aria-hidden="true">
42
+ <symbol id="i-plus" viewBox="0 0 24 24"><path d="M5 12h14" /><path d="M12 5v14" /></symbol>
43
+ <symbol id="i-house" viewBox="0 0 24 24"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" /><path d="M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /></symbol>
44
+ <symbol id="i-vote" viewBox="0 0 24 24"><path d="m9 12 2 2 4-4" /><path d="M5 7c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v12H5V7Z" /><path d="M22 19H2" /></symbol>
45
+ <symbol id="i-users" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" /><circle cx="9" cy="7" r="4" /><path d="M22 21v-2a4 4 0 0 0-3-3.87" /><path d="M16 3.13a4 4 0 0 1 0 7.75" /></symbol>
46
+ <symbol id="i-settings" viewBox="0 0 24 24"><path d="M20 7h-9" /><path d="M14 17H5" /><circle cx="17" cy="17" r="3" /><circle cx="7" cy="7" r="3" /></symbol>
47
+ <symbol id="i-life" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" /><path d="m4.93 4.93 4.24 4.24" /><path d="m14.83 9.17 4.24-4.24" /><path d="m14.83 14.83 4.24 4.24" /><path d="m9.17 14.83-4.24 4.24" /><circle cx="12" cy="12" r="4" /></symbol>
48
+ <symbol id="i-updown" viewBox="0 0 24 24"><path d="m7 15 5 5 5-5" /><path d="m7 9 5-5 5 5" /></symbol>
49
+ <symbol id="i-dots" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1" /><circle cx="12" cy="5" r="1" /><circle cx="12" cy="19" r="1" /></symbol>
50
+ <symbol id="i-panel" viewBox="0 0 24 24"><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M9 3v18" /></symbol>
51
+ <symbol id="i-info" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" /><path d="M12 16v-4" /><path d="M12 8h.01" /></symbol>
52
+ </svg>
53
+
54
+ <div class="vp-shell">
55
+ <!-- Sidebar: primary action first, grouped navigation, account at the bottom -->
56
+ <aside class="vp-sidebar" aria-label="Main navigation">
57
+ <a href="#" style="padding: 4px 8px 8px" aria-label="Vocdoni"><svg class="logo" viewBox="0 0 1000 215" fill="currentColor" aria-hidden="true"><g transform="translate(-460,-433.082)">
58
+ <path d="m 648.53,548.952 -62.85,36.29 -62.84,-36.28 -62.84,-36.29 v 62.85 l 62.84,36.28 62.84,36.28 62.84,-36.28 62.85,-36.28 v -62.85 z" />
59
+ <path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
60
+ <path d="m 875.09,512.702 -50.43,97.7 -50.45,-97.7 h 29.28 l 21.17,41.08 21.17,-41.08 z" />
61
+ <path d="m 878.57,559.802 c 0,-14 4.8,-25.76 14.22,-35.18 9.62,-9.42 21.54,-14.22 35.57,-14.22 14.03,0 26,4.8 35.37,14.22 9.613,9.42 14.42,21.147 14.42,35.18 0,14 -4.81,25.76 -14.23,35.18 -9.42,9.42 -21.33,14 -35.56,14 -14.23,0 -26.15,-4.62 -35.57,-14 -9.42,-9.38 -14.22,-21.14 -14.22,-35.18 z m 27.87,0 c 0,6.92 2.12,12.69 6.16,17.11 2.037,2.127 4.483,3.82 7.192,4.977 2.708,1.156 5.623,1.752 8.568,1.752 2.945,0 5.86,-0.596 8.568,-1.752 2.709,-1.157 5.155,-2.85 7.192,-4.977 4,-4.42 6.15,-10.19 6.15,-17.11 0,-6.92 -2.11,-12.68 -6.15,-17.11 -2.039,-2.125 -4.485,-3.815 -7.194,-4.97 -2.708,-1.155 -5.622,-1.75 -8.566,-1.75 -2.944,0 -5.858,0.595 -8.567,1.75 -2.708,1.155 -5.155,2.845 -7.193,4.97 -4.04,4.43 -6.16,10.19 -6.16,17.11 z" />
62
+ <path d="m 1084.23,589.022 c -10.19,13.27 -23.83,20 -41.33,20 -14.22,0 -26.14,-4.62 -35.56,-14 -9.42,-9.38 -14.23,-21.14 -14.23,-35.18 0,-14.04 4.81,-25.76 14.23,-35.18 9.61,-9.42 21.53,-14.22 35.56,-14.22 15,0 28.07,6.34 39.41,18.84 l -18.48,17.84 c -6,-7.31 -12.69,-11 -20,-11 -13.07,0 -22.87,9.8 -22.87,23.64 0,13.84 9.8,23.65 22.87,23.65 8.27,0 15.57,-4 21.92,-12.3 z" />
63
+ <path d="m 1107.94,524.242 c 9,-9.23 20.38,-13.84 33.64,-13.84 9.81,0 17.88,2.69 24.22,8.26 v -46.52 h 27.3 v 134.76 h -26.91 v -6.73 c -6.15,6 -14.42,8.85 -24.61,8.85 -13.26,0 -24.61,-4.42 -33.64,-13.46 -9.03,-9.04 -13.46,-21 -13.46,-35.76 0,-14.61 4.42,-26.52 13.46,-35.56 z m 58.25,35.56 c 0,-7.11 -2.12,-13.07 -6.35,-17.68 -1.91,-2.245 -4.3,-4.032 -7,-5.229 -2.69,-1.198 -5.62,-1.776 -8.57,-1.691 -2.97,-0.065 -5.92,0.521 -8.65,1.717 -2.72,1.195 -5.15,2.971 -7.11,5.203 -4,4.61 -6.15,10.57 -6.15,17.68 0,7.11 2.11,13.08 6.15,17.69 1.97,2.231 4.39,4.006 7.12,5.201 2.72,1.195 5.67,1.782 8.64,1.719 2.95,0.083 5.88,-0.496 8.57,-1.693 2.69,-1.198 5.09,-2.984 7,-5.227 4.23,-4.61 6.35,-10.57 6.35,-17.69 z" />
64
+ <path d="m 1210,559.802 c 0,-14 4.81,-25.76 14.23,-35.18 9.61,-9.42 21.53,-14.22 35.57,-14.22 14.04,0 26,4.8 35.37,14.22 9.61,9.42 14.42,21.147 14.42,35.18 0,14 -4.81,25.76 -14.23,35.18 -9.42,9.42 -21.34,14 -35.56,14 -14.22,0 -26.15,-4.62 -35.57,-14 -9.42,-9.38 -14.23,-21.14 -14.23,-35.18 z m 27.88,0 c 0,6.92 2.11,12.69 6.15,17.11 2.04,2.128 4.48,3.821 7.19,4.977 2.71,1.157 5.63,1.753 8.57,1.753 2.95,0 5.87,-0.596 8.58,-1.753 2.7,-1.156 5.15,-2.849 7.19,-4.977 4,-4.42 6.15,-10.19 6.15,-17.11 0,-6.92 -2.11,-12.68 -6.15,-17.11 -2.04,-2.125 -4.49,-3.816 -7.2,-4.971 -2.71,-1.154 -5.62,-1.75 -8.57,-1.75 -2.94,0 -5.85,0.596 -8.56,1.75 -2.71,1.155 -5.16,2.846 -7.2,4.971 -4.04,4.43 -6.15,10.19 -6.15,17.11 z" />
65
+ <path d="m 1324.83,512.702 h 46.09 c 11.07,0.003 21.68,4.402 29.51,12.229 7.82,7.828 12.22,18.443 12.22,29.511 v 52.46 h -27.52 v -52.32 c -0.07,-4.423 -1.87,-8.643 -5.02,-11.756 -3.14,-3.113 -7.38,-4.873 -11.8,-4.904 h -16.21 v 69 h -27.27 z" />
66
+ <path d="m 1432.51,606.902 v -94.2 H 1460 v 94.2 z" />
67
+ <path d="m 1460,472.152 h -27.44 v 27.44 H 1460 Z" />
68
+ </g></svg></a>
69
+ <a class="vp-btn vp-btn--xs vp-btn--block" href="#"><svg class="i"><use href="#i-plus" /></svg>New vote</a>
70
+ <nav class="sidebar-group">
71
+ <p class="vp-sidebar__section-title">Platform</p>
72
+ <a class="vp-nav-item" href="#"><svg class="i"><use href="#i-house" /></svg>Dashboard</a>
73
+ <a class="vp-nav-item" href="#" aria-current="page"><svg class="i"><use href="#i-vote" /></svg>Voting processes</a>
74
+ <a class="vp-nav-item" href="#"><svg class="i"><use href="#i-users" /></svg>Memberbase</a>
75
+ <a class="vp-nav-item" href="#"><svg class="i"><use href="#i-settings" /></svg>Settings</a>
76
+ </nav>
77
+ <nav class="sidebar-group">
78
+ <p class="vp-sidebar__section-title">Help</p>
79
+ <a class="vp-nav-item" href="#"><svg class="i"><use href="#i-life" /></svg>Support</a>
80
+ </nav>
81
+ <div class="tutorial" style="margin-top: auto">
82
+ <strong style="font-weight: 500; color: var(--fg)">First steps</strong>
83
+ Need help with your first voting process? Watch the tutorial or book a call.
84
+ <a class="vp-btn vp-btn--outline vp-btn--xs" href="#">Book a call</a>
85
+ </div>
86
+ <button class="user vp-btn--ghost" style="border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer">
87
+ <span class="avatar">AF</span>
88
+ <span style="flex: 1; min-width: 0; font-size: 14px">Alice<br /><span class="vp-muted" style="font-size: 12px">Col·legi d'Infermeres</span></span>
89
+ <svg class="i vp-muted"><use href="#i-updown" /></svg>
90
+ </button>
91
+ </aside>
92
+
93
+ <div style="min-width: 0">
94
+ <div class="mobile-bar">
95
+ <button class="vp-btn vp-btn--subtle vp-btn--icon vp-btn--xs" aria-label="Open menu"><svg class="i"><use href="#i-panel" /></svg></button>
96
+ <a class="vp-btn vp-btn--xs" href="#"><svg class="i"><use href="#i-plus" /></svg>New vote</a>
97
+ </div>
98
+ <main class="vp-content">
99
+ <div class="vp-page-header">
100
+ <div>
101
+ <h1 class="vp-title-2xl">Voting processes</h1>
102
+ <p class="vp-subtitle" style="margin-top: 4px">Every vote of your organization, past and present.</p>
103
+ </div>
104
+ </div>
105
+
106
+ <div class="grid-2">
107
+ <div class="vp-alert vp-alert--info"><svg class="i"><use href="#i-info" /></svg><div><div class="vp-alert__title">Results stay encrypted until each vote ends</div>Processes with hidden results show their count only after the closing time.</div></div>
108
+ <div class="vp-box">
109
+ <div class="meter-row"><span>Votes this year</span><span style="font-variant-numeric: tabular-nums">8 / 10</span></div>
110
+ <div class="vp-progress vp-progress--orange"><span style="width: 80%"></span></div>
111
+ <a class="vp-link vp-text-xs" href="#" style="display: inline-block; margin-top: 8px">Upgrade plan</a>
112
+ </div>
113
+ </div>
114
+
115
+ <div class="vp-tabs" role="tablist" style="margin-bottom: 16px">
116
+ <button class="vp-tab" role="tab" aria-selected="true">All</button>
117
+ <button class="vp-tab" role="tab" aria-selected="false">Ended</button>
118
+ <button class="vp-tab" role="tab" aria-selected="false">Drafts</button>
119
+ </div>
120
+
121
+ <div class="vp-table-wrap">
122
+ <table class="vp-table">
123
+ <thead>
124
+ <tr><th>Title</th><th>Start date</th><th>End date</th><th>Status</th><th class="num">Votes</th><th>Results</th><th><span class="vp-sr-only">Actions</span></th></tr>
125
+ </thead>
126
+ <tbody>
127
+ <tr>
128
+ <td><a class="row-title" href="#">General assembly 2026</a></td><td>20 Oct 2026</td><td>30 Oct 2026</td>
129
+ <td><span class="vp-badge vp-badge--green">Ongoing</span></td><td class="num">711</td>
130
+ <td><span class="vp-badge">Not yet</span></td>
131
+ <td><button class="vp-btn vp-btn--ghost vp-btn--icon vp-btn--xs" aria-label="End vote" onclick="document.getElementById('endDlg').showModal()"><svg class="i"><use href="#i-dots" /></svg></button></td>
132
+ </tr>
133
+ <tr>
134
+ <td><a class="row-title" href="#">Board renewal</a></td><td>2 Nov 2026</td><td>9 Nov 2026</td>
135
+ <td><span class="vp-badge vp-badge--yellow">Upcoming</span></td><td class="num">0</td>
136
+ <td><span class="vp-badge">Not yet</span></td>
137
+ <td><button class="vp-btn vp-btn--ghost vp-btn--icon vp-btn--xs" aria-label="More actions"><svg class="i"><use href="#i-dots" /></svg></button></td>
138
+ </tr>
139
+ <tr>
140
+ <td><a class="row-title" href="#">2026 budget approval</a></td><td>1 Sept 2026</td><td>8 Sept 2026</td>
141
+ <td><span class="vp-badge vp-badge--teal">Results available</span></td><td class="num">602</td>
142
+ <td><span class="vp-badge vp-badge--blue">Live</span></td>
143
+ <td><button class="vp-btn vp-btn--ghost vp-btn--icon vp-btn--xs" aria-label="More actions"><svg class="i"><use href="#i-dots" /></svg></button></td>
144
+ </tr>
145
+ <tr>
146
+ <td><a class="row-title" href="#">Statutes amendment</a></td><td>3 Jun 2026</td><td>4 Jun 2026</td>
147
+ <td><span class="vp-badge vp-badge--red">Canceled</span></td><td class="num">12</td>
148
+ <td><span class="vp-badge">Not yet</span></td>
149
+ <td><button class="vp-btn vp-btn--ghost vp-btn--icon vp-btn--xs" aria-label="More actions"><svg class="i"><use href="#i-dots" /></svg></button></td>
150
+ </tr>
151
+ </tbody>
152
+ </table>
153
+ <div class="pager"><span>Page 1 of 3</span><span style="display: flex; gap: 6px"><button class="vp-btn vp-btn--outline vp-btn--xs" disabled>Previous</button><button class="vp-btn vp-btn--outline vp-btn--xs">Next</button></span></div>
154
+ </div>
155
+
156
+ <!-- Mobile: the same rows as cards (title + kebab, badge row, label: value lines) -->
157
+ <div class="cards">
158
+ <div class="card-item">
159
+ <div style="display: flex; justify-content: space-between; gap: 8px"><a class="row-title" href="#">General assembly 2026</a><svg class="i"><use href="#i-dots" /></svg></div>
160
+ <div><span class="vp-badge vp-badge--green">Ongoing</span></div>
161
+ <div>Ends: 30 Oct 2026</div><div>Votes: 711</div>
162
+ </div>
163
+ <div class="card-item">
164
+ <div style="display: flex; justify-content: space-between; gap: 8px"><a class="row-title" href="#">2026 budget approval</a><svg class="i"><use href="#i-dots" /></svg></div>
165
+ <div><span class="vp-badge vp-badge--teal">Results available</span></div>
166
+ <div>Ended: 8 Sept 2026</div><div>Votes: 602</div>
167
+ </div>
168
+ </div>
169
+ </main>
170
+ </div>
171
+ </div>
172
+
173
+ <!-- Destructive confirm: name the object, state the consequence, red confirm on the right -->
174
+ <dialog id="endDlg" role="alertdialog" aria-labelledby="endTitle" aria-describedby="endDesc">
175
+ <div class="vp-dialog">
176
+ <div class="vp-dialog__header" id="endTitle">End vote</div>
177
+ <div class="vp-dialog__body" id="endDesc">Ending "General assembly 2026" is irreversible. Voters will no longer be able to vote.</div>
178
+ <div class="vp-dialog__footer">
179
+ <button class="vp-btn vp-btn--ghost" onclick="this.closest('dialog').close()">Cancel</button>
180
+ <button class="vp-btn vp-btn--danger" onclick="this.closest('dialog').close()">End vote</button>
181
+ </div>
182
+ </div>
183
+ </dialog>
184
+ </body>
185
+ </html>