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

87 lines
1.8 KiB
TypeScript
Raw Normal View History

2021-03-06 18:59:00 +00:00
import {
DeesElement,
TemplateResult,
property,
customElement,
html,
2022-01-31 13:07:15 +00:00
css,
cssManager,
2021-03-06 18:59:00 +00:00
} from '@designestate/dees-element';
2021-03-05 16:01:54 +00:00
import * as domtools from '@designestate/dees-domtools';
2022-11-18 00:30:36 +00:00
@customElement('lele-appui-activitylog')
2021-03-05 16:01:54 +00:00
export class DeapActivitylog extends DeesElement {
2022-01-31 13:07:15 +00:00
// STATIC
2022-11-18 00:30:36 +00:00
public static demo = () => html`<lele-appui-activitylog></lele-appui-activitylog>`;
2021-03-05 16:01:54 +00:00
// INSTANCE
2022-01-31 13:07:15 +00:00
public static styles = [
cssManager.defaultStyles,
css`
:host {
color: #fff;
position: relative;
display: block;
width: 100%;
max-width: 300px;
height: 100%;
background: #343b43;
}
.maincontainer {
position: absolute;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
}
.topbar {
position: absolute;
height: 80px;
width: calc(100% - 20px);
margin: 0px 10px 0px 10px;
border-bottom: 1px solid #707070;
}
2021-03-05 16:01:54 +00:00
2022-01-31 13:07:15 +00:00
.topbar .heading {
text-align: center;
line-height: 80px;
2023-01-10 12:11:02 +00:00
font-family: Inter;
font-weight: 500;
2022-01-31 13:07:15 +00:00
font-size: 14px;
}
2021-03-05 16:01:54 +00:00
2022-01-31 13:07:15 +00:00
.activityContainer {
position: absolute;
top: 80px;
bottom: 0px;
width: 100%;
padding: 10px;
}
2021-03-06 18:59:00 +00:00
2022-01-31 13:07:15 +00:00
.activityentry {
background: rgba(0, 0, 0, 0.2);
min-height: 30px;
border-radius: 3px;
cursor: pointer;
}
`,
];
2021-03-06 18:59:00 +00:00
2022-01-31 13:07:15 +00:00
public render(): TemplateResult {
return html`
${domtools.elementBasic.styles}
<style></style>
2021-03-05 16:01:54 +00:00
<div class="maincontainer">
<div class="topbar">
<div class="heading">Activity Log</div>
</div>
2021-03-06 18:59:00 +00:00
<div class="activityContainer">
<div class="activityentry"></div>
</div>
2021-03-05 16:01:54 +00:00
</div>
`;
}
2021-03-06 18:59:00 +00:00
}