2021-09-24 11:53:07 +00:00
|
|
|
import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element';
|
|
|
|
import * as domtools from '@designestate/dees-domtools';
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
interface HTMLElementTagNameMap {
|
|
|
|
'upl-statuspage-footer': UplStatuspageFooter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@customElement('upl-statuspage-footer')
|
|
|
|
export class UplStatuspageFooter extends DeesElement {
|
|
|
|
// STATIC
|
|
|
|
public static demo = () => html`
|
|
|
|
<upl-statuspage-footer></upl-statuspage-footer>
|
|
|
|
`;
|
|
|
|
|
|
|
|
// INSTANCE
|
|
|
|
@property()
|
|
|
|
public legalInfo: string = "https://lossless.gmbh";
|
|
|
|
|
|
|
|
@property({
|
|
|
|
type: Boolean
|
|
|
|
})
|
|
|
|
public whitelabel = false;
|
|
|
|
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static styles = [
|
|
|
|
domtools.elementBasic.staticStyles,
|
|
|
|
css`
|
|
|
|
:host {
|
|
|
|
display: block;
|
2021-09-26 22:45:17 +00:00
|
|
|
background: ${cssManager.bdTheme('#ffffff', '#000000')};
|
2021-09-24 11:53:07 +00:00
|
|
|
font-family: Roboto Mono;
|
|
|
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
|
|
|
}
|
|
|
|
|
2021-09-26 22:45:17 +00:00
|
|
|
.mainbox {
|
|
|
|
max-width: 900px;
|
|
|
|
margin: auto;
|
|
|
|
padding-top: 20px;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
}
|
2021-09-24 11:53:07 +00:00
|
|
|
|
|
|
|
`
|
|
|
|
]
|
|
|
|
|
|
|
|
public render(): TemplateResult {
|
|
|
|
return html`
|
|
|
|
${domtools.elementBasic.styles}
|
|
|
|
<style></style>
|
|
|
|
<div class="mainbox">
|
|
|
|
Hi there
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
|
|
|
public dispatchReportNewIncident() {
|
|
|
|
this.dispatchEvent(new CustomEvent('reportNewIncident', {
|
|
|
|
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
public dispatchStatusSubscribe() {
|
|
|
|
this.dispatchEvent(new CustomEvent('statusSubscribe', {
|
|
|
|
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
}
|