@biggive/components 1.0.7 → 1.0.9
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/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/p-07962fc5.entry.js +1 -0
- package/dist/biggive/p-0d6687f4.js +1 -0
- package/dist/biggive/p-1b78efa0.entry.js +1 -0
- package/dist/biggive/p-5dbda89c.entry.js +1 -0
- package/dist/biggive/p-5f1b0106.entry.js +1 -0
- package/dist/biggive/p-629007e0.entry.js +1 -0
- package/dist/biggive/p-6326f936.entry.js +1 -0
- package/dist/biggive/p-72a6f0a8.entry.js +1 -0
- package/dist/biggive/p-74b5d4c7.entry.js +1 -0
- package/dist/biggive/p-7eee1e58.entry.js +1 -0
- package/dist/biggive/{p-a6da36d4.js → p-871707f4.js} +2 -2
- package/dist/biggive/p-8f605036.entry.js +1 -0
- package/dist/biggive/p-bdb476eb.entry.js +1 -0
- package/dist/biggive/p-c9aaa5c3.entry.js +1 -0
- package/dist/biggive/p-df6daa79.entry.js +1 -0
- package/dist/biggive/{p-43c02e71.js → p-ec9b42b3.js} +1 -1
- package/dist/biggive/p-f9388477.entry.js +1 -0
- package/dist/biggive/p-f98681a5.entry.js +1 -0
- package/dist/cjs/biggive-article-card.cjs.entry.js +63 -0
- package/dist/cjs/biggive-back-to-top_20.cjs.entry.js +923 -0
- package/dist/cjs/biggive-basic-card.cjs.entry.js +12 -4
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
- package/dist/cjs/biggive-branded-image.cjs.entry.js +1 -1
- package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image.cjs.entry.js +1 -1
- package/dist/cjs/biggive-quote.cjs.entry.js +1 -1
- package/dist/cjs/biggive-search.cjs.entry.js +1 -1
- package/dist/cjs/biggive-tab.cjs.entry.js +1 -1
- package/dist/cjs/biggive-tabbed-content.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video.cjs.entry.js +7 -2
- package/dist/cjs/biggive.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/video-f9e682a8.js +14 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/biggive-article-card/biggive-article-card.css +534 -0
- package/dist/collection/components/biggive-article-card/biggive-article-card.js +272 -0
- package/dist/collection/components/biggive-article-card/biggive-article-card.stories.js +84 -0
- package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.css +51 -10
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +51 -16
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +49 -5
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.stories.js +25 -0
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +51 -10
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +51 -10
- package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +51 -10
- package/dist/collection/components/biggive-button/biggive-button.css +51 -10
- package/dist/collection/components/biggive-button/biggive-button.js +45 -1
- package/dist/collection/components/biggive-button/biggive-button.stories.js +17 -0
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +51 -19
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +69 -3
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.stories.js +27 -0
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +51 -10
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +51 -10
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +51 -10
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +51 -10
- package/dist/collection/components/biggive-footer/biggive-footer.css +51 -10
- package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +51 -10
- package/dist/collection/components/biggive-grid/biggive-grid.css +51 -10
- package/dist/collection/components/biggive-header/biggive-header.css +51 -10
- package/dist/collection/components/biggive-header/biggive-header.js +28 -9
- package/dist/collection/components/biggive-header/biggive-header.stories.js +15 -2
- package/dist/collection/components/biggive-heading/biggive-heading.css +51 -35
- package/dist/collection/components/biggive-heading/biggive-heading.js +1 -1
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +54 -10
- package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +51 -10
- package/dist/collection/components/biggive-image/biggive-image.css +51 -10
- package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +51 -10
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +51 -10
- package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +51 -10
- package/dist/collection/components/biggive-page-section/biggive-page-section.css +52 -10
- package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +51 -10
- package/dist/collection/components/biggive-quote/biggive-quote.css +51 -10
- package/dist/collection/components/biggive-search/biggive-search.css +51 -10
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +51 -10
- package/dist/collection/components/biggive-tab/biggive-tab.css +51 -10
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +51 -10
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +51 -10
- package/dist/collection/components/biggive-video/biggive-video.css +51 -10
- package/dist/collection/components/biggive-video/biggive-video.js +25 -3
- package/dist/collection/components/biggive-video/biggive-video.stories.js +11 -1
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +51 -10
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +25 -3
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.stories.js +10 -1
- package/dist/collection/util/video.js +10 -0
- package/dist/components/biggive-article-card.d.ts +11 -0
- package/dist/components/biggive-article-card.js +95 -0
- package/dist/components/biggive-back-to-top.js +1 -1
- package/dist/components/biggive-basic-card.js +14 -4
- package/dist/components/biggive-beneficiary-icon.js +1 -1
- package/dist/components/biggive-boxed-content.js +1 -1
- package/dist/components/biggive-branded-image.js +1 -1
- package/dist/components/biggive-button2.js +13 -3
- package/dist/components/biggive-call-to-action.js +17 -2
- package/dist/components/biggive-campaign-card-filter-grid.js +1 -1
- package/dist/components/biggive-campaign-card.js +1 -1
- package/dist/components/biggive-campaign-highlights.js +1 -1
- package/dist/components/biggive-category-icon.js +1 -1
- package/dist/components/biggive-footer.js +1 -1
- package/dist/components/biggive-formatted-text.js +1 -1
- package/dist/components/biggive-grid.js +1 -1
- package/dist/components/biggive-header.js +9 -10
- package/dist/components/biggive-heading.js +2 -2
- package/dist/components/biggive-hero-image.js +1 -1
- package/dist/components/biggive-icon-group.js +1 -1
- package/dist/components/biggive-image-feature.js +1 -1
- package/dist/components/biggive-image.js +1 -1
- package/dist/components/biggive-misc-icon2.js +1 -1
- package/dist/components/biggive-page-columns.js +1 -1
- package/dist/components/biggive-page-section.js +1 -1
- package/dist/components/biggive-progress-bar2.js +1 -1
- package/dist/components/biggive-quote.js +1 -1
- package/dist/components/biggive-search.js +1 -1
- package/dist/components/biggive-social-icon2.js +1 -1
- package/dist/components/biggive-tab.js +1 -1
- package/dist/components/biggive-tabbed-content.js +1 -1
- package/dist/components/biggive-totalizer.js +1 -1
- package/dist/components/biggive-video-feature.js +8 -2
- package/dist/components/biggive-video.js +8 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/video.js +12 -0
- package/dist/esm/biggive-article-card.entry.js +59 -0
- package/dist/esm/biggive-back-to-top_20.entry.js +900 -0
- package/dist/esm/biggive-basic-card.entry.js +12 -4
- package/dist/esm/biggive-beneficiary-icon.entry.js +3 -3
- package/dist/esm/biggive-boxed-content.entry.js +1 -1
- package/dist/esm/biggive-branded-image.entry.js +1 -1
- package/dist/esm/biggive-category-icon.entry.js +3 -3
- package/dist/esm/biggive-formatted-text.entry.js +1 -1
- package/dist/esm/biggive-icon-group.entry.js +1 -1
- package/dist/esm/biggive-image.entry.js +1 -1
- package/dist/esm/biggive-quote.entry.js +1 -1
- package/dist/esm/biggive-search.entry.js +2 -2
- package/dist/esm/biggive-tab.entry.js +1 -1
- package/dist/esm/biggive-tabbed-content.entry.js +1 -1
- package/dist/esm/biggive-video.entry.js +7 -2
- package/dist/esm/biggive.js +1 -1
- package/dist/esm/{fontawesome-icons-e232deb7.js → fontawesome-icons-562459be.js} +1 -1
- package/dist/esm/{index.es-64a64fa8.js → index.es-5777380a.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/video-89b7535d.js +12 -0
- package/dist/types/components/biggive-article-card/biggive-article-card.d.ts +47 -0
- package/dist/types/components/biggive-article-card/biggive-article-card.stories.d.ts +56 -0
- package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +9 -1
- package/dist/types/components/biggive-basic-card/biggive-basic-card.stories.d.ts +21 -0
- package/dist/types/components/biggive-button/biggive-button.d.ts +8 -0
- package/dist/types/components/biggive-button/biggive-button.stories.d.ts +13 -0
- package/dist/types/components/biggive-call-to-action/biggive-call-to-action.d.ts +12 -0
- package/dist/types/components/biggive-call-to-action/biggive-call-to-action.stories.d.ts +21 -0
- package/dist/types/components/biggive-header/biggive-header.d.ts +4 -0
- package/dist/types/components/biggive-video/biggive-video.d.ts +4 -0
- package/dist/types/components/biggive-video/biggive-video.stories.d.ts +7 -0
- package/dist/types/components/biggive-video-feature/biggive-video-feature.d.ts +4 -0
- package/dist/types/components/biggive-video-feature/biggive-video-feature.stories.d.ts +7 -0
- package/dist/types/components.d.ts +183 -2
- package/dist/types/util/video.d.ts +3 -0
- package/hydrate/index.js +181 -43
- package/package.json +1 -1
- package/dist/biggive/p-160a5e39.entry.js +0 -1
- package/dist/biggive/p-1e31cbfc.entry.js +0 -1
- package/dist/biggive/p-2d38d3a4.entry.js +0 -1
- package/dist/biggive/p-39db6552.entry.js +0 -1
- package/dist/biggive/p-49c2a10b.entry.js +0 -1
- package/dist/biggive/p-54026729.entry.js +0 -1
- package/dist/biggive/p-5cc16f87.entry.js +0 -1
- package/dist/biggive/p-5f7a3f5c.entry.js +0 -1
- package/dist/biggive/p-74bbb296.entry.js +0 -1
- package/dist/biggive/p-7f91f67c.entry.js +0 -1
- package/dist/biggive/p-89e206e8.entry.js +0 -1
- package/dist/biggive/p-9a74ac3d.entry.js +0 -1
- package/dist/biggive/p-9ed2bd19.entry.js +0 -1
- package/dist/biggive/p-ac6bfc1e.entry.js +0 -1
- package/dist/biggive/p-b762b246.entry.js +0 -1
- package/dist/biggive/p-b812b4f6.entry.js +0 -1
- package/dist/biggive/p-be37287b.entry.js +0 -1
- package/dist/biggive/p-be897395.entry.js +0 -1
- package/dist/biggive/p-ca786365.entry.js +0 -1
- package/dist/biggive/p-cca1d092.entry.js +0 -1
- package/dist/biggive/p-e6631545.entry.js +0 -1
- package/dist/biggive/p-ee459029.entry.js +0 -1
- package/dist/biggive/p-ee77cf8d.entry.js +0 -1
- package/dist/cjs/biggive-back-to-top_11.cjs.entry.js +0 -373
- package/dist/cjs/biggive-call-to-action.cjs.entry.js +0 -87
- package/dist/cjs/biggive-campaign-card-filter-grid.cjs.entry.js +0 -50
- package/dist/cjs/biggive-campaign-card.cjs.entry.js +0 -97
- package/dist/cjs/biggive-grid.cjs.entry.js +0 -31
- package/dist/cjs/biggive-hero-image.cjs.entry.js +0 -73
- package/dist/cjs/biggive-image-feature.cjs.entry.js +0 -67
- package/dist/cjs/biggive-page-section.cjs.entry.js +0 -35
- package/dist/cjs/biggive-totalizer.cjs.entry.js +0 -69
- package/dist/cjs/biggive-video-feature.cjs.entry.js +0 -67
- package/dist/esm/biggive-back-to-top_11.entry.js +0 -359
- package/dist/esm/biggive-call-to-action.entry.js +0 -83
- package/dist/esm/biggive-campaign-card-filter-grid.entry.js +0 -46
- package/dist/esm/biggive-campaign-card.entry.js +0 -93
- package/dist/esm/biggive-grid.entry.js +0 -27
- package/dist/esm/biggive-hero-image.entry.js +0 -69
- package/dist/esm/biggive-image-feature.entry.js +0 -63
- package/dist/esm/biggive-page-section.entry.js +0 -31
- package/dist/esm/biggive-totalizer.entry.js +0 -65
- package/dist/esm/biggive-video-feature.entry.js +0 -63
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { Component, Prop, h } from '@stencil/core';
|
|
2
|
+
export class BiggiveArticleCard {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Space below component
|
|
6
|
+
*/
|
|
7
|
+
this.spaceBelow = 0;
|
|
8
|
+
/**
|
|
9
|
+
* Card background colour
|
|
10
|
+
*/
|
|
11
|
+
this.backgroundColour = 'white';
|
|
12
|
+
/**
|
|
13
|
+
* Card background colour hover
|
|
14
|
+
*/
|
|
15
|
+
this.backgroundColourHover = 'tertiary';
|
|
16
|
+
/**
|
|
17
|
+
* Text colour
|
|
18
|
+
*/
|
|
19
|
+
this.textColour = 'black';
|
|
20
|
+
/**
|
|
21
|
+
* Slug
|
|
22
|
+
*/
|
|
23
|
+
this.slug = null;
|
|
24
|
+
/**
|
|
25
|
+
* Date
|
|
26
|
+
*/
|
|
27
|
+
this.date = null;
|
|
28
|
+
/**
|
|
29
|
+
* Main title
|
|
30
|
+
*/
|
|
31
|
+
this.mainTitle = null;
|
|
32
|
+
/**
|
|
33
|
+
* Image URL
|
|
34
|
+
*/
|
|
35
|
+
this.imageUrl = null;
|
|
36
|
+
/**
|
|
37
|
+
* Image Label
|
|
38
|
+
*/
|
|
39
|
+
this.imageLabel = null;
|
|
40
|
+
/**
|
|
41
|
+
* Button label
|
|
42
|
+
*/
|
|
43
|
+
this.buttonLabel = null;
|
|
44
|
+
/**
|
|
45
|
+
* Button URL
|
|
46
|
+
*/
|
|
47
|
+
this.buttonUrl = null;
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow },
|
|
51
|
+
h("div", { class: 'sleeve background-colour-' + this.backgroundColour + ' background-colour-hover-' + this.backgroundColourHover + ' text-colour-' + this.textColour },
|
|
52
|
+
h("div", { class: "content-wrap" },
|
|
53
|
+
this.slug != '' ? h("div", { class: "slug text-colour-primary" }, this.slug) : null,
|
|
54
|
+
this.date != '' ? h("div", { class: "date" }, this.date) : null,
|
|
55
|
+
h("h3", { class: "title" },
|
|
56
|
+
h("a", { href: this.buttonUrl }, this.mainTitle)),
|
|
57
|
+
this.imageUrl != '' ? (h("div", { class: "image-group" },
|
|
58
|
+
h("div", { class: "image-wrap", style: { 'background-image': "url('" + this.imageUrl + "')" } },
|
|
59
|
+
h("img", { src: this.imageUrl })),
|
|
60
|
+
h("div", { class: "image-label" }, this.imageLabel))) : null,
|
|
61
|
+
this.buttonLabel != null && this.buttonUrl != null ? (h("div", { class: "button-wrap align-right" },
|
|
62
|
+
h("biggive-button", { "colour-scheme": 'clear-primary', url: this.buttonUrl, label: this.buttonLabel }))) : null))));
|
|
63
|
+
}
|
|
64
|
+
static get is() { return "biggive-article-card"; }
|
|
65
|
+
static get encapsulation() { return "shadow"; }
|
|
66
|
+
static get originalStyleUrls() { return {
|
|
67
|
+
"$": ["biggive-article-card.scss"]
|
|
68
|
+
}; }
|
|
69
|
+
static get styleUrls() { return {
|
|
70
|
+
"$": ["biggive-article-card.css"]
|
|
71
|
+
}; }
|
|
72
|
+
static get properties() { return {
|
|
73
|
+
"spaceBelow": {
|
|
74
|
+
"type": "number",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "number",
|
|
78
|
+
"resolved": "number",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": false,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": "Space below component"
|
|
86
|
+
},
|
|
87
|
+
"attribute": "space-below",
|
|
88
|
+
"reflect": false,
|
|
89
|
+
"defaultValue": "0"
|
|
90
|
+
},
|
|
91
|
+
"backgroundColour": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"mutable": false,
|
|
94
|
+
"complexType": {
|
|
95
|
+
"original": "string",
|
|
96
|
+
"resolved": "string",
|
|
97
|
+
"references": {}
|
|
98
|
+
},
|
|
99
|
+
"required": false,
|
|
100
|
+
"optional": false,
|
|
101
|
+
"docs": {
|
|
102
|
+
"tags": [],
|
|
103
|
+
"text": "Card background colour"
|
|
104
|
+
},
|
|
105
|
+
"attribute": "background-colour",
|
|
106
|
+
"reflect": false,
|
|
107
|
+
"defaultValue": "'white'"
|
|
108
|
+
},
|
|
109
|
+
"backgroundColourHover": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "string",
|
|
114
|
+
"resolved": "string",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": false,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Card background colour hover"
|
|
122
|
+
},
|
|
123
|
+
"attribute": "background-colour-hover",
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"defaultValue": "'tertiary'"
|
|
126
|
+
},
|
|
127
|
+
"textColour": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "string",
|
|
132
|
+
"resolved": "string",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": "Text colour"
|
|
140
|
+
},
|
|
141
|
+
"attribute": "text-colour",
|
|
142
|
+
"reflect": false,
|
|
143
|
+
"defaultValue": "'black'"
|
|
144
|
+
},
|
|
145
|
+
"slug": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"mutable": false,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "string",
|
|
150
|
+
"resolved": "string",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": false,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": "Slug"
|
|
158
|
+
},
|
|
159
|
+
"attribute": "slug",
|
|
160
|
+
"reflect": false,
|
|
161
|
+
"defaultValue": "null"
|
|
162
|
+
},
|
|
163
|
+
"date": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"mutable": false,
|
|
166
|
+
"complexType": {
|
|
167
|
+
"original": "string",
|
|
168
|
+
"resolved": "string",
|
|
169
|
+
"references": {}
|
|
170
|
+
},
|
|
171
|
+
"required": false,
|
|
172
|
+
"optional": false,
|
|
173
|
+
"docs": {
|
|
174
|
+
"tags": [],
|
|
175
|
+
"text": "Date"
|
|
176
|
+
},
|
|
177
|
+
"attribute": "date",
|
|
178
|
+
"reflect": false,
|
|
179
|
+
"defaultValue": "null"
|
|
180
|
+
},
|
|
181
|
+
"mainTitle": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "string",
|
|
186
|
+
"resolved": "string",
|
|
187
|
+
"references": {}
|
|
188
|
+
},
|
|
189
|
+
"required": false,
|
|
190
|
+
"optional": false,
|
|
191
|
+
"docs": {
|
|
192
|
+
"tags": [],
|
|
193
|
+
"text": "Main title"
|
|
194
|
+
},
|
|
195
|
+
"attribute": "main-title",
|
|
196
|
+
"reflect": false,
|
|
197
|
+
"defaultValue": "null"
|
|
198
|
+
},
|
|
199
|
+
"imageUrl": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "string",
|
|
204
|
+
"resolved": "string",
|
|
205
|
+
"references": {}
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": false,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": "Image URL"
|
|
212
|
+
},
|
|
213
|
+
"attribute": "image-url",
|
|
214
|
+
"reflect": false,
|
|
215
|
+
"defaultValue": "null"
|
|
216
|
+
},
|
|
217
|
+
"imageLabel": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"mutable": false,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "string",
|
|
222
|
+
"resolved": "string",
|
|
223
|
+
"references": {}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": "Image Label"
|
|
230
|
+
},
|
|
231
|
+
"attribute": "image-label",
|
|
232
|
+
"reflect": false,
|
|
233
|
+
"defaultValue": "null"
|
|
234
|
+
},
|
|
235
|
+
"buttonLabel": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"mutable": false,
|
|
238
|
+
"complexType": {
|
|
239
|
+
"original": "string",
|
|
240
|
+
"resolved": "string",
|
|
241
|
+
"references": {}
|
|
242
|
+
},
|
|
243
|
+
"required": false,
|
|
244
|
+
"optional": false,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": "Button label"
|
|
248
|
+
},
|
|
249
|
+
"attribute": "button-label",
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"defaultValue": "null"
|
|
252
|
+
},
|
|
253
|
+
"buttonUrl": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "string",
|
|
258
|
+
"resolved": "string",
|
|
259
|
+
"references": {}
|
|
260
|
+
},
|
|
261
|
+
"required": false,
|
|
262
|
+
"optional": false,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": "Button URL"
|
|
266
|
+
},
|
|
267
|
+
"attribute": "button-url",
|
|
268
|
+
"reflect": false,
|
|
269
|
+
"defaultValue": "null"
|
|
270
|
+
}
|
|
271
|
+
}; }
|
|
272
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Components/Content',
|
|
3
|
+
argTypes: {
|
|
4
|
+
spaceBelow: {
|
|
5
|
+
name: 'Space below',
|
|
6
|
+
control: {
|
|
7
|
+
type: 'select',
|
|
8
|
+
options: [0, 1, 2, 3, 4, 5, 6],
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
backgroundColour: {
|
|
12
|
+
name: 'Background colour',
|
|
13
|
+
control: {
|
|
14
|
+
type: 'select',
|
|
15
|
+
options: ['primary', 'secondary', 'tertiary', 'white', 'black', 'transparent'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
backgroundColourHover: {
|
|
19
|
+
name: 'Hover background colour',
|
|
20
|
+
control: {
|
|
21
|
+
type: 'select',
|
|
22
|
+
options: ['primary', 'secondary', 'tertiary', 'white', 'black', 'transparent'],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
textColour: {
|
|
26
|
+
name: 'Text colour',
|
|
27
|
+
control: {
|
|
28
|
+
type: 'select',
|
|
29
|
+
options: ['primary', 'secondary', 'tertiary', 'white', 'black', 'transparent'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
slug: {
|
|
33
|
+
name: 'Slug',
|
|
34
|
+
},
|
|
35
|
+
date: {
|
|
36
|
+
name: 'Date',
|
|
37
|
+
},
|
|
38
|
+
mainTitle: {
|
|
39
|
+
name: 'Title',
|
|
40
|
+
},
|
|
41
|
+
imageUrl: {
|
|
42
|
+
name: 'Image URL',
|
|
43
|
+
},
|
|
44
|
+
imageLabel: {
|
|
45
|
+
name: 'Image Label',
|
|
46
|
+
},
|
|
47
|
+
buttonUrl: {
|
|
48
|
+
name: 'Button URL',
|
|
49
|
+
},
|
|
50
|
+
buttonLabel: {
|
|
51
|
+
name: 'Button label',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
const Template = args => `
|
|
56
|
+
<biggive-article-card
|
|
57
|
+
space-below="${args.spaceBelow}"
|
|
58
|
+
background-colour="${args.backgroundColour}"
|
|
59
|
+
background-colour-hover="${args.backgroundColourHover}"
|
|
60
|
+
text-colour="${args.textColour}"
|
|
61
|
+
slug="${args.slug}"
|
|
62
|
+
date="${args.date}"
|
|
63
|
+
main-title="${args.mainTitle}"
|
|
64
|
+
image-url="${args.imageUrl}"
|
|
65
|
+
image-label="${args.imageLabel}"
|
|
66
|
+
button-label="${args.buttonLabel}"
|
|
67
|
+
button-url="${args.buttonUrl}"
|
|
68
|
+
>
|
|
69
|
+
</biggive-article-card>
|
|
70
|
+
`;
|
|
71
|
+
export const ArticleCardComponent = Template.bind({});
|
|
72
|
+
ArticleCardComponent.args = {
|
|
73
|
+
spaceBelow: 4,
|
|
74
|
+
backgroundColour: 'white',
|
|
75
|
+
backgroundColourHover: 'tertiary',
|
|
76
|
+
textColour: 'black',
|
|
77
|
+
slug: '• Blog Post • Mental Health',
|
|
78
|
+
date: 'September 2022',
|
|
79
|
+
mainTitle: 'Sample main title',
|
|
80
|
+
imageUrl: 'https://media.istockphoto.com/vectors/childish-seamless-dotted-pattern-with-colorful-doodle-letters-fun-vector-id1208462693',
|
|
81
|
+
imageLabel: 'By Joe Bloggs',
|
|
82
|
+
buttonUrl: '#',
|
|
83
|
+
buttonLabel: 'Click here',
|
|
84
|
+
};
|
|
@@ -2,31 +2,35 @@ body {
|
|
|
2
2
|
background-color: #D7D7D7;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
h1 {
|
|
5
|
+
h1, h3, h3, h4, h5, h6 {
|
|
6
|
+
margin-bottom: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
h1, .heading-1 {
|
|
6
10
|
font-size: 50px;
|
|
7
11
|
line-height: 60px;
|
|
8
12
|
font-weight: bold;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
|
-
h2 {
|
|
15
|
+
h2, .heading-2 {
|
|
12
16
|
font-size: 38px;
|
|
13
17
|
line-height: 45px;
|
|
14
18
|
font-weight: bold;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
|
-
h3 {
|
|
21
|
+
h3, .heading-3 {
|
|
18
22
|
font-size: 25px;
|
|
19
23
|
line-height: 32px;
|
|
20
24
|
font-weight: bold;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
|
-
h4 {
|
|
27
|
+
h4, .heading-4 {
|
|
24
28
|
font-size: 20px;
|
|
25
29
|
line-height: 24px;
|
|
26
30
|
font-weight: bold;
|
|
27
31
|
}
|
|
28
32
|
|
|
29
|
-
h5 {
|
|
33
|
+
h5, .heading-5 {
|
|
30
34
|
font-size: 17px;
|
|
31
35
|
line-height: 24px;
|
|
32
36
|
font-weight: bold;
|
|
@@ -60,22 +64,27 @@ a:hover {
|
|
|
60
64
|
color: #000000;
|
|
61
65
|
}
|
|
62
66
|
|
|
67
|
+
.text-colour-hover-primary:hover,
|
|
63
68
|
.text-colour-primary {
|
|
64
69
|
color: #2C089B;
|
|
65
70
|
}
|
|
66
71
|
|
|
72
|
+
.text-colour-hover-secondary:hover,
|
|
67
73
|
.text-colour-secondary {
|
|
68
74
|
color: #2AF135;
|
|
69
75
|
}
|
|
70
76
|
|
|
77
|
+
.text-colour-hover-tertiary:hover,
|
|
71
78
|
.text-colour-tertiary {
|
|
72
79
|
color: #FF7272;
|
|
73
80
|
}
|
|
74
81
|
|
|
82
|
+
.text-colour-hover-white:hover,
|
|
75
83
|
.text-colour-white {
|
|
76
84
|
color: #FFFFFF;
|
|
77
85
|
}
|
|
78
86
|
|
|
87
|
+
.text-colour-hover-black:hover,
|
|
79
88
|
.text-colour-black {
|
|
80
89
|
color: #000000;
|
|
81
90
|
}
|
|
@@ -100,22 +109,27 @@ a:hover {
|
|
|
100
109
|
fill: #000000;
|
|
101
110
|
}
|
|
102
111
|
|
|
112
|
+
.background-colour-hover-primary:hover,
|
|
103
113
|
.background-colour-primary {
|
|
104
114
|
background-color: #2C089B;
|
|
105
115
|
}
|
|
106
116
|
|
|
117
|
+
.background-colour-hover-secondary:hover,
|
|
107
118
|
.background-colour-secondary {
|
|
108
119
|
background-color: #2AF135;
|
|
109
120
|
}
|
|
110
121
|
|
|
122
|
+
.background-colour-hover-tertiary:hover,
|
|
111
123
|
.background-colour-tertiary {
|
|
112
124
|
background-color: #FF7272;
|
|
113
125
|
}
|
|
114
126
|
|
|
127
|
+
.background-colour-hover-white:hover,
|
|
115
128
|
.background-colour-white {
|
|
116
129
|
background-color: #FFFFFF;
|
|
117
130
|
}
|
|
118
131
|
|
|
132
|
+
.background-colour-hover-black:hover,
|
|
119
133
|
.background-colour-black {
|
|
120
134
|
background-color: #000000;
|
|
121
135
|
}
|
|
@@ -142,9 +156,9 @@ a:hover {
|
|
|
142
156
|
}
|
|
143
157
|
|
|
144
158
|
.button {
|
|
145
|
-
font-size:
|
|
146
|
-
line-height:
|
|
147
|
-
padding:
|
|
159
|
+
font-size: 17px;
|
|
160
|
+
line-height: 24px;
|
|
161
|
+
padding: 10px 30px;
|
|
148
162
|
border-radius: 5px;
|
|
149
163
|
border: 1px solid #000000;
|
|
150
164
|
background-color: #000000;
|
|
@@ -160,6 +174,17 @@ a:hover {
|
|
|
160
174
|
background-color: #FFFFFF;
|
|
161
175
|
color: #000000;
|
|
162
176
|
}
|
|
177
|
+
.button.size-small {
|
|
178
|
+
font-size: 13px;
|
|
179
|
+
line-height: 17px;
|
|
180
|
+
padding: 5px 15px;
|
|
181
|
+
}
|
|
182
|
+
.button.button.rounded-true {
|
|
183
|
+
border-radius: 27.5px;
|
|
184
|
+
}
|
|
185
|
+
.button.button.rounded-true.size-small {
|
|
186
|
+
border-radius: 20px;
|
|
187
|
+
}
|
|
163
188
|
|
|
164
189
|
.button-primary {
|
|
165
190
|
color: #FFFFFF;
|
|
@@ -247,7 +272,10 @@ a:hover {
|
|
|
247
272
|
}
|
|
248
273
|
|
|
249
274
|
.button-rounded {
|
|
250
|
-
border-radius:
|
|
275
|
+
border-radius: 27.5px;
|
|
276
|
+
}
|
|
277
|
+
.button-rounded.size-small {
|
|
278
|
+
border-radius: 20px;
|
|
251
279
|
}
|
|
252
280
|
|
|
253
281
|
.progress-bar {
|
|
@@ -296,9 +324,22 @@ a:hover {
|
|
|
296
324
|
color: #2AF135;
|
|
297
325
|
}
|
|
298
326
|
|
|
327
|
+
.video-wrap {
|
|
328
|
+
position: relative;
|
|
329
|
+
padding-bottom: 56.25%;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.video-wrap iframe,
|
|
299
333
|
.video-wrap video {
|
|
334
|
+
position: absolute;
|
|
335
|
+
border: 0;
|
|
336
|
+
display: block;
|
|
337
|
+
left: 0;
|
|
338
|
+
right: 0;
|
|
339
|
+
top: 0;
|
|
340
|
+
bottom: 0;
|
|
300
341
|
width: 100%;
|
|
301
|
-
height:
|
|
342
|
+
height: 100%;
|
|
302
343
|
}
|
|
303
344
|
|
|
304
345
|
.image-wrap img {
|
|
@@ -2,31 +2,35 @@ body {
|
|
|
2
2
|
background-color: #D7D7D7;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
h1 {
|
|
5
|
+
h1, h3, h3, h4, h5, h6 {
|
|
6
|
+
margin-bottom: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
h1, .heading-1 {
|
|
6
10
|
font-size: 50px;
|
|
7
11
|
line-height: 60px;
|
|
8
12
|
font-weight: bold;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
|
-
h2 {
|
|
15
|
+
h2, .heading-2 {
|
|
12
16
|
font-size: 38px;
|
|
13
17
|
line-height: 45px;
|
|
14
18
|
font-weight: bold;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
|
-
h3 {
|
|
21
|
+
h3, .heading-3 {
|
|
18
22
|
font-size: 25px;
|
|
19
23
|
line-height: 32px;
|
|
20
24
|
font-weight: bold;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
|
-
h4 {
|
|
27
|
+
h4, .heading-4 {
|
|
24
28
|
font-size: 20px;
|
|
25
29
|
line-height: 24px;
|
|
26
30
|
font-weight: bold;
|
|
27
31
|
}
|
|
28
32
|
|
|
29
|
-
h5 {
|
|
33
|
+
h5, .heading-5 {
|
|
30
34
|
font-size: 17px;
|
|
31
35
|
line-height: 24px;
|
|
32
36
|
font-weight: bold;
|
|
@@ -60,22 +64,27 @@ a:hover {
|
|
|
60
64
|
color: #000000;
|
|
61
65
|
}
|
|
62
66
|
|
|
67
|
+
.text-colour-hover-primary:hover,
|
|
63
68
|
.text-colour-primary {
|
|
64
69
|
color: #2C089B;
|
|
65
70
|
}
|
|
66
71
|
|
|
72
|
+
.text-colour-hover-secondary:hover,
|
|
67
73
|
.text-colour-secondary {
|
|
68
74
|
color: #2AF135;
|
|
69
75
|
}
|
|
70
76
|
|
|
77
|
+
.text-colour-hover-tertiary:hover,
|
|
71
78
|
.text-colour-tertiary {
|
|
72
79
|
color: #FF7272;
|
|
73
80
|
}
|
|
74
81
|
|
|
82
|
+
.text-colour-hover-white:hover,
|
|
75
83
|
.text-colour-white {
|
|
76
84
|
color: #FFFFFF;
|
|
77
85
|
}
|
|
78
86
|
|
|
87
|
+
.text-colour-hover-black:hover,
|
|
79
88
|
.text-colour-black {
|
|
80
89
|
color: #000000;
|
|
81
90
|
}
|
|
@@ -100,22 +109,27 @@ a:hover {
|
|
|
100
109
|
fill: #000000;
|
|
101
110
|
}
|
|
102
111
|
|
|
112
|
+
.background-colour-hover-primary:hover,
|
|
103
113
|
.background-colour-primary {
|
|
104
114
|
background-color: #2C089B;
|
|
105
115
|
}
|
|
106
116
|
|
|
117
|
+
.background-colour-hover-secondary:hover,
|
|
107
118
|
.background-colour-secondary {
|
|
108
119
|
background-color: #2AF135;
|
|
109
120
|
}
|
|
110
121
|
|
|
122
|
+
.background-colour-hover-tertiary:hover,
|
|
111
123
|
.background-colour-tertiary {
|
|
112
124
|
background-color: #FF7272;
|
|
113
125
|
}
|
|
114
126
|
|
|
127
|
+
.background-colour-hover-white:hover,
|
|
115
128
|
.background-colour-white {
|
|
116
129
|
background-color: #FFFFFF;
|
|
117
130
|
}
|
|
118
131
|
|
|
132
|
+
.background-colour-hover-black:hover,
|
|
119
133
|
.background-colour-black {
|
|
120
134
|
background-color: #000000;
|
|
121
135
|
}
|
|
@@ -142,9 +156,9 @@ a:hover {
|
|
|
142
156
|
}
|
|
143
157
|
|
|
144
158
|
.button {
|
|
145
|
-
font-size:
|
|
146
|
-
line-height:
|
|
147
|
-
padding:
|
|
159
|
+
font-size: 17px;
|
|
160
|
+
line-height: 24px;
|
|
161
|
+
padding: 10px 30px;
|
|
148
162
|
border-radius: 5px;
|
|
149
163
|
border: 1px solid #000000;
|
|
150
164
|
background-color: #000000;
|
|
@@ -160,6 +174,17 @@ a:hover {
|
|
|
160
174
|
background-color: #FFFFFF;
|
|
161
175
|
color: #000000;
|
|
162
176
|
}
|
|
177
|
+
.button.size-small {
|
|
178
|
+
font-size: 13px;
|
|
179
|
+
line-height: 17px;
|
|
180
|
+
padding: 5px 15px;
|
|
181
|
+
}
|
|
182
|
+
.button.button.rounded-true {
|
|
183
|
+
border-radius: 27.5px;
|
|
184
|
+
}
|
|
185
|
+
.button.button.rounded-true.size-small {
|
|
186
|
+
border-radius: 20px;
|
|
187
|
+
}
|
|
163
188
|
|
|
164
189
|
.button-primary {
|
|
165
190
|
color: #FFFFFF;
|
|
@@ -247,7 +272,10 @@ a:hover {
|
|
|
247
272
|
}
|
|
248
273
|
|
|
249
274
|
.button-rounded {
|
|
250
|
-
border-radius:
|
|
275
|
+
border-radius: 27.5px;
|
|
276
|
+
}
|
|
277
|
+
.button-rounded.size-small {
|
|
278
|
+
border-radius: 20px;
|
|
251
279
|
}
|
|
252
280
|
|
|
253
281
|
.progress-bar {
|
|
@@ -296,9 +324,22 @@ a:hover {
|
|
|
296
324
|
color: #2AF135;
|
|
297
325
|
}
|
|
298
326
|
|
|
327
|
+
.video-wrap {
|
|
328
|
+
position: relative;
|
|
329
|
+
padding-bottom: 56.25%;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.video-wrap iframe,
|
|
299
333
|
.video-wrap video {
|
|
334
|
+
position: absolute;
|
|
335
|
+
border: 0;
|
|
336
|
+
display: block;
|
|
337
|
+
left: 0;
|
|
338
|
+
right: 0;
|
|
339
|
+
top: 0;
|
|
340
|
+
bottom: 0;
|
|
300
341
|
width: 100%;
|
|
301
|
-
height:
|
|
342
|
+
height: 100%;
|
|
302
343
|
}
|
|
303
344
|
|
|
304
345
|
.image-wrap img {
|
|
@@ -453,7 +494,6 @@ a:hover {
|
|
|
453
494
|
padding: 30px;
|
|
454
495
|
}
|
|
455
496
|
.container .sleeve {
|
|
456
|
-
background-color: #FFFFFF;
|
|
457
497
|
padding: 30px;
|
|
458
498
|
clip-path: polygon(0% 0%, 0% 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, 100% 100%, 50px 100%, 0 calc(100% - 50px));
|
|
459
499
|
}
|
|
@@ -469,9 +509,4 @@ a:hover {
|
|
|
469
509
|
}
|
|
470
510
|
.container .subtitle {
|
|
471
511
|
margin-bottom: 15px;
|
|
472
|
-
}
|
|
473
|
-
.container button {
|
|
474
|
-
font-family: "Euclid Triangle", sans-serif;
|
|
475
|
-
font-size: 17px;
|
|
476
|
-
line-height: 24px;
|
|
477
512
|
}
|