@meduza/ui-kit-2 0.2.3 → 0.2.5

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.3",
2
+ "version": "0.2.5",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -0,0 +1,188 @@
1
+ @import '../vars.css';
2
+
3
+ .root {
4
+ position: relative;
5
+ z-index: 10;
6
+
7
+ display: block;
8
+ overflow: hidden;
9
+
10
+ margin: calc(15rem / 16) 0;
11
+ padding: 55px 12px 12px;
12
+
13
+ text-decoration: none;
14
+
15
+ color: #000;
16
+ border-radius: 8px;
17
+ outline-width: 0;
18
+ background-color: #f7f7f7;
19
+
20
+ font-family: $secondaryFont;
21
+
22
+ @media $mobile {
23
+ min-height: 302px;
24
+ margin: 25px 0 20px;
25
+ padding: 20px 35px 20px 20px;
26
+ }
27
+ }
28
+
29
+ .root::before,
30
+ .root::after {
31
+ position: absolute;
32
+
33
+ content: '';
34
+
35
+ background-repeat: no-repeat;
36
+ }
37
+
38
+ .root::before {
39
+ z-index: 1;
40
+ top: 0;
41
+ right: 0;
42
+
43
+ width: 133px;
44
+ height: 94px;
45
+
46
+ background-image: url('https://meduza.io/image/attachments/images/007/350/982/original/Rf-ceQIzOIuzPr1dkhgsyg.png');
47
+ background-size: 133px 94px;
48
+
49
+ @media $mobile {
50
+ width: 178px;
51
+ height: 66px;
52
+
53
+ background-image: url('https://meduza.io/image/attachments/images/007/350/467/original/WaQIwXV75NXWXqWQFp_MGQ.png');
54
+ background-size: 178px 66px;
55
+ }
56
+ }
57
+
58
+ .root::after {
59
+ z-index: -1;
60
+ top: 0;
61
+ right: 0;
62
+ bottom: 0;
63
+ left: 0;
64
+
65
+ background-image: url('https://meduza.io/image/attachments/images/007/351/482/original/Qm9dzko-_FjCOXoJJCjV2g.png');
66
+ background-position: center bottom;
67
+ background-size: 650px 170px;
68
+
69
+ @media $mobile {
70
+ background-image: url('https://meduza.io/image/attachments/images/007/350/475/original/qs_KJfUrIyxzMx0mvk8-jg.png');
71
+ background-size: 100% auto;
72
+ }
73
+ }
74
+
75
+ .body {
76
+ position: relative;
77
+ z-index: 10;
78
+
79
+ max-width: 545px;
80
+ margin-bottom: 33px;
81
+
82
+ @media $mobile {
83
+ margin-bottom: 60px;
84
+ }
85
+ }
86
+
87
+ .body p {
88
+ margin: 0;
89
+
90
+ font-size: 16px;
91
+ line-height: 22px;
92
+
93
+ @media $mobile {
94
+ font-size: 18px;
95
+ }
96
+ }
97
+
98
+ .title {
99
+ max-width: 315px;
100
+ margin: 0 0 10px;
101
+
102
+ font-size: 27px;
103
+ font-weight: 700;
104
+ line-height: 30px;
105
+
106
+ @media $mobile {
107
+ max-width: initial;
108
+ margin: 0 0 10px;
109
+
110
+ font-size: 32px;
111
+ line-height: 38px;
112
+ }
113
+ }
114
+
115
+ .footer {
116
+ display: flex;
117
+ flex-flow: row nowrap;
118
+ justify-content: flex-end;
119
+ }
120
+
121
+ .button {
122
+ display: block;
123
+
124
+ width: 100%;
125
+ max-width: 315px;
126
+ padding: 13px 0;
127
+
128
+ text-align: center;
129
+ text-decoration: none;
130
+ letter-spacing: 1px;
131
+ text-transform: uppercase;
132
+
133
+ color: #fff;
134
+ border-radius: 25px;
135
+ background-color: #000;
136
+
137
+ font-size: 12px;
138
+ font-weight: 600;
139
+ line-height: 16px;
140
+
141
+ @media $mobile {
142
+ max-width: 315px;
143
+ }
144
+ }
145
+
146
+ .button:hover {
147
+ background-color: #8064e2;
148
+ }
149
+
150
+ .button::after {
151
+ position: absolute;
152
+ z-index: 20;
153
+ top: 0;
154
+ right: 0;
155
+ bottom: 0;
156
+ left: 0;
157
+
158
+ content: '';
159
+ }
160
+
161
+ /* Mods */
162
+
163
+ .center {
164
+ @media $mobile {
165
+ width: 100%;
166
+ max-width: 650px;
167
+ margin-right: auto;
168
+ margin-left: auto;
169
+ }
170
+ }
171
+
172
+ .isInCard,
173
+ .isInSlide {
174
+ margin-right: -11px;
175
+ margin-left: -11px;
176
+
177
+ @media $mobile {
178
+ margin-right: 0;
179
+ margin-left: 0;
180
+ }
181
+ }
182
+
183
+ .en.root::before {
184
+ @media $mobileMax {
185
+ top: -8px;
186
+ right: -23px;
187
+ }
188
+ }
@@ -0,0 +1,5 @@
1
+ @import '../vars.css';
2
+
3
+ .root {
4
+ display: block;
5
+ }
@@ -0,0 +1,35 @@
1
+ import React from 'react'
2
+ import { AnnouncementInText } from './'
3
+ import { PreviewWrapper } from '../_storybook/PreviewWrapper'
4
+
5
+ import styles from './AnnouncementInText.stories.module.css'
6
+
7
+ export default {
8
+ title: 'Main / AnnouncementInText',
9
+ component: AnnouncementInText,
10
+ parameters: {
11
+ themeWrapperSideBySide: true
12
+ }
13
+ }
14
+
15
+ const Example: React.FC = () => {
16
+ return (
17
+ <>
18
+ <div className={styles.root}>
19
+ <AnnouncementInText lang="ru" styleContext={['center']} />
20
+ <AnnouncementInText lang="en" styleContext={['center']} />
21
+ </div>
22
+ </>
23
+ )
24
+ }
25
+
26
+ export const Default: React.FC = () => (
27
+ <>
28
+ <PreviewWrapper theme="light">
29
+ <Example />
30
+ </PreviewWrapper>
31
+ <PreviewWrapper theme="dark">
32
+ <Example />
33
+ </PreviewWrapper>
34
+ </>
35
+ )
@@ -0,0 +1,20 @@
1
+ import React from 'react'
2
+ import { render } from '@testing-library/react'
3
+ import { AnnouncementInText } from './'
4
+ import { AnnouncementInTextProps } from './AnnouncementInText.types'
5
+
6
+ import styles from './AnnouncementInText.module.css'
7
+
8
+ describe('Announcement In Text', () => {
9
+ let props: AnnouncementInTextProps
10
+
11
+ const renderComponent = () => render(<AnnouncementInText {...props} />)
12
+
13
+ it('should have root style', () => {
14
+ const { getByTestId } = renderComponent()
15
+
16
+ const announcementInText = getByTestId('announcement-in-text')
17
+
18
+ expect(announcementInText).toHaveClass(styles.root)
19
+ })
20
+ })
@@ -0,0 +1,4 @@
1
+ export interface AnnouncementInTextProps {
2
+ styleContext: string[] | string
3
+ lang: 'ru' | 'en'
4
+ }
@@ -0,0 +1,61 @@
1
+ import React from 'react'
2
+ import { AnnouncementInTextProps } from './AnnouncementInText.types'
3
+ import { makeClassName, ClassNames } from '../utils/makeClassName'
4
+ import makeStyleContext from '../utils/makeStyleContext'
5
+
6
+ import styles from './AnnouncementInText.module.css'
7
+
8
+ export const AnnouncementInText: React.FC<AnnouncementInTextProps> = ({
9
+ styleContext,
10
+ lang = 'ru'
11
+ }) => {
12
+ let classNames: ClassNames = [
13
+ [styles.root, true],
14
+ [styles[lang], styles[lang]]
15
+ ]
16
+
17
+ if (styleContext) {
18
+ classNames = makeStyleContext(classNames, styleContext, styles)
19
+ }
20
+
21
+ const data = {
22
+ ru: {
23
+ title: 'Подарите себе «Медузу»',
24
+ text:
25
+ 'В&nbsp;2021 году &laquo;Медуза&raquo; смогла выжить&nbsp;&mdash; благодаря читателям. Но&nbsp;нам по-прежнему нужна поддержка. Один раз или регулярно, маленькая сумма или большая&nbsp;&mdash; любая помощь критически важна. В&nbsp;2022-м наша редакция может рассчитывать только на&nbsp;вас. А&nbsp;вы&nbsp;знаете, что делать.',
26
+ button: 'О да, я знаю!',
27
+ href: 'https://support.meduza.io'
28
+ },
29
+
30
+ en: {
31
+ title: 'This holiday season, make Meduza your gift to&nbsp;yourself',
32
+ text:
33
+ 'Meduza survived 2021 thanks to readers like&nbsp;you. To make it through another year, we need your continued support. One-time contributions and especially recurring donations will sustain Meduza’s work in 2022. Whatever you can give, your help is critical. The future of our newsroom is in your hands. You know what to do.',
34
+ button: 'Let’s do this!',
35
+ href: 'https://support.meduza.io/en'
36
+ }
37
+ }
38
+
39
+ const localeData = data[lang]
40
+
41
+ return (
42
+ <div
43
+ data-testid="announcement-in-text"
44
+ className={makeClassName(classNames)}
45
+ >
46
+ <div className={styles.body}>
47
+ <h3
48
+ className={styles.title}
49
+ dangerouslySetInnerHTML={{ __html: localeData.title }}
50
+ />
51
+ <p dangerouslySetInnerHTML={{ __html: localeData.text }} />
52
+ </div>
53
+
54
+ <div className={styles.footer}>
55
+ <a className={styles.button} href={localeData.href}>
56
+ {localeData.button}
57
+ </a>
58
+ </div>
59
+ </div>
60
+ )
61
+ }
@@ -7,7 +7,7 @@
7
7
  display: block;
