dees-appui-catalog/ts_web/elements/lele-appui-appbar.ts

75 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-09-06 16:43:33 +00:00
import {
DeesElement,
2023-09-06 22:18:00 +00:00
type TemplateResult,
2023-09-06 16:43:33 +00:00
property,
customElement,
html,
css,
cssManager,
} from '@design.estate/dees-element';
@customElement('lele-appui-appbar')
export class DeapAppBar extends DeesElement {
public static demo = () => html`<lele-appui-appbar></lele-appui-appbar>`;
public static styles = [
cssManager.defaultStyles,
css`
:host {
display: block;
position: relative;
height: 100%;
width: 100%;
2023-09-06 23:22:55 +00:00
height: 40px;
2023-09-06 16:43:33 +00:00
border-bottom: 1px solid #202020;
background: #000000;
2023-09-06 23:22:55 +00:00
color: #ffffff80;
font-size: 12px;
display: grid;
grid-template-columns: ${cssManager.cssGridColumns(3, 20)};
}
.menus {
display: flex;
padding-left: 8px;
cursor: default;
}
.menuItem {
line-height: 24px;
padding: 0px 8px;
margin: 8px 0px;
border-radius: 4px;
}
.menuItem:hover {
background: #ffffff20;
}
2023-10-31 11:17:56 +00:00
.breadcrumbs {
2023-09-06 23:22:55 +00:00
height: 24px;
line-height: 24px;
margin: 8px;
border-radius: 8px;
text-align: center;
2023-09-06 16:43:33 +00:00
}
`,
];
// INSTANCE
public render(): TemplateResult {
return html`
2023-09-06 23:22:55 +00:00
<div class="menus">
<div class="menuItem">File</div>
<div class="menuItem">View</div>
<div class="menuItem">Help</div>
<div class="menuItem">Terminal</div>
</div>
2023-10-31 11:17:56 +00:00
<div class="breadcrumbs">
tool:social.io > org:design.estate > prop:lossless.com
2023-09-06 23:22:55 +00:00
</div>
<div class="account"></div>
2023-09-06 16:43:33 +00:00
`;
}
}