File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
packages/site-client/src/components Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * @license
3+ * Copyright 2022 Google LLC
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ import { html , css , LitElement } from 'lit' ;
8+ import { customElement } from 'lit/decorators.js' ;
9+
10+ @customElement ( 'wco-footer' )
11+ export class WCOFooter extends LitElement {
12+ static styles = css `
13+ :host {
14+ display: flex;
15+ justify-content: center;
16+ align-items: center;
17+ background: #eee;
18+ border-top: solid 1px #aaa;
19+ height: 120px;
20+ }
21+ ` ;
22+
23+ render ( ) {
24+ return html `[Footer]` ;
25+ }
26+ }
27+
28+ declare global {
29+ interface HTMLElementTagNameMap {
30+ 'wco-footer' : WCOFooter ;
31+ }
32+ }
Original file line number Diff line number Diff line change 77import { html , css , LitElement , CSSResultGroup } from 'lit' ;
88import { customElement } from 'lit/decorators.js' ;
99import './wco-top-bar.js' ;
10+ import './wco-footer.js' ;
1011
1112/**
1213 * The base class for all pages. Includes a top bar and <main> element.
@@ -29,6 +30,7 @@ export class WCOPage extends LitElement {
2930 return html `
3031 < wco-top-bar > </ wco-top-bar >
3132 < main > ${ this . renderMain ( ) } </ main >
33+ < wco-footer > </ wco-footer >
3234 ` ;
3335 }
3436
You can’t perform that action at this time.
0 commit comments