@prosistemas/sca-web-kit 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,5 +8,5 @@ import Button from '../../ui/button/button';
|
|
|
8
8
|
import Image from 'next/image';
|
|
9
9
|
import Input from '../../ui/input/input';
|
|
10
10
|
export default function NewsletterStrip({ buttonLabel, onButtonClick, onFormSubmit, buttonLoading = false, buttonDisabled = false, emailValue, onEmailChange, nameValue, onNameChange, }) {
|
|
11
|
-
return (_jsxs("div", { className: styles['newsletter-strip'], children: [_jsx(Image, { className: styles['icon'], src: newsletterIcon, width: 46, height: 46, alt: '' }), _jsx(InfoHeader, { className: styles['info-header'], titleClassName: styles['title'], subtitleClassName: styles['subtitle'], title: 'Os melhores conte\u00FAdos de tecnologia e fitness', subtitle: 'Assine e receba novidades toda semana em sua caixa de entrada.', dark: true }), _jsxs("form", { className: styles['input-
|
|
11
|
+
return (_jsxs("div", { className: styles['newsletter-strip'], children: [_jsx(Image, { className: styles['icon'], src: newsletterIcon, width: 46, height: 46, alt: '' }), _jsx(InfoHeader, { className: styles['info-header'], titleClassName: styles['title'], subtitleClassName: styles['subtitle'], title: 'Os melhores conte\u00FAdos de tecnologia e fitness', subtitle: 'Assine e receba novidades toda semana em sua caixa de entrada.', dark: true }), _jsxs("form", { className: styles['input-fields'], onSubmit: onFormSubmit, children: [_jsx(Input, { className: styles['input-wrapper'], inputClassName: styles['input'], id: 'name', placeholder: 'Insira seu nome', onChange: onNameChange, required: true }), _jsx(Input, { className: styles['input-wrapper'], inputClassName: styles['input'], id: 'email', placeholder: 'Insira seu e-mail', onChange: onEmailChange, required: true }), _jsx(Button, { className: styles['button'], label: buttonLabel ?? "Assinar", loading: buttonLoading, disabled: buttonDisabled, onClick: onButtonClick, type: 'submit' })] }), _jsx("div", { className: styles['background-logo'], children: _jsx(Image, { className: styles['logo'], src: scaGradientLogo, fill: true, alt: '' }) })] }));
|
|
12
12
|
}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.input-
|
|
32
|
+
.input-fields {
|
|
33
33
|
width: 100%;
|
|
34
34
|
padding: 0 100px;
|
|
35
35
|
|
|
@@ -55,27 +55,30 @@
|
|
|
55
55
|
max-width: 415px;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
.name,
|
|
60
|
-
.email {
|
|
58
|
+
.input-wrapper {
|
|
61
59
|
width: 100%;
|
|
62
|
-
height: 56px;
|
|
63
60
|
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
.input {
|
|
62
|
+
height: 56px;
|
|
63
|
+
width: 100%;
|
|
66
64
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
padding: 0 24px;
|
|
71
|
-
}
|
|
65
|
+
background: white;
|
|
66
|
+
outline: none;
|
|
72
67
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
border-radius: 8px;
|
|
69
|
+
color: var(--neutral700);
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
padding: 0 24px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.input::placeholder {
|
|
75
|
+
color: var(--neutral500);
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
}
|
|
77
78
|
}
|
|
78
79
|
|
|
80
|
+
|
|
81
|
+
|
|
79
82
|
.button {
|
|
80
83
|
height: 56px;
|
|
81
84
|
|