feat(opsserver,web): replace the Angular UI and REST management layer with a TypedRequest-based ops server and bundled web frontend
This commit is contained in:
43
ts_web/elements/shared/sg-sectionheading.ts
Normal file
43
ts_web/elements/shared/sg-sectionheading.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import {
|
||||
css,
|
||||
cssManager,
|
||||
customElement,
|
||||
DeesElement,
|
||||
html,
|
||||
type TemplateResult,
|
||||
} from '@design.estate/dees-element';
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
'sg-sectionheading': SgSectionheading;
|
||||
}
|
||||
}
|
||||
|
||||
@customElement('sg-sectionheading')
|
||||
export class SgSectionheading extends DeesElement {
|
||||
public static styles = [
|
||||
cssManager.defaultStyles,
|
||||
css`
|
||||
:host {
|
||||
display: block;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.heading {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: ${cssManager.bdTheme('#111', '#fff')};
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 2px solid ${cssManager.bdTheme('#111', '#fff')};
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
||||
public render(): TemplateResult {
|
||||
return html`
|
||||
<div class="heading">
|
||||
<slot></slot>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user