8
8
 
9
9
  margin: calc(15rem / 16) -20px;
10
- padding: 42px 20px 50px;
10
+ padding: 67px 20px 70px;
11
11
  overflow: hidden;
12
12
 
13
13
  font-family: $secondaryFont;
@@ -20,7 +20,7 @@
20
20
 
21
21
  @media $mobile {
22
22
  margin: 25px 0 20px;
23
- padding: 48px 30px;
23
+ padding: 59px 30px 73px;
24
24
 
25
25
  border-radius: 8px;
26
26
  }
@@ -47,6 +47,27 @@
47
47
  }
48
48
  }
49
49
 
50
+ .title::after {
51
+ display: inline-block;
52
+
53
+ width: 21px;
54
+ height: 21px;
55
+
56
+ vertical-align: text-top;
57
+
58
+ background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12.735c1.089 3.09 5.133 9.759 7.467 10.247C12.397 23.593 21.133 8.832 23 2' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
59
+ background-size: 21px;
60
+
61
+ content: '';
62
+
63
+ @media $mobile {
64
+ width: 25px;
65
+ height: 25px;
66
+
67
+ background-size: 25px;
68
+ }
69
+ }
70
+
50
71
  .text {
51
72
  display: block;
52
73
 
@@ -70,13 +91,19 @@
70
91
  align-items: center;
71
92
  justify-content: center;
72
93
 
73
- margin-top: 45px;
94
+ margin-top: 35px;
95
+
96
+ transition: opacity 350ms ease;
74
97
 
75
98
  @media $mobile {
76
- margin-top: 40px;
99
+ margin-top: 33px;
77
100
  }
78
101
  }
