react-support-ukraine-banner 1.1.0 → 1.1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "react-support-ukraine-banner",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "React component to show support for Ukraine with u24.gov.ua link on the top of the page.",
5
5
  "main": "dist/SupportUkraineBanner.ts",
6
6
  "scripts": {
@@ -40,4 +40,4 @@
40
40
  "engines": {
41
41
  "node": ">=10.0.0"
42
42
  }
43
- }
43
+ }
@@ -1,47 +0,0 @@
1
- body {
2
- margin-top: 35px;
3
- }
4
-
5
- .support-ukraine,
6
- .support-ukraine:visited {
7
- position: absolute;
8
- left: 0;
9
- top: 0;
10
- right: 0;
11
- background: rgb(0, 0, 0);
12
- display: flex;
13
- justify-content: center;
14
- padding-top: 5px;
15
- padding-bottom: 5px;
16
- z-index: 10000;
17
- text-decoration: none;
18
- font-family: arial;
19
- }
20
-
21
- .support-ukraine:hover,
22
- .support-ukraine:active {
23
- background: rgb(80, 80, 80);
24
- }
25
-
26
- .support-ukraine__flag {
27
- height: 25px;
28
- margin-right: 10px;
29
- }
30
-
31
- .support-ukraine__flag__blue {
32
- width: 40px;
33
- height: 12.5px;
34
- background: #005BBB;
35
- }
36
-
37
- .support-ukraine__flag__yellow {
38
- width: 40px;
39
- height: 12.5px;
40
- background: #FFD500;
41
- }
42
-
43
- .support-ukraine__label {
44
- color: white;
45
- font-size: 12px;
46
- line-height: 25px;
47
- }
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
-
3
- const SupportUkraineBanner: React.FC = () => {
4
- return (
5
- <a
6
- href="https://u24.gov.ua"
7
- target="_blank"
8
- rel="noopener noreferrer"
9
- title="Donate to support freedom."
10
- style={{
11
- position: 'absolute',
12
- left: 0,
13
- top: 0,
14
- right: 0,
15
- background: 'rgb(0, 0, 0)',
16
- display: 'flex',
17
- justifyContent: 'center',
18
- paddingTop: '5px',
19
- paddingBottom: '5px',
20
- zIndex: 10000,
21
- textDecoration: 'none',
22
- fontFamily: 'arial'
23
- }}
24
- >
25
- <div role="img" aria-label="Flag of Ukraine" style={{ height: '25px', marginRight: '10px' }}>
26
- <div style={{ width: '40px', height: '12.5px', background: '#005BBB' }}></div>
27
- <div style={{ width: '40px', height: '12.5px', background: '#FFD500' }}></div>
28
- </div>
29
- <div style={{ color: 'white', fontSize: '12px', lineHeight: '25px' }}>
30
- Donate to support freedom.
31
- </div>
32
- </a>
33
- );
34
- };
35
-
36
- export default SupportUkraineBanner;