blob: 32149b5b8d79d76200939e9a2c79747437a6da1b [file] [log] [blame]
Samuel Shuert016ea022021-09-01 16:17:24 -05001import { Component } from "react";
2import Styles from '../styles/card.module.css';
3
4class Card extends Component {
5 constructor(props) {
6 super(props);
7 }
8
9
10 render() {
11 return (
12 <div className={Styles.background} style={{background:`linear-gradient(69.44deg, #78ECF2 13.64%, #71AFE5 86.36%), #FFFFFF;`,backgroundImage:`url("/Waves/${this.props.wave}.svg")`,width:"528px", height:"264px"}}>
13 <div className={Styles.titleScript}>
14 <img className={Styles.image} src={"/Icons/" + this.props.wave + ".svg"} />
15 <h1 className={Styles.title}>{this.props.title}</h1>
16 </div>
17 <p className={Styles.subtext}>{this.props.subtext}</p>
18 <div className={Styles.buttonLayout}>
19 {
20 this.props.buttons ? this.props.buttons.map(button => {
21 return <a className={Styles.button} style={{backgroundColor:button.color}} href={button.link}>{button.text}</a>
22 }) : null
23 }
24 </div>
25 </div>
26 )
27 }
28}
29
30export default Card;