Upload src/components/BackgroundElements.tsx with huggingface_hub
Browse files
src/components/BackgroundElements.tsx
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { motion } from 'motion/react';
|
| 2 |
+
|
| 3 |
+
export default function BackgroundElements() {
|
| 4 |
+
return (
|
| 5 |
+
<div className="fixed inset-0 pointer-events-none -z-10 overflow-hidden">
|
| 6 |
+
<motion.div
|
| 7 |
+
animate={{ y: [0, 50, 0], opacity: [0.1, 0.3, 0.1] }}
|
| 8 |
+
transition={{ duration: 10, repeat: Infinity, ease: "linear" }}
|
| 9 |
+
className="absolute top-10 left-20 w-64 h-64 border border-white/5 rounded-full"
|
| 10 |
+
/>
|
| 11 |
+
<motion.div
|
| 12 |
+
animate={{ y: [0, -30, 0], opacity: [0.05, 0.2, 0.05] }}
|
| 13 |
+
transition={{ duration: 15, repeat: Infinity, ease: "linear" }}
|
| 14 |
+
className="absolute bottom-20 right-40 w-96 h-96 border border-white/5 rounded-full"
|
| 15 |
+
/>
|
| 16 |
+
</div>
|
| 17 |
+
);
|
| 18 |
+
}
|