Samuel Shuert | 016ea02 | 2021-09-01 16:17:24 -0500 | [diff] [blame^] | 1 | import { Component } from "react"; |
| 2 | import Styles from '../styles/card.module.css'; |
| 3 | |
| 4 | class 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 | |
| 30 | export default Card; |