Update and restyle ProjectList

This commit is contained in:
2022-05-13 19:48:05 -04:00
parent c52b7fc999
commit e1de0c8485
4 changed files with 27 additions and 25 deletions

View File

@@ -1,16 +1,21 @@
import React from 'react'
import placeholder from '../assets/placeholder.png'
export default class Project extends React.Component {
render(){
let links;
this.props.links.forEach(x => {
links = (
<>
{links}
<a href={x[0]}>{x[1]}</a>
</>
)
})
render() {
let links = <></>;
if (this.props.links != null) {
this.props.links.forEach(x => {
links = (
<>
{links}
<a href={x[0]}>{x[1]}</a>
</>
)
})
} else{
links = <p><img alt="no links!" src={placeholder} /></p>
}
return (
<li className={'project'} data-aos='fade-up'>
<div className='topBox'>