@prosistemas/sca-web-kit 2.5.3 → 2.6.4
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.
|
@@ -5,6 +5,7 @@ import scaGradientLogo from '@prosistemas/sca-web-kit/assets/logos/sca/sca-s-gra
|
|
|
5
5
|
import InfoHeader from '../info-header/info-header';
|
|
6
6
|
import Button from '../../ui/button/button';
|
|
7
7
|
import { EnvelopeIcon } from '@phosphor-icons/react/dist/ssr';
|
|
8
|
+
import Image from 'next/image';
|
|
8
9
|
export default function NewsletterStrip({ buttonLabel, onButtonClick, onFormSubmit, buttonLoading = false, buttonDisabled = false, emailValue, onEmailChange, nameValue, onNameChange, }) {
|
|
9
|
-
return (_jsxs("div", { className: styles['newsletter-strip'], children: [_jsxs("div", { className: styles['left'], children: [_jsx(EnvelopeIcon, { color: 'white', weight: 'light', size: 48, className: styles['icon'] }), _jsx(InfoHeader, { title: 'Os melhores conte\u00FAdos de tecnologia e fitness', subtitle: 'Assine e receba novidades toda semana em sua caixa de entrada.', className: styles['feature-card'], titleClassName: styles['feature-card-title'], dark: true })] }), _jsxs("form", { className: styles['right'], onSubmit: onFormSubmit, children: [_jsx("input", { className: `${styles['name']} ${inter.className}`, id: "name", type: "text", name: "text", placeholder: "Insira seu nome", value: nameValue, onChange: onNameChange, required: true }), _jsx("input", { className: `${styles['email']} ${inter.className}`, id: "email", type: "email", name: "email", placeholder: "Insira seu e-mail", value: emailValue, onChange: onEmailChange, required: true }), _jsx(Button, { className: styles['button'], onClick: onButtonClick, label: buttonLabel ?? "Assinar", loading: buttonLoading, disabled: buttonDisabled, type: 'submit' }), _jsx("div", { className: styles['blue-hue'] }), _jsx(
|
|
10
|
+
return (_jsxs("div", { className: styles['newsletter-strip'], children: [_jsxs("div", { className: styles['left'], children: [_jsx(EnvelopeIcon, { color: 'white', weight: 'light', size: 48, className: styles['icon'] }), _jsx(InfoHeader, { title: 'Os melhores conte\u00FAdos de tecnologia e fitness', subtitle: 'Assine e receba novidades toda semana em sua caixa de entrada.', className: styles['feature-card'], titleClassName: styles['feature-card-title'], dark: true })] }), _jsxs("form", { className: styles['right'], onSubmit: onFormSubmit, children: [_jsx("input", { className: `${styles['name']} ${inter.className}`, id: "name", type: "text", name: "text", placeholder: "Insira seu nome", value: nameValue, onChange: onNameChange, required: true }), _jsx("input", { className: `${styles['email']} ${inter.className}`, id: "email", type: "email", name: "email", placeholder: "Insira seu e-mail", value: emailValue, onChange: onEmailChange, required: true }), _jsx(Button, { className: styles['button'], onClick: onButtonClick, label: buttonLabel ?? "Assinar", loading: buttonLoading, disabled: buttonDisabled, type: 'submit' }), _jsx("div", { className: styles['blue-hue'] }), _jsx(Image, { src: scaGradientLogo, alt: 'Logo do SCA', width: 243, height: 318, className: styles['background-logo'] })] })] }));
|
|
10
11
|
}
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
position: relative;
|
|
53
53
|
gap: 16px;
|
|
54
54
|
|
|
55
|
-
@media (max-width:
|
|
55
|
+
@media (max-width: 768px) {
|
|
56
56
|
width: 100%;
|
|
57
57
|
flex-direction: column;
|
|
58
58
|
}
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
|
|
72
72
|
color: black;
|
|
73
73
|
|
|
74
|
-
@media (max-width:
|
|
75
|
-
width: 100
|
|
74
|
+
@media (max-width: 768px) {
|
|
75
|
+
width: 100% !important;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
padding: 16px 48px;
|
|
91
91
|
z-index: 1;
|
|
92
92
|
|
|
93
|
-
@media (max-width:
|
|
93
|
+
@media (max-width: 768px) {
|
|
94
94
|
width: 100%;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
transform-origin: bottom center;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
@media (max-width:
|
|
113
|
+
@media (max-width: 768px) {
|
|
114
114
|
display: none;
|
|
115
115
|
}
|
|
116
116
|
}
|