File tree Expand file tree Collapse file tree 4 files changed +39
-26
lines changed
packages/uikit-workshop/src Expand file tree Collapse file tree 4 files changed +39
-26
lines changed Original file line number Diff line number Diff line change 13
13
< body class ="pl-c-body ">
14
14
15
15
< pl-layout >
16
- ${require('./partials/ header.html') }
16
+ < pl-header > </ pl- header>
17
17
18
18
<!-- wrapper so the iframe + modal can switch flex directions in vertical vs horizontal layouts -->
19
19
< div class ="pl-c-viewport-modal-wrapper ">
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { define , props } from 'skatejs' ;
2
+ import { h } from 'preact' ;
3
+ const classNames = require ( 'classnames' ) ;
4
+
5
+ import { store } from '../../store.js' ; // connect to redux
6
+ import { BaseComponent } from '../base-component.js' ;
7
+
8
+ @define
9
+ class Header extends BaseComponent {
10
+ static is = 'pl-header' ;
11
+
12
+ constructor ( self ) {
13
+ self = super ( self ) ;
14
+ this . useShadow = false ;
15
+ return self ;
16
+ }
17
+
18
+ _stateChanged ( state ) { }
19
+
20
+ render ( ) {
21
+ return (
22
+ < header class = "pl-c-header" role = "banner" >
23
+ < button class = "pl-c-header__nav-toggle pl-js-nav-trigger" > Menu</ button >
24
+ < nav
25
+ class = "pl-c-nav pl-js-nav-target pl-js-nav-container"
26
+ role = "navigation"
27
+ >
28
+ < pl-search max-results = "10" placeholder = "Find a Pattern" />
29
+ < pl-nav />
30
+ </ nav >
31
+ < pl-controls />
32
+ </ header >
33
+ ) ;
34
+ }
35
+ }
36
+
37
+ export { Header } ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ loadPolyfills.then(res => {
9
9
import ( /* webpackMode: 'lazy', webpackChunkName: 'pl-modal-viewer' */ './components/modal-viewer' ) ;
10
10
}
11
11
) ;
12
+ import ( /* webpackMode: 'lazy', webpackChunkName: 'pl-header' */ './components/pl-header/pl-header' ) ;
12
13
import ( /* webpackMode: 'lazy', webpackChunkName: 'pl-search' */ './components/pl-search/pl-search' ) ;
13
14
import ( /* webpackMode: 'lazy', webpackChunkName: 'pl-toggle-info' */ './components/pl-toggle-info/pl-toggle-info' ) ;
14
15
import ( /* webpackMode: 'lazy', webpackChunkName: 'pl-toggle-layout' */ './components/pl-toggle-layout/pl-toggle-layout' ) ;
You can’t perform that action at this time.
0 commit comments