Added slate external website function

This commit is contained in:
2022-03-23 18:14:17 -04:00
parent 66d397912d
commit 3018c154ec
3 changed files with 103 additions and 12 deletions

View File

@@ -6,6 +6,15 @@ export default class Project extends React.Component {
}
render(){
let links;
this.props.links.forEach(x => {
links = (
<>
{links}
<a href={x[0]}>{x[1]}</a>
</>
)
})
return (
<li className={'project'} data-aos='fade-up'>
<div className='topBox'>
@@ -14,7 +23,7 @@ export default class Project extends React.Component {
<p className='body'>{this.props.children}</p>
</div>
<div className='bottomBox'>
<a href={this.props.link}>{this.props.linkText}</a>
{links}
</div>
</li>
)