@illinois-toolkit/ilw-hero 0.9.1 → 1.0.0-alpha
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/LICENSE +21 -0
- package/README.md +97 -97
- package/builder/ilw-hero.json +10 -10
- package/builder/versions/ilw-hero.1.0.0-alpha.json +136 -136
- package/dist/ilw-hero.cjs +168 -0
- package/dist/ilw-hero.css +1 -0
- package/dist/ilw-hero.js +757 -0
- package/dist/ilw-hero.umd.cjs +168 -0
- package/package.json +31 -22
- package/src/ilw-hero.css +85 -85
- package/src/ilw-hero.js +51 -51
- package/src/ilw-hero.styles.js +140 -140
- package/.github/workflows/delete_development.yml +0 -19
- package/.github/workflows/deploy_development.yml +0 -38
- package/.github/workflows/deploy_production.yml +0 -64
- package/.github/workflows/deploy_production_manual.yml +0 -41
- package/samples/index.html +0 -53
- package/samples/noimage.html +0 -52
- package/samples/small.html +0 -42
- package/samples/video.html +0 -57
- package/vite.build.config.js +0 -25
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Web at Illinois
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
# Sample README
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
Hero component for the web toolkit. The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.
|
|
6
|
-
|
|
7
|
-
There is one slot, called "background", used for the background item. This is optional, but is most likely an image.
|
|
8
|
-
|
|
9
|
-
The default text should include a header (h1, h2, h3) and possibly a button list. The buttons will need to be styled separately.
|
|
10
|
-
|
|
11
|
-
Attributes include:
|
|
12
|
-
* theme: the theme/background of the content. Options are blue, orange, gray, blue-gradient, orange-gradient
|
|
13
|
-
* width: whether or not this is contained in the parent (default) or if it will expand to full width (full). Auto will not work in this case.
|
|
14
|
-
* align: whether or not the text is vertical or horizonally aligned (top-left, left-center, right-bottom, etc.)
|
|
15
|
-
* focus: if the image has a focal point if it shrinks or not. Values are top, bottom, left, right. Default is center.
|
|
16
|
-
* shadow: if the text should have a drop shadow on it.
|
|
17
|
-
* collapse: if the image should disappear in mobile view (useful if the image is just a blank pattern or does not give relevant information)
|
|
18
|
-
|
|
19
|
-
## Contact Team
|
|
20
|
-
|
|
21
|
-
jonker@illinois.edu
|
|
22
|
-
|
|
23
|
-
## NPM Install
|
|
24
|
-
|
|
25
|
-
None yet, still in alpha.
|
|
26
|
-
|
|
27
|
-
## Files
|
|
28
|
-
|
|
29
|
-
None yet, still in alpha.
|
|
30
|
-
|
|
31
|
-
## Code Examples
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
<ilw-hero align="left" focus="bottom" shadow theme="white">
|
|
35
|
-
<img src="https://picsum.photos/1920/1280" alt="" slot="background">
|
|
36
|
-
<h1>Innovating solutions every year</h1>
|
|
37
|
-
<ul class="ilw-buttons">
|
|
38
|
-
<li>
|
|
39
|
-
<a href="#">Link 1</a>
|
|
40
|
-
</li>
|
|
41
|
-
<li>
|
|
42
|
-
<a href="#">Link 2</a>
|
|
43
|
-
</li>
|
|
44
|
-
<li>
|
|
45
|
-
<a href="#">Link 3</a>
|
|
46
|
-
</li>
|
|
47
|
-
</ul>
|
|
48
|
-
</ilw-hero>
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
<ilw-hero collapse="true">
|
|
53
|
-
<h2>Innovating solutions every year</h2>
|
|
54
|
-
<ul class="ilw-buttons">
|
|
55
|
-
<li>
|
|
56
|
-
<a href="#">Link 1</a>
|
|
57
|
-
</li>
|
|
58
|
-
<li>
|
|
59
|
-
<a href="#">Link 2</a>
|
|
60
|
-
</li>
|
|
61
|
-
<li>
|
|
62
|
-
<a href="#">Link 3</a>
|
|
63
|
-
</li>
|
|
64
|
-
</ul>
|
|
65
|
-
</ilw-hero>
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
<ilw-hero>
|
|
70
|
-
<video slot="background" autoplay="" loop="" muted="" poster="https://cdn-e.education.illinois.edu/video/first_image.png"><source src="https://cdn-e.education.illinois.edu/video/homepage8.mp4" type="video/mp4">Your browser does not support the video tag.
|
|
71
|
-
</video>
|
|
72
|
-
<h2>Innovating solutions every year</h2>
|
|
73
|
-
<ul class="ilw-buttons">
|
|
74
|
-
<li>
|
|
75
|
-
<a href="#">Link 1</a>
|
|
76
|
-
</li>
|
|
77
|
-
<li>
|
|
78
|
-
<a href="#">Link 2</a>
|
|
79
|
-
</li>
|
|
80
|
-
<li>
|
|
81
|
-
<a href="#">Link 3</a>
|
|
82
|
-
</li>
|
|
83
|
-
</ul>
|
|
84
|
-
</ilw-hero>
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
## Accessibility Notes and Use
|
|
88
|
-
|
|
89
|
-
The obvious one is color contrast. Make sure you have an image that text can overlay on. Match the theme with the dominant color of the image (so if you have a white image, use the white theme, if you have a dark image, use the blue theme). Make sure you test using multiple screen sizes, as the image will shift based on the size of the screen. If you need assistance, you can use the shadow option to put a shadow in front of the heading text.
|
|
90
|
-
|
|
91
|
-
For a graphic, make sure you choose a graphic that would reasonably display on a monitor. Do not choose a portrait image, or it will be cropped oddly.
|
|
92
|
-
|
|
93
|
-
You can include buttons using the ilw-buttons class or ilw-button class.
|
|
94
|
-
|
|
95
|
-
## External references
|
|
96
|
-
|
|
97
|
-
https://usability.yale.edu/usability-best-practices/hero-imagescarousels
|
|
1
|
+
# Sample README
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Hero component for the web toolkit. The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.
|
|
6
|
+
|
|
7
|
+
There is one slot, called "background", used for the background item. This is optional, but is most likely an image.
|
|
8
|
+
|
|
9
|
+
The default text should include a header (h1, h2, h3) and possibly a button list. The buttons will need to be styled separately.
|
|
10
|
+
|
|
11
|
+
Attributes include:
|
|
12
|
+
* theme: the theme/background of the content. Options are blue, orange, gray, blue-gradient, orange-gradient
|
|
13
|
+
* width: whether or not this is contained in the parent (default) or if it will expand to full width (full). Auto will not work in this case.
|
|
14
|
+
* align: whether or not the text is vertical or horizonally aligned (top-left, left-center, right-bottom, etc.)
|
|
15
|
+
* focus: if the image has a focal point if it shrinks or not. Values are top, bottom, left, right. Default is center.
|
|
16
|
+
* shadow: if the text should have a drop shadow on it.
|
|
17
|
+
* collapse: if the image should disappear in mobile view (useful if the image is just a blank pattern or does not give relevant information)
|
|
18
|
+
|
|
19
|
+
## Contact Team
|
|
20
|
+
|
|
21
|
+
jonker@illinois.edu
|
|
22
|
+
|
|
23
|
+
## NPM Install
|
|
24
|
+
|
|
25
|
+
None yet, still in alpha.
|
|
26
|
+
|
|
27
|
+
## Files
|
|
28
|
+
|
|
29
|
+
None yet, still in alpha.
|
|
30
|
+
|
|
31
|
+
## Code Examples
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
<ilw-hero align="left" focus="bottom" shadow theme="white">
|
|
35
|
+
<img src="https://picsum.photos/1920/1280" alt="" slot="background">
|
|
36
|
+
<h1>Innovating solutions every year</h1>
|
|
37
|
+
<ul class="ilw-buttons">
|
|
38
|
+
<li>
|
|
39
|
+
<a href="#">Link 1</a>
|
|
40
|
+
</li>
|
|
41
|
+
<li>
|
|
42
|
+
<a href="#">Link 2</a>
|
|
43
|
+
</li>
|
|
44
|
+
<li>
|
|
45
|
+
<a href="#">Link 3</a>
|
|
46
|
+
</li>
|
|
47
|
+
</ul>
|
|
48
|
+
</ilw-hero>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
<ilw-hero collapse="true">
|
|
53
|
+
<h2>Innovating solutions every year</h2>
|
|
54
|
+
<ul class="ilw-buttons">
|
|
55
|
+
<li>
|
|
56
|
+
<a href="#">Link 1</a>
|
|
57
|
+
</li>
|
|
58
|
+
<li>
|
|
59
|
+
<a href="#">Link 2</a>
|
|
60
|
+
</li>
|
|
61
|
+
<li>
|
|
62
|
+
<a href="#">Link 3</a>
|
|
63
|
+
</li>
|
|
64
|
+
</ul>
|
|
65
|
+
</ilw-hero>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
<ilw-hero>
|
|
70
|
+
<video slot="background" autoplay="" loop="" muted="" poster="https://cdn-e.education.illinois.edu/video/first_image.png"><source src="https://cdn-e.education.illinois.edu/video/homepage8.mp4" type="video/mp4">Your browser does not support the video tag.
|
|
71
|
+
</video>
|
|
72
|
+
<h2>Innovating solutions every year</h2>
|
|
73
|
+
<ul class="ilw-buttons">
|
|
74
|
+
<li>
|
|
75
|
+
<a href="#">Link 1</a>
|
|
76
|
+
</li>
|
|
77
|
+
<li>
|
|
78
|
+
<a href="#">Link 2</a>
|
|
79
|
+
</li>
|
|
80
|
+
<li>
|
|
81
|
+
<a href="#">Link 3</a>
|
|
82
|
+
</li>
|
|
83
|
+
</ul>
|
|
84
|
+
</ilw-hero>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Accessibility Notes and Use
|
|
88
|
+
|
|
89
|
+
The obvious one is color contrast. Make sure you have an image that text can overlay on. Match the theme with the dominant color of the image (so if you have a white image, use the white theme, if you have a dark image, use the blue theme). Make sure you test using multiple screen sizes, as the image will shift based on the size of the screen. If you need assistance, you can use the shadow option to put a shadow in front of the heading text.
|
|
90
|
+
|
|
91
|
+
For a graphic, make sure you choose a graphic that would reasonably display on a monitor. Do not choose a portrait image, or it will be cropped oddly.
|
|
92
|
+
|
|
93
|
+
You can include buttons using the ilw-buttons class or ilw-button class.
|
|
94
|
+
|
|
95
|
+
## External references
|
|
96
|
+
|
|
97
|
+
https://usability.yale.edu/usability-best-practices/hero-imagescarousels
|
package/builder/ilw-hero.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "Hero",
|
|
3
|
-
"tag": "ilw-hero",
|
|
4
|
-
"github": "https://github.com/web-illinois/ilw-hero/",
|
|
5
|
-
"type": "web component",
|
|
6
|
-
"element-name": "ilw-hero",
|
|
7
|
-
"description": "The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.",
|
|
8
|
-
"toolkit-version": "",
|
|
9
|
-
"production-version": "",
|
|
10
|
-
"development-version": "1.0.0-alpha"
|
|
1
|
+
{
|
|
2
|
+
"title": "Hero",
|
|
3
|
+
"tag": "ilw-hero",
|
|
4
|
+
"github": "https://github.com/web-illinois/ilw-hero/",
|
|
5
|
+
"type": "web component",
|
|
6
|
+
"element-name": "ilw-hero",
|
|
7
|
+
"description": "The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.",
|
|
8
|
+
"toolkit-version": "",
|
|
9
|
+
"production-version": "",
|
|
10
|
+
"development-version": "1.0.0-alpha"
|
|
11
11
|
}
|
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "Hero",
|
|
3
|
-
"tag": "ilw-hero",
|
|
4
|
-
"github": "https://github.com/web-illinois/ilw-hero/",
|
|
5
|
-
"type": "web component",
|
|
6
|
-
"element-name": "ilw-hero",
|
|
7
|
-
"description": "The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.",
|
|
8
|
-
"version": "1.0.0-alpha",
|
|
9
|
-
"date": "5/22/2024",
|
|
10
|
-
"css": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.0-alpha/ilw-hero.css",
|
|
11
|
-
"js": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.0-alpha/ilw-hero.js",
|
|
12
|
-
"production": false,
|
|
13
|
-
"notes": "",
|
|
14
|
-
"parent-style": "",
|
|
15
|
-
"samples": [
|
|
16
|
-
{
|
|
17
|
-
"name": "default",
|
|
18
|
-
"description": "Default information with image",
|
|
19
|
-
"text": "<img src='https://picsum.photos/1920/1280' alt='' slot='background'><h1>Innovating solutions every year</h1><ul class='ilw-buttons'><li><a href='#'>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#'>Link 3</a></li></ul>"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "noimage",
|
|
23
|
-
"description": "No image",
|
|
24
|
-
"text": "<h1>Innovating solutions every year</h1><ul class='ilw-buttons'><li><a href='#'>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#'>Link 3</a></li></ul>"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "video",
|
|
28
|
-
"description": "Video background",
|
|
29
|
-
"text": "<video slot='background' autoplay='' loop='' muted='' poster='https://cdn-e.education.illinois.edu/video/first_image.png'><source src='https://cdn-e.education.illinois.edu/video/homepage8.mp4' type='video/mp4'>Your browser does not support the video tag.</video><h2>Innovating solutions every year</h2><ul class='ilw-buttons'><li><a href='#''>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#''>Link 3</a></li></ul>"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"attributes-fixed": [],
|
|
33
|
-
"attributes-text": [],
|
|
34
|
-
"attributes": [
|
|
35
|
-
{
|
|
36
|
-
"name": "theme",
|
|
37
|
-
"description": "Color theme used",
|
|
38
|
-
"depreciated": false,
|
|
39
|
-
"values": [
|
|
40
|
-
"",
|
|
41
|
-
"blue",
|
|
42
|
-
"orange",
|
|
43
|
-
"white"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "align",
|
|
48
|
-
"description": "Text alignment, defaults to center",
|
|
49
|
-
"depreciated": false,
|
|
50
|
-
"values": [
|
|
51
|
-
"",
|
|
52
|
-
"top",
|
|
53
|
-
"bottom",
|
|
54
|
-
"left",
|
|
55
|
-
"right",
|
|
56
|
-
"top-left",
|
|
57
|
-
"top-right",
|
|
58
|
-
"bottom-left",
|
|
59
|
-
"bottom-right"
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "focus",
|
|
64
|
-
"description": "Focus for the image, defaults to center",
|
|
65
|
-
"depreciated": false,
|
|
66
|
-
"values": [
|
|
67
|
-
"",
|
|
68
|
-
"top",
|
|
69
|
-
"bottom",
|
|
70
|
-
"left",
|
|
71
|
-
"right"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "width",
|
|
76
|
-
"description": "Whether or not this follows current borders or is full width",
|
|
77
|
-
"depreciated": false,
|
|
78
|
-
"values": [
|
|
79
|
-
"",
|
|
80
|
-
"full"
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "shadow",
|
|
85
|
-
"description": "Whether or not to include a shadow",
|
|
86
|
-
"depreciated": false,
|
|
87
|
-
"values": [
|
|
88
|
-
"",
|
|
89
|
-
"true"
|
|
90
|
-
]
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "collapse",
|
|
94
|
-
"description": "Whether or not to remove the image / background in mobile",
|
|
95
|
-
"depreciated": false,
|
|
96
|
-
"values": [
|
|
97
|
-
"",
|
|
98
|
-
"true"
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"classes-fixed": [],
|
|
103
|
-
"classes": [],
|
|
104
|
-
"css-variables": [
|
|
105
|
-
{
|
|
106
|
-
"name": "--ilw-hero--height",
|
|
107
|
-
"depreciated": false,
|
|
108
|
-
"description": "Size of the hero image"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "--ilw-hero--font",
|
|
112
|
-
"depreciated": false,
|
|
113
|
-
"description": "Font for heading"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "--ilw-hero--background",
|
|
117
|
-
"depreciated": false,
|
|
118
|
-
"description": "Hex color for background"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"name": "--ilw-hero--text-width",
|
|
122
|
-
"depreciated": false,
|
|
123
|
-
"description": "Text width for heading"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"name": "--ilw-hero--shadow-color",
|
|
127
|
-
"depreciated": false,
|
|
128
|
-
"description": "Hex color for shadow in rgba format"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"name": "--ilw-hero--text-color",
|
|
132
|
-
"depreciated": false,
|
|
133
|
-
"description": "Hex color for heading"
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"title": "Hero",
|
|
3
|
+
"tag": "ilw-hero",
|
|
4
|
+
"github": "https://github.com/web-illinois/ilw-hero/",
|
|
5
|
+
"type": "web component",
|
|
6
|
+
"element-name": "ilw-hero",
|
|
7
|
+
"description": "The Hero Image component adds a large picture at the top of the page. It is used to draw attention to the page and can be used to set the tone for the page.",
|
|
8
|
+
"version": "1.0.0-alpha",
|
|
9
|
+
"date": "5/22/2024",
|
|
10
|
+
"css": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.0-alpha/ilw-hero.css",
|
|
11
|
+
"js": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.0-alpha/ilw-hero.js",
|
|
12
|
+
"production": false,
|
|
13
|
+
"notes": "",
|
|
14
|
+
"parent-style": "",
|
|
15
|
+
"samples": [
|
|
16
|
+
{
|
|
17
|
+
"name": "default",
|
|
18
|
+
"description": "Default information with image",
|
|
19
|
+
"text": "<img src='https://picsum.photos/1920/1280' alt='' slot='background'><h1>Innovating solutions every year</h1><ul class='ilw-buttons'><li><a href='#'>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#'>Link 3</a></li></ul>"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "noimage",
|
|
23
|
+
"description": "No image",
|
|
24
|
+
"text": "<h1>Innovating solutions every year</h1><ul class='ilw-buttons'><li><a href='#'>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#'>Link 3</a></li></ul>"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "video",
|
|
28
|
+
"description": "Video background",
|
|
29
|
+
"text": "<video slot='background' autoplay='' loop='' muted='' poster='https://cdn-e.education.illinois.edu/video/first_image.png'><source src='https://cdn-e.education.illinois.edu/video/homepage8.mp4' type='video/mp4'>Your browser does not support the video tag.</video><h2>Innovating solutions every year</h2><ul class='ilw-buttons'><li><a href='#''>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#''>Link 3</a></li></ul>"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"attributes-fixed": [],
|
|
33
|
+
"attributes-text": [],
|
|
34
|
+
"attributes": [
|
|
35
|
+
{
|
|
36
|
+
"name": "theme",
|
|
37
|
+
"description": "Color theme used",
|
|
38
|
+
"depreciated": false,
|
|
39
|
+
"values": [
|
|
40
|
+
"",
|
|
41
|
+
"blue",
|
|
42
|
+
"orange",
|
|
43
|
+
"white"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "align",
|
|
48
|
+
"description": "Text alignment, defaults to center",
|
|
49
|
+
"depreciated": false,
|
|
50
|
+
"values": [
|
|
51
|
+
"",
|
|
52
|
+
"top",
|
|
53
|
+
"bottom",
|
|
54
|
+
"left",
|
|
55
|
+
"right",
|
|
56
|
+
"top-left",
|
|
57
|
+
"top-right",
|
|
58
|
+
"bottom-left",
|
|
59
|
+
"bottom-right"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "focus",
|
|
64
|
+
"description": "Focus for the image, defaults to center",
|
|
65
|
+
"depreciated": false,
|
|
66
|
+
"values": [
|
|
67
|
+
"",
|
|
68
|
+
"top",
|
|
69
|
+
"bottom",
|
|
70
|
+
"left",
|
|
71
|
+
"right"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "width",
|
|
76
|
+
"description": "Whether or not this follows current borders or is full width",
|
|
77
|
+
"depreciated": false,
|
|
78
|
+
"values": [
|
|
79
|
+
"",
|
|
80
|
+
"full"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "shadow",
|
|
85
|
+
"description": "Whether or not to include a shadow",
|
|
86
|
+
"depreciated": false,
|
|
87
|
+
"values": [
|
|
88
|
+
"",
|
|
89
|
+
"true"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "collapse",
|
|
94
|
+
"description": "Whether or not to remove the image / background in mobile",
|
|
95
|
+
"depreciated": false,
|
|
96
|
+
"values": [
|
|
97
|
+
"",
|
|
98
|
+
"true"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"classes-fixed": [],
|
|
103
|
+
"classes": [],
|
|
104
|
+
"css-variables": [
|
|
105
|
+
{
|
|
106
|
+
"name": "--ilw-hero--height",
|
|
107
|
+
"depreciated": false,
|
|
108
|
+
"description": "Size of the hero image"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "--ilw-hero--font",
|
|
112
|
+
"depreciated": false,
|
|
113
|
+
"description": "Font for heading"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "--ilw-hero--background",
|
|
117
|
+
"depreciated": false,
|
|
118
|
+
"description": "Hex color for background"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "--ilw-hero--text-width",
|
|
122
|
+
"depreciated": false,
|
|
123
|
+
"description": "Text width for heading"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "--ilw-hero--shadow-color",
|
|
127
|
+
"depreciated": false,
|
|
128
|
+
"description": "Hex color for shadow in rgba format"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "--ilw-hero--text-color",
|
|
132
|
+
"depreciated": false,
|
|
133
|
+
"description": "Hex color for heading"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|