import { css, customElement, html, LitElement, property } from "lit-element"; // @ts-ignore import PageStyle from "@patternfly/patternfly/components/Page/page.css"; // @ts-ignore import GlobalsStyle from "@patternfly/patternfly/base/patternfly-globals.css"; import { Config } from "../../api/config"; @customElement("pb-sidebar-brand") export class SidebarBrand extends LitElement { @property() config?: Config; static get styles() { return [ GlobalsStyle, PageStyle, css` .pf-c-brand { font-family: "DIN 1451 Std"; line-height: 60px; font-size: 3rem; color: var(--pf-c-nav__link--m-current--Color); display: flex; flex-direction: row; justify-content: center; width: 100%; margin: 0 1rem; margin-bottom: 1.5rem; } .pf-c-brand img { max-height: 60px; margin-right: 8px; } `, ]; } constructor() { super(); Config.get().then((c) => (this.config = c)); } render() { if (!this.config) { return html``; } return html` ${this.config?.branding_title ? html`${this.config.branding_title}` : ""} `; } }