-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTourCard.js
More file actions
47 lines (43 loc) · 1.46 KB
/
Copy pathTourCard.js
File metadata and controls
47 lines (43 loc) · 1.46 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
import React from 'react';
import AnimatedButton from './AnimatedButton.jsx';
const TourCard = ({ heading, modifier, list, price }) => (
<div className="card">
{/* Front side */}
<div className="card__side card__side--front">
<div className={`card__picture card__picture--${modifier}`}>
</div>
<h4 className="card__heading">
<span className={`card__heading-span card__heading-span--${modifier}`}>
{ heading }
</span>
</h4>
<div className="card__details">
<ul>
{list.map((li, idx) => (
<li key={idx}>{li}</li>
))}
</ul>
</div>
</div>
{/* Back side */}
<div className={`card__side card__side--back card__side--back--${modifier}`}>
<div className="card__cta">
<div className="card__price-box">
<p className="card__price-only">
Only
</p>
<p className="card__price-value">
{price}
</p>
</div>
<Button
className="btn btn--white"
text="Book now"
href="#popup"
/>
</div>
</div>
</div>
);
export default TourCard;