| 1 |
/** @jsx jsx */ |
| 2 |
import { css, jsx } from '@emotion/react'; |
| 3 |
import { ScTag, ScButton } from '@surecart/components-react'; |
| 4 |
|
| 5 |
export default ( { |
| 6 |
infoType, |
| 7 |
infoText, |
| 8 |
title, |
| 9 |
description, |
| 10 |
buttonLabel, |
| 11 |
buttonUrl, |
| 12 |
btnFilled, |
| 13 |
} ) => { |
| 14 |
return ( |
| 15 |
|
| 16 |
<div |
| 17 |
className="sc-col-33" |
| 18 |
css={ css` |
| 19 |
max-width: 341px; |
| 20 |
|
| 21 |
sc-button { |
| 22 |
margin-top: auto; |
| 23 |
} |
| 24 |
|
| 25 |
@media screen and ( max-width: 480px ) { |
| 26 |
margin-bottom: 20px; |
| 27 |
} |
| 28 |
` }> |
| 29 |
<div className="sc-top-section"> |
| 30 |
<ScTag |
| 31 |
type={ infoType } |
| 32 |
style={ { |
| 33 |
'--sc-tag-primary-background-color': '#f3e8ff', |
| 34 |
'--sc-tag-primary-color': '#6b21a8', |
| 35 |
} } |
| 36 |
> |
| 37 |
{ infoText } |
| 38 |
</ScTag> |
| 39 |
<p |
| 40 |
css={ css` |
| 41 |
font-weight: 600; |
| 42 |
font-size: 20px; |
| 43 |
line-height: 28px; |
| 44 |
color: #334155; |
| 45 |
margin: 0.8em 0 .4em 0; |
| 46 |
` } |
| 47 |
> |
| 48 |
{ title } |
| 49 |
</p> |
| 50 |
<p |
| 51 |
css={ css` |
| 52 |
font-weight: 400; |
| 53 |
font-size: 14px; |
| 54 |
line-height: 28px; |
| 55 |
color: #334155; |
| 56 |
margin: 0.4em 0 1em 0; |
| 57 |
` } |
| 58 |
> |
| 59 |
{ description } |
| 60 |
</p> |
| 61 |
</div> |
| 62 |
<ScButton |
| 63 |
|
| 64 |
type="primary" |
| 65 |
href={ buttonUrl } |
| 66 |
style={ { |
| 67 |
'--primary-background': btnFilled ? '#125D9F' : '#F5F3FF', |
| 68 |
'--primary-color': btnFilled ? '#fff' : '#125D9F', |
| 69 |
'--sc-focus-ring-color-primary': '#125D9F', |
| 70 |
} } |
| 71 |
> |
| 72 |
{ buttonLabel } → |
| 73 |
</ScButton> |
| 74 |
</div> |
| 75 |
); |
| 76 |
}; |
| 77 |
|