Last active
August 29, 2015 14:01
-
-
Save talves/34c804982fba5afc7f37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* globals define */ | |
define(function(require, exports, module) { | |
'use strict'; | |
// import dependencies | |
var Engine = require('famous/core/Engine'); | |
var Surface = require('famous/core/Surface'); | |
var HeaderFooterLayout = require('famous/views/HeaderFooterLayout'); | |
var mainContext = Engine.createContext(); | |
var layout = new HeaderFooterLayout({ | |
headerSize: 100, | |
footerSize: 50 | |
}); | |
layout.header.add(new Surface({ | |
content: 'Header', | |
classes: ['bg-ugly'], | |
properties: { | |
lineHeight: '100px', | |
textAlign: 'center' | |
} | |
})); | |
layout.content.add(new Surface({ | |
content: 'Content', | |
//classes: ['grey-bg'], | |
properties: { | |
lineHeight: '400px', | |
textAlign: 'center' | |
} | |
})); | |
layout.footer.add(new Surface({ | |
content: 'Footer', | |
//classes: ['red-bg'], | |
properties: { | |
lineHeight: '50px', | |
textAlign: 'center', | |
backgroundColor: 'blue' | |
} | |
})); | |
mainContext.add(layout); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
background: #fff; | |
} | |
.bg-ugly { | |
background: #ff0; | |
} | |
.backfaceVisibility { | |
-webkit-backface-visibility: visible; | |
backface-visibility: visible; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment