@vocdoni/skills 0.1.1 → 0.3.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.
- package/.claude-plugin/marketplace.json +22 -2
- package/CHANGELOG.md +22 -0
- package/README.md +25 -0
- package/package.json +1 -1
- package/plugins/agentic-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/agentic-dev/skills/subagent-driven-development/SKILL.md +10 -5
- package/plugins/agentic-dev/skills/subagent-driven-development/references/dispatch.md +20 -0
- package/plugins/agentic-dev/skills/subagent-driven-development/references/ledger.md +1 -0
- package/plugins/agentic-dev/skills/subagent-driven-development/scripts/task-brief.sh +2 -0
- package/plugins/agentic-dev/skills/subagent-driven-development/templates/plan.md +4 -0
- package/plugins/claude-pi-subagent/.claude-plugin/marketplace.json +1 -1
- package/plugins/claude-pi-subagent/plugins/pi-subagent/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-pi-subagent/plugins/pi-subagent/dist/server.mjs +18072 -3144
- package/plugins/claude-pi-subagent/plugins/pi-subagent/package-lock.json +171 -184
- package/plugins/claude-pi-subagent/plugins/pi-subagent/package.json +4 -4
- package/plugins/claude-pi-subagent/plugins/pi-subagent/src/schemas.ts +4 -0
- package/plugins/claude-pi-subagent/plugins/pi-subagent/src/server.ts +1 -1
- package/plugins/claude-pi-subagent/plugins/pi-subagent/test/schemas.test.ts +30 -0
- package/plugins/vocdoni-comments/.claude-plugin/plugin.json +21 -0
- package/plugins/vocdoni-comments/skills/comments/SKILL.md +59 -0
- package/plugins/vocdoni-comments/skills/comments/trim.md +78 -0
- package/plugins/vocdoni-ui-style/.claude-plugin/plugin.json +25 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/SKILL.md +99 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/chakra/product.tsx +263 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/brand.tsx +195 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/button.tsx +67 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/status-badge.tsx +93 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-ink.svg +15 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-white.svg +15 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo.svg +15 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-ink.svg +7 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-white.svg +7 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark.svg +7 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-footer.webp +0 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-home-hero.webp +0 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-mobile.webp +0 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-stats-and-panels.webp +0 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-vertical-hero.webp +0 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-washes-and-comparison.webp +0 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-process-results.webp +0 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-signin.webp +0 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.chakra.ts +285 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.css +847 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.tailwind.css +352 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.chakra.ts +410 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.css +1116 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.tailwind.css +289 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/editorial-landing.html +358 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/email-vote-invitation.html +58 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-auth.html +81 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-builder.html +147 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-dashboard.html +185 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-voting.html +326 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/brand-core.md +166 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/editorial.md +198 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/product.md +173 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/recipes.md +264 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/stacks.md +196 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/ux-flows.md +110 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-editorial.tsx +15 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-product.tsx +9 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/doc.md +10 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/escaped.json +1 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-editorial.tsx +16 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-product.css +6 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/locale.json +1 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-attr.tsx +8 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-copy.tsx +10 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/regex-literal.tsx +5 -0
- package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style.mjs +436 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editorial-mode building blocks from vocdoni.io (Tailwind v4 + shadcn).
|
|
3
|
+
* Requires assets/tokens/editorial.tailwind.css (eyebrow classes, rounded-card,
|
|
4
|
+
* py-section tokens, signal color) and shadcn's `cn` helper at '@/lib/utils'.
|
|
5
|
+
*
|
|
6
|
+
* Compose every section the same way:
|
|
7
|
+
*
|
|
8
|
+
* <Section className='bg-muted'>
|
|
9
|
+
* <Container>
|
|
10
|
+
* <SectionHeader eyebrow='Comparison' title='Why organizations choose Vocdoni'
|
|
11
|
+
* lede='Most digital voting tools ask you to trust their results. Vocdoni gives you proof.' />
|
|
12
|
+
* <div className='mt-12 grid gap-4 md:grid-cols-3'>
|
|
13
|
+
* <Panel as='article' surface='raised' padding='lg'>...</Panel>
|
|
14
|
+
* </div>
|
|
15
|
+
* </Container>
|
|
16
|
+
* </Section>
|
|
17
|
+
*/
|
|
18
|
+
import { cva, type VariantProps } from 'class-variance-authority'
|
|
19
|
+
import * as React from 'react'
|
|
20
|
+
|
|
21
|
+
import { cn } from '@/lib/utils'
|
|
22
|
+
|
|
23
|
+
/* ---------- Layout ---------- */
|
|
24
|
+
|
|
25
|
+
export function Container({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
|
|
26
|
+
return <div className={cn('mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8', className)} {...props} />
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** 32 / 64 / 96px vertical rhythm. Alternate plain and `bg-muted` (or `bg-muted/50`) bands. */
|
|
30
|
+
export const Section = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>(
|
|
31
|
+
({ className, ...props }, ref) => (
|
|
32
|
+
<section ref={ref} className={cn('py-section sm:py-section-md lg:py-section-lg', className)} {...props} />
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
Section.displayName = 'Section'
|
|
36
|
+
|
|
37
|
+
/* ---------- Eyebrow + section header ---------- */
|
|
38
|
+
|
|
39
|
+
interface EyebrowProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
40
|
+
withHalo?: boolean
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** 8px signal-yellow dot + uppercase label. The only place the yellow appears. */
|
|
44
|
+
export function Eyebrow({ withHalo = false, className, children, ...props }: EyebrowProps) {
|
|
45
|
+
return (
|
|
46
|
+
<span className={cn('eyebrow', className)} {...props}>
|
|
47
|
+
<span className={cn('eyebrow-dot', withHalo && 'eyebrow-dot-halo')} aria-hidden='true' />
|
|
48
|
+
{children}
|
|
49
|
+
</span>
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const HEADING_SIZE = {
|
|
54
|
+
display: 'text-4xl sm:text-5xl lg:text-6xl', // page-opening sections
|
|
55
|
+
section: 'text-3xl sm:text-4xl lg:text-[2.75rem]', // long pages with many sections
|
|
56
|
+
} as const
|
|
57
|
+
|
|
58
|
+
interface SectionHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
59
|
+
eyebrow?: React.ReactNode
|
|
60
|
+
title: React.ReactNode
|
|
61
|
+
lede?: React.ReactNode
|
|
62
|
+
headingLevel?: 'h1' | 'h2' | 'h3'
|
|
63
|
+
align?: 'center' | 'left'
|
|
64
|
+
size?: keyof typeof HEADING_SIZE
|
|
65
|
+
titleClassName?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** Eyebrow, serif display heading, muted lede capped at max-w-2xl. */
|
|
69
|
+
export function SectionHeader({
|
|
70
|
+
eyebrow,
|
|
71
|
+
title,
|
|
72
|
+
lede,
|
|
73
|
+
headingLevel = 'h2',
|
|
74
|
+
align = 'center',
|
|
75
|
+
size = 'display',
|
|
76
|
+
titleClassName,
|
|
77
|
+
className,
|
|
78
|
+
...props
|
|
79
|
+
}: SectionHeaderProps) {
|
|
80
|
+
const centered = align === 'center'
|
|
81
|
+
return (
|
|
82
|
+
<div className={cn('flex flex-col gap-4', centered && 'items-center text-center', className)} {...props}>
|
|
83
|
+
{eyebrow && <Eyebrow>{eyebrow}</Eyebrow>}
|
|
84
|
+
{React.createElement(headingLevel, { className: cn(HEADING_SIZE[size], titleClassName) }, title)}
|
|
85
|
+
{lede && <p className={cn('max-w-2xl text-lg text-muted-foreground', centered && 'mx-auto')}>{lede}</p>}
|
|
86
|
+
</div>
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* ---------- Panel: the single card vocabulary ---------- */
|
|
91
|
+
|
|
92
|
+
const panelVariants = cva('rounded-card', {
|
|
93
|
+
variants: {
|
|
94
|
+
/**
|
|
95
|
+
* raised - only on a tinted (bg-muted) section
|
|
96
|
+
* outline - only on a plain section
|
|
97
|
+
* inset - only on a plain section, for secondary groupings
|
|
98
|
+
* ledger - many rows reading as one document; the 1px gap draws hairlines
|
|
99
|
+
* A panel never carries a shadow it cannot cast.
|
|
100
|
+
*/
|
|
101
|
+
surface: {
|
|
102
|
+
raised: 'bg-background border shadow-sm',
|
|
103
|
+
outline: 'border',
|
|
104
|
+
inset: 'bg-muted/50 border',
|
|
105
|
+
ledger: 'bg-border border grid gap-px overflow-hidden',
|
|
106
|
+
},
|
|
107
|
+
padding: { none: '', md: 'p-6', lg: 'p-6 sm:p-8' },
|
|
108
|
+
interactive: {
|
|
109
|
+
true: 'hover:border-primary/40 focus-within:border-primary/40 transition-colors',
|
|
110
|
+
false: '',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
defaultVariants: { surface: 'raised', padding: 'md', interactive: false },
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
type PanelTag = 'div' | 'li' | 'article' | 'section'
|
|
117
|
+
export interface PanelProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof panelVariants> {
|
|
118
|
+
as?: PanelTag
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function Panel({ as: Tag = 'div', surface, padding, interactive, className, ...props }: PanelProps) {
|
|
122
|
+
return <Tag className={cn(panelVariants({ surface, padding, interactive }), className)} {...props} />
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** Green-tinted rounded square that holds a lucide icon at size-5. */
|
|
126
|
+
export function IconTile({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
|
|
127
|
+
return (
|
|
128
|
+
<div
|
|
129
|
+
className={cn('bg-primary/10 text-primary inline-flex size-11 items-center justify-center rounded-lg', className)}
|
|
130
|
+
{...props}
|
|
131
|
+
/>
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* ---------- Badge ---------- */
|
|
136
|
+
|
|
137
|
+
export const badgeVariants = cva(
|
|
138
|
+
'inline-flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors',
|
|
139
|
+
{
|
|
140
|
+
variants: {
|
|
141
|
+
variant: {
|
|
142
|
+
default: 'border-transparent bg-primary text-primary-foreground',
|
|
143
|
+
secondary: 'border-transparent bg-secondary text-secondary-foreground',
|
|
144
|
+
outline: 'text-foreground',
|
|
145
|
+
success: 'border-success/30 bg-success/10 text-success',
|
|
146
|
+
warning: 'border-warning/40 bg-warning/10 text-warning',
|
|
147
|
+
destructive: 'border-transparent bg-destructive text-destructive-foreground',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
defaultVariants: { variant: 'default' },
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {}
|
|
155
|
+
|
|
156
|
+
export function Badge({ className, variant, ...props }: BadgeProps) {
|
|
157
|
+
return <span className={cn(badgeVariants({ variant }), className)} {...props} />
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* ---------- Logo ---------- */
|
|
161
|
+
|
|
162
|
+
interface VocdoniLogoProps extends React.SVGProps<SVGSVGElement> {
|
|
163
|
+
/** Mark only (navbar below xl, favicons, collapsed sidebars). */
|
|
164
|
+
minimal?: boolean
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** Inherits color from `currentColor`: text-foreground on cream, white on dark panels. */
|
|
168
|
+
export function VocdoniLogo({ minimal = false, className, ...props }: VocdoniLogoProps) {
|
|
169
|
+
return (
|
|
170
|
+
<svg
|
|
171
|
+
viewBox={minimal ? '0 0 251.37 215' : '0 0 1000 215'}
|
|
172
|
+
fill='currentColor'
|
|
173
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
174
|
+
className={cn('h-7 w-auto text-foreground', className)}
|
|
175
|
+
{...props}
|
|
176
|
+
>
|
|
177
|
+
<g transform='translate(-460,-433.082)'>
|
|
178
|
+
<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' />
|
|
179
|
+
<path d='m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z' />
|
|
180
|
+
{!minimal && (
|
|
181
|
+
<>
|
|
182
|
+
<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' />
|
|
183
|
+
<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' />
|
|
184
|
+
<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' />
|
|
185
|
+
<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' />
|
|
186
|
+
<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' />
|
|
187
|
+
<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' />
|
|
188
|
+
<path d='m 1432.51,606.902 v -94.2 H 1460 v 94.2 z' />
|
|
189
|
+
<path d='m 1460,472.152 h -27.44 v 27.44 H 1460 Z' />
|
|
190
|
+
</>
|
|
191
|
+
)}
|
|
192
|
+
</g>
|
|
193
|
+
</svg>
|
|
194
|
+
)
|
|
195
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editorial-mode Button (shadcn/ui + cva), as used on vocdoni.io.
|
|
3
|
+
* Requires assets/tokens/editorial.tailwind.css (surface-dark, shadow-button,
|
|
4
|
+
* shadow-inset-top and the 5px spacing base: h-11 = 54px, h-9 = 45px,
|
|
5
|
+
* px-6 = 30px, px-8 = 40px).
|
|
6
|
+
*
|
|
7
|
+
* Rendered sizes on vocdoni.io: the navbar CTA is size='sm' with px-5 (45px
|
|
8
|
+
* tall); hero and in-page CTAs are default/lg (54px). The dark variant renders
|
|
9
|
+
* with the size's 12px radius; vocdoni.io's DESIGN.md calls it a pill because
|
|
10
|
+
* its variant also lists rounded-full, which tailwind-merge drops in favor of
|
|
11
|
+
* the size's rounded-md. Pass className='rounded-full' for a real pill.
|
|
12
|
+
*
|
|
13
|
+
* <Button variant='dark' size='lg'>Start for free <ArrowRight /></Button> // ONE per surface
|
|
14
|
+
* <Button>Set up a test vote</Button> // green, in-page
|
|
15
|
+
* <Button variant='outline'>Talk to an election expert</Button>
|
|
16
|
+
* <Button size='lg' className='rounded-full'>Start for free</Button> // closing CTA pill
|
|
17
|
+
*/
|
|
18
|
+
import { Slot } from '@radix-ui/react-slot'
|
|
19
|
+
import { cva, type VariantProps } from 'class-variance-authority'
|
|
20
|
+
import * as React from 'react'
|
|
21
|
+
|
|
22
|
+
import { cn } from '@/lib/utils'
|
|
23
|
+
|
|
24
|
+
const buttonVariants = cva(
|
|
25
|
+
'inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-[color,background-color,border-color,box-shadow,transform,scale] active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
|
|
26
|
+
{
|
|
27
|
+
variants: {
|
|
28
|
+
variant: {
|
|
29
|
+
// Green: in-page CTAs and form submits
|
|
30
|
+
default: 'bg-primary text-primary-foreground hover:bg-primary/90 shadow-button',
|
|
31
|
+
// Dark ink: the signature top-level CTA (navbar sign-in, hero primary).
|
|
32
|
+
// Renders with the size's 12px radius, exactly like vocdoni.io.
|
|
33
|
+
dark: 'bg-surface-dark text-surface-dark-foreground hover:bg-surface-dark/90 font-semibold shadow-inset-top',
|
|
34
|
+
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
35
|
+
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
|
|
36
|
+
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
37
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
38
|
+
link: 'text-primary underline-offset-4 hover:underline active:scale-100',
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
default: 'h-11 px-6 py-3 rounded-md',
|
|
42
|
+
sm: 'h-9 rounded-md px-3',
|
|
43
|
+
lg: 'h-11 rounded-md px-8',
|
|
44
|
+
icon: 'h-10 w-10 rounded-full',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: {
|
|
48
|
+
variant: 'default',
|
|
49
|
+
size: 'default',
|
|
50
|
+
},
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
export interface ButtonProps
|
|
55
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
56
|
+
asChild?: boolean
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
60
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
61
|
+
const Comp = asChild ? Slot : 'button'
|
|
62
|
+
return <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
Button.displayName = 'Button'
|
|
66
|
+
|
|
67
|
+
export { Button, buttonVariants }
|
package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/status-badge.tsx
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product-mode election status badge for Tailwind + shadcn, matching
|
|
3
|
+
* vocdoni-app's subtle Chakra tags (palette.100 background, palette.700 text,
|
|
4
|
+
* 6px radius, 12px light text). Requires assets/tokens/product.tailwind.css.
|
|
5
|
+
*
|
|
6
|
+
* <StatusBadge status='ongoing' /> // "Ongoing", green
|
|
7
|
+
* <StatusBadge status='results' /> // "Results available", teal
|
|
8
|
+
* <ResultsTag state='secret' /> // "Hidden until the end", purple
|
|
9
|
+
*
|
|
10
|
+
* Pass translated labels through `label` in a real app; the defaults are the
|
|
11
|
+
* English source strings.
|
|
12
|
+
*/
|
|
13
|
+
import * as React from 'react'
|
|
14
|
+
|
|
15
|
+
import { cn } from '@/lib/utils'
|
|
16
|
+
|
|
17
|
+
export type ElectionStatus = 'upcoming' | 'ongoing' | 'paused' | 'ended' | 'results' | 'canceled'
|
|
18
|
+
type Tone = 'green' | 'yellow' | 'gray' | 'teal' | 'red' | 'purple' | 'blue' | 'orange'
|
|
19
|
+
|
|
20
|
+
const TONE_CLASS: Record<Tone, string> = {
|
|
21
|
+
green: 'bg-status-green text-status-green-foreground',
|
|
22
|
+
yellow: 'bg-status-yellow text-status-yellow-foreground',
|
|
23
|
+
gray: 'bg-status-gray text-status-gray-foreground',
|
|
24
|
+
teal: 'bg-status-teal text-status-teal-foreground',
|
|
25
|
+
red: 'bg-status-red text-status-red-foreground',
|
|
26
|
+
purple: 'bg-status-purple text-status-purple-foreground',
|
|
27
|
+
blue: 'bg-status-blue text-status-blue-foreground',
|
|
28
|
+
orange: 'bg-status-orange text-status-orange-foreground',
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Process status, one mapping for every surface (lists, voting page,
|
|
33
|
+
* dashboard, cards). This is the skill's normalization: vocdoni-app is not
|
|
34
|
+
* fully consistent (its archive view paints upcoming gray, its admin results
|
|
35
|
+
* tab paints "Results available" green).
|
|
36
|
+
*/
|
|
37
|
+
export const STATUS: Record<ElectionStatus, { tone: Tone; label: string }> = {
|
|
38
|
+
upcoming: { tone: 'yellow', label: 'Upcoming' },
|
|
39
|
+
ongoing: { tone: 'green', label: 'Ongoing' },
|
|
40
|
+
paused: { tone: 'orange', label: 'Paused' },
|
|
41
|
+
ended: { tone: 'gray', label: 'Ended' },
|
|
42
|
+
results: { tone: 'teal', label: 'Results available' },
|
|
43
|
+
canceled: { tone: 'red', label: 'Canceled' },
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
47
|
+
tone: Tone
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function Tag({ tone, className, ...props }: TagProps) {
|
|
51
|
+
return (
|
|
52
|
+
<span
|
|
53
|
+
className={cn(
|
|
54
|
+
'inline-flex w-fit items-center gap-1 whitespace-nowrap rounded-sm px-1 py-0.5 text-xs font-light leading-[18px]',
|
|
55
|
+
TONE_CLASS[tone],
|
|
56
|
+
className
|
|
57
|
+
)}
|
|
58
|
+
{...props}
|
|
59
|
+
/>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface StatusBadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
64
|
+
status: ElectionStatus
|
|
65
|
+
label?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function StatusBadge({ status, label, ...props }: StatusBadgeProps) {
|
|
69
|
+
const s = STATUS[status]
|
|
70
|
+
return (
|
|
71
|
+
<Tag tone={s.tone} {...props}>
|
|
72
|
+
{label ?? s.label}
|
|
73
|
+
</Tag>
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type ResultsState = 'live' | 'secret' | 'awaiting' | 'available'
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Results disclosure: a second tag beside the status, or the badge on a results
|
|
81
|
+
* tab. Omit it when the status badge already says "Results available".
|
|
82
|
+
*/
|
|
83
|
+
export const RESULTS: Record<ResultsState, { tone: Tone; label: string }> = {
|
|
84
|
+
live: { tone: 'blue', label: 'Live results' },
|
|
85
|
+
secret: { tone: 'purple', label: 'Hidden until the end' },
|
|
86
|
+
awaiting: { tone: 'orange', label: 'Awaiting results' },
|
|
87
|
+
available: { tone: 'teal', label: 'Results available' },
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ResultsTag({ state, label }: { state: ResultsState; label?: string }) {
|
|
91
|
+
const r = RESULTS[state]
|
|
92
|
+
return <Tag tone={r.tone}>{label ?? r.label}</Tag>
|
|
93
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 215" fill="#202019" role="img" aria-label="Vocdoni">
|
|
2
|
+
<title>Vocdoni</title>
|
|
3
|
+
<g transform="translate(-460,-433.082)">
|
|
4
|
+
<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" />
|
|
5
|
+
<path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
|
|
6
|
+
<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" />
|
|
7
|
+
<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" />
|
|
8
|
+
<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" />
|
|
9
|
+
<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" />
|
|
10
|
+
<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" />
|
|
11
|
+
<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" />
|
|
12
|
+
<path d="m 1432.51,606.902 v -94.2 H 1460 v 94.2 z" />
|
|
13
|
+
<path d="m 1460,472.152 h -27.44 v 27.44 H 1460 Z" />
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 215" fill="#ffffff" role="img" aria-label="Vocdoni">
|
|
2
|
+
<title>Vocdoni</title>
|
|
3
|
+
<g transform="translate(-460,-433.082)">
|
|
4
|
+
<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" />
|
|
5
|
+
<path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
|
|
6
|
+
<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" />
|
|
7
|
+
<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" />
|
|
8
|
+
<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" />
|
|
9
|
+
<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" />
|
|
10
|
+
<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" />
|
|
11
|
+
<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" />
|
|
12
|
+
<path d="m 1432.51,606.902 v -94.2 H 1460 v 94.2 z" />
|
|
13
|
+
<path d="m 1460,472.152 h -27.44 v 27.44 H 1460 Z" />
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 215" fill="currentColor" role="img" aria-label="Vocdoni">
|
|
2
|
+
<title>Vocdoni</title>
|
|
3
|
+
<g transform="translate(-460,-433.082)">
|
|
4
|
+
<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" />
|
|
5
|
+
<path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
|
|
6
|
+
<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" />
|
|
7
|
+
<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" />
|
|
8
|
+
<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" />
|
|
9
|
+
<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" />
|
|
10
|
+
<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" />
|
|
11
|
+
<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" />
|
|
12
|
+
<path d="m 1432.51,606.902 v -94.2 H 1460 v 94.2 z" />
|
|
13
|
+
<path d="m 1460,472.152 h -27.44 v 27.44 H 1460 Z" />
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 251.37 215" fill="#202019" role="img" aria-label="Vocdoni">
|
|
2
|
+
<title>Vocdoni</title>
|
|
3
|
+
<g transform="translate(-460,-433.082)">
|
|
4
|
+
<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" />
|
|
5
|
+
<path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 251.37 215" fill="#ffffff" role="img" aria-label="Vocdoni">
|
|
2
|
+
<title>Vocdoni</title>
|
|
3
|
+
<g transform="translate(-460,-433.082)">
|
|
4
|
+
<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" />
|
|
5
|
+
<path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 251.37 215" fill="currentColor" role="img" aria-label="Vocdoni">
|
|
2
|
+
<title>Vocdoni</title>
|
|
3
|
+
<g transform="translate(-460,-433.082)">
|
|
4
|
+
<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" />
|
|
5
|
+
<path d="m 614.16,433.082 -62.84,36.28 v 62.85 l 62.84,-36.29 z" />
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-footer.webp
ADDED
|
Binary file
|
package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-home-hero.webp
ADDED
|
Binary file
|
package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-mobile.webp
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|