File tree Expand file tree Collapse file tree
packages/uikit-workshop/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313< body class ="pl-c-body ">
1414
1515 < pl-layout >
16- ${require('./partials/ header.html') }
16+ < pl-header > </ pl- header>
1717
1818 <!-- wrapper so the iframe + modal can switch flex directions in vertical vs horizontal layouts -->
1919 < 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 => {
99 import ( /* webpackMode: 'lazy', webpackChunkName: 'pl-modal-viewer' */ './components/modal-viewer' ) ;
1010 }
1111 ) ;
12+ import ( /* webpackMode: 'lazy', webpackChunkName: 'pl-header' */ './components/pl-header/pl-header' ) ;
1213 import ( /* webpackMode: 'lazy', webpackChunkName: 'pl-search' */ './components/pl-search/pl-search' ) ;
1314 import ( /* webpackMode: 'lazy', webpackChunkName: 'pl-toggle-info' */ './components/pl-toggle-info/pl-toggle-info' ) ;
1415 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