-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhero9.js
More file actions
80 lines (74 loc) · 2.38 KB
/
Copy pathhero9.js
File metadata and controls
80 lines (74 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import React, { Fragment } from 'react'
import PropTypes from 'prop-types'
import './hero9.css'
const Hero9 = (props) => {
return (
<div className="hero9-header30 thq-section-padding">
<img
alt={props.image1Alt}
src={props.image1Src}
className="hero9-image"
/>
<div className="hero9-container"></div>
<div className="hero9-max-width thq-section-max-width">
<div className="hero9-content">
<h1 className="hero9-text1 thq-heading-1">
{props.heading1 ?? (
<Fragment>
<span className="hero9-text7">Welcome to </span>
</Fragment>
)}
</h1>
<p className="hero9-text2 thq-body-large">
{props.content1 ?? (
<Fragment>
<span className="hero9-text6">
Discover our unique collection of modern furniture and
designer-made home decoration items.
</span>
</Fragment>
)}
</p>
<div className="hero9-actions">
<button className="thq-button-filled hero9-button1">
<span className="hero9-text3 thq-body-small">
{props.action1 ?? (
<Fragment>
<span className="hero9-text8">Learn More</span>
</Fragment>
)}
</span>
</button>
<button className="thq-button-outline hero9-button2">
<span className="hero9-text4 thq-body-small">
{props.action2 ?? (
<Fragment>
<span className="hero9-text5">Shop Now</span>
</Fragment>
)}
</span>
</button>
</div>
</div>
</div>
</div>
)
}
Hero9.defaultProps = {
image1Alt: 'Modern Furniture',
action2: undefined,
content1: undefined,
heading1: undefined,
image1Src:
'https://images.unsplash.com/photo-1554295405-abb8fd54f153?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w5MTMyMXwwfDF8cmFuZG9tfHx8fHx8fHx8MTczMDYxOTUyN3w&ixlib=rb-4.0.3&q=80&w=1080',
action1: undefined,
}
Hero9.propTypes = {
image1Alt: PropTypes.string,
action2: PropTypes.element,
content1: PropTypes.element,
heading1: PropTypes.element,
image1Src: PropTypes.string,
action1: PropTypes.element,
}
export default Hero9