1
Fork 0

Added personal project information

This commit is contained in:
Jake Howard 2016-01-14 18:46:48 +00:00
parent b27c0bc063
commit 7552e20cbc

View file

@ -6,32 +6,32 @@ var Row = ReactBootstrap.Row;
const DATA = [ const DATA = [
{ {
title: 'Custom PC', title: 'Custom PC',
text: 'My time at college was where I learnt most about programming, and discovered my skill and passion for it.', text: 'Without my PCs, I wouldnt be able to do anything you see here.',
link: '', link: '',
}, },
{ {
title: 'Personal', title: 'BSOD-Enabler',
text: 'I write code just to write code, but sometimes it serves a purpose.', text: 'Ever wanted to bring up a Blue Screen of Death on command, well now you can!',
link: '',
},
{
title: 'Yoga Pal',
text: 'For anyone running a 2-in-1 laptop on an OS other than Windows.',
link: '',
},
{
title: 'Django-client-reverse',
text: 'Hardcoding Django API URLs on your client is a thing of the past!',
link: '',
},
{
title: 'Dotfile-automator',
text: 'Automatically sync your dotfiles between machines. Keep things just the way you like them!',
link: '', link: '',
}, },
{ {
title: 'Work', title: 'Work',
text: 'I\'m an apprentice software developer at Dabapps, and this is what I\'ve done.', text: '',
link: '',
},
{
title: 'College',
text: 'My time at college was where I learnt most about programming, and discovered my skill and passion for it.',
link: '',
},
{
title: 'Personal',
text: 'I write code just to write code, but sometimes it serves a purpose.',
link: '',
},
{
title: 'Work',
text: 'I\'m an apprentice software developer at Dabapps, and this is what I\'ve done.',
link: '', link: '',
} }
]; ];
@ -44,22 +44,27 @@ export default class ProjectImagesMain extends React.Component {
hover: 0 hover: 0
}; };
this.setHovering = this.setHovering.bind(this); this.setHovering = this.setHovering.bind(this);
this._generate_image = this._generate_image.bind(this);
} }
setHovering(key) { setHovering(key) {
this.setState({hover: key}); this.setState({hover: key});
} }
render() {
var generate_image = function (key) { _generate_image(key) {
return ( return (
<ProjectImage isHovered={this.state.hover === key} <ProjectImage
isHovered={this.state.hover === key}
data={DATA[key - 1]} data={DATA[key - 1]}
onHover={this.setHovering.bind(this, key)} onHover={this.setHovering.bind(this, key)}
onLeave={this.setHovering.bind(this, 0)} /> onLeave={this.setHovering.bind(this, 0)} />
); );
}.bind(this); }
render() {
var images = this.keys.map( function (keyColumns) { var images = this.keys.map( function (keyColumns) {
var col = keyColumns.map(function (key) { var col = keyColumns.map(function (key) {
return generate_image(key); return this._generate_image(key);
}); });
return (<Row>{col}</Row>); return (<Row>{col}</Row>);
}); });