1
Fork 0

Moved project image section to component

This commit is contained in:
Jake Howard 2015-11-10 08:59:52 +00:00
parent 1fc69fa132
commit 60260ada94
3 changed files with 25 additions and 12 deletions

View file

@ -1,6 +1,10 @@
var React = require('react'); var React = require('react');
var ProjectImages = require('./components/project-images');
$(window).load(function(){ $(window).load(function(){
$(window).trigger('scroll').trigger('resize'); $(window).trigger('scroll').trigger('resize');
var s = skrollr.init(); var s = skrollr.init();
}); });
React.render(<ProjectImages />, document.getElementById('project-images'));

View file

@ -0,0 +1,19 @@
var React = require('react');
var projectImages = React.createClass({
render: function () {
return (
<div className="container">
<div className="panel panel-default">
<div className="panel-body row">
<div className="col-xs-4">
<p>things</p>
</div>
</div>
</div>
</div>
);
}
});
module.exports = projectImages;

View file

@ -18,15 +18,5 @@
</div> </div>
</div> </div>
<div class="container-fluid" id="project-images"> <div class="container-fluid" id="project-images"></div>
<div class="container">
<div class="panel panel-default">
<div class="panel-body row">
<div class="col-xs-4">
<p>things</p>
</div>
</div>
</div>
</div>
</div>
{% endblock %} {% endblock %}