mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
33 lines
997 B
JavaScript
33 lines
997 B
JavaScript
import React from 'react'
|
|
import placeholder from '../assets/placeholder.png'
|
|
|
|
export default class Project extends React.Component {
|
|
render() {
|
|
let links = <></>;
|
|
if (this.props.links != null) {
|
|
this.props.links.forEach(x => {
|
|
links = (
|
|
<>
|
|
{links}
|
|
<a href={x[0]}>{x[1]}</a>
|
|
</>
|
|
)
|
|
})
|
|
} else{
|
|
links = <a><img alt="no links!" src={placeholder} /></a>
|
|
}
|
|
return (
|
|
<li className={'project'} data-aos='fade-up'>
|
|
<div className='topBox'>
|
|
<h3>{this.props.title}</h3>
|
|
<p className={this.props.status + " tab"}>⬤</p>
|
|
<p className='body'>{this.props.children}</p>
|
|
</div>
|
|
<div className='bottomBox'>
|
|
{links}
|
|
</div>
|
|
</li>
|
|
)
|
|
}
|
|
}
|