Skip to content

Commit c08a03c

Browse files
Merge pull request #21 from web-illinois/v1.2
Update json
2 parents d61fcae + 08371c7 commit c08a03c

2 files changed

Lines changed: 153 additions & 2 deletions

File tree

builder/ilw-hero.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"element-name": "ilw-hero",
77
"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.",
88
"purpose": "Draw a user's attention, set the page's tone.",
9-
"toolkit-version": "1.1",
10-
"production-version": "1.1",
9+
"toolkit-version": "1.2",
10+
"production-version": "1.2",
1111
"development-version": "latest"
1212
}

builder/versions/ilw-hero.1.2.json

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
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.2",
9+
"version": "1.2",
10+
"date": "03/15/2026",
11+
"css": "https://cdn.toolkit.illinois.edu/ilw-hero/1.2/ilw-hero.css",
12+
"js": "https://cdn.toolkit.illinois.edu/ilw-hero/1.2/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": "noheading",
29+
"description": "No heading",
30+
"text": "<p class='title'>Innovating solutions every year</p><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+
"name": "video",
34+
"description": "Video background",
35+
"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>"
36+
}
37+
],
38+
"attributes-fixed": [],
39+
"attributes-text": [],
40+
"attributes": [
41+
{
42+
"name": "theme",
43+
"description": "Color theme used",
44+
"depreciated": false,
45+
"values": [
46+
"",
47+
"blue",
48+
"orange",
49+
"white"
50+
]
51+
},
52+
{
53+
"name": "align",
54+
"description": "Text alignment, defaults to center",
55+
"depreciated": false,
56+
"values": [
57+
"",
58+
"top",
59+
"bottom",
60+
"left",
61+
"right",
62+
"top-left",
63+
"top-right",
64+
"bottom-left",
65+
"bottom-right"
66+
]
67+
},
68+
{
69+
"name": "focus",
70+
"description": "Focus for the image, defaults to center",
71+
"depreciated": false,
72+
"values": [
73+
"",
74+
"top",
75+
"bottom",
76+
"left",
77+
"right"
78+
]
79+
},
80+
{
81+
"name": "width",
82+
"description": "Whether or not this follows current borders or is full width",
83+
"depreciated": false,
84+
"values": [
85+
"",
86+
"full"
87+
]
88+
},
89+
{
90+
"name": "shadow",
91+
"description": "Whether or not to include a shadow",
92+
"depreciated": false,
93+
"values": [
94+
"",
95+
"true"
96+
]
97+
},
98+
{
99+
"name": "collapse",
100+
"description": "Whether or not to remove the image / background in mobile",
101+
"depreciated": false,
102+
"values": [
103+
"",
104+
"true"
105+
]
106+
},
107+
{
108+
"name": "alwayson",
109+
"description": "Whether or not to drop the text in mobile",
110+
"depreciated": false,
111+
"values": [
112+
"",
113+
"true"
114+
]
115+
}
116+
],
117+
"classes-fixed": [],
118+
"classes": [],
119+
"css-variables": [
120+
{
121+
"name": "--ilw-hero--height",
122+
"depreciated": false,
123+
"description": "Size of the hero image"
124+
},
125+
{
126+
"name": "--ilw-hero--font",
127+
"depreciated": false,
128+
"description": "Font for heading"
129+
},
130+
{
131+
"name": "--ilw-hero--background",
132+
"depreciated": false,
133+
"description": "Hex color for background"
134+
},
135+
{
136+
"name": "--ilw-hero--text-width",
137+
"depreciated": false,
138+
"description": "Text width for heading"
139+
},
140+
{
141+
"name": "--ilw-hero--shadow-color",
142+
"depreciated": false,
143+
"description": "Hex color for shadow in rgba format"
144+
},
145+
{
146+
"name": "--ilw-hero--text-color",
147+
"depreciated": false,
148+
"description": "Hex color for heading"
149+
}
150+
]
151+
}

0 commit comments

Comments
 (0)