-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
38 lines (33 loc) · 800 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { LitElement, html, css } from "lit-element";
import router from "./router";
import "./src/components/fs-header";
import "./src/components/fs-home";
import "./src/components/product/fs-product";
class App extends LitElement {
constructor() {
super();
}
firstUpdated() {
let outlet = this.shadowRoot.getElementById("outlet");
router(outlet);
}
static get styles() {
return css`
:host {
--spacing: 1rem;
--border-radius: 2px;
--box-shadow: 0px 0px 5px 0px rgb(142, 142, 142, 0.1);
--green: rgb(107, 255, 159);
--red: rgb(235, 52, 116);
--gray: gray;
}
`;
}
render() {
return html`
<fs-header></fs-header>
<div id="outlet"></div>
`;
}
}
customElements.define("fs-app", App);