-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-home.ts
42 lines (33 loc) · 844 Bytes
/
page-home.ts
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
39
40
41
42
import { css, html } from 'lit';
import { customElement, } from 'lit/decorators';
import { RootState } from '../store/store';
// For more info on the @pwabuilder/pwainstall component click here https://github.com/pwa-builder/pwa-install
import { PageElement } from './page-element';
@customElement('page-home')
export class PageHome extends PageElement {
static get styles() {
return [
...super.styles,
css`
:host {
display: block;
}
` ] ;
}
constructor() {
super();
}
stateChanged( state: RootState ) {
}
async firstUpdated() {
// this method is a lifecycle even in lit
// for more info check out the lit docs https://lit.dev/docs/components/lifecycle/
console.log('This is your home page');
}
render() {
return html`
Home
<p>Blep</p>
`;
}
}