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

76 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;
}
.searchbar {
height: 24px;
line-height: 24px;
margin: 8px;
border: 1px solid #ffffff20;
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>
<div class="searchbar">
Search
</div>
<div class="account"></div>
2023-09-06 16:43:33 +00:00
`;
}
}