@meduza/ui-kit-2 0.2.0 → 0.2.2

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.0",
2
+ "version": "0.2.2",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -14,7 +14,7 @@
14
14
 
15
15
  text-decoration: none;
16
16
 
17
- background-color: #f66861;
17
+ background-color: #000;
18
18
 
19
19
  outline-width: 0;
20
20
 
@@ -26,10 +26,6 @@
26
26
  }
27
27
  }
28
28
 
29
- .root:hover .ctaInner::after {
30
- opacity: 0.7;
31
- }
32
-
33
29
  .main {
34
30
  max-width: 852px;
35
31
  margin: 0 auto;
@@ -52,6 +48,8 @@
52
48
  }
53
49
 
54
50
  .text {
51
+ display: block;
52
+
55
53
  margin: 0;
56
54
 
57
55
  font-weight: normal;
@@ -82,7 +80,7 @@
82
80
  .cta a {
83
81
  display: block;
84
82
 
85
- color: rgba(246, 104, 97, 1);
83
+ color: #fff;
86
84
  font-weight: 600;
87
85
 
88
86
  font-size: 11px;
@@ -116,19 +114,15 @@
116
114
 
117
115
  .ctaInner::after {
118
116
  position: absolute;
119
- top: 0;
120
- right: 0;
121
- bottom: 0;
122
- left: 0;
117
+ top: 50%;
118
+ left: 50%;
123
119
  z-index: -1;
124
120
 
125
- background-color: #eafe0b;
126
-
127
- border-radius: 40px;
128
-
129
- filter: blur(10px);
121
+ width: 501px;
122
+ height: 112px;
130
123
 
131
- transition: opacity 250ms ease;
124
+ background-image: url("data:image/svg+xml,%3Csvg width='501' height='112' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_f)'%3E%3Cpath d='M466 56s-96.463 21-215.401 21C131.662 77 35 56 35 56s96.463-21 215.401-21C369.338 35 466 56 466 56z' fill='%23947E5D'/%3E%3C/g%3E%3Cg filter='url(%23filter1_df)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M140.431 55.604c0-11.38 9.224-20.604 20.603-20.604h178.932c11.379 0 20.604 9.225 20.604 20.604s-9.225 20.603-20.604 20.603H161.034c-11.379 0-20.603-9.224-20.603-20.603z' fill='%23000'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_f' x='0' y='0' width='501' height='112' 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.5' result='effect1_foregroundBlur'/%3E%3C/filter%3E%3Cfilter id='filter1_df' x='106.431' y='1' width='288.139' height='109.208' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='17'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3CfeBlend in2='BackgroundImageFix' result='effect1_dropShadow'/%3E%3CfeBlend in='SourceGraphic' in2='effect1_dropShadow' result='shape'/%3E%3CfeGaussianBlur stdDeviation='2' result='effect2_foregroundBlur'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
125
+ transform: translate(-50%, -50%);
132
126
 
133
127
  content: '';
134
128
  }
@@ -17,16 +17,15 @@ export const DonatesTeaser: React.FC<DonatesTeaserProps> = ({
17
17
 
18
18
  const data = {
19
19
  ru: {
20
- title: 'Слушайте музыку, помогайте «Медузе»',
21
- // subtitle:
22
- // '&laquo;Медуза&raquo; продолжает работать, потому что есть&nbsp;вы',
23
- button: 'Дать денег',
20
+ title: 'Мы не сдаемся',
21
+ subtitle: 'Потому что вы с нами',
22
+ button: '«Медуза», я с тобой ',
24
23
  href: 'https://support.meduza.io'
25
24
  },
26
25
  en: {
27
- title: 'Tune in and help Meduza!',
28
- // subtitle: 'We’re only here thanks to you.',
29
- button: 'Pledge today',
26
+ title: 'We won’t give up',
27
+ subtitle: 'Because you’re with us',
28
+ button: 'I’m with you, Meduza',
30
29
  href: 'https://support.meduza.io/en'
31
30
  }
32
31
  }
@@ -36,11 +35,11 @@ export const DonatesTeaser: React.FC<DonatesTeaserProps> = ({
36
35
  <div className={styles.main}>
37
36
  <h3 className={styles.title}>
38
37
  <span dangerouslySetInnerHTML={{ __html: data[lang].title }} />
39
- {/* {` `}
38
+ {` `}
40
39
  <span
41
40
  className={styles.text}
42
41
  dangerouslySetInnerHTML={{ __html: data[lang].subtitle }}
43
- /> */}
42
+ />
44
43
  </h3>
45
44
  </div>
46
45
 
@@ -7,9 +7,10 @@
7
7
  display: block;
8
8
  overflow: hidden;
9
9
 
10
+ color: #000;
11
+
10
12
  text-decoration: none;
11
13
 
12
- color: #000;
13
14
  border-radius: 8px;
14
15
  outline-width: 0;
15
16
 
@@ -26,15 +27,15 @@
26
27
 
27
28
  .root::after {
28
29
  position: absolute;
29
- z-index: 20;
30
30
  top: 0;
31
31
  right: 0;
32
32
  bottom: 0;
33
33
  left: 0;
34
-
35
- content: '';
34
+ z-index: 20;
36
35
 
37
36
  border-radius: 8px;
37
+
38
+ content: '';
38
39
  }
39
40
 
40
41
  .root::before {
@@ -60,9 +61,9 @@
60
61
  .overlay,
61
62
  .overlayHeader {
62
63
  position: absolute;
63
- z-index: 10;
64
64
  right: 0;
65
65
  left: 0;
66
+ z-index: 10;
66
67
  }
67
68
 
68
69
  .overlay {
@@ -88,10 +89,10 @@
88
89
 
89
90
  @media $mobile {
90
91
  position: absolute;
91
- z-index: 10;
92
92
  right: 0;
93
93
  bottom: 0;
94
94
  left: 0;
95
+ z-index: 10;
95
96
 
96
97
  min-height: 295px;
97
98
  padding: 20px;
@@ -103,10 +104,10 @@
103
104
  .hasGradient .body {
104
105
  @media $mobile {
105
106
  position: absolute;
106
- z-index: 10;
107
107
  right: 0;
108
108
  bottom: 0;
109
109
  left: 0;
110
+ z-index: 10;
110
111
 
111
112
  min-height: 295px;
112
113
 
@@ -120,15 +121,15 @@
120
121
 
121
122
  .picture::after {
122
123
  position: absolute;
123
- z-index: 10;
124
124
  right: 1px;
125
125
  bottom: 0;
126
126
  left: 1px;
127
-
128
- content: '';
127
+ z-index: 10;
129
128
 
130
129
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
131
130
 
131
+ content: '';
132
+
132
133
  @media $mobile {
133
134
  content: '';
134
135
  }
@@ -136,10 +137,10 @@
136
137
 
137
138
  .tag {
138
139
  position: absolute;
139
- z-index: 10;
140
140
  top: 14px;
141
141
  right: 15px;
142
142
  left: 15px;
143
+ z-index: 10;
143
144
 
144
145
  color: rgba(255, 255, 255, 0.7);
145
146
 
@@ -160,9 +161,9 @@
160
161
  }
161
162
 
162
163
  .title {
163
- font-family: $secondaryFont;
164
- font-size: 19px;
165
164
  font-weight: 700;
165
+ font-size: 19px;
166
+ font-family: $secondaryFont;
166
167
  line-height: 23px;
167
168
 
168
169
  @media $landscapeTablet {