@meduza/ui-kit-2 0.2.15 → 0.2.17
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.
- package/dist/ui-kit-2.cjs.development.js +18 -20
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +18 -20
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +2908 -2865
- package/package.json +1 -1
- package/src/AnnouncementInText/AnnouncementInText.module.css +41 -43
- package/src/AnnouncementInText/index.tsx +10 -9
- package/src/DonatesTeaser/DonatesTeaser.module.css +94 -49
- package/src/DonatesTeaser/index.tsx +11 -7
package/package.json
CHANGED
|
@@ -15,38 +15,13 @@
|
|
|
15
15
|
color: #fff;
|
|
16
16
|
border-radius: 8px;
|
|
17
17
|
outline-width: 0;
|
|
18
|
-
background
|
|
18
|
+
background: linear-gradient(111.19deg, #ff6214 36.03%, #ff1111 86.11%);
|
|
19
19
|
|
|
20
20
|
font-family: $secondaryFont;
|
|
21
21
|
|
|
22
22
|
@media $mobile {
|
|
23
23
|
margin: 25px 0 20px;
|
|
24
|
-
padding: 20px
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.root::before,
|
|
29
|
-
.root::after {
|
|
30
|
-
position: absolute;
|
|
31
|
-
|
|
32
|
-
content: '';
|
|
33
|
-
|
|
34
|
-
background-repeat: no-repeat;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.root::after {
|
|
38
|
-
z-index: -1;
|
|
39
|
-
top: 0;
|
|
40
|
-
right: 0;
|
|
41
|
-
bottom: 0;
|
|
42
|
-
left: 0;
|
|
43
|
-
|
|
44
|
-
background-image: url('https://meduza.io/image/attachments/images/007/392/866/original/UjFqeubutYUUyLZMZ157Lg.png');
|
|
45
|
-
background-position: center top;
|
|
46
|
-
background-size: 650px auto;
|
|
47
|
-
|
|
48
|
-
@media $mobile {
|
|
49
|
-
background-image: url('https://meduza.io/image/attachments/images/007/392/874/original/P_6ounOgg_NOpzxMrkjVuA.png');
|
|
24
|
+
padding: 20px 25px 30px 20px;
|
|
50
25
|
}
|
|
51
26
|
}
|
|
52
27
|
|
|
@@ -58,7 +33,8 @@
|
|
|
58
33
|
margin-bottom: 33px;
|
|
59
34
|
|
|
60
35
|
@media $mobile {
|
|
61
|
-
|
|
36
|
+
max-width: 585px;
|
|
37
|
+
margin-bottom: 32px;
|
|
62
38
|
}
|
|
63
39
|
}
|
|
64
40
|
|
|
@@ -70,6 +46,7 @@
|
|
|
70
46
|
|
|
71
47
|
@media $mobile {
|
|
72
48
|
font-size: 18px;
|
|
49
|
+
line-height: 23px;
|
|
73
50
|
}
|
|
74
51
|
}
|
|
75
52
|
|
|
@@ -83,7 +60,7 @@
|
|
|
83
60
|
|
|
84
61
|
@media $mobile {
|
|
85
62
|
max-width: initial;
|
|
86
|
-
margin: 0 0
|
|
63
|
+
margin: 0 0 12px;
|
|
87
64
|
|
|
88
65
|
font-size: 32px;
|
|
89
66
|
line-height: 38px;
|
|
@@ -97,43 +74,55 @@
|
|
|
97
74
|
}
|
|
98
75
|
|
|
99
76
|
.button {
|
|
77
|
+
position: relative;
|
|
78
|
+
|
|
100
79
|
display: block;
|
|
101
80
|
|
|
102
81
|
width: 100%;
|
|
103
|
-
max-width:
|
|
82
|
+
max-width: 432px;
|
|
83
|
+
height: 39px;
|
|
104
84
|
padding: 13px 0;
|
|
105
85
|
|
|
106
86
|
text-align: center;
|
|
87
|
+
text-align: right;
|
|
107
88
|
text-decoration: none;
|
|
108
89
|
letter-spacing: 1px;
|
|
109
90
|
text-transform: uppercase;
|
|
110
91
|
|
|
111
92
|
color: #000;
|
|
112
|
-
border-radius: 25px;
|
|
113
|
-
background-color: #fff;
|
|
114
93
|
|
|
115
94
|
font-size: 12px;
|
|
116
95
|
font-weight: 600;
|
|
117
96
|
line-height: 16px;
|
|
118
97
|
|
|
119
98
|
@media $mobile {
|
|
120
|
-
max-width:
|
|
99
|
+
max-width: 432px;
|
|
100
|
+
height: 39px;
|
|
121
101
|
}
|
|
122
102
|
}
|
|
123
103
|
|
|
104
|
+
.button span {
|
|
105
|
+
display: block;
|
|
106
|
+
margin-left: auto;
|
|
107
|
+
margin-right: 20px;
|
|
108
|
+
}
|
|
109
|
+
|
|
124
110
|
.button:hover {
|
|
125
111
|
opacity: 0.75;
|
|
126
112
|
}
|
|
127
113
|
|
|
128
114
|
.button::after {
|
|
129
115
|
position: absolute;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
116
|
+
top: 50%;
|
|
117
|
+
right: -40px;
|
|
118
|
+
|
|
119
|
+
width: 432px;
|
|
120
|
+
height: 119px;
|
|
135
121
|
|
|
136
122
|
content: '';
|
|
123
|
+
transform: translateY(-50%) translateY(-2px);
|
|
124
|
+
z-index: -1;
|
|
125
|
+
background-image: url("data:image/svg+xml,%3Csvg width='432' height='119' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='.6' filter='url(%23a)'%3E%3Cpath d='M390 59.5s-59.23 17.136-132.26 17.136S125.357 59.5 125.357 59.5s59.231-17.136 132.261-17.136S390 59.5 390 59.5Z' fill='%23fff'/%3E%3C/g%3E%3Cg opacity='.7' filter='url(%23b)'%3E%3Cpath d='M292.5 59.5s-59.646 10.046-133.189 10.046C85.769 69.546 26 59.5 26 59.5s59.646-10.045 133.189-10.045C232.731 49.455 292.5 59.5 292.5 59.5Z' fill='%23fff'/%3E%3C/g%3E%3Cg opacity='.7' filter='url(%23c)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M125.357 58.318a8.864 8.864 0 0 1 8.864-8.863h244.13a8.864 8.864 0 0 1 0 17.727h-244.13a8.864 8.864 0 0 1-8.864-8.864Z' fill='%23fff'/%3E%3C/g%3E%3Cg filter='url(%23d)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M202.036 43.525A19.496 19.496 0 0 1 213.218 40h154.496c10.77 0 19.5 8.73 19.5 19.5s-8.73 19.5-19.5 19.5H213.218c-4.001 0-7.905-1.23-11.182-3.525-11.09-7.763-11.09-24.187 0-31.95Z' fill='%23fff'/%3E%3C/g%3E%3Cg filter='url(%23e)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M202.036 43.525A19.496 19.496 0 0 1 213.218 40h154.496c10.77 0 19.5 8.73 19.5 19.5s-8.73 19.5-19.5 19.5H213.218c-4.001 0-7.905-1.23-11.182-3.525-11.09-7.763-11.09-24.187 0-31.95Z' fill='url(%23f)'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='a' x='83.357' y='.364' width='348.643' height='118.273' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='21' result='effect1_foregroundBlur_2_196'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='23.454' width='318.5' height='72.091' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='13' result='effect1_foregroundBlur_2_196'/%3E%3C/filter%3E%3Cfilter id='c' x='101.357' y='25.454' width='309.857' height='65.727' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='12' result='effect1_foregroundBlur_2_196'/%3E%3C/filter%3E%3Cfilter id='d' x='176.718' y='23' width='227.496' height='73' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='8.5' result='effect1_foregroundBlur_2_196'/%3E%3C/filter%3E%3Cfilter id='e' x='186.718' y='33' width='207.496' height='53' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='3.5' result='effect1_foregroundBlur_2_196'/%3E%3C/filter%3E%3ClinearGradient id='f' x1='377' y1='40' x2='319.429' y2='40' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
|
|
137
126
|
}
|
|
138
127
|
|
|
139
128
|
/* Mods */
|
|
@@ -158,9 +147,18 @@
|
|
|
158
147
|
}
|
|
159
148
|
}
|
|
160
149
|
|
|
161
|
-
.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
150
|
+
.ru.root .button span {
|
|
151
|
+
color: transparent;
|
|
152
|
+
background-image: url("data:image/svg+xml,%3Csvg width='126' height='11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.17 10 7.886 5.352l4.13-4.69H9.035l-2.352 2.8-1.288-2.8H2.68l2.142 4.41L.411 10h2.982l2.618-2.996L7.453 10h2.716ZM12.862 5.926c0 2.562 2.058 4.242 4.732 4.242 3.164 0 5.516-2.422 5.516-5.446 0-2.534-2.058-4.214-4.732-4.214-3.164 0-5.516 2.408-5.516 5.418Zm7.742-1.022c0 1.722-1.232 3.136-2.87 3.136-1.386 0-2.366-.91-2.366-2.268 0-1.722 1.232-3.136 2.87-3.136 1.386 0 2.366.91 2.366 2.268ZM29.403.662h-2.408l-.56 2.562c-.588 2.674.616 3.808 2.814 3.808.77 0 1.512-.196 1.946-.434L30.453 10h2.408L34.905.662h-2.408l-.882 4.004c-.35.14-.84.266-1.358.266-.994 0-1.694-.378-1.456-1.456l.602-2.814ZM41.552 5.03 40.236.662H37.59l2.24 6.692c-.364.462-.686.686-1.26.686-.196 0-.392-.028-.56-.126l-.924 2.072c.322.126.812.182 1.232.182 1.722 0 2.884-.812 3.682-2.002L47.068.662h-2.772L41.552 5.03ZM61.99 10 64.048.662h-8.694L53.296 10h2.408L57.3 2.762h3.878L59.582 10h2.408ZM66.093 5.926c0 2.562 2.058 4.242 4.732 4.242 3.164 0 5.516-2.422 5.516-5.446 0-2.534-2.058-4.214-4.732-4.214-3.164 0-5.516 2.408-5.516 5.418Zm7.742-1.022c0 1.722-1.232 3.136-2.87 3.136-1.386 0-2.366-.91-2.366-2.268 0-1.722 1.232-3.136 2.87-3.136 1.386 0 2.366.91 2.366 2.268ZM88.99 10 91.048.662h-3.43L84.51 5.87 83.71.662H80.45L78.39 10H80.8l1.372-6.216.98 6.216h1.065l3.738-6.216L86.582 10h2.408ZM93.089 5.926c0 2.562 2.058 4.242 4.732 4.242 3.164 0 5.516-2.422 5.516-5.446 0-2.534-2.058-4.214-4.732-4.214-3.164 0-5.516 2.408-5.516 5.418Zm7.742-1.022c0 1.722-1.232 3.136-2.87 3.136-1.386 0-2.366-.91-2.366-2.268 0-1.722 1.232-3.136 2.87-3.136 1.386 0 2.366.91 2.366 2.268ZM109.63.662h-2.408l-.56 2.562c-.588 2.674.616 3.808 2.814 3.808.77 0 1.512-.196 1.946-.434L110.68 10h2.408l2.044-9.338h-2.408l-.882 4.004c-.35.14-.84.266-1.358.266-.994 0-1.694-.378-1.456-1.456l.602-2.814ZM118.81.662 116.766 10h4.634c3.08 0 3.99-2.156 3.99-3.528 0-1.47-1.106-2.674-2.744-2.674h-2.114l.686-3.136h-2.408Zm3.122 5.236c.588 0 .966.322.966.826 0 .7-.602 1.176-1.372 1.176h-1.89l.434-2.002h1.862Z' fill='%23FF4A15'/%3E%3C/svg%3E");
|
|
153
|
+
width: 126px;
|
|
154
|
+
height: 11px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.en.root .button span {
|
|
158
|
+
color: transparent;
|
|
159
|
+
background-image: url("data:image/svg+xml,%3Csvg width='121' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.173 9 3.937.996H1.873L.11 9h2.064Zm16.802 0L23.031.996h-2.376l-2.388 5.34-.192-5.34h-1.572l-2.544 5.34-.036-5.34h-2.268L12.183 9h2.184l2.316-5.016L16.791 9h2.184Zm12.242 0L29.957.996h-2.592L22.59 9h2.34l.684-1.212h3.312L29.081 9h2.136ZM28.77 6.048h-2.232l1.836-3.312.396 3.312ZM41.25 9 43.011.996h-2.076l-1.068 4.86-2.172-4.86h-2.124L33.808 9h2.064l1.116-5.088L39.256 9h1.992Zm7.294 0L49.9 2.796h2.244l.396-1.8H46l-.408 1.8h2.244L46.48 9h2.064ZM62.68 9l1.356-6.204h2.244l.396-1.8h-6.54l-.408 1.8h2.244L60.616 9h2.064Zm5.434-3.492c0 2.196 1.764 3.636 4.056 3.636 2.712 0 4.728-2.076 4.728-4.668 0-2.172-1.764-3.612-4.056-3.612-2.712 0-4.728 2.064-4.728 4.644Zm6.636-.876c0 1.476-1.056 2.688-2.46 2.688-1.188 0-2.028-.78-2.028-1.944 0-1.476 1.056-2.688 2.46-2.688 1.188 0 2.028.78 2.028 1.944ZM91.463 9 93.228.996h-2.064l-.66 2.988h-3.325l.66-2.988h-2.064L84.011 9h2.065l.708-3.216h3.323L89.4 9h2.063Zm9.311 0 .384-1.74h-3.804l.324-1.44h3.708l.384-1.752h-3.708l.288-1.332h3.804l.384-1.74H96.67L94.906 9h5.868Zm8.478 0 .396-1.8h-3.216L107.8.996h-2.064L103.972 9h5.28Zm5.136 0 .588-2.652h1.908c2.652 0 3.432-1.884 3.432-3.06 0-1.26-.948-2.292-2.484-2.292h-3.744L112.324 9h2.064Zm.984-4.464.396-1.8h1.536c.54 0 .876.312.876.768 0 .588-.456 1.032-1.212 1.032h-1.596Z' fill='%23FF4A15'/%3E%3C/svg%3E");
|
|
160
|
+
width: 126px;
|
|
161
|
+
height: 11px;
|
|
162
|
+
background-size: auto 11px;
|
|
163
|
+
background-position: center right;
|
|
166
164
|
}
|
|
@@ -20,19 +20,20 @@ export const AnnouncementInText: React.FC<AnnouncementInTextProps> = ({
|
|
|
20
20
|
|
|
21
21
|
const data = {
|
|
22
22
|
ru: {
|
|
23
|
-
title:
|
|
23
|
+
title:
|
|
24
|
+
'Поддержите «Медузу». Сейчас. Это критически важно',
|
|
24
25
|
text:
|
|
25
|
-
'
|
|
26
|
-
button: '
|
|
27
|
-
href: 'https://mdza.io/
|
|
26
|
+
'Мы готовимся к худшему. Из-за войны с Украиной власти могут начать блокировать независимые СМИ в любой момент. В то же время международные санкции в отношении Центробанка и других российских кредитных организаций создают серьезные риски для нашего краудфандинга. Поэтому мы просим вас помочь нашей редакции. Прямо сейчас. Что важно знать: мы независимое издание, мы работаем только в интересах наших читателей, мы не планируем закрываться. Несмотря ни на что. Спасибо вам!',
|
|
27
|
+
button: 'Хочу помочь',
|
|
28
|
+
href: 'https://mdza.io/wd88xQv_-Uw'
|
|
28
29
|
},
|
|
29
30
|
|
|
30
31
|
en: {
|
|
31
|
-
title: 'Meduza needs your
|
|
32
|
+
title: 'Meduza needs your support. We need it now, like never before.',
|
|
32
33
|
text:
|
|
33
|
-
'
|
|
34
|
-
button: 'I
|
|
35
|
-
href: 'https://mdza.io/
|
|
34
|
+
'We are preparing for the worst. Due to the war with Ukraine, the Russian authorities could begin blocking the country’s independent media at any moment. International sanctions against the Central Bank and other Russian credit organizations are creating serious risks for own crowdfunding. That’s why we’re asking you to support our newsroom. Right now. What you should know: We are an independent publication. We work only in the interests of our readers. We have no plans to close, come hell or high water. Thank you, everyone!',
|
|
35
|
+
button: 'I want to help',
|
|
36
|
+
href: 'https://mdza.io/wd88xQv_-Uw'
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -58,7 +59,7 @@ export const AnnouncementInText: React.FC<AnnouncementInTextProps> = ({
|
|
|
58
59
|
target="_blank"
|
|
59
60
|
rel="noreferrer"
|
|
60
61
|
>
|
|
61
|
-
{localeData.button}
|
|
62
|
+
<span>{localeData.button}</span>
|
|
62
63
|
</a>
|
|
63
64
|
</div>
|
|
64
65
|
</div>
|
|
@@ -5,40 +5,68 @@
|
|
|
5
5
|
z-index: 10;
|
|
6
6
|
|
|
7
7
|
display: block;
|
|
8
|
-
|
|
9
|
-
margin: calc(15rem / 16) -20px;
|
|
10
|
-
padding: 42px 20px 50px;
|
|
11
8
|
overflow: hidden;
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
height: 265px;
|
|
11
|
+
margin: calc(15rem / 16) -20px;
|
|
12
|
+
padding: 42px 20px 0;
|
|
14
13
|
|
|
15
14
|
text-decoration: none;
|
|
16
15
|
|
|
16
|
+
outline-width: 0;
|
|
17
17
|
background-color: #000;
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
font-family: $secondaryFont;
|
|
20
20
|
|
|
21
21
|
@media $mobile {
|
|
22
|
+
height: 276px;
|
|
22
23
|
margin: 25px 0 20px;
|
|
23
|
-
padding:
|
|
24
|
+
padding: 43px 30px 0;
|
|
24
25
|
|
|
25
26
|
border-radius: 8px;
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
.root::before {
|
|
31
|
+
position: absolute;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
left: 50%;
|
|
34
|
+
|
|
35
|
+
width: 562px;
|
|
36
|
+
height: 265px;
|
|
37
|
+
|
|
38
|
+
content: '';
|
|
39
|
+
transform: translateX(-50%);
|
|
40
|
+
|
|
41
|
+
background-image: url('https://meduza.io/image/attachments/images/007/552/572/original/ueAzJ8Fmv5cW0Vq5CFameQ.png');
|
|
42
|
+
background-size: 562px 265px;
|
|
43
|
+
|
|
44
|
+
@media $mobile {
|
|
45
|
+
width: 650px;
|
|
46
|
+
height: 276px;
|
|
47
|
+
|
|
48
|
+
background-image: url('https://meduza.io/image/attachments/images/007/552/505/original/GHXO5V03ilpgyB6N5WG_IA.png');
|
|
49
|
+
background-size: 650px 276px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
29
53
|
.main {
|
|
30
|
-
max-width:
|
|
54
|
+
max-width: 300px;
|
|
31
55
|
margin: 0 auto;
|
|
32
56
|
|
|
33
|
-
|
|
57
|
+
transform: translateZ(0);
|
|
34
58
|
text-align: center;
|
|
35
59
|
|
|
36
|
-
|
|
60
|
+
color: #fff;
|
|
61
|
+
|
|
62
|
+
@media $mobile {
|
|
63
|
+
max-width: 528px;
|
|
64
|
+
}
|
|
37
65
|
}
|
|
38
66
|
|
|
39
67
|
.title {
|
|
40
|
-
font-weight: 700;
|
|
41
68
|
font-size: 20px;
|
|
69
|
+
font-weight: 700;
|
|
42
70
|
line-height: 25px;
|
|
43
71
|
|
|
44
72
|
@media $mobile {
|
|
@@ -48,14 +76,11 @@
|
|
|
48
76
|
}
|
|
49
77
|
|
|
50
78
|
.text {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
margin: 0;
|
|
54
|
-
|
|
55
|
-
font-weight: normal;
|
|
56
|
-
font-size: 21px;
|
|
79
|
+
margin: 0 auto;
|
|
57
80
|
|
|
58
81
|
font-family: $primaryFont;
|
|
82
|
+
font-size: 21px;
|
|
83
|
+
font-weight: normal;
|
|
59
84
|
line-height: 25px;
|
|
60
85
|
|
|
61
86
|
@media $mobile {
|
|
@@ -66,8 +91,8 @@
|
|
|
66
91
|
|
|
67
92
|
.cta {
|
|
68
93
|
display: flex;
|
|
69
|
-
flex-flow: column nowrap;
|
|
70
94
|
align-items: center;
|
|
95
|
+
flex-flow: column nowrap;
|
|
71
96
|
justify-content: center;
|
|
72
97
|
|
|
73
98
|
margin-top: 45px;
|
|
@@ -80,53 +105,39 @@
|
|
|
80
105
|
.cta a {
|
|
81
106
|
display: block;
|
|
82
107
|
|
|
83
|
-
color: #fff;
|
|
84
|
-
font-weight: 600;
|
|
85
|
-
|
|
86
|
-
font-size: 11px;
|
|
87
|
-
line-height: 16px;
|
|
88
|
-
letter-spacing: 1px;
|
|
89
|
-
|
|
90
108
|
text-align: center;
|
|
91
|
-
text-transform: uppercase;
|
|
92
109
|
text-decoration: none;
|
|
93
110
|
|
|
94
|
-
|
|
95
|
-
|
|
111
|
+
color: transparent;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.cta::before {
|
|
115
|
+
position: absolute;
|
|
116
|
+
left: 50%;
|
|
117
|
+
|
|
118
|
+
width: 200px;
|
|
119
|
+
|
|
120
|
+
content: '';
|
|
121
|
+
transform: translateX(-50%);
|
|
122
|
+
|
|
123
|
+
background-repeat: no-repeat;
|
|
124
|
+
background-position: center;
|
|
125
|
+
background-size: contain;
|
|
96
126
|
}
|
|
97
127
|
|
|
98
128
|
.cta a::after {
|
|
99
129
|
position: absolute;
|
|
130
|
+
z-index: 1;
|
|
100
131
|
top: 0;
|
|
101
132
|
right: 0;
|
|
102
133
|
bottom: 0;
|
|
103
134
|
left: 0;
|
|
104
|
-
z-index: 1;
|
|
105
135
|
|
|
106
136
|
content: '';
|
|
107
137
|
}
|
|
108
138
|
|
|
109
|
-
.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
display: block;
|
|
113
|
-
|
|
114
|
-
width: 192px;
|
|
115
|
-
padding: 14px 0 13px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.ctaInner::after {
|
|
119
|
-
position: absolute;
|
|
120
|
-
top: 50%;
|
|
121
|
-
left: 50%;
|
|
122
|
-
z-index: -1;
|
|
123
|
-
|
|
124
|
-
width: 278px;
|
|
125
|
-
height: 130px;
|
|
126
|
-
background-image: url("data:image/svg+xml,%3Csvg width='278' height='130' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23a)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M234 65c0 11.598-9.402 21-21 21H65c-11.598 0-21-9.402-21-21s9.402-21 21-21h148c11.598 0 21 9.402 21 21Z' fill='url(%23b)'/%3E%3C/g%3E%3Cg filter='url(%23c)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M234 65c0 11.598-9.402 21-21 21H65c-11.598 0-21-9.402-21-21s9.402-21 21-21h148c11.598 0 21 9.402 21 21Z' fill='url(%23d)'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='b' x1='230.935' y1='65' x2='44' y2='65' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23FFBA54'/%3E%3Cstop offset='1' stop-color='%23907EFF'/%3E%3C/linearGradient%3E%3ClinearGradient id='d' x1='230.935' y1='65' x2='44' y2='65' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23FFBA54'/%3E%3Cstop offset='1' stop-color='%23907EFF'/%3E%3C/linearGradient%3E%3Cfilter id='a' x='0' y='0' width='278' height='130' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='22' result='effect1_foregroundBlur_5_151'/%3E%3C/filter%3E%3Cfilter id='c' x='15' y='15' width='248' height='100' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='14.5' result='effect1_foregroundBlur_5_151'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
|
|
127
|
-
transform: translate(-50%, -50%);
|
|
128
|
-
|
|
129
|
-
content: '';
|
|
139
|
+
.cta span {
|
|
140
|
+
visibility: hidden;
|
|
130
141
|
}
|
|
131
142
|
|
|
132
143
|
.center {
|
|
@@ -148,3 +159,37 @@
|
|
|
148
159
|
margin-left: 0;
|
|
149
160
|
}
|
|
150
161
|
}
|
|
162
|
+
|
|
163
|
+
.ru .cta::before {
|
|
164
|
+
bottom: 65px;
|
|
165
|
+
|
|
166
|
+
height: 8px;
|
|
167
|
+
|
|
168
|
+
background-image: url("data:image/svg+xml,%3Csvg width='126' height='11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.17 10 7.886 5.352l4.13-4.69H9.035l-2.352 2.8-1.288-2.8H2.68l2.142 4.41L.411 10h2.982l2.618-2.996L7.453 10h2.716ZM12.862 5.926c0 2.562 2.058 4.242 4.732 4.242 3.164 0 5.516-2.422 5.516-5.446 0-2.534-2.058-4.214-4.732-4.214-3.164 0-5.516 2.408-5.516 5.418Zm7.742-1.022c0 1.722-1.232 3.136-2.87 3.136-1.386 0-2.366-.91-2.366-2.268 0-1.722 1.232-3.136 2.87-3.136 1.386 0 2.366.91 2.366 2.268ZM29.403.662h-2.408l-.56 2.562c-.588 2.674.616 3.808 2.814 3.808.77 0 1.512-.196 1.946-.434L30.453 10h2.408L34.905.662h-2.408l-.882 4.004c-.35.14-.84.266-1.358.266-.994 0-1.694-.378-1.456-1.456l.602-2.814ZM41.552 5.03 40.236.662H37.59l2.24 6.692c-.364.462-.686.686-1.26.686-.196 0-.392-.028-.56-.126l-.924 2.072c.322.126.812.182 1.232.182 1.722 0 2.884-.812 3.682-2.002L47.068.662h-2.772L41.552 5.03ZM61.99 10 64.048.662h-8.694L53.296 10h2.408L57.3 2.762h3.878L59.582 10h2.408ZM66.093 5.926c0 2.562 2.058 4.242 4.732 4.242 3.164 0 5.516-2.422 5.516-5.446 0-2.534-2.058-4.214-4.732-4.214-3.164 0-5.516 2.408-5.516 5.418Zm7.742-1.022c0 1.722-1.232 3.136-2.87 3.136-1.386 0-2.366-.91-2.366-2.268 0-1.722 1.232-3.136 2.87-3.136 1.386 0 2.366.91 2.366 2.268ZM88.99 10 91.048.662h-3.43L84.51 5.87 83.71.662H80.45L78.39 10H80.8l1.372-6.216.98 6.216h1.065l3.738-6.216L86.582 10h2.408ZM93.089 5.926c0 2.562 2.058 4.242 4.732 4.242 3.164 0 5.516-2.422 5.516-5.446 0-2.534-2.058-4.214-4.732-4.214-3.164 0-5.516 2.408-5.516 5.418Zm7.742-1.022c0 1.722-1.232 3.136-2.87 3.136-1.386 0-2.366-.91-2.366-2.268 0-1.722 1.232-3.136 2.87-3.136 1.386 0 2.366.91 2.366 2.268ZM109.63.662h-2.408l-.56 2.562c-.588 2.674.616 3.808 2.814 3.808.77 0 1.512-.196 1.946-.434L110.68 10h2.408l2.044-9.338h-2.408l-.882 4.004c-.35.14-.84.266-1.358.266-.994 0-1.694-.378-1.456-1.456l.602-2.814ZM118.81.662 116.766 10h4.634c3.08 0 3.99-2.156 3.99-3.528 0-1.47-1.106-2.674-2.744-2.674h-2.114l.686-3.136h-2.408Zm3.122 5.236c.588 0 .966.322.966.826 0 .7-.602 1.176-1.372 1.176h-1.89l.434-2.002h1.862Z' fill='%23fff'/%3E%3C/svg%3E");
|
|
169
|
+
|
|
170
|
+
@media $mobile {
|
|
171
|
+
bottom: 70px;
|
|
172
|
+
|
|
173
|
+
height: 11px;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.en .cta::before {
|
|
178
|
+
bottom: 65px;
|
|
179
|
+
|
|
180
|
+
height: 8px;
|
|
181
|
+
|
|
182
|
+
background-image: url("data:image/svg+xml,%3Csvg width='136' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.408 9.492 4.466.154H2.058L0 9.492h2.408ZM21.344 9.492 26.076.154h-2.772l-2.786 6.23-.224-6.23H18.46l-2.968 6.23-.042-6.23h-2.646l.616 9.338h2.548L18.67 3.64l.126 5.852h2.548ZM35.293 9.492 33.823.154h-3.024l-5.572 9.338h2.73l.798-1.414h3.864l.182 1.414h2.492Zm-2.856-3.444h-2.604l2.142-3.864.462 3.864ZM46.662 9.492 48.72.154h-2.422l-1.246 5.67-2.534-5.67H40.04l-2.058 9.338h2.408l1.302-5.936 2.646 5.936h2.324ZM54.84 9.492l1.582-7.238h2.618l.462-2.1h-7.63l-.476 2.1h2.618l-1.582 7.238h2.408ZM70.666 9.492l1.582-7.238h2.618l.462-2.1h-7.63l-.476 2.1h2.618l-1.582 7.238h2.408ZM76.672 5.418c0 2.562 2.058 4.242 4.732 4.242 3.164 0 5.516-2.422 5.516-5.446C86.92 1.68 84.862 0 82.188 0c-3.164 0-5.516 2.408-5.516 5.418Zm7.742-1.022c0 1.722-1.232 3.136-2.87 3.136-1.386 0-2.366-.91-2.366-2.268 0-1.722 1.232-3.136 2.87-3.136 1.386 0 2.366.91 2.366 2.268ZM103.247 9.492l2.058-9.338h-2.408l-.77 3.486h-3.878l.77-3.486H96.61l-2.058 9.338h2.408l.826-3.752h3.878l-.826 3.752h2.408ZM113.776 9.492l.448-2.03h-4.438l.378-1.68h4.326l.448-2.044h-4.326l.336-1.554h4.438l.448-2.03h-6.846l-2.058 9.338h6.846ZM123.334 9.492l.462-2.1h-3.752L121.64.154h-2.408l-2.058 9.338h6.16ZM128.992 9.492l.686-3.094h2.226c3.094 0 4.004-2.198 4.004-3.57 0-1.47-1.106-2.674-2.898-2.674h-4.368l-2.058 9.338h2.408Zm1.148-5.208.462-2.1h1.792c.63 0 1.022.364 1.022.896 0 .686-.532 1.204-1.414 1.204h-1.862Z' fill='%23fff'/%3E%3C/svg%3E");
|
|
183
|
+
|
|
184
|
+
@media $mobile {
|
|
185
|
+
bottom: 70px;
|
|
186
|
+
|
|
187
|
+
height: 10px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.ru .text {
|
|
192
|
+
@media $mobile {
|
|
193
|
+
display: block;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
@@ -9,7 +9,10 @@ export const DonatesTeaser: React.FC<DonatesTeaserProps> = ({
|
|
|
9
9
|
styleContext,
|
|
10
10
|
lang = 'ru'
|
|
11
11
|
}) => {
|
|
12
|
-
let classNames: ClassNames = [
|
|
12
|
+
let classNames: ClassNames = [
|
|
13
|
+
[styles.root, true],
|
|
14
|
+
[styles[lang], styles[lang]]
|
|
15
|
+
]
|
|
13
16
|
|
|
14
17
|
if (styleContext) {
|
|
15
18
|
classNames = makeStyleContext(classNames, styleContext, styles)
|
|
@@ -17,14 +20,15 @@ export const DonatesTeaser: React.FC<DonatesTeaserProps> = ({
|
|
|
17
20
|
|
|
18
21
|
const data = {
|
|
19
22
|
ru: {
|
|
20
|
-
title:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
title:
|
|
24
|
+
'«Медуза». Работаем 24/7. И только в интересах читателей',
|
|
25
|
+
subtitle: 'Нам срочно нужна ваша поддержка',
|
|
26
|
+
button: 'Хочу помочь',
|
|
23
27
|
href: 'https://mdza.io/WP4YuV4xTEM'
|
|
24
28
|
},
|
|
25
29
|
en: {
|
|
26
|
-
title: 'Meduza
|
|
27
|
-
subtitle: '
|
|
30
|
+
title: 'Meduza, working 24/7, always for our readers',
|
|
31
|
+
subtitle: 'We need your help like never before',
|
|
28
32
|
button: 'Okay!',
|
|
29
33
|
href: 'https://mdza.io/qopxag5BGec'
|
|
30
34
|
}
|
|
@@ -45,7 +49,7 @@ export const DonatesTeaser: React.FC<DonatesTeaserProps> = ({
|
|
|
45
49
|
|
|
46
50
|
<div className={styles.cta}>
|
|
47
51
|
<a href={data[lang].href} target="_blank" rel="noreferrer">
|
|
48
|
-
<span
|
|
52
|
+
<span>{data[lang].button}</span>
|
|
49
53
|
</a>
|
|
50
54
|
</div>
|
|
51
55
|
</div>
|