ecomlab-components-next 0.1.302 → 0.1.304

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.
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _image = _interopRequireDefault(require("next/image"));
10
+ var _phone = _interopRequireDefault(require("./img/phone.png"));
11
+ require("./PhoneBlockV3.scss");
12
+ var _ButtonBasicV = _interopRequireDefault(require("../../Buttons/ButtonBasicV2/ButtonBasicV2"));
13
+ var _useReveal = _interopRequireDefault(require("../../../common/hooks/useReveal"));
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
+ function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
16
+ var PhoneBlockV3 = function PhoneBlockV3(_ref) {
17
+ _objectDestructuringEmpty(_ref);
18
+ (0, _useReveal["default"])();
19
+ return /*#__PURE__*/_react["default"].createElement("section", {
20
+ className: "phone-block-v3 reveal"
21
+ }, /*#__PURE__*/_react["default"].createElement("div", {
22
+ className: "phone-block-v3__content"
23
+ }, /*#__PURE__*/_react["default"].createElement("div", {
24
+ className: "phone-block-v3__badge"
25
+ }, "Telegram-\u043A\u0430\u043D\u0430\u043B"), /*#__PURE__*/_react["default"].createElement("h2", {
26
+ className: "phone-block-v3__title"
27
+ }, "\u0417\u0430\u0445\u043E\u0434\u0438 \u0432 \u043D\u0430\u0448 ", /*#__PURE__*/_react["default"].createElement("span", null, "Telegram-\u043A\u0430\u043D\u0430\u043B"), ", \u0442\u0430\u043C \u043C\u044B \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E \u0434\u0435\u043B\u0438\u043C\u0441\u044F \u043F\u043E\u043B\u0435\u0437\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0439 \u0438 \u043D\u0430\u0448\u0438\u043C\u0438 \u043A\u0435\u0439\u0441\u0430\u043C\u0438"), /*#__PURE__*/_react["default"].createElement("p", {
28
+ className: "phone-block-v3__description"
29
+ }, "\u0422\u0430\u043C \u0442\u044B \u043D\u0430\u0439\u0434\u0451\u0448\u044C \u0435\u0434\u0438\u043D\u043E\u043C\u044B\u0448\u043B\u0435\u043D\u043D\u0438\u043A\u043E\u0432, \u043F\u043E\u0434\u0435\u043B\u0438\u0448\u044C\u0441\u044F \u043E\u043F\u044B\u0442\u043E\u043C \u0438 \u0437\u0430\u0434\u0430\u0448\u044C \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B, \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u044B \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0442\u0432\u0435\u0442\u0438\u043C"), /*#__PURE__*/_react["default"].createElement(_ButtonBasicV["default"], {
30
+ className: "phone-block-v3__btn",
31
+ green: true,
32
+ onClick: function onClick() {
33
+ var _window;
34
+ return (_window = window) === null || _window === void 0 ? void 0 : _window.open('https://t.me/itkasha', '_blank');
35
+ },
36
+ text: 'Наши новости →',
37
+ size: "40px"
38
+ })), /*#__PURE__*/_react["default"].createElement("div", {
39
+ className: "phone-block-v3__image-box"
40
+ }, /*#__PURE__*/_react["default"].createElement(_image["default"], {
41
+ className: "phone-block-v3__image",
42
+ src: _phone["default"],
43
+ alt: "Telegram phone"
44
+ })));
45
+ };
46
+ var _default = exports["default"] = PhoneBlockV3;
@@ -0,0 +1,294 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
2
+ @import '../variables.scss';
3
+
4
+ // Палитра варианта 2: небесно-синий градиент + салатовый акцент
5
+ $v3-bg-from: #38bdf8;
6
+ $v3-bg-to: #0369a1;
7
+ $v3-accent: #bef264;
8
+ $v3-badge-text: #111111;
9
+ $v3-text: #ffffff;
10
+ $v3-muted: rgba(255, 255, 255, 0.85);
11
+
12
+ .phone-block-v3 {
13
+ position: relative;
14
+ max-width: 1280px;
15
+ margin: 0 auto;
16
+ background: linear-gradient(135deg, $v3-bg-from, $v3-bg-to);
17
+ color: $v3-text;
18
+ border-radius: 24px;
19
+ display: flex;
20
+ align-items: center;
21
+ justify-content: space-between;
22
+ overflow: hidden;
23
+ box-shadow: 0 12px 36px rgba(3, 105, 161, 0.25);
24
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
25
+
26
+ * {
27
+ font-family: 'Manrope', 'Golos Text', sans-serif !important;
28
+ }
29
+
30
+ // Декоративные круги
31
+ &::before,
32
+ &::after {
33
+ content: '';
34
+ position: absolute;
35
+ border-radius: 50%;
36
+ pointer-events: none;
37
+ }
38
+
39
+ &::before {
40
+ width: 520px;
41
+ height: 520px;
42
+ right: -120px;
43
+ top: -200px;
44
+ background: rgba(255, 255, 255, 0.14);
45
+ }
46
+
47
+ &::after {
48
+ width: 380px;
49
+ height: 380px;
50
+ left: 32%;
51
+ bottom: -260px;
52
+ background: rgba(0, 0, 0, 0.12);
53
+ }
54
+
55
+ &:hover {
56
+ transform: translateY(-4px);
57
+ box-shadow: 0 18px 44px rgba(3, 105, 161, 0.35);
58
+ }
59
+
60
+ &__content {
61
+ position: relative;
62
+ z-index: 1;
63
+ flex: 1;
64
+ padding: 48px 40px 48px 48px;
65
+ }
66
+
67
+ &__badge {
68
+ display: inline-flex;
69
+ align-items: center;
70
+ gap: 8px;
71
+ background: $v3-accent;
72
+ color: $v3-badge-text;
73
+ padding: 6px 14px;
74
+ border-radius: 20px;
75
+ font-size: 13px;
76
+ font-weight: 700;
77
+ margin-bottom: 20px;
78
+
79
+ svg {
80
+ width: 16px;
81
+ height: 16px;
82
+ }
83
+ }
84
+
85
+ &__title {
86
+ font-size: 30px;
87
+ font-weight: 800;
88
+ line-height: 1.2;
89
+ letter-spacing: -1px;
90
+ color: $v3-text;
91
+ margin-bottom: 16px;
92
+
93
+ span {
94
+ color: $v3-accent;
95
+ }
96
+ }
97
+
98
+ &__description {
99
+ font-size: 15px;
100
+ line-height: 1.5;
101
+ color: $v3-muted;
102
+ margin-bottom: 32px;
103
+ max-width: 500px;
104
+ }
105
+
106
+ &__image-box {
107
+ position: relative;
108
+ z-index: 1;
109
+ flex-shrink: 0;
110
+ padding: 24px 48px 24px 0;
111
+ }
112
+
113
+ &__image {
114
+ width: 220px;
115
+ height: auto;
116
+ display: block;
117
+ object-fit: contain;
118
+ filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.3));
119
+ }
120
+
121
+ @keyframes fadeUp {
122
+ from {
123
+ opacity: 0;
124
+ transform: translateY(24px);
125
+ }
126
+ to {
127
+ opacity: 1;
128
+ transform: translateY(0);
129
+ }
130
+ }
131
+ }
132
+
133
+ // Планшет (до 1100px)
134
+ @media (max-width: 1100px) {
135
+ .phone-block-v3 {
136
+ margin: 0 24px;
137
+
138
+ &__title {
139
+ font-size: 26px;
140
+ }
141
+
142
+ &__image {
143
+ width: 200px;
144
+ }
145
+
146
+ &__image-box {
147
+ padding: 24px 40px 24px 0;
148
+ }
149
+ }
150
+ }
151
+
152
+ // Планшет вертикальный (до 900px) - перенос в колонку
153
+ @media (max-width: 900px) {
154
+ .phone-block-v3 {
155
+ flex-direction: column;
156
+
157
+ &::before {
158
+ width: 380px;
159
+ height: 380px;
160
+ right: -140px;
161
+ top: -160px;
162
+ }
163
+
164
+ &::after {
165
+ left: -120px;
166
+ bottom: -240px;
167
+ }
168
+
169
+ &__content {
170
+ padding: 40px 32px 24px;
171
+ text-align: center;
172
+ }
173
+
174
+ &__badge {
175
+ margin-left: auto;
176
+ margin-right: auto;
177
+ }
178
+
179
+ &__description {
180
+ font-size: 14px;
181
+ margin-left: auto;
182
+ margin-right: auto;
183
+ max-width: 100%;
184
+ }
185
+
186
+ &__image-box {
187
+ margin: 0 24px 24px;
188
+ padding: 0;
189
+ display: flex;
190
+ justify-content: center;
191
+ }
192
+
193
+ &__image {
194
+ width: 180px;
195
+ }
196
+ }
197
+ }
198
+
199
+ // Мобильная версия (до 600px)
200
+ @media (max-width: 600px) {
201
+ .phone-block-v3 {
202
+ margin: 0 20px;
203
+ border-radius: 20px;
204
+
205
+ &__title {
206
+ font-size: 24px;
207
+ }
208
+
209
+ &__description {
210
+ font-size: 13px;
211
+ }
212
+
213
+ &__image-box {
214
+ margin: 0 20px 20px;
215
+ }
216
+
217
+ &__image {
218
+ width: 160px;
219
+ }
220
+ }
221
+ }
222
+
223
+ // Мобильная версия (до 480px)
224
+ @media (max-width: 480px) {
225
+ .phone-block-v3 {
226
+ margin: 0 16px;
227
+ border-radius: 20px;
228
+
229
+ &__content {
230
+ padding: 28px 20px 20px;
231
+ }
232
+
233
+ &__title {
234
+ font-size: 22px;
235
+ letter-spacing: -0.5px;
236
+ }
237
+
238
+ &__description {
239
+ font-size: 13px;
240
+ line-height: 1.45;
241
+ }
242
+
243
+ &__image-box {
244
+ margin: 0 16px 20px;
245
+ }
246
+
247
+ &__image {
248
+ width: 140px;
249
+ }
250
+
251
+ &__badge {
252
+ font-size: 12px;
253
+ padding: 4px 12px;
254
+ }
255
+ }
256
+ }
257
+
258
+ // Мобильная версия (до 430px)
259
+ @media (max-width: 430px) {
260
+ .phone-block-v3 {
261
+ margin: 0 20px;
262
+ border-radius: 16px;
263
+
264
+ &__content {
265
+ padding: 24px 16px 16px;
266
+ }
267
+
268
+ &__title {
269
+ font-size: 20px;
270
+ }
271
+
272
+ &__description {
273
+ font-size: 12px;
274
+ }
275
+
276
+ &__image-box {
277
+ margin: 0 12px 16px;
278
+ }
279
+
280
+ &__image {
281
+ width: 120px;
282
+ }
283
+
284
+ &__badge {
285
+ font-size: 11px;
286
+ padding: 3px 10px;
287
+ }
288
+
289
+ &__btn {
290
+ max-width: 100% !important;
291
+ width: 100% !important;
292
+ }
293
+ }
294
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = exports.PhoneBlockV3Test = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _PhoneBlockV = _interopRequireDefault(require("./PhoneBlockV3"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ var _default = exports["default"] = {
11
+ title: 'PhoneBlockV3',
12
+ component: _PhoneBlockV["default"]
13
+ };
14
+ var PhoneBlockV3Test = exports.PhoneBlockV3Test = function PhoneBlockV3Test() {
15
+ return /*#__PURE__*/_react["default"].createElement(_PhoneBlockV["default"], {
16
+ title: "\u0417\u0430\u0445\u043E\u0434\u0438\u0442\u0435 \u0432 \u043D\u0430\u0448 Telegram-\u043A\u0430\u043D\u0430\u043B, \u0442\u0430\u043C \u043C\u044B \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E \u0434\u0435\u043B\u0438\u043C\u0441\u044F \u043F\u043E\u043B\u0435\u0437\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0439 \u0438 \u043D\u0430\u0448\u0438\u043C\u0438 \u043A\u0435\u0439\u0441\u0430\u043C\u0438",
17
+ description: "\u0422\u0430\u043C \u0432\u044B \u043D\u0430\u0439\u0434\u0451\u0442\u0435 \u0435\u0434\u0438\u043D\u043E\u043C\u044B\u0448\u043B\u0435\u043D\u043D\u0438\u043A\u043E\u0432, \u043F\u043E\u0434\u0435\u043B\u0438\u0442\u0435\u0441\u044C \u043E\u043F\u044B\u0442\u043E\u043C \u0438 \n \u0437\u0430\u0434\u0430\u0434\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B, \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u044B \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0442\u0432\u0435\u0442\u0438\u043C"
18
+ });
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.302",
3
+ "version": "0.1.304",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [