neura-packages 1.0.21 → 1.0.22
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/UI/Pink-button/index.css +53 -0
- package/UI/Pink-button/index.jsx +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.organic-button {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
padding: 16px 32px;
|
|
5
|
+
border: none;
|
|
6
|
+
border-radius: 24px;
|
|
7
|
+
background-color: #ffc5c5;
|
|
8
|
+
color: #333;
|
|
9
|
+
font-size: 18px;
|
|
10
|
+
font-family: 'Great Vibes', cursive;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
box-shadow: 0 8px 16px rgba(255, 197, 197, 0.4);
|
|
13
|
+
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
14
|
+
}
|
|
15
|
+
.organic-button:hover {
|
|
16
|
+
background-color: #ffd7d7;
|
|
17
|
+
box-shadow: 0 12px 24px rgba(255, 215, 215, 0.6);
|
|
18
|
+
}
|
|
19
|
+
.organic-button::before {
|
|
20
|
+
content: '';
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 50%;
|
|
23
|
+
left: 50%;
|
|
24
|
+
transform: translate(-50%, -50%);
|
|
25
|
+
width: 24px;
|
|
26
|
+
height: 24px;
|
|
27
|
+
background-color: #ffe6e6;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
opacity: 0.6;
|
|
30
|
+
animation: blob 2s infinite;
|
|
31
|
+
}
|
|
32
|
+
@keyframes blob {
|
|
33
|
+
0% {
|
|
34
|
+
transform: translate(-50%, -50%) scale(1);
|
|
35
|
+
}
|
|
36
|
+
50% {
|
|
37
|
+
transform: translate(-50%, -50%) scale(1.2);
|
|
38
|
+
}
|
|
39
|
+
100% {
|
|
40
|
+
transform: translate(-50%, -50%) scale(1);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.hand-drawn-icon {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 50%;
|
|
46
|
+
left: 24px;
|
|
47
|
+
transform: translate(0, -50%);
|
|
48
|
+
width: 24px;
|
|
49
|
+
height: 24px;
|
|
50
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z" fill="%23fff"/></svg>');
|
|
51
|
+
background-size: 24px 24px;
|
|
52
|
+
background-repeat: no-repeat;
|
|
53
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
|
|
4
|
+
const Index = ({ className = '', children, text = 'Click me', src, ...props }) => {
|
|
5
|
+
return (
|
|
6
|
+
<button className={`organic-button ${className}`} {...props}>
|
|
7
|
+
<span className="hand-drawn-icon"></span>
|
|
8
|
+
{children || text}
|
|
9
|
+
</button>
|
|
10
|
+
);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default Index;
|