cta1.js 1.12 KB
Newer Older
EnesKarakas's avatar
EnesKarakas committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React from 'react'

import PropTypes from 'prop-types'

import './cta1.css'

const CTA1 = (props) => {
  return (
    <div className="cta1-container thq-section-padding">
      <div className="cta1-max-width thq-section-max-width">
        <div className="cta1-content">
          <h2 className="cta1-heading1 thq-heading-2">{props.heading1}</h2>
          <p className="cta1-content1 thq-body-large">{props.content1}</p>
          <div className="cta1-actions">
Weiser's avatar
update    
Weiser committed
15
16
            <button className="thq-button-filled cta1-button"
            onClick={() => (window.location.href = "/historicalweather")}>
EnesKarakas's avatar
EnesKarakas committed
17
18
19
20
21
22
23
24
25
26
27
28
              <span className="cta1-action1 thq-body-small">
                {props.action1}
              </span>
            </button>
          </div>
        </div>
      </div>
    </div>
  )
}

CTA1.defaultProps = {
Weiser's avatar
Updates    
Weiser committed
29
30
  action1: 'Weather history',
  heading1: 'What was the Weather like yesterday?',
EnesKarakas's avatar
EnesKarakas committed
31
  content1:
Weiser's avatar
Updates    
Weiser committed
32
    'You can Download Historical Weather Data as far as 1940!',
EnesKarakas's avatar
EnesKarakas committed
33
34
35
36
37
38
39
40
41
42
}

CTA1.propTypes = {
  action1: PropTypes.string,
  heading1: PropTypes.string,
  content1: PropTypes.string,
  action2: PropTypes.string,
}

export default CTA1