PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 0.0.3
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v0.0.3
2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 0.0.2 0.0.3 All 96 releases
sureforms / src / admin / dashboard / GetStartedBox.js

GetStartedBox.js in SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz 0.0.3, at src/admin/dashboard/GetStartedBox.js

77 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 } &#8594;
73 </ScButton>
74 </div>
75 );
76 };
77