File tree Expand file tree Collapse file tree 4 files changed +44
-1
lines changed Expand file tree Collapse file tree 4 files changed +44
-1
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 { css } from 'lit' ;
8
+ import { customElement } from 'lit/decorators.js' ;
9
+ import { WCOPage } from './wco-page.js' ;
10
+ import './wco-top-bar.js' ;
11
+
12
+ @customElement ( 'wco-home-page' )
13
+ export class WCOHomePage extends WCOPage {
14
+ static styles = [ WCOPage . styles , css `` ] ;
15
+ }
16
+
17
+ declare global {
18
+ interface HTMLElementTagNameMap {
19
+ 'wco-home-page' : WCOHomePage ;
20
+ }
21
+ }
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
import 'lit/experimental-hydrate-support.js' ;
7
+
8
+ import '../components/wco-home-page.js' ;
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
+ module . exports = {
8
+ async render ( data ) {
9
+ const { renderPage, html, unsafeHTML} = await import (
10
+ '../../../templates/lib/base.js'
11
+ ) ;
12
+ await import ( '@webcomponents/internal-site-client/lib/components/wco-home-page.js' ) ;
13
+ return [
14
+ ...renderPage ( {
15
+ ...data ,
16
+ content : html `< wco-home-page > ${ unsafeHTML ( data . content ) } </ wco-home-page > ` ,
17
+ } ) ,
18
+ ] . join ( '' ) ;
19
+ } ,
20
+ } ;
Original file line number Diff line number Diff line change 1
1
---
2
- layout: "layouts/base .11ty.cjs"
2
+ layout: "layouts/home .11ty.cjs"
3
3
title: "Web Components"
4
4
scripts:
5
5
- "./js/homepage.js"
You can’t perform that action at this time.
0 commit comments