@conduction/docusaurus-preset 3.18.0 → 3.19.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/package.json
CHANGED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <PullQuote />
|
|
3
|
+
*
|
|
4
|
+
* Editorial emphasis for long-form prose. Lifts one or two load-
|
|
5
|
+
* bearing sentences out of an opinion piece, product page, or
|
|
6
|
+
* academy post into an orange-bordered cobalt panel. Optional
|
|
7
|
+
* attribution slot turns the pull-quote into a citable position.
|
|
8
|
+
*
|
|
9
|
+
* Use sparingly. One to three per page; on the sentences that
|
|
10
|
+
* carry the argument. The hero variant is for a single citable
|
|
11
|
+
* thesis near the top of the post.
|
|
12
|
+
*
|
|
13
|
+
* Variants:
|
|
14
|
+
* - "default" — orange-knvb left border, cobalt-50 fill,
|
|
15
|
+
* italic cobalt body. Drop into MDX between paragraphs.
|
|
16
|
+
* - "hero" — larger (28px), no italics, eyebrow hex bullet.
|
|
17
|
+
* Use once per page for the thesis statement.
|
|
18
|
+
* - "compact" — smaller (16px), tighter padding. For sidebars
|
|
19
|
+
* or dense layouts.
|
|
20
|
+
*
|
|
21
|
+
* Usage:
|
|
22
|
+
*
|
|
23
|
+
* <PullQuote>
|
|
24
|
+
* You buy a suite. You use a workspace. You inhabit a platform.
|
|
25
|
+
* </PullQuote>
|
|
26
|
+
*
|
|
27
|
+
* <PullQuote
|
|
28
|
+
* attribution="Ruben van der Linde"
|
|
29
|
+
* role="CTO Conduction"
|
|
30
|
+
* >
|
|
31
|
+
* Nextcloud-as-platform is true today in every structural sense
|
|
32
|
+
* that matters.
|
|
33
|
+
* </PullQuote>
|
|
34
|
+
*
|
|
35
|
+
* <PullQuote
|
|
36
|
+
* variant="hero"
|
|
37
|
+
* eyebrow="The thesis"
|
|
38
|
+
* attribution="Ruben van der Linde"
|
|
39
|
+
* role="CTO Conduction"
|
|
40
|
+
* >
|
|
41
|
+
* Tomorrow's functionality will not be built by vendors. It will
|
|
42
|
+
* be built by users with AI. In that world, scale wins.
|
|
43
|
+
* </PullQuote>
|
|
44
|
+
*
|
|
45
|
+
* Mirrors preview/components/pull-quote.html.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
import React from 'react';
|
|
49
|
+
import styles from './PullQuote.module.css';
|
|
50
|
+
|
|
51
|
+
export default function PullQuote({
|
|
52
|
+
children,
|
|
53
|
+
attribution,
|
|
54
|
+
role,
|
|
55
|
+
variant = 'default',
|
|
56
|
+
eyebrow,
|
|
57
|
+
className,
|
|
58
|
+
}) {
|
|
59
|
+
const composed = [
|
|
60
|
+
styles.quote,
|
|
61
|
+
variant === 'hero' && styles.hero,
|
|
62
|
+
variant === 'compact' && styles.compact,
|
|
63
|
+
className,
|
|
64
|
+
].filter(Boolean).join(' ');
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<blockquote className={composed}>
|
|
68
|
+
{variant === 'hero' && eyebrow && (
|
|
69
|
+
<span className={styles.eyebrow}>
|
|
70
|
+
<span className={styles.eyebrowHex} aria-hidden="true" />
|
|
71
|
+
{eyebrow}
|
|
72
|
+
</span>
|
|
73
|
+
)}
|
|
74
|
+
{typeof children === 'string' ? <p>{children}</p> : children}
|
|
75
|
+
{(attribution || role) && (
|
|
76
|
+
<cite className={styles.cite}>
|
|
77
|
+
{attribution && <span className={styles.citeName}>{attribution}</span>}
|
|
78
|
+
{attribution && role && ', '}
|
|
79
|
+
{role}
|
|
80
|
+
</cite>
|
|
81
|
+
)}
|
|
82
|
+
</blockquote>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <PullQuote /> styles. Editorial emphasis for long-form prose:
|
|
3
|
+
* opinion pieces, product pages, academy blog posts. Orange-knvb
|
|
4
|
+
* left border, cobalt-50 fill, italic cobalt body, code-font cite.
|
|
5
|
+
*
|
|
6
|
+
* Mirrors preview/components/pull-quote.html and lifts the
|
|
7
|
+
* cg-pullquote pattern from conduction.nl/commonground into a
|
|
8
|
+
* reusable component.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.quote {
|
|
12
|
+
position: relative;
|
|
13
|
+
border-left: 4px solid var(--c-orange-knvb);
|
|
14
|
+
background: var(--c-cobalt-50);
|
|
15
|
+
padding: var(--space-5) var(--space-6);
|
|
16
|
+
margin: var(--space-7) 0;
|
|
17
|
+
border-radius: 0 var(--radius-md) var(--radius-md) 0;
|
|
18
|
+
font-family: var(--conduction-typography-font-family-body);
|
|
19
|
+
font-size: 22px;
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
color: var(--c-blue-cobalt);
|
|
22
|
+
line-height: 1.4;
|
|
23
|
+
font-style: italic;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.quote p { margin: 0; }
|
|
27
|
+
.quote p + p { margin-top: var(--space-3); }
|
|
28
|
+
|
|
29
|
+
.cite {
|
|
30
|
+
display: block;
|
|
31
|
+
margin-top: var(--space-4);
|
|
32
|
+
font-family: var(--conduction-typography-font-family-code);
|
|
33
|
+
font-size: 11px;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
text-transform: uppercase;
|
|
37
|
+
letter-spacing: 0.06em;
|
|
38
|
+
color: var(--c-cobalt-700);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.citeName {
|
|
42
|
+
color: var(--c-cobalt-900);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Hero variant — larger, eyebrow hex, no italics. For one citable
|
|
46
|
+
position statement near the top of an opinion piece. */
|
|
47
|
+
.hero {
|
|
48
|
+
font-size: 28px;
|
|
49
|
+
font-style: normal;
|
|
50
|
+
padding: var(--space-7) var(--space-8);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.eyebrow {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: 8px;
|
|
57
|
+
font-family: var(--conduction-typography-font-family-code);
|
|
58
|
+
font-size: 11px;
|
|
59
|
+
font-style: normal;
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
text-transform: uppercase;
|
|
62
|
+
letter-spacing: 0.08em;
|
|
63
|
+
color: var(--c-cobalt-700);
|
|
64
|
+
margin-bottom: var(--space-4);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.eyebrowHex {
|
|
68
|
+
width: 10px;
|
|
69
|
+
height: 12px;
|
|
70
|
+
clip-path: var(--hex-pointy-top);
|
|
71
|
+
background: var(--c-orange-knvb);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Compact variant — sidebar pull-out, lighter weight. */
|
|
75
|
+
.compact {
|
|
76
|
+
font-size: 16px;
|
|
77
|
+
padding: var(--space-4) var(--space-5);
|
|
78
|
+
}
|
package/src/components/index.js
CHANGED
|
@@ -133,6 +133,7 @@ export {
|
|
|
133
133
|
patterns that academy tutorials kept duplicating. Designed for use
|
|
134
134
|
inside an MDX academy post body. */
|
|
135
135
|
export {default as HexCard} from './HexCard/HexCard.jsx';
|
|
136
|
+
export {default as PullQuote} from './PullQuote/PullQuote.jsx';
|
|
136
137
|
export {default as Outcomes, Outcome} from './Outcomes/Outcomes.jsx';
|
|
137
138
|
export {default as Prerequisites, PrerequisiteItem} from './Prerequisites/Prerequisites.jsx';
|
|
138
139
|
export {default as Troubleshooting, TroubleshootingItem} from './Troubleshooting/Troubleshooting.jsx';
|