mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
Update and restyle ProjectList
This commit is contained in:
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user