Remove need to specify class on project images
This commit is contained in:
parent
ec00cdde5a
commit
b27c0bc063
3 changed files with 3 additions and 11 deletions
|
@ -5,9 +5,10 @@ var Col = ReactBootstrap.Col;
|
|||
export default class ProjectImage extends React.Component {
|
||||
render() {
|
||||
var animationClass = this.props.isHovered ? 'zoomIn' : 'zoomOut';
|
||||
var classes = this.props.data.title.toLowerCase().replace(' ', '-');
|
||||
return (
|
||||
<Col sm={4} className="project-image">
|
||||
<div className={'wrapper ' + this.props.data.className}>
|
||||
<div className={'wrapper ' + classes}>
|
||||
<div className="project"
|
||||
onMouseOver={this.props.onHover}
|
||||
onMouseLeave={this.props.onLeave} >
|
||||
|
|
|
@ -5,37 +5,31 @@ var Row = ReactBootstrap.Row;
|
|||
|
||||
const DATA = [
|
||||
{
|
||||
className: 'college',
|
||||
title: 'College',
|
||||
title: 'Custom PC',
|
||||
text: 'My time at college was where I learnt most about programming, and discovered my skill and passion for it.',
|
||||
link: '',
|
||||
},
|
||||
{
|
||||
className: 'personal',
|
||||
title: 'Personal',
|
||||
text: 'I write code just to write code, but sometimes it serves a purpose.',
|
||||
link: '',
|
||||
},
|
||||
{
|
||||
className: 'work',
|
||||
title: 'Work',
|
||||
text: 'I\'m an apprentice software developer at Dabapps, and this is what I\'ve done.',
|
||||
link: '',
|
||||
},
|
||||
{
|
||||
className: 'college',
|
||||
title: 'College',
|
||||
text: 'My time at college was where I learnt most about programming, and discovered my skill and passion for it.',
|
||||
link: '',
|
||||
},
|
||||
{
|
||||
className: 'personal',
|
||||
title: 'Personal',
|
||||
text: 'I write code just to write code, but sometimes it serves a purpose.',
|
||||
link: '',
|
||||
},
|
||||
{
|
||||
className: 'work',
|
||||
title: 'Work',
|
||||
text: 'I\'m an apprentice software developer at Dabapps, and this is what I\'ve done.',
|
||||
link: '',
|
||||
|
|
|
@ -5,19 +5,16 @@ var Row = ReactBootstrap.Row;
|
|||
|
||||
const DATA = [
|
||||
{
|
||||
className: 'college',
|
||||
title: 'College',
|
||||
text: 'My time at college was where I learnt most about programming, and discovered my skill and passion for it.',
|
||||
link: '',
|
||||
},
|
||||
{
|
||||
className: 'personal',
|
||||
title: 'Personal',
|
||||
text: 'I write code just to write code, but sometimes it serves a purpose.',
|
||||
link: '#project-images-main',
|
||||
},
|
||||
{
|
||||
className: 'work',
|
||||
title: 'Work',
|
||||
text: 'I\'m an apprentice software developer at Dabapps, and this is what I\'ve done.',
|
||||
link: '',
|
||||
|
|
Reference in a new issue