neura-packages 1.0.7 → 1.0.8
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 +1 -1
- package/ui/button3/index.css +27 -0
- package/ui/button3/index.jsx +4 -2
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
body {
|
|
2
|
+
background-color: #f0f0f0;
|
|
3
|
+
font-family: Arial, sans-serif;
|
|
4
|
+
}
|
|
5
|
+
.neo-brutalism-btn {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
padding: 20px 40px;
|
|
9
|
+
border: 4px solid #000;
|
|
10
|
+
border-radius: 0;
|
|
11
|
+
background-color: #ff69b4;
|
|
12
|
+
color: #000;
|
|
13
|
+
font-size: 18px;
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
text-transform: uppercase;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
box-shadow: 10px 10px 0 #000;
|
|
18
|
+
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
19
|
+
}
|
|
20
|
+
.neo-brutalism-btn:hover {
|
|
21
|
+
box-shadow: 15px 15px 0 #000;
|
|
22
|
+
transform: translate(-5px, -5px);
|
|
23
|
+
}
|
|
24
|
+
.neo-brutalism-btn:active {
|
|
25
|
+
box-shadow: 5px 5px 0 #000;
|
|
26
|
+
transform: translate(5px, 5px);
|
|
27
|
+
}
|
package/ui/button3/index.jsx
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.css';
|
|
3
3
|
|
|
4
|
-
const Index = ({ children, className =
|
|
4
|
+
const Index = ({ children, className = "", ...props }) => {
|
|
5
5
|
return (
|
|
6
|
-
<button className={`neo-brutalism-btn ${className}`} {...props}>
|
|
6
|
+
<button className={`neo-brutalism-btn ${className}`} {...props}>
|
|
7
|
+
{children || "Click Me"}
|
|
8
|
+
</button>
|
|
7
9
|
);
|
|
8
10
|
};
|
|
9
11
|
|