added some style

This commit is contained in:
Fran Jurmanović
2021-06-04 00:54:23 +02:00
parent 82c9699e17
commit 54607aba58
13 changed files with 195 additions and 55 deletions

View File

@@ -1,4 +1,4 @@
import { controller } from "@github/catalyst";
import { controller, target } from "@github/catalyst";
import { closest } from "core/utils";
import { html, TemplateResult } from "@github/jtml";
import { BaseLayoutElement } from "common/layouts";
@@ -7,6 +7,7 @@ import { AppMainElement } from "components/";
@controller
class MenuLayoutElement extends BaseLayoutElement {
@closest appMain: AppMainElement;
@target appPage: HTMLDivElement;
constructor() {
super();
@@ -38,8 +39,10 @@ class MenuLayoutElement extends BaseLayoutElement {
render = (): TemplateResult => {
const _isAuth = this.isAuth;
return html`
${_isAuth ? html`<app-menu></app-menu>` : html``}
<app-slot data-target="menu-layout.appSlot"></app-slot>
<div data-target="menu-layout.appPage">
${_isAuth ? html`<app-menu></app-menu>` : html``}
<app-slot data-target="menu-layout.appSlot"></app-slot>
</div>
`;
};
}