@aurodesignsystem-dev/auro-banner 0.0.0-pr133.0 → 0.0.0-pr135.0
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 +79 -92
- package/demo/api.md +356 -352
- package/demo/api.min.js +491 -1
- package/demo/index.md +45 -47
- package/demo/index.min.js +491 -1
- package/demo/readme.md +191 -0
- package/dist/auro-banner-h7byfbT1.js +54 -0
- package/dist/index.d.ts +228 -91
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +8 -8
- package/demo/auro-banner.min.js +0 -457
- package/dist/auro-banner-B-yqrP_2.js +0 -54
package/demo/api.md
CHANGED
|
@@ -3,444 +3,455 @@
|
|
|
3
3
|
|
|
4
4
|
# auro-banner
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Highlights a short message with an image and a call to action, to draw attention or point people to more information.
|
|
7
|
+
|
|
8
|
+
**Key capabilities**:
|
|
9
|
+
- **Billboard layout**: Set `billboard` to show centered content over a large image.
|
|
10
|
+
- **Hero layout**: Set `hero` to show the text beside a large image, with short text above the title.
|
|
11
|
+
- **Icon layout**: Set `iconic` to show an icon in a circle below the text and image.
|
|
12
|
+
- **Marquee layout**: Set `marquee` to show the text beside a large image, with a smaller title.
|
|
13
|
+
- **Solid background**: Set `solid` with `marquee` to fill the banner with a dark color.
|
|
14
|
+
- **Bordered layout**: Set `roundedBorder` to show the content in a box with a thin, rounded border.
|
|
15
|
+
- **Dark backgrounds**: Set `appearance="inverse"` to show the text in light colors.
|
|
7
16
|
|
|
8
|
-
### Properties
|
|
9
|
-
|
|
10
|
-
| Properties | Attributes | Modifiers | Type | Default | Description
|
|
11
|
-
| ------------- | ------------- | --------- | ---------------------- | --------- |
|
|
12
|
-
| alignLeft | alignLeft | | boolean | |
|
|
13
|
-
| alignRight | alignRight | | boolean | |
|
|
14
|
-
| appearance | appearance | | `default` \| `inverse` | `default` |
|
|
15
|
-
| billboard | billboard | | boolean | |
|
|
16
|
-
| hero | hero | | boolean | |
|
|
17
|
-
| iconbg | iconbg | | string | |
|
|
18
|
-
| iconic | iconic | | boolean | |
|
|
19
|
-
| marquee | marquee | | boolean | |
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
17
|
+
### Properties and attributes
|
|
18
|
+
|
|
19
|
+
| Properties | Attributes | Modifiers | Type | Default | Relevant when | Description |
|
|
20
|
+
| ------------- | ------------- | --------- | ---------------------- | --------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| alignLeft | alignLeft | | boolean | | | Aligns the banner's content, such as the title, text, and call to action, to the left. |
|
|
22
|
+
| alignRight | alignRight | | boolean | | | Aligns the banner's content, such as the title, text, and call to action, to the right. |
|
|
23
|
+
| appearance | appearance | | `default` \| `inverse` | `default` | | Sets the text colors for the background behind the banner. Use `default` on light backgrounds and `inverse` on dark backgrounds, such as a dark image, to show the title and body text in light colors. |
|
|
24
|
+
| billboard | billboard | | boolean | | | Shows centered content over the `displayImage` slot's image. This is the most common banner layout. |
|
|
25
|
+
| hero | hero | | boolean | | | Shows the text on the left and the display image on the right, or the image above the text on small screens. Also shows the `prefix` slot above the title. |
|
|
26
|
+
| iconbg | iconbg | | string | | `iconic` | Sets the background color of the circle behind the icon, for example `var(--ds-basic-color-surface-neutral-medium)`. Applies only when `iconic` is set. Uses `--ds-auro-banner-icon-container-color` when not set. |
|
|
27
|
+
| iconic | iconic | | boolean | | | Shows the text on the left and the display image on the right, like `hero`, with the `icon` slot's content in a circle centered below the banner. Hides the display image on small screens and doesn't show the `prefix` slot. The `title` slot isn't wrapped in a heading, so put your own heading in it. |
|
|
28
|
+
| marquee | marquee | | boolean | | | Shows the text on the left and the display image on the right, like `hero`, with a smaller title and no `prefix` slot. Add `solid` for a dark background. |
|
|
29
|
+
| roundedBorder | roundedBorder | | boolean | | | Shows the content in a box with a thin, rounded border, with the `contentImage` slot's image beside the text on larger screens. Doesn't show the `displayImage` slot. |
|
|
30
|
+
| slim | slim | | boolean | | | Reduces the padding on the left and right of the text in a `billboard` banner on larger screens, so the text can run wider. In other layouts, it changes the padding around the text instead. |
|
|
31
|
+
| solid | solid | | boolean | | `marquee` | Fills the banner's background with a dark color and shows the text in light colors. Applies only when `marquee` is set. |
|
|
32
|
+
| onDark | onDark | | boolean | | | Deprecated: Use `appearance="inverse"` instead.<br>Shows the title and body text in light colors for dark backgrounds. |
|
|
24
33
|
|
|
25
34
|
### Methods
|
|
26
35
|
|
|
27
|
-
| Name | Parameters
|
|
28
|
-
| -------- |
|
|
29
|
-
| register | `name` (string) - The name
|
|
36
|
+
| Name | Parameters | Return | Description |
|
|
37
|
+
| -------- | ------------------------------------------------------------- | ------ | --------------------------------------------------------------- |
|
|
38
|
+
| register | `name` (string) - The tag name to register the element under. | | Registers the element with the browser under a custom tag name. |
|
|
30
39
|
|
|
31
40
|
### Slots
|
|
32
41
|
|
|
33
|
-
| Name | Description
|
|
34
|
-
| ------------ |
|
|
35
|
-
| action | call to action
|
|
36
|
-
| contentImage | image
|
|
37
|
-
| description | main
|
|
38
|
-
| disclaimer |
|
|
39
|
-
| displayImage |
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
+
| Name | Relevant when | Description |
|
|
43
|
+
| ------------ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
44
|
+
| action | | A call to action, such as an `auro-hyperlink` with `type="cta"`. |
|
|
45
|
+
| contentImage | | A smaller image, such as a logo, shown above the description. In a `roundedBorder` banner, it sits beside the text on larger screens. |
|
|
46
|
+
| description | | The main text of the banner. |
|
|
47
|
+
| disclaimer | | Fine print, shown in small text below the call to action. |
|
|
48
|
+
| displayImage | | A large `<picture>` or `<img>` element, shown behind or beside the text depending on the layout. A `roundedBorder` banner doesn't show it. |
|
|
49
|
+
| icon | `iconic` | An icon shown in a circle below the banner. |
|
|
50
|
+
| prefix | | Short text shown above the title. Only `hero` and `roundedBorder` banners show it. |
|
|
51
|
+
| title | | The banner's title, shown as a heading. An `iconic` banner doesn't wrap it in a heading, so add your own. |
|
|
52
|
+
|
|
53
|
+
### CSS custom properties
|
|
54
|
+
|
|
55
|
+
| Name | Relevant when | Description |
|
|
56
|
+
| ---------------------------------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
57
|
+
| --ds-auro-banner-text-color | | Color of the banner's text. `appearance="inverse"` and `marquee` with `solid` change it to a light color. |
|
|
58
|
+
| --ds-auro-banner-title-text-color | | Color of the title and the `prefix` text. `appearance="inverse"` and `marquee` with `solid` change it to a light color. An `iconic` banner doesn't use it. |
|
|
59
|
+
| --ds-auro-banner-disclaimer-text-color | | Color of the `disclaimer` slot text. `appearance="inverse"` and `marquee` with `solid` change it to a light, muted color. |
|
|
60
|
+
| --ds-auro-banner-icon-container-color | `iconic` | Background color of the circle behind the icon. The `iconbg` attribute overrides it. |
|
|
61
|
+
| --ds-auro-banner-wrapper-container-color | `solid` | Background color of a `marquee` banner with `solid` set. |
|
|
62
|
+
| --ds-auro-banner-wrapper-border-color | `roundedBorder` | Color of the border around a `roundedBorder` banner. |
|
|
42
63
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
43
64
|
|
|
44
|
-
## Property
|
|
65
|
+
## Property and attribute examples
|
|
45
66
|
|
|
46
67
|
### Billboard
|
|
47
68
|
|
|
48
|
-
The `billboard`
|
|
69
|
+
The `billboard` layout shows centered content over the `displayImage` slot's image, with optional `contentImage`, `title`, `description`, `action`, and `disclaimer` slots. It's the most common banner layout.
|
|
49
70
|
|
|
50
71
|
<div class="exampleWrapper">
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
72
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/basic.html) -->
|
|
73
|
+
<!-- The below content is automatically added from ../apiExamples/basic.html -->
|
|
74
|
+
<auro-banner billboard>
|
|
75
|
+
<picture slot="displayImage">
|
|
76
|
+
<source srcset="https://picsum.photos/id/196/1124/800" media="(min-width: 1024px)">
|
|
77
|
+
<source srcset="https://picsum.photos/id/196/1124/1000" media="(min-width: 768px)">
|
|
78
|
+
<source srcset="https://picsum.photos/id/196/736/750" media="(min-width: 736px)">
|
|
79
|
+
<source srcset="https://picsum.photos/id/196/736/1400" media="(min-width: 375px)">
|
|
80
|
+
<source srcset="https://picsum.photos/id/196/320/700" media="(min-width: 320px)">
|
|
81
|
+
<img src="https://picsum.photos/id/196/225/550" alt="" />
|
|
82
|
+
</picture>
|
|
83
|
+
<img
|
|
63
84
|
slot="contentImage"
|
|
64
85
|
src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/bltc1fa673bb196d177/6633f3de693c294c708b20de/oneworld-travel-bright-Horizontal-300.png"
|
|
65
|
-
alt="
|
|
66
|
-
|
|
86
|
+
alt="oneworld"/>
|
|
87
|
+
<p slot="description">
|
|
67
88
|
We’ll explain any additional costs before you book your car rental. More details on what’s included? Just check the Ts&Cs of any car.
|
|
68
|
-
|
|
69
|
-
|
|
89
|
+
</p>
|
|
90
|
+
<auro-hyperlink
|
|
70
91
|
type="cta"
|
|
71
92
|
variant="secondary"
|
|
72
93
|
href="/"
|
|
73
94
|
slot="action"
|
|
74
95
|
target="_blank">
|
|
75
96
|
More info
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
97
|
+
</auro-hyperlink>
|
|
98
|
+
</auro-banner>
|
|
99
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
79
100
|
</div>
|
|
80
101
|
<auro-accordion alignRight>
|
|
81
|
-
|
|
102
|
+
<span slot="trigger">See code</span>
|
|
82
103
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/basic.html) -->
|
|
83
104
|
<!-- The below code snippet is automatically added from ../apiExamples/basic.html -->
|
|
84
105
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<img
|
|
106
|
+
<pre class="language-html"><code class="language-html"><auro-banner billboard>
|
|
107
|
+
<picture slot="displayImage">
|
|
108
|
+
<source srcset="https://picsum.photos/id/196/1124/800" media="(min-width: 1024px)">
|
|
109
|
+
<source srcset="https://picsum.photos/id/196/1124/1000" media="(min-width: 768px)">
|
|
110
|
+
<source srcset="https://picsum.photos/id/196/736/750" media="(min-width: 736px)">
|
|
111
|
+
<source srcset="https://picsum.photos/id/196/736/1400" media="(min-width: 375px)">
|
|
112
|
+
<source srcset="https://picsum.photos/id/196/320/700" media="(min-width: 320px)">
|
|
113
|
+
<img src="https://picsum.photos/id/196/225/550" alt="" />
|
|
114
|
+
</picture>
|
|
115
|
+
<img
|
|
96
116
|
slot="contentImage"
|
|
97
117
|
src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/bltc1fa673bb196d177/6633f3de693c294c708b20de/oneworld-travel-bright-Horizontal-300.png"
|
|
98
|
-
alt="
|
|
99
|
-
|
|
100
|
-
We’ll explain any additional costs before you book your car rental. More details on what’s included? Just check the Ts&Cs of any car.
|
|
101
|
-
|
|
102
|
-
|
|
118
|
+
alt="oneworld"/>
|
|
119
|
+
<p slot="description">
|
|
120
|
+
We’ll explain any additional costs before you book your car rental. More details on what’s included? Just check the Ts&Cs of any car.
|
|
121
|
+
</p>
|
|
122
|
+
<auro-hyperlink
|
|
103
123
|
type="cta"
|
|
104
124
|
variant="secondary"
|
|
105
125
|
href="/"
|
|
106
126
|
slot="action"
|
|
107
|
-
target="_blank"
|
|
127
|
+
target="_blank">
|
|
108
128
|
More info
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
```
|
|
129
|
+
</auro-hyperlink>
|
|
130
|
+
</auro-banner></code></pre>
|
|
112
131
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
132
|
</auro-accordion>
|
|
114
133
|
|
|
115
134
|
### Hero
|
|
116
135
|
|
|
117
|
-
The
|
|
136
|
+
The `hero` layout shows the text on the left and the display image on the right, or the image above the text on small screens. It also shows the `prefix` slot above the title.
|
|
118
137
|
|
|
119
138
|
<div class="exampleWrapper">
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
139
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/hero.html) -->
|
|
140
|
+
<!-- The below content is automatically added from ../apiExamples/hero.html -->
|
|
141
|
+
<auro-banner hero>
|
|
142
|
+
<picture slot="displayImage">
|
|
143
|
+
<source srcset="https://picsum.photos/id/369/2048/2000" media="(min-width: 1024px)">
|
|
144
|
+
<source srcset="https://picsum.photos/id/369/736/1400" media="(min-width:660px)">
|
|
145
|
+
<img src="https://picsum.photos/id/369/660/420" alt="">
|
|
146
|
+
</picture>
|
|
147
|
+
<span slot="prefix">Duis aute irure dolor</span>
|
|
148
|
+
<span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
|
|
149
|
+
<p slot="description">
|
|
131
150
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
132
|
-
|
|
133
|
-
|
|
151
|
+
</p>
|
|
152
|
+
<auro-hyperlink
|
|
134
153
|
type="cta"
|
|
135
154
|
href="/"
|
|
136
155
|
slot="action"
|
|
137
156
|
target="_blank">
|
|
138
157
|
More info
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
158
|
+
</auro-hyperlink>
|
|
159
|
+
</auro-banner>
|
|
160
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
142
161
|
</div>
|
|
143
162
|
<auro-accordion alignRight>
|
|
144
|
-
|
|
163
|
+
<span slot="trigger">See code</span>
|
|
145
164
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/hero.html) -->
|
|
146
165
|
<!-- The below code snippet is automatically added from ../apiExamples/hero.html -->
|
|
147
166
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
<p slot="description">
|
|
167
|
+
<pre class="language-html"><code class="language-html"><auro-banner hero>
|
|
168
|
+
<picture slot="displayImage">
|
|
169
|
+
<source srcset="https://picsum.photos/id/369/2048/2000" media="(min-width: 1024px)">
|
|
170
|
+
<source srcset="https://picsum.photos/id/369/736/1400" media="(min-width:660px)">
|
|
171
|
+
<img src="https://picsum.photos/id/369/660/420" alt="">
|
|
172
|
+
</picture>
|
|
173
|
+
<span slot="prefix">Duis aute irure dolor</span>
|
|
174
|
+
<span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
|
|
175
|
+
<p slot="description">
|
|
158
176
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
159
|
-
|
|
160
|
-
|
|
177
|
+
</p>
|
|
178
|
+
<auro-hyperlink
|
|
161
179
|
type="cta"
|
|
162
180
|
href="/"
|
|
163
181
|
slot="action"
|
|
164
|
-
target="_blank"
|
|
182
|
+
target="_blank">
|
|
165
183
|
More info
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
```
|
|
184
|
+
</auro-hyperlink>
|
|
185
|
+
</auro-banner></code></pre>
|
|
169
186
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
170
187
|
</auro-accordion>
|
|
171
188
|
|
|
172
189
|
### Iconic
|
|
173
190
|
|
|
174
|
-
The `iconic`
|
|
191
|
+
The `iconic` layout shows an icon in a circle below the banner and hides the `displayImage` slot's image on small screens.
|
|
175
192
|
|
|
176
|
-
Use the `iconbg` attribute to
|
|
193
|
+
Use the `iconbg` attribute to change the circle's background color.
|
|
177
194
|
|
|
178
195
|
<div class="exampleWrapper">
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
196
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/iconic.html) -->
|
|
197
|
+
<!-- The below content is automatically added from ../apiExamples/iconic.html -->
|
|
198
|
+
<auro-banner iconic iconbg="var(--ds-basic-color-surface-neutral-medium)">
|
|
199
|
+
<picture slot="displayImage">
|
|
200
|
+
<source srcset="https://picsum.photos/id/452/2800/2000.jpg" media="(min-width: 1054px)">
|
|
201
|
+
<source srcset="https://picsum.photos/id/452/1500/2000" media="(min-width:660px)">
|
|
202
|
+
<img src="https://picsum.photos/id/452/2800/2000.jpg" alt="">
|
|
203
|
+
</picture>
|
|
204
|
+
<span slot="icon">
|
|
205
|
+
<auro-icon category="social" name="instagram" customSize customColor style="color: var(--ds-basic-color-texticon-inverse); --ds-auro-icon-size: 5rem;"></auro-icon>
|
|
206
|
+
</span>
|
|
207
|
+
<span slot="title">
|
|
208
|
+
<auro-header level="2" display="800" margin="both" size="none">Lorem ipsum title</auro-header>
|
|
209
|
+
<auro-header level="3" display="300" margin="top" size="none">Add more headings here</auro-header>
|
|
210
|
+
</span>
|
|
211
|
+
<p slot="description">
|
|
195
212
|
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam possimus, quod aperiam a aut fuga qui eos reprehenderit facilis vero.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
213
|
+
</p>
|
|
214
|
+
</auro-banner>
|
|
215
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
199
216
|
</div>
|
|
200
217
|
<auro-accordion alignRight>
|
|
201
|
-
|
|
218
|
+
<span slot="trigger">See code</span>
|
|
202
219
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/iconic.html) -->
|
|
203
220
|
<!-- The below code snippet is automatically added from ../apiExamples/iconic.html -->
|
|
204
221
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
<p slot="description">
|
|
222
|
+
<pre class="language-html"><code class="language-html"><auro-banner iconic iconbg="var(--ds-basic-color-surface-neutral-medium)">
|
|
223
|
+
<picture slot="displayImage">
|
|
224
|
+
<source srcset="https://picsum.photos/id/452/2800/2000.jpg" media="(min-width: 1054px)">
|
|
225
|
+
<source srcset="https://picsum.photos/id/452/1500/2000" media="(min-width:660px)">
|
|
226
|
+
<img src="https://picsum.photos/id/452/2800/2000.jpg" alt="">
|
|
227
|
+
</picture>
|
|
228
|
+
<span slot="icon">
|
|
229
|
+
<auro-icon category="social" name="instagram" customSize customColor style="color: var(--ds-basic-color-texticon-inverse); --ds-auro-icon-size: 5rem;"></auro-icon>
|
|
230
|
+
</span>
|
|
231
|
+
<span slot="title">
|
|
232
|
+
<auro-header level="2" display="800" margin="both" size="none">Lorem ipsum title</auro-header>
|
|
233
|
+
<auro-header level="3" display="300" margin="top" size="none">Add more headings here</auro-header>
|
|
234
|
+
</span>
|
|
235
|
+
<p slot="description">
|
|
220
236
|
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam possimus, quod aperiam a aut fuga qui eos reprehenderit facilis vero.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
```
|
|
237
|
+
</p>
|
|
238
|
+
</auro-banner></code></pre>
|
|
224
239
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
225
240
|
</auro-accordion>
|
|
226
241
|
|
|
227
242
|
### Marquee
|
|
228
243
|
|
|
229
|
-
The
|
|
244
|
+
The `marquee` layout shows the text on the left and the display image on the right, like `hero`, with a smaller title. It also works with `slim` and `appearance="inverse"`.
|
|
230
245
|
|
|
231
246
|
<div class="exampleWrapper">
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
<p slot="description">
|
|
247
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/marquee.html) -->
|
|
248
|
+
<!-- The below content is automatically added from ../apiExamples/marquee.html -->
|
|
249
|
+
<auro-banner marquee>
|
|
250
|
+
<picture slot="displayImage">
|
|
251
|
+
<source srcset="https://picsum.photos/id/154/2048/2000" media="(min-width: 1024px)">
|
|
252
|
+
<source srcset="https://picsum.photos/id/154/736/1400" media="(min-width:660px)">
|
|
253
|
+
<img src="https://picsum.photos/id/154/660/420" alt="">
|
|
254
|
+
</picture>
|
|
255
|
+
<span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
|
|
256
|
+
<p slot="description">
|
|
243
257
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
244
|
-
|
|
245
|
-
|
|
258
|
+
</p>
|
|
259
|
+
<auro-hyperlink
|
|
246
260
|
type="cta"
|
|
247
261
|
variant="secondary"
|
|
248
262
|
href="/"
|
|
249
263
|
slot="action"
|
|
250
264
|
target="_blank">
|
|
251
265
|
More info
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
266
|
+
</auro-hyperlink>
|
|
267
|
+
</auro-banner>
|
|
268
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
255
269
|
</div>
|
|
256
270
|
<auro-accordion alignRight>
|
|
257
|
-
|
|
271
|
+
<span slot="trigger">See code</span>
|
|
258
272
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/marquee.html) -->
|
|
259
273
|
<!-- The below code snippet is automatically added from ../apiExamples/marquee.html -->
|
|
260
274
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
<span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
|
|
270
|
-
<p slot="description">
|
|
275
|
+
<pre class="language-html"><code class="language-html"><auro-banner marquee>
|
|
276
|
+
<picture slot="displayImage">
|
|
277
|
+
<source srcset="https://picsum.photos/id/154/2048/2000" media="(min-width: 1024px)">
|
|
278
|
+
<source srcset="https://picsum.photos/id/154/736/1400" media="(min-width:660px)">
|
|
279
|
+
<img src="https://picsum.photos/id/154/660/420" alt="">
|
|
280
|
+
</picture>
|
|
281
|
+
<span slot="title">Duis aute irure dolor.<br>Excepteur sint occaecat.</span>
|
|
282
|
+
<p slot="description">
|
|
271
283
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
272
|
-
|
|
273
|
-
|
|
284
|
+
</p>
|
|
285
|
+
<auro-hyperlink
|
|
274
286
|
type="cta"
|
|
275
287
|
variant="secondary"
|
|
276
288
|
href="/"
|
|
277
289
|
slot="action"
|
|
278
|
-
target="_blank"
|
|
290
|
+
target="_blank">
|
|
279
291
|
More info
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
```
|
|
292
|
+
</auro-hyperlink>
|
|
293
|
+
</auro-banner></code></pre>
|
|
283
294
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
284
295
|
</auro-accordion>
|
|
285
296
|
|
|
286
|
-
### Solid
|
|
297
|
+
### Solid marquee
|
|
287
298
|
|
|
288
|
-
|
|
299
|
+
This `marquee` banner also sets `solid`, which shows its text in light colors, just as `appearance="inverse"` does.
|
|
289
300
|
|
|
290
|
-
|
|
301
|
+
The banner doesn't change the appearance of other components you put in its slots, so set `appearance="inverse"` on each one, such as the `auro-hyperlink` and `auro-alaska` in this example.
|
|
291
302
|
|
|
292
303
|
<div class="exampleWrapper">
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
304
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/marquee-solid.html) -->
|
|
305
|
+
<!-- The below content is automatically added from ../apiExamples/marquee-solid.html -->
|
|
306
|
+
<auro-banner marquee solid>
|
|
307
|
+
<picture slot="displayImage">
|
|
308
|
+
<source srcset="https://picsum.photos/id/1015/1048/2000" media="(min-width: 1024px)">
|
|
309
|
+
<source srcset="https://picsum.photos/id/1015/736/1400" media="(min-width:660px)">
|
|
310
|
+
<img src="https://picsum.photos/id/1015/660/660" alt="" style="display: block;">
|
|
311
|
+
</picture>
|
|
312
|
+
<auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
|
|
313
|
+
<p slot="description">
|
|
303
314
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
304
|
-
|
|
305
|
-
|
|
315
|
+
</p>
|
|
316
|
+
<auro-hyperlink
|
|
306
317
|
type="cta"
|
|
307
318
|
appearance="inverse"
|
|
308
319
|
href="/"
|
|
309
320
|
slot="action"
|
|
310
321
|
target="_blank">
|
|
311
322
|
More info
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
323
|
+
</auro-hyperlink>
|
|
324
|
+
<p slot="disclaimer">
|
|
325
|
+
* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
|
|
326
|
+
</p>
|
|
327
|
+
</auro-banner>
|
|
328
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
315
329
|
</div>
|
|
316
330
|
<auro-accordion alignRight>
|
|
317
|
-
|
|
331
|
+
<span slot="trigger">See code</span>
|
|
318
332
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/marquee-solid.html) -->
|
|
319
333
|
<!-- The below code snippet is automatically added from ../apiExamples/marquee-solid.html -->
|
|
320
334
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
<p slot="description">
|
|
335
|
+
<pre class="language-html"><code class="language-html"><auro-banner marquee solid>
|
|
336
|
+
<picture slot="displayImage">
|
|
337
|
+
<source srcset="https://picsum.photos/id/1015/1048/2000" media="(min-width: 1024px)">
|
|
338
|
+
<source srcset="https://picsum.photos/id/1015/736/1400" media="(min-width:660px)">
|
|
339
|
+
<img src="https://picsum.photos/id/1015/660/660" alt="" style="display: block;">
|
|
340
|
+
</picture>
|
|
341
|
+
<auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
|
|
342
|
+
<p slot="description">
|
|
330
343
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
331
|
-
|
|
332
|
-
|
|
344
|
+
</p>
|
|
345
|
+
<auro-hyperlink
|
|
333
346
|
type="cta"
|
|
334
347
|
appearance="inverse"
|
|
335
348
|
href="/"
|
|
336
349
|
slot="action"
|
|
337
|
-
target="_blank"
|
|
350
|
+
target="_blank">
|
|
338
351
|
More info
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
352
|
+
</auro-hyperlink>
|
|
353
|
+
<p slot="disclaimer">
|
|
354
|
+
* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
|
|
355
|
+
</p>
|
|
356
|
+
</auro-banner></code></pre>
|
|
342
357
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
343
358
|
</auro-accordion>
|
|
344
359
|
|
|
345
|
-
### Rounded
|
|
360
|
+
### Rounded border
|
|
346
361
|
|
|
347
|
-
The `roundedBorder`
|
|
362
|
+
The `roundedBorder` layout adds a thin border with rounded corners around the banner. It doesn't show the `displayImage` slot; instead, the `contentImage` slot's image sits beside the text on larger screens.
|
|
348
363
|
|
|
349
364
|
<div class="exampleWrapper">
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
Description
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
* Disclaimer
|
|
361
|
-
|
|
362
|
-
|
|
365
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/rounded-border.html) -->
|
|
366
|
+
<!-- The below content is automatically added from ../apiExamples/rounded-border.html -->
|
|
367
|
+
<auro-banner roundedBorder alignLeft>
|
|
368
|
+
<img src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/blt4f70efe198086558/6633f3defda0c7c6c769b86b/visa_signature.svg" alt="" slot="contentImage" />
|
|
369
|
+
<span slot="prefix">Prefix: Limited time</span>
|
|
370
|
+
<span slot="title">Title: Irure dolor.</span>
|
|
371
|
+
<p slot="description">
|
|
372
|
+
Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
373
|
+
</p>
|
|
374
|
+
<div slot="disclaimer">
|
|
375
|
+
* Disclaimer: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
376
|
+
</div>
|
|
377
|
+
<auro-hyperlink
|
|
363
378
|
type="cta"
|
|
364
379
|
variant="secondary"
|
|
365
380
|
href="/"
|
|
366
381
|
slot="action"
|
|
367
382
|
target="_blank">
|
|
368
383
|
More info
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
384
|
+
</auro-hyperlink>
|
|
385
|
+
</auro-banner>
|
|
386
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
372
387
|
</div>
|
|
373
388
|
<auro-accordion alignRight>
|
|
374
|
-
|
|
389
|
+
<span slot="trigger">See code</span>
|
|
375
390
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/rounded-border.html) -->
|
|
376
391
|
<!-- The below code snippet is automatically added from ../apiExamples/rounded-border.html -->
|
|
377
392
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
<auro-hyperlink
|
|
393
|
+
<pre class="language-html"><code class="language-html"><auro-banner roundedBorder alignLeft>
|
|
394
|
+
<img src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/blt4f70efe198086558/6633f3defda0c7c6c769b86b/visa_signature.svg" alt="" slot="contentImage" />
|
|
395
|
+
<span slot="prefix">Prefix: Limited time</span>
|
|
396
|
+
<span slot="title">Title: Irure dolor.</span>
|
|
397
|
+
<p slot="description">
|
|
398
|
+
Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
399
|
+
</p>
|
|
400
|
+
<div slot="disclaimer">
|
|
401
|
+
* Disclaimer: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
402
|
+
</div>
|
|
403
|
+
<auro-hyperlink
|
|
390
404
|
type="cta"
|
|
391
405
|
variant="secondary"
|
|
392
406
|
href="/"
|
|
393
407
|
slot="action"
|
|
394
|
-
target="_blank"
|
|
408
|
+
target="_blank">
|
|
395
409
|
More info
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
```
|
|
410
|
+
</auro-hyperlink>
|
|
411
|
+
</auro-banner></code></pre>
|
|
399
412
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
400
413
|
</auro-accordion>
|
|
401
414
|
|
|
402
|
-
## Slot
|
|
415
|
+
## Slot examples
|
|
403
416
|
|
|
404
|
-
#### Display
|
|
417
|
+
#### Display image slot for background
|
|
405
418
|
|
|
406
|
-
The `displayImage` slot
|
|
419
|
+
The `displayImage` slot works with the HTML [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture) element.
|
|
407
420
|
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
</picture>
|
|
415
|
-
```
|
|
421
|
+
<pre class="language-html"><code class="language-html"><picture slot="displayImage">
|
|
422
|
+
<source srcset="https://picsum.photos/id/430/1024/600" media="(min-width: 736px)">
|
|
423
|
+
<source srcset="https://picsum.photos/id/430/736/1400" media="(min-width: 375px)">
|
|
424
|
+
<source srcset="https://picsum.photos/id/430/320/1200" media="(min-width: 320px)">
|
|
425
|
+
<img src="https://picsum.photos/id/430/225/550" alt="" />
|
|
426
|
+
</picture></code></pre>
|
|
416
427
|
|
|
417
|
-
|
|
428
|
+
Use it to show a differently cropped image at each breakpoint. The `<img>` element shows when the screen is narrower than the smallest `media` breakpoint.
|
|
418
429
|
|
|
419
|
-
|
|
430
|
+
`<img>` elements are inline by default, which adds a few pixels of space below the image. To remove it, set `display: block` on the `<img>` element, or add the [WCSS `picture` selector](https://alaskaairlines.github.io/WebCoreStyleSheets/#core-css-#{manageScope.$sym}#{manageScope.$prefix}picture#{manageScope.$scope}), which sets `display: block` on images inside `<picture>` elements, to your project.<br><br>
|
|
420
431
|
|
|
421
|
-
## Common
|
|
432
|
+
## Common usage patterns and functional examples
|
|
422
433
|
|
|
423
|
-
####
|
|
434
|
+
#### Right-aligned `billboard` with `slim` and `appearance`
|
|
424
435
|
|
|
425
|
-
|
|
436
|
+
Add `slim`, `alignRight`, and `appearance="inverse"` to a `billboard` banner to reduce its side padding, align the content to the right, and show the text in light colors over a dark image.
|
|
426
437
|
|
|
427
438
|
<div class="exampleWrapper">
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
439
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/billboard-series.html) -->
|
|
440
|
+
<!-- The below content is automatically added from ../apiExamples/billboard-series.html -->
|
|
441
|
+
<auro-banner billboard slim alignRight appearance="inverse">
|
|
442
|
+
<picture slot="displayImage">
|
|
443
|
+
<source srcset="https://picsum.photos/id/324/1124/800" media="(min-width: 1024px)">
|
|
444
|
+
<source srcset="https://picsum.photos/id/324/1124/1000" media="(min-width: 768px)">
|
|
445
|
+
<source srcset="https://picsum.photos/id/324/736/750" media="(min-width: 736px)">
|
|
446
|
+
<source srcset="https://picsum.photos/id/324/736/1400" media="(min-width: 375px)">
|
|
447
|
+
<source srcset="https://picsum.photos/id/324/320/700" media="(min-width: 320px)">
|
|
448
|
+
<img src="https://picsum.photos/id/324/225/550" alt="" />
|
|
449
|
+
</picture>
|
|
450
|
+
<auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
|
|
451
|
+
<p slot="description">
|
|
452
|
+
<span style="max-width:320px; margin-left:auto; display:block">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
|
|
453
|
+
</p>
|
|
454
|
+
<auro-hyperlink
|
|
444
455
|
type="cta"
|
|
445
456
|
variant="secondary"
|
|
446
457
|
appearance="inverse"
|
|
@@ -448,64 +459,62 @@ The following example illustrates a series of additional API options available t
|
|
|
448
459
|
slot="action"
|
|
449
460
|
target="_blank">
|
|
450
461
|
Learn more
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
462
|
+
</auro-hyperlink>
|
|
463
|
+
</auro-banner>
|
|
464
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
454
465
|
</div>
|
|
455
466
|
<auro-accordion alignRight>
|
|
456
|
-
|
|
467
|
+
<span slot="trigger">See code</span>
|
|
457
468
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/billboard-series.html) -->
|
|
458
469
|
<!-- The below code snippet is automatically added from ../apiExamples/billboard-series.html -->
|
|
459
470
|
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
<auro-hyperlink
|
|
471
|
+
<pre class="language-html"><code class="language-html"><auro-banner billboard slim alignRight appearance="inverse">
|
|
472
|
+
<picture slot="displayImage">
|
|
473
|
+
<source srcset="https://picsum.photos/id/324/1124/800" media="(min-width: 1024px)">
|
|
474
|
+
<source srcset="https://picsum.photos/id/324/1124/1000" media="(min-width: 768px)">
|
|
475
|
+
<source srcset="https://picsum.photos/id/324/736/750" media="(min-width: 736px)">
|
|
476
|
+
<source srcset="https://picsum.photos/id/324/736/1400" media="(min-width: 375px)">
|
|
477
|
+
<source srcset="https://picsum.photos/id/324/320/700" media="(min-width: 320px)">
|
|
478
|
+
<img src="https://picsum.photos/id/324/225/550" alt="" />
|
|
479
|
+
</picture>
|
|
480
|
+
<auro-alaska official appearance="inverse" style="width: 192px" slot="contentImage"></auro-alaska>
|
|
481
|
+
<p slot="description">
|
|
482
|
+
<span style="max-width:320px; margin-left:auto; display:block">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>
|
|
483
|
+
</p>
|
|
484
|
+
<auro-hyperlink
|
|
475
485
|
type="cta"
|
|
476
486
|
variant="secondary"
|
|
477
487
|
appearance="inverse"
|
|
478
488
|
href="/"
|
|
479
489
|
slot="action"
|
|
480
|
-
target="_blank"
|
|
490
|
+
target="_blank">
|
|
481
491
|
Learn more
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
```
|
|
492
|
+
</auro-hyperlink>
|
|
493
|
+
</auro-banner></code></pre>
|
|
485
494
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
486
495
|
</auro-accordion>
|
|
487
496
|
|
|
488
|
-
####
|
|
497
|
+
#### Left-aligned `billboard` with `slim` and `appearance`
|
|
489
498
|
|
|
490
|
-
|
|
499
|
+
Use `alignLeft` to align the content to the left, with `slim` to reduce the side padding and `appearance="inverse"` to show the text in light colors.
|
|
491
500
|
|
|
492
501
|
<div class="exampleWrapper">
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
502
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/billboard-series-left.html) -->
|
|
503
|
+
<!-- The below content is automatically added from ../apiExamples/billboard-series-left.html -->
|
|
504
|
+
<auro-banner billboard slim alignLeft appearance="inverse">
|
|
505
|
+
<picture slot="displayImage">
|
|
506
|
+
<source srcset="https://picsum.photos/id/42/1124/800" media="(min-width: 1024px)">
|
|
507
|
+
<source srcset="https://picsum.photos/id/42/1124/1000" media="(min-width: 768px)">
|
|
508
|
+
<source srcset="https://picsum.photos/id/42/736/750" media="(min-width: 736px)">
|
|
509
|
+
<source srcset="https://picsum.photos/id/42/736/1400" media="(min-width: 375px)">
|
|
510
|
+
<source srcset="https://picsum.photos/id/42/320/700" media="(min-width: 320px)">
|
|
511
|
+
<img src="https://picsum.photos/id/42/225/550" alt="" />
|
|
512
|
+
</picture>
|
|
513
|
+
<span slot="title">Beverages and cocktails</span>
|
|
514
|
+
<p slot="description">
|
|
515
|
+
<span style="max-width: 360px;display: block;">Enjoy soft drinks, Teavana® tea, and fresh Starbucks® coffee, including lattes and cappuccinos, while you relax. Or try our famous Bloody Mary.</span>
|
|
516
|
+
</p>
|
|
517
|
+
<auro-hyperlink
|
|
509
518
|
type="cta"
|
|
510
519
|
variant="secondary"
|
|
511
520
|
appearance="inverse"
|
|
@@ -513,61 +522,56 @@ The following example illustrates an option to left align the text `alignLeft` a
|
|
|
513
522
|
slot="action"
|
|
514
523
|
target="_blank">
|
|
515
524
|
More info
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
525
|
+
</auro-hyperlink>
|
|
526
|
+
</auro-banner>
|
|
527
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
519
528
|
</div>
|
|
520
529
|
<auro-accordion alignRight>
|
|
521
|
-
|
|
530
|
+
<span slot="trigger">See code</span>
|
|
522
531
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/billboard-series-left.html) -->
|
|
523
532
|
<!-- The below code snippet is automatically added from ../apiExamples/billboard-series-left.html -->
|
|
524
533
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
<auro-hyperlink
|
|
534
|
+
<pre class="language-html"><code class="language-html"><auro-banner billboard slim alignLeft appearance="inverse">
|
|
535
|
+
<picture slot="displayImage">
|
|
536
|
+
<source srcset="https://picsum.photos/id/42/1124/800" media="(min-width: 1024px)">
|
|
537
|
+
<source srcset="https://picsum.photos/id/42/1124/1000" media="(min-width: 768px)">
|
|
538
|
+
<source srcset="https://picsum.photos/id/42/736/750" media="(min-width: 736px)">
|
|
539
|
+
<source srcset="https://picsum.photos/id/42/736/1400" media="(min-width: 375px)">
|
|
540
|
+
<source srcset="https://picsum.photos/id/42/320/700" media="(min-width: 320px)">
|
|
541
|
+
<img src="https://picsum.photos/id/42/225/550" alt="" />
|
|
542
|
+
</picture>
|
|
543
|
+
<span slot="title">Beverages and cocktails</span>
|
|
544
|
+
<p slot="description">
|
|
545
|
+
<span style="max-width: 360px;display: block;">Enjoy soft drinks, Teavana® tea, and fresh Starbucks® coffee, including lattes and cappuccinos, while you relax. Or try our famous Bloody Mary.</span>
|
|
546
|
+
</p>
|
|
547
|
+
<auro-hyperlink
|
|
540
548
|
type="cta"
|
|
541
549
|
variant="secondary"
|
|
542
550
|
appearance="inverse"
|
|
543
551
|
href="/"
|
|
544
552
|
slot="action"
|
|
545
|
-
target="_blank"
|
|
553
|
+
target="_blank">
|
|
546
554
|
More info
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
```
|
|
555
|
+
</auro-hyperlink>
|
|
556
|
+
</auro-banner></code></pre>
|
|
550
557
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
551
558
|
</auro-accordion>
|
|
552
559
|
|
|
553
|
-
## Restyle
|
|
560
|
+
## Restyle with CSS custom properties
|
|
554
561
|
|
|
555
|
-
|
|
562
|
+
Restyle the component by changing the values of these tokens.
|
|
556
563
|
|
|
557
564
|
<!-- Remove section if component does not have any component specific tokens -->
|
|
558
565
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
559
566
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
560
567
|
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
:host {
|
|
568
|
+
<pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
569
|
+
:host {
|
|
565
570
|
--ds-auro-banner-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
566
571
|
--ds-auro-banner-disclaimer-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
567
572
|
--ds-auro-banner-title-text-color: var(--ds-basic-color-texticon-accent1, #{v.$ds-basic-color-texticon-accent1});
|
|
568
573
|
--ds-auro-banner-icon-container-color: var(--ds-basic-color-surface-neutral-medium, #{v.$ds-basic-color-surface-neutral-medium});
|
|
569
574
|
--ds-auro-banner-wrapper-container-color: var(--ds-basic-color-surface-inverse, #{v.$ds-basic-color-surface-inverse});
|
|
570
575
|
--ds-auro-banner-wrapper-border-color: var(--ds-basic-color-border-default, #{v.$ds-basic-color-border-default});
|
|
571
|
-
}
|
|
572
|
-
```
|
|
576
|
+
}</code></pre>
|
|
573
577
|
<!-- AURO-GENERATED-CONTENT:END -->
|