diff --git a/packages/cxl-ui/scss/cxl-inline-notification.scss b/packages/cxl-ui/scss/cxl-inline-notification.scss new file mode 100644 index 000000000..ad99a894a --- /dev/null +++ b/packages/cxl-ui/scss/cxl-inline-notification.scss @@ -0,0 +1,27 @@ +// stylelint-disable order/properties-order +:host { + background-color: var(--lumo-contrast-5pct); + display: flex; + padding: var(--lumo-space-s) var(--lumo-space-l); + + .wrap { + display: flex; + flex-grow: 1; + margin: 0 auto; + max-width: var(--cxl-content-max-width-wide); + } + + #content { + flex-grow: 1; + } + + vaadin-button { + background-color: inherit; + color: var(--cxl-brand-color-black); + cursor: pointer; + } +} + +:host([hidden]) { + display: none; +} diff --git a/packages/cxl-ui/src/components/cxl-inline-notification.js b/packages/cxl-ui/src/components/cxl-inline-notification.js new file mode 100644 index 000000000..eaef1b3a0 --- /dev/null +++ b/packages/cxl-ui/src/components/cxl-inline-notification.js @@ -0,0 +1,29 @@ +/* eslint-disable import/no-extraneous-dependencies */ +import '@conversionxl/cxl-lumo-styles'; +import { LitElement, html } from 'lit'; +import { customElement } from 'lit/decorators.js'; +import cxlInlineNotificationStyles from '../styles/cxl-inline-notification-css.js'; + +@customElement('cxl-inline-notification') +export class CXLInlineNotification extends LitElement { + static get styles() { + return [cxlInlineNotificationStyles]; + } + + hide() { + this.hidden = true; + } + + render() { + return html` +
+ The Automation with Apps script course is part of the Technical Marketing + minidegree. +
++ The Automation with Apps script course is part of the Technical Marketing + minidegree. +
++ The Automation with Apps script course is part of the Technical Marketing + minidegree. +
++ The Automation with Apps script course is part of the Technical Marketing + minidegree. +
++ The Automation with Apps script course is part of the Technical Marketing + minidegree. +
+