@illinois-toolkit/ilw-hero 1.1.1 → 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
@@ -8,5 +8,5 @@
8
8
  "purpose": "Draw a user's attention, set the page's tone.",
9
9
  "toolkit-version": "1.1",
10
10
  "production-version": "1.1",
11
- "development-version": "1.0-beta"
11
+ "development-version": "latest"
12
12
  }
@@ -8,8 +8,8 @@
8
8
  "builder-version": "1.1",
9
9
  "version": "1.1",
10
10
  "date": "10/23/2025",
11
- "css": "https://cdn.toolkit.illinois.edu/ilw-hero/1.1.0/ilw-hero.css",
12
- "js": "https://cdn.toolkit.illinois.edu/ilw-hero/1.1.0/ilw-hero.js",
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
13
  "production": true,
14
14
  "notes": "",
15
15
  "parent-style": "",
@@ -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": "",
@@ -1 +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{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)}}
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)}}
package/dist/ilw-hero.css CHANGED
@@ -1 +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{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)}}
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)}}
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@illinois-toolkit/ilw-hero",
3
3
  "description": "Illinois Toolkit: The Hero Image component adds a large picture at the top of the page.",
4
+ "repository": "github:web-illinois/ilw-hero",
4
5
  "private": false,
5
6
  "license": "MIT",
6
- "version": "1.1.1",
7
+ "version": "1.2.2",
7
8
  "type": "module",
8
9
  "files": [
9
10
  "src/**",
package/src/ilw-hero.css CHANGED
@@ -21,7 +21,7 @@ ilw-hero img, ilw-hero *[slot="background"] {
21
21
  object-position: center;
22
22
  }
23
23
 
24
- ilw-hero h1, ilw-hero h2, ilw-hero h3 {
24
+ ilw-hero h1, ilw-hero h2, ilw-hero h3, ilw-hero p.title {
25
25
  all: initial;
26
26
  font: var(--ilw-hero--font);
27
27
  color: var(--ilw-hero--text-color);