trc-client-core
Version:
The core of the TRC Client
35 lines (32 loc) • 1.15 kB
JSX
import React from 'react';
import Col from 'trc-client-core/src/components/Col';
import Grid from 'trc-client-core/src/components/Grid';
import Sidebar from 'trc-client-core/src/qanda/QandaSidebar';
import QandaFeed from 'trc-client-core/src/qanda/QandaFeed';
import {staticUrl} from 'trc-client-core/src/constants/url';
var QandaHomeView = React.createClass({
displayName: 'QandaHomeView',
propTypes: {
questions: React.PropTypes.array,
page: React.PropTypes.string
},
render: function() {
return (
<div>
<div className="hidden--feather l-content-hug">
<img src={staticUrl("img/content/banner/banner-product_5@TOYOTA.jpg")} width="1024" height="320"></img>
</div>
<Grid>
<Col width={7}>
<h1>Q & A</h1>
<QandaFeed/>
</Col>
<Col width={3}>
<Sidebar/>
</Col>
</Grid>
</div>
);
}
});
module.exports = QandaHomeView;