Dynamisation

> Projects
> Contact
> Footer
This commit is contained in:
2021-01-03 01:28:04 +01:00
parent 1d77ce47a4
commit 8804be802c
21 changed files with 150 additions and 77 deletions

View File

@@ -9,13 +9,14 @@ export default class ContactButton extends Component {
// this.state = {};
// }
render() {
const data = this.props.data;
return <div class="column is-3">
<a target="_blank" rel="noreferrer noopener" href={this.props.link} class="hide button is-large is-fullw-mobile"
title={this.props.title}>
<a target="_blank" rel="noreferrer noopener" href={data.url} class="hide button is-large is-fullw-mobile"
title={`Go to ${data.title}`}>
<span class="icon">
<i class={"fab " + this.props.icon}></i>
<i class={"fab " + data.icon}></i>
</span>
<span>{this.props.name}</span>
<span>{data.title}</span>
</a>
</div>;
}