Skip to content

Commit 0416c39

Browse files
committed
Add wco-footer
1 parent 4c68f6d commit 0416c39

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
}

packages/site-client/src/components/wco-page.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import {html, css, LitElement, CSSResultGroup} from 'lit';
88
import {customElement} from 'lit/decorators.js';
99
import './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

0 commit comments

Comments
 (0)