diff --git a/static/src/js/components/index/project-images-main.js b/static/src/js/components/index/project-images-main.js index e4b1f62..606066d 100644 --- a/static/src/js/components/index/project-images-main.js +++ b/static/src/js/components/index/project-images-main.js @@ -1,6 +1,7 @@ import React from 'react'; var ReactBootstrap = require('react-bootstrap'); import ProjectImage from './project-image'; +import Reverser from '../../helpers/reverser'; var Row = ReactBootstrap.Row; const DATA = [ @@ -42,7 +43,8 @@ export default class ProjectImagesMain extends React.Component { super(); this.keys = [[1, 2, 3], [4, 5, 6]]; this.state = { - hover: 0 + hover: 0, + seeMoreURL: '' }; this.setHovering = this.setHovering.bind(this); this._generate_image = this._generate_image.bind(this); @@ -62,6 +64,12 @@ export default class ProjectImagesMain extends React.Component { ); } + componentDidMount() { + Reverser('projects:all', [], function (url) { + this.setState({ seeMoreURL: url}); + }.bind(this)); + } + render() { var images = this.keys.map(function (keyColumns) { var col = keyColumns.map(function (key) { @@ -73,6 +81,9 @@ export default class ProjectImagesMain extends React.Component {

Personal Projects

{ images } + +

See More...

+
); } diff --git a/static/src/less/homepage.less b/static/src/less/homepage.less index 41c183f..bc860ca 100644 --- a/static/src/less/homepage.less +++ b/static/src/less/homepage.less @@ -113,8 +113,8 @@ } .container { text-align: center; - margin-top: 27px; - margin-bottom: 35px; + margin-top: 25px; + margin-bottom: 15px; h1 { margin-top: 0; margin-bottom: 30px;