79
102
 
103
+ .cta:hover {
104
+ opacity: 0.75;
105
+ }
106
+
80
107
  .cta a {
81
108
  display: block;
82
109
 
@@ -91,8 +118,11 @@
91
118
  text-transform: uppercase;
92
119
  text-decoration: none;
93
120
 
94
- background-color: #000;
95
121
  border-radius: 30px;
122
+
123
+ @media $mobile {
124
+ font-size: 14px;
125
+ }
96
126
  }
97
127
 
98
128
  .cta a::after {
@@ -121,12 +151,20 @@
121
151
  left: 50%;
122
152
  z-index: -1;
123
153
 
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");
154
+ width: 602px;
155
+ height: 81px;
156
+
157
+ background-image: url("data:image/svg+xml,%3Csvg width='602' height='81' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23a)'%3E%3Cpath d='M182.424 30h237.153c12.262 1.63 12.262 19.37 0 21H182.424c-12.262-1.63-12.262-19.37 0-21Z' fill='url(%23b)'/%3E%3C/g%3E%3Cg opacity='.2' filter='url(%23c)'%3E%3Cpath d='M456.062 53H145.938c-12.648-1.286-12.648-19.714 0-21h310.124c12.648 1.286 12.648 19.714 0 21Z' fill='url(%23d)'/%3E%3C/g%3E%3Cg filter='url(%23e)'%3E%3Cpath d='M176.905 36h248.19L568 41.5 425.095 47h-248.19L34 41.5 176.905 36Z' fill='url(%23f)'/%3E%3C/g%3E%3Cg filter='url(%23g)'%3E%3Crect x='214.245' y='23' width='173.508' height='35' rx='17.5' fill='url(%23h)'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='b' x1='134.578' y1='40.956' x2='475.16' y2='40.67' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23B851FF'/%3E%3Cstop offset='.247' stop-color='%238372FF' stop-opacity='.01'/%3E%3Cstop offset='.501' stop-color='%234C94FF'/%3E%3Cstop offset='.747' stop-color='%2339C0B5' stop-opacity='.19'/%3E%3Cstop offset='1' stop-color='%2326EA6D'/%3E%3C/linearGradient%3E%3ClinearGradient id='d' x1='518.63' y1='42.044' x2='73.253' y2='42.534' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23B851FF'/%3E%3Cstop offset='.247' stop-color='%238372FF' stop-opacity='.01'/%3E%3Cstop offset='.501' stop-color='%234C94FF'/%3E%3Cstop offset='.747' stop-color='%2339C0B5' stop-opacity='.19'/%3E%3Cstop offset='1' stop-color='%2326EA6D'/%3E%3C/linearGradient%3E%3ClinearGradient id='f' x1='73.191' y1='41.5' x2='536.402' y2='41.5' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%239F39E4'/%3E%3Cstop offset='.501' stop-color='%234C94FF'/%3E%3Cstop offset='1' stop-color='%2326EA6D'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='226.979' y1='40.5' x2='377.486' y2='40.5' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23B851FF'/%3E%3Cstop offset='.501' stop-color='%234C94FF'/%3E%3Cstop offset='1' stop-color='%2326EA6D'/%3E%3C/linearGradient%3E%3Cfilter id='a' x='150.228' y='7' width='301.546' height='67' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='11.5' result='effect1_foregroundBlur_0_3'/%3E%3C/filter%3E%3Cfilter id='c' x='113.452' y='9' width='375.096' height='67' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='11.5' result='effect1_foregroundBlur_0_3'/%3E%3C/filter%3E%3Cfilter id='e' x='0' y='2' width='602' height='79' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='17' result='effect1_foregroundBlur_0_3'/%3E%3C/filter%3E%3Cfilter id='g' x='191.245' y='0' width='219.508' height='81' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='11.5' result='effect1_foregroundBlur_0_3'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
127
158
  transform: translate(-50%, -50%);
128
159
 
129
160
  content: '';
161
+
162
+ @media $mobile {
163
+ width: 650px;
164
+ height: 83px;
165
+
166
+ background-image: url("data:image/svg+xml,%3Csvg width='650' height='83' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23a)'%3E%3Cpath d='M174.448 30h301.105c13.675 1.569 13.675 21.431 0 23H174.448c-13.675-1.569-13.675-21.431 0-23Z' fill='url(%23b)'/%3E%3C/g%3E%3Cg opacity='.2' filter='url(%23c)'%3E%3Cpath d='M521.876 53H128.124c-14.047-1.232-14.047-21.768 0-23h393.752c14.047 1.232 14.047 21.768 0 23Z' fill='url(%23d)'/%3E%3C/g%3E%3Cg filter='url(%23e)'%3E%3Cpath d='M167.441 36h315.118L664 42.5 482.559 49H167.441L-14 42.5 167.441 36Z' fill='url(%23f)'/%3E%3C/g%3E%3Cg filter='url(%23g)'%3E%3Crect x='215.675' y='23' width='218.65' height='37' rx='18.5' fill='url(%23h)'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='b' x1='113.699' y1='42' x2='546.124' y2='41.578' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23B851FF'/%3E%3Cstop offset='.247' stop-color='%238372FF' stop-opacity='.01'/%3E%3Cstop offset='.501' stop-color='%234C94FF'/%3E%3Cstop offset='.747' stop-color='%2339C0B5' stop-opacity='.19'/%3E%3Cstop offset='1' stop-color='%2326EA6D'/%3E%3C/linearGradient%3E%3ClinearGradient id='d' x1='601.316' y1='41' x2='35.839' y2='41.722' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23B851FF'/%3E%3Cstop offset='.247' stop-color='%238372FF' stop-opacity='.01'/%3E%3Cstop offset='.501' stop-color='%234C94FF'/%3E%3Cstop offset='.747' stop-color='%2339C0B5' stop-opacity='.19'/%3E%3Cstop offset='1' stop-color='%2326EA6D'/%3E%3C/linearGradient%3E%3ClinearGradient id='f' x1='35.76' y1='42.5' x2='623.881' y2='42.5' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%239F39E4'/%3E%3Cstop offset='.501' stop-color='%234C94FF'/%3E%3Cstop offset='1' stop-color='%2326EA6D'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='231.722' y1='41.5' x2='421.387' y2='41.5' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23B851FF'/%3E%3Cstop offset='.501' stop-color='%234C94FF'/%3E%3Cstop offset='1' stop-color='%2326EA6D'/%3E%3C/linearGradient%3E%3Cfilter id='a' x='141.192' y='7' width='367.617' height='69' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='11.5' result='effect1_foregroundBlur_695_864'/%3E%3C/filter%3E%3Cfilter id='c' x='94.588' y='7' width='460.823' height='69' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='11.5' result='effect1_foregroundBlur_695_864'/%3E%3C/filter%3E%3Cfilter id='e' x='-48' y='2' width='746' height='81' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='17' result='effect1_foregroundBlur_695_864'/%3E%3C/filter%3E%3Cfilter id='g' x='192.675' y='0' width='264.65' height='83' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeGaussianBlur stdDeviation='11.5' result='effect1_foregroundBlur_695_864'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
167
+ }
130
168
  }
131
169
 
132
170
  .center {
@@ -17,15 +17,16 @@ export const DonatesTeaser: React.FC<DonatesTeaserProps> = ({
17
17
 
18
18
  const data = {
19
19
  ru: {
20
- title: '«Медуза» работает для вас',
21
- subtitle: 'Нам нужна ваша поддержка',
22
- button: 'Да!',
20
+ title: 'Успеть сделать важное дело:<br/>Поддержать «Медузу» — ',
21
+ // subtitle: 'Нам нужна ваша поддержка',
22
+ button: 'Бегу!',
23
23
  href: 'https://support.meduza.io'
24
24
  },
25
25
  en: {
26
- title: 'Meduza is working for you',
27
- subtitle: 'And we need your support',
28
- button: 'Okay!',
26
+ title:
27
+ 'There’s still time for a good deed&nbsp;in&nbsp;2021!<br/>Support Meduza — ',
28
+ // subtitle: 'And we need your support',
29
+ button: 'Donate',
29
30
  href: 'https://support.meduza.io/en'
30
31
  }
31
32
  }
@@ -35,11 +36,11 @@ export const DonatesTeaser: React.FC<DonatesTeaserProps> = ({
35
36
  <div className={styles.main}>
36
37
  <h3 className={styles.title}>
37
38
  <span dangerouslySetInnerHTML={{ __html: data[lang].title }} />
38
- {` `}
39
+ {/* {` `}
39
40
  <span
40
41
  className={styles.text}
41
42
  dangerouslySetInnerHTML={{ __html: data[lang].subtitle }}
42
- />
43
+ /> */}
43
44
  </h3>
44
45
  </div>
45
46
 
@@ -17,6 +17,7 @@ import { Table } from '../Table'
17
17
  import { MaterialNote } from '../MaterialNote'
18
18
  import { SensitiveBlock } from '../SensitiveBlock'
19
19
  import { DonatesTeaser } from '../DonatesTeaser'
20
+ import { AnnouncementInText } from '../AnnouncementInText'
20
21
 
21
22
  export const RenderBlocks: React.FC<RenderBlocksProps> = ({
22
23
  block,
@@ -126,6 +127,9 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
126
127
  case 'material_note':
127
128
  return <MaterialNote block={block} styleContext={styleContext} />
128
129
 
130
+ case 'announcement_in_text':
131
+ return <AnnouncementInText styleContext={styleContext} lang={lang} />
132
+
129
133
  default: {
130
134
  return null
131
135
  }
package/src/index.tsx CHANGED
@@ -41,4 +41,5 @@ export * from './RelatedRichBlock'
41
41
  export * from './SensitiveBlock'
42
42
  export * from './DonatesTeaser'
43
43
  export * from './ShopRelatedBlock'
44
+ export * from './AnnouncementInText'
44
45
  // /* PLOP_INJECT_LINK */ //