@illinois-toolkit/ilw-hero 1.0.1-beta → 1.2.2

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/README.md CHANGED
@@ -6,7 +6,7 @@ Hero component for the web toolkit. The Hero Image component adds a large pictur
6
6
 
7
7
  There is one slot, called "background", used for the background item. This is optional, but is most likely an image.
8
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.
9
+ The default text should include a header (h1, h2, h3) and possibly a button list. The buttons may be styled separately. Alternatively, you can choose a paragraph tag with a title class -- this will style it like the header but allow you to not have a specific header information for accessibility.
10
10
 
11
11
  Attributes include:
12
12
  * theme: the theme/background of the content. Options are blue, orange, gray, blue-gradient, orange-gradient
@@ -6,7 +6,7 @@
6
6
  "element-name": "ilw-hero",
7
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
8
  "purpose": "Draw a user's attention, set the page's tone.",
9
- "toolkit-version": "",
10
- "production-version": "",
11
- "development-version": "1.0-beta"
9
+ "toolkit-version": "1.1",
10
+ "production-version": "1.1",
11
+ "development-version": "latest"
12
12
  }
@@ -0,0 +1,146 @@
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
+ "builder-version": "1.0",
9
+ "version": "1.0.0",
10
+ "date": "10/22/2024",
11
+ "css": "https://cdn.toolkit.illinois.edu/ilw-hero/1.0.0/ilw-hero.css",
12
+ "js": "https://cdn.toolkit.illinois.edu/ilw-hero/1.0.0/ilw-hero.js",
13
+ "production": true,
14
+ "notes": "",
15
+ "parent-style": "",
16
+ "samples": [
17
+ {
18
+ "name": "default",
19
+ "description": "Default information with image",
20
+ "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>"
21
+ },
22
+ {
23
+ "name": "noimage",
24
+ "description": "No image",
25
+ "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>"
26
+ },
27
+ {
28
+ "name": "video",
29
+ "description": "Video background",
30
+ "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>"
31
+ }
32
+ ],
33
+ "attributes-fixed": [],
34
+ "attributes-text": [],
35
+ "attributes": [
36
+ {
37
+ "name": "theme",
38
+ "description": "Color theme used",
39
+ "depreciated": false,
40
+ "values": [
41
+ "",
42
+ "blue",
43
+ "orange",
44
+ "white"
45
+ ]
46
+ },
47
+ {
48
+ "name": "align",
49
+ "description": "Text alignment, defaults to center",
50
+ "depreciated": false,
51
+ "values": [
52
+ "",
53
+ "top",
54
+ "bottom",
55
+ "left",
56
+ "right",
57
+ "top-left",
58
+ "top-right",
59
+ "bottom-left",
60
+ "bottom-right"
61
+ ]
62
+ },
63
+ {
64
+ "name": "focus",
65
+ "description": "Focus for the image, defaults to center",
66
+ "depreciated": false,
67
+ "values": [
68
+ "",
69
+ "top",
70
+ "bottom",
71
+ "left",
72
+ "right"
73
+ ]
74
+ },
75
+ {
76
+ "name": "width",
77
+ "description": "Whether or not this follows current borders or is full width",
78
+ "depreciated": false,
79
+ "values": [
80
+ "",
81
+ "full"
82
+ ]
83
+ },
84
+ {
85
+ "name": "shadow",
86
+ "description": "Whether or not to include a shadow",
87
+ "depreciated": false,
88
+ "values": [
89
+ "",
90
+ "true"
91
+ ]
92
+ },
93
+ {
94
+ "name": "collapse",
95
+ "description": "Whether or not to remove the image / background in mobile",
96
+ "depreciated": false,
97
+ "values": [
98
+ "",
99
+ "true"
100
+ ]
101
+ },
102
+ {
103
+ "name": "alwayson",
104
+ "description": "Whether or not to drop the text in mobile",
105
+ "depreciated": false,
106
+ "values": [
107
+ "",
108
+ "true"
109
+ ]
110
+ }
111
+ ],
112
+ "classes-fixed": [],
113
+ "classes": [],
114
+ "css-variables": [
115
+ {
116
+ "name": "--ilw-hero--height",
117
+ "depreciated": false,
118
+ "description": "Size of the hero image"
119
+ },
120
+ {
121
+ "name": "--ilw-hero--font",
122
+ "depreciated": false,
123
+ "description": "Font for heading"
124
+ },
125
+ {
126
+ "name": "--ilw-hero--background",
127
+ "depreciated": false,
128
+ "description": "Hex color for background"
129
+ },
130
+ {
131
+ "name": "--ilw-hero--text-width",
132
+ "depreciated": false,
133
+ "description": "Text width for heading"
134
+ },
135
+ {
136
+ "name": "--ilw-hero--shadow-color",
137
+ "depreciated": false,
138
+ "description": "Hex color for shadow in rgba format"
139
+ },
140
+ {
141
+ "name": "--ilw-hero--text-color",
142
+ "depreciated": false,
143
+ "description": "Hex color for heading"
144
+ }
145
+ ]
146
+ }
@@ -0,0 +1,146 @@
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
+ "builder-version": "1.1",
9
+ "version": "1.1",
10
+ "date": "10/23/2025",
11
+ "css": "https://cdn.toolkit.illinois.edu/ilw-hero/1.1/ilw-hero.css",
12
+ "js": "https://cdn.toolkit.illinois.edu/ilw-hero/1.1/ilw-hero.js",
13
+ "production": true,
14
+ "notes": "",
15
+ "parent-style": "",
16
+ "samples": [
17
+ {
18
+ "name": "default",
19
+ "description": "Default information with image",
20
+ "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>"
21
+ },
22
+ {
23
+ "name": "noimage",
24
+ "description": "No image",
25
+ "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>"
26
+ },
27
+ {
28
+ "name": "video",
29
+ "description": "Video background",
30
+ "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>"
31
+ }
32
+ ],
33
+ "attributes-fixed": [],
34
+ "attributes-text": [],
35
+ "attributes": [
36
+ {
37
+ "name": "theme",
38
+ "description": "Color theme used",
39
+ "depreciated": false,
40
+ "values": [
41
+ "",
42
+ "blue",
43
+ "orange",
44
+ "white"
45
+ ]
46
+ },
47
+ {
48
+ "name": "align",
49
+ "description": "Text alignment, defaults to center",
50
+ "depreciated": false,
51
+ "values": [
52
+ "",
53
+ "top",
54
+ "bottom",
55
+ "left",
56
+ "right",
57
+ "top-left",
58
+ "top-right",
59
+ "bottom-left",
60
+ "bottom-right"
61
+ ]
62
+ },
63
+ {
64
+ "name": "focus",
65
+ "description": "Focus for the image, defaults to center",
66
+ "depreciated": false,
67
+ "values": [
68
+ "",
69
+ "top",
70
+ "bottom",
71
+ "left",
72
+ "right"
73
+ ]
74
+ },
75
+ {
76
+ "name": "width",
77
+ "description": "Whether or not this follows current borders or is full width",
78
+ "depreciated": false,
79
+ "values": [
80
+ "",
81
+ "full"
82
+ ]
83
+ },
84
+ {
85
+ "name": "shadow",
86
+ "description": "Whether or not to include a shadow",
87
+ "depreciated": false,
88
+ "values": [
89
+ "",
90
+ "true"
91
+ ]
92
+ },
93
+ {
94
+ "name": "collapse",
95
+ "description": "Whether or not to remove the image / background in mobile",
96
+ "depreciated": false,
97
+ "values": [
98
+ "",
99
+ "true"
100
+ ]
101
+ },
102
+ {
103
+ "name": "alwayson",
104
+ "description": "Whether or not to drop the text in mobile",
105
+ "depreciated": false,
106
+ "values": [
107
+ "",
108
+ "true"
109
+ ]
110
+ }
111
+ ],
112
+ "classes-fixed": [],
113
+ "classes": [],
114
+ "css-variables": [
115
+ {
116
+ "name": "--ilw-hero--height",
117
+ "depreciated": false,
118
+ "description": "Size of the hero image"
119
+ },
120
+ {
121
+ "name": "--ilw-hero--font",
122
+ "depreciated": false,
123
+ "description": "Font for heading"
124
+ },
125
+ {
126
+ "name": "--ilw-hero--background",
127
+ "depreciated": false,
128
+ "description": "Hex color for background"
129
+ },
130
+ {
131
+ "name": "--ilw-hero--text-width",
132
+ "depreciated": false,
133
+ "description": "Text width for heading"
134
+ },
135
+ {
136
+ "name": "--ilw-hero--shadow-color",
137
+ "depreciated": false,
138
+ "description": "Hex color for shadow in rgba format"
139
+ },
140
+ {
141
+ "name": "--ilw-hero--text-color",
142
+ "depreciated": false,
143
+ "description": "Hex color for heading"
144
+ }
145
+ ]
146
+ }
@@ -5,11 +5,11 @@
5
5
  "type": "web component",
6
6
  "element-name": "ilw-hero",
7
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
- "builder-version": "1.0-beta",
8
+ "builder-version": "latest",
9
9
  "version": "1.0.1-beta",
10
10
  "date": "10/08/2024",
11
- "css": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.1-beta/ilw-hero.css",
12
- "js": "https://dev.toolkit.illinois.edu/ilw-hero/1.0.1-beta/ilw-hero.js",
11
+ "css": "https://dev.toolkit.illinois.edu/ilw-hero/latest/ilw-hero.css",
12
+ "js": "https://dev.toolkit.illinois.edu/ilw-hero/latest/ilw-hero.js",
13
13
  "production": false,
14
14
  "notes": "",
15
15
  "parent-style": "",
@@ -0,0 +1 @@
1
+ :root{--ilw-hero--height: 223px;--ilw-hero--font: 700 2.25rem/2.25rem var(--il-font-sans);--ilw-hero--background: var(--ilw-color--heading);--ilw-hero--text-color: var(--ilw-color--background);--ilw-hero--text-width: 40%;--ilw-hero--shadow-color: rgba(0, 0, 0, 1)}ilw-hero{display:block;container-type:inline-size}ilw-hero img,ilw-hero *[slot=background]{display:block;position:relative;width:100%;height:100%;object-fit:cover;object-position:center}ilw-hero h1,ilw-hero h2,ilw-hero h3,ilw-hero p.title{all:initial;font:var(--ilw-hero--font);color:var(--ilw-hero--text-color);text-shadow:2px 2px 2px var(--ilw-hero--shadow-color);text-align:inherit}ilw-hero[theme=orange]{--ilw-hero--background: var(--ilw-color--orange--background);--ilw-hero--button-background-color: var(--ilw-color--orange--control-accent);--ilw-hero--focused-button-foreground-color: var(---ilw-color--orange--control-accent)}ilw-hero[theme=white]{--ilw-hero--background: var(--ilw-color--white--background);--ilw-hero--button-background-color: var(--ilw-color--white--control);--ilw-hero--button-foreground-color: var(--ilw-color--white--control-text);--ilw-hero--button-border-color: var(--ilw-color--white--control-text);--ilw-hero--focused-button-background-color: var(--ilw-color--white--control-text);--ilw-hero--focused-button-foreground-color: var(--ilw-color--white--control);--ilw-hero--focused-button-border-color: var(--ilw-color--white--control-text);--ilw-hero--text-color: var(--ilw-color--white--text);--ilw-hero--shadow-color: rgba(255, 255, 255, 1)}ilw-hero[focus=top] img{object-position:top}ilw-hero[focus=bottom] img{object-position:bottom}ilw-hero[focus=left] img{object-position:left}ilw-hero[focus=right] img{object-position:right}@media(min-width:576px){:root{--ilw-hero--height: 315px;--ilw-hero--font: 700 3rem/3rem var(--il-font-sans)}}@media(min-width:767px){:root{--ilw-hero--height: 557px;--ilw-hero--font: 700 4rem/4rem var(--il-font-sans)}ilw-hero[shadow] h1,ilw-hero[shadow] h2,ilw-hero[shadow] h3{background:radial-gradient(#000000e6,#0000001a);padding:1rem!important}ilw-hero[theme=white][shadow] h1,ilw-hero[theme=white][shadow] h2,ilw-hero[theme=white][shadow] h3{background:radial-gradient(#ffffffe6,#ffffff1a)}}@media(min-width:992px){:root{--ilw-hero--font: 700 4.5rem/4.5rem var(--il-font-sans)}}