@repobit/dex-system-design 2.3.1 → 2.4.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/CHANGELOG.md +22 -0
- package/package.json +5 -5
- package/schemas/component-manifest.json +62 -4
- package/src/components/anchor/anchor.stories.js +0 -3
- package/src/components/audience-card/audience-card.css.js +10 -0
- package/src/components/audience-card/audience-card.js +2 -2
- package/src/components/awards/awards-spotlight.css.js +10 -0
- package/src/components/awards/awards-spotlight.js +1 -1
- package/src/components/badge/badge.css.js +7 -1
- package/src/components/bento-grid/bento-grid.css.js +4 -0
- package/src/components/bento-grid/bento-grid.js +13 -0
- package/src/components/bento-grid/bento-grid.stories.js +1 -1
- package/src/components/bento-grid/bento-item.css.js +32 -3
- package/src/components/bento-grid/bento-item.js +3 -3
- package/src/components/button/button.css.js +36 -1
- package/src/components/button/button.js +13 -6
- package/src/components/button/button.stories.js +4 -4
- package/src/components/features-tab/features-tab.js +2 -1
- package/src/components/features-tab/features-tab.stories.js +2 -2
- package/src/components/grid/grid.css.js +6 -1
- package/src/components/grid/grid.js +10 -1
- package/src/components/grid/grid.stories.js +6 -1
- package/src/components/header/header-code.stories.js +2 -5
- package/src/components/header/header.js +4 -4
- package/src/components/header/header.stories.js +3 -3
- package/src/components/hero/hero.css.js +121 -18
- package/src/components/hero/hero.js +5 -2
- package/src/components/hero/hero.stories.js +5 -4
- package/src/components/logo-marquee/logo-marquee.js +3 -3
- package/src/components/logo-marquee/logo-marquee.stories.js +6 -6
- package/src/components/partner-banner/partner-banner.css.js +96 -14
- package/src/components/partner-banner/partner-banner.js +32 -16
- package/src/components/post-card/post-card.css.js +14 -0
- package/src/components/post-card/post-card.js +8 -8
- package/src/components/pricing-cards/pricing-card-actions.js +0 -1
- package/src/components/pricing-cards/pricing-card.js +0 -4
- package/src/components/section-header/section-header.css.js +11 -0
- package/src/components/section-header/section-header.js +3 -3
- package/src/components/stat/stat-highlight.js +3 -3
- package/src/components/stat/stat.css.js +21 -3
- package/src/components/stat/stat.stories.js +2 -2
- package/src/tokens/tokens.css +4 -2
- package/src/tokens/tokens.js +4 -2
|
@@ -39,10 +39,16 @@ export const postCardCSS = css`
|
|
|
39
39
|
object-fit: cover;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
/* The badge is the post's feed or category, and a feed's channel title can
|
|
43
|
+
be longer than the cover is wide -- "Business Insights Cybersecurity Blog
|
|
44
|
+
by Bitdefender" ran off the card between md and xl. It keeps the cover's
|
|
45
|
+
inset on both sides and wraps inside it instead. */
|
|
42
46
|
.badge {
|
|
43
47
|
position: absolute;
|
|
44
48
|
inset-block-start: var(--spacing-20);
|
|
45
49
|
inset-inline-start: var(--spacing-24);
|
|
50
|
+
max-width: calc(100% - 2 * var(--spacing-24));
|
|
51
|
+
--bd-badge-white-space: normal;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
.body {
|
|
@@ -118,4 +124,12 @@ export const postCardCSS = css`
|
|
|
118
124
|
height: auto;
|
|
119
125
|
}
|
|
120
126
|
}
|
|
127
|
+
|
|
128
|
+
/* A newline in the text is a line break, so a page can keep the breaks its
|
|
129
|
+
copy was written with (a <br> in the authored eyebrow, heading or lead
|
|
130
|
+
arrives as a newline in the property). Text only: nothing here renders
|
|
131
|
+
HTML. */
|
|
132
|
+
.heading {
|
|
133
|
+
white-space: pre-line;
|
|
134
|
+
}
|
|
121
135
|
`;
|
|
@@ -20,13 +20,13 @@ import { postCardCSS } from "./post-card.css.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export class PostCard extends LitElement {
|
|
22
22
|
static properties = {
|
|
23
|
-
href
|
|
24
|
-
heading
|
|
25
|
-
badge
|
|
26
|
-
image
|
|
27
|
-
imageAlt
|
|
28
|
-
readMore
|
|
29
|
-
as
|
|
23
|
+
href : { type: String },
|
|
24
|
+
heading : { type: String },
|
|
25
|
+
badge : { type: String },
|
|
26
|
+
image : { type: String },
|
|
27
|
+
imageAlt: { type: String, attribute: "image-alt" },
|
|
28
|
+
readMore: { type: String, attribute: "read-more" },
|
|
29
|
+
as : { type: String }
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
static styles = [tokens, postCardCSS];
|
|
@@ -51,7 +51,7 @@ export class PostCard extends LitElement {
|
|
|
51
51
|
case "h2": return html`<h2 class="heading">${text}</h2>`;
|
|
52
52
|
case "h4": return html`<h4 class="heading">${text}</h4>`;
|
|
53
53
|
case "h5": return html`<h5 class="heading">${text}</h5>`;
|
|
54
|
-
default
|
|
54
|
+
default: return html`<h3 class="heading">${text}</h3>`;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -232,7 +232,6 @@ class PricingCard extends LitElement {
|
|
|
232
232
|
<bd-button-link
|
|
233
233
|
label="Buy Now"
|
|
234
234
|
variant="accent"
|
|
235
|
-
size="md"
|
|
236
235
|
fullWidth
|
|
237
236
|
buyLink
|
|
238
237
|
>
|
|
@@ -242,7 +241,6 @@ class PricingCard extends LitElement {
|
|
|
242
241
|
<bd-button
|
|
243
242
|
label="Learn More"
|
|
244
243
|
variant="ghost"
|
|
245
|
-
size="md"
|
|
246
244
|
fullWidth
|
|
247
245
|
>
|
|
248
246
|
Learn More
|
|
@@ -344,7 +342,6 @@ class PricingCardFamily extends LitElement {
|
|
|
344
342
|
<bd-button-link
|
|
345
343
|
label="Buy Now"
|
|
346
344
|
variant="accent"
|
|
347
|
-
size="md"
|
|
348
345
|
fullWidth
|
|
349
346
|
buyLink
|
|
350
347
|
>
|
|
@@ -354,7 +351,6 @@ class PricingCardFamily extends LitElement {
|
|
|
354
351
|
<bd-button
|
|
355
352
|
label="Learn More"
|
|
356
353
|
variant="ghost"
|
|
357
|
-
size="md"
|
|
358
354
|
fullWidth
|
|
359
355
|
>
|
|
360
356
|
Learn More
|
|
@@ -86,4 +86,15 @@ export const sectionHeaderCSS = css`
|
|
|
86
86
|
min-width: 0;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
+
|
|
90
|
+
/* A newline in the text is a line break, so a page can keep the breaks its
|
|
91
|
+
copy was written with (a <br> in the authored eyebrow, heading or lead
|
|
92
|
+
arrives as a newline in the property). Text only: nothing here renders
|
|
93
|
+
HTML. The rule sits on a span around the text, not on bd-h or bd-p,
|
|
94
|
+
whose own templates hold newlines that would break too, and the lead's
|
|
95
|
+
span is the slot's fallback: slotted copy is markup, which brings its
|
|
96
|
+
own <br>, and its source newlines stay spaces. */
|
|
97
|
+
.text {
|
|
98
|
+
white-space: pre-line;
|
|
99
|
+
}
|
|
89
100
|
`;
|
|
@@ -63,12 +63,12 @@ export class SectionHeader extends LitElement {
|
|
|
63
63
|
return html`
|
|
64
64
|
<header class="bd-ensemble root">
|
|
65
65
|
${this.eyebrow
|
|
66
|
-
? html`<bd-p variant="eyebrow" class="eyebrow">${this.eyebrow}</bd-p>`
|
|
66
|
+
? html`<bd-p variant="eyebrow" class="eyebrow"><span class="text">${this.eyebrow}</span></bd-p>`
|
|
67
67
|
: nothing}
|
|
68
68
|
<div class="row">
|
|
69
|
-
<bd-h as="${this.as}" visual-level="h2" class="heading">${this.heading}</bd-h>
|
|
69
|
+
<bd-h as="${this.as}" visual-level="h2" class="heading"><span class="text">${this.heading}</span></bd-h>
|
|
70
70
|
<div class="lead" ?hidden=${!showLead}>
|
|
71
|
-
<slot name="lead" @slotchange=${this._onLeadSlot}>${this.lead}</slot>
|
|
71
|
+
<slot name="lead" @slotchange=${this._onLeadSlot}><span class="text">${this.lead}</span></slot>
|
|
72
72
|
</div>
|
|
73
73
|
</div>
|
|
74
74
|
</header>
|
|
@@ -18,9 +18,9 @@ const DIGITS = "0123456789";
|
|
|
18
18
|
*/
|
|
19
19
|
export class StatHighlight extends LitElement {
|
|
20
20
|
static properties = {
|
|
21
|
-
value
|
|
22
|
-
label
|
|
23
|
-
_rolled
|
|
21
|
+
value : { type: String },
|
|
22
|
+
label : { type: String },
|
|
23
|
+
_rolled: { state: true }
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
static styles = [tokens, statHighlightCSS];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { css } from "lit";
|
|
1
|
+
import { css, unsafeCSS } from "lit";
|
|
2
|
+
import { above } from "../shared/token-scales.js";
|
|
2
3
|
|
|
3
4
|
/* A tile on surface/info: the value at display-md, the caption at body-small,
|
|
4
5
|
pinned to the foot. On the info tint the value's text-primary measures
|
|
@@ -20,13 +21,22 @@ export const statTileCSS = css`
|
|
|
20
21
|
display: flex;
|
|
21
22
|
flex-direction: column;
|
|
22
23
|
justify-content: space-between;
|
|
23
|
-
gap: var(--spacing-
|
|
24
|
-
padding: var(--spacing-
|
|
24
|
+
gap: var(--spacing-12);
|
|
25
|
+
padding: var(--spacing-20);
|
|
25
26
|
text-align: start;
|
|
26
27
|
background: var(--color-surface-info);
|
|
27
28
|
border-radius: var(--shape-radius-3xl);
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
/* The phone and tablet frames hold the copy 20 in and the caption at least
|
|
32
|
+
12 under the value; the desktop frame opens both up. */
|
|
33
|
+
@media ${unsafeCSS(above("lg"))} {
|
|
34
|
+
.tile {
|
|
35
|
+
gap: var(--spacing-48);
|
|
36
|
+
padding: var(--spacing-24);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
30
40
|
.value,
|
|
31
41
|
.caption {
|
|
32
42
|
margin: 0;
|
|
@@ -49,6 +59,14 @@ export const statTileCSS = css`
|
|
|
49
59
|
line-height: var(--typography-body-small-lineHeight);
|
|
50
60
|
letter-spacing: var(--typography-body-small-letterSpacing);
|
|
51
61
|
}
|
|
62
|
+
|
|
63
|
+
/* A newline in the text is a line break, so a page can keep the breaks its
|
|
64
|
+
copy was written with (a <br> in the authored eyebrow, heading or lead
|
|
65
|
+
arrives as a newline in the property). Text only: nothing here renders
|
|
66
|
+
HTML. */
|
|
67
|
+
.caption {
|
|
68
|
+
white-space: pre-line;
|
|
69
|
+
}
|
|
52
70
|
`;
|
|
53
71
|
|
|
54
72
|
/* The leading figure. Its size is the one value here off the type scale: the
|
|
@@ -72,13 +72,13 @@ export const Highlight = {
|
|
|
72
72
|
export const WhyTrustRow = {
|
|
73
73
|
name : "Why-trust row (composition)",
|
|
74
74
|
render: () => html`
|
|
75
|
-
<bd-grid cols="1" cols-lg="2" gap="md">
|
|
75
|
+
<bd-grid cols="1" cols-sm="1" cols-md="1" cols-lg="2" gap="md">
|
|
76
76
|
<div style="--bd-paragraph-margin-bottom: 0; display: flex; flex-direction: column; gap: var(--spacing-24); align-items: flex-start;">
|
|
77
77
|
<bd-stat-highlight value="$1.5B+" label="$1.5 billion plus"></bd-stat-highlight>
|
|
78
78
|
<bd-p>Through global ransomware operations and free decryptor releases, Bitdefender has helped victims recover their data without paying the attackers.</bd-p>
|
|
79
79
|
<bd-button-link variant="primary" href="#">Learn Why Millions Trust Us</bd-button-link>
|
|
80
80
|
</div>
|
|
81
|
-
<bd-grid cols="1" cols-sm="2" cols-md="2" cols-lg="2" gap="md">
|
|
81
|
+
<bd-grid cols="1" cols-sm="2" cols-md="2" cols-lg="2" gap="sm" gap-sm="md">
|
|
82
82
|
${tiles.map(([value, caption, label]) => html`<bd-stat-tile value="${value}" caption="${caption}" label="${label || ""}"></bd-stat-tile>`)}
|
|
83
83
|
</bd-grid>
|
|
84
84
|
</bd-grid>
|
package/src/tokens/tokens.css
CHANGED
|
@@ -1234,8 +1234,10 @@
|
|
|
1234
1234
|
--typography-display-md-letterSpacing: var(--typography-letterSpacing-tight);
|
|
1235
1235
|
--typography-display-md-fontFamily: var(--typography-fontFamily-sans);
|
|
1236
1236
|
|
|
1237
|
-
/*
|
|
1238
|
-
|
|
1237
|
+
/* 36px at every width: the floor meets the 4xl ceiling, so the fluid
|
|
1238
|
+
middle term never wins. It is kept for a brand that lowers the floor
|
|
1239
|
+
(it ramps 30px at 320 -> 36px at 992). */
|
|
1240
|
+
--typography-display-sm-fontSizeMin: 2.25rem; /* 36px */
|
|
1239
1241
|
--typography-display-sm-fontSize: clamp(
|
|
1240
1242
|
var(--typography-display-sm-fontSizeMin),
|
|
1241
1243
|
calc(1.69643rem + 0.8929vw),
|
package/src/tokens/tokens.js
CHANGED
|
@@ -1250,8 +1250,10 @@ const declarations = `
|
|
|
1250
1250
|
--typography-display-md-letterSpacing: var(--typography-letterSpacing-tight);
|
|
1251
1251
|
--typography-display-md-fontFamily: var(--typography-fontFamily-sans);
|
|
1252
1252
|
|
|
1253
|
-
/*
|
|
1254
|
-
|
|
1253
|
+
/* 36px at every width: the floor meets the 4xl ceiling, so the fluid
|
|
1254
|
+
middle term never wins. It is kept for a brand that lowers the floor
|
|
1255
|
+
(it ramps 30px at 320 -> 36px at 992). */
|
|
1256
|
+
--typography-display-sm-fontSizeMin: 2.25rem; /* 36px */
|
|
1255
1257
|
--typography-display-sm-fontSize: clamp(
|
|
1256
1258
|
var(--typography-display-sm-fontSizeMin),
|
|
1257
1259
|
calc(1.69643rem + 0.8929vw),
|