nomadro/apps/nomadvip/app/cloudphone/components/ParticleBackground.tsx
eric 56b29205e7 Integrate four verticals into nomadro portal with shared packages and API gateway.
Mount /vip with nomadvip+payjsapi, add @nomadro/pay|pb|sdk, apps/api, /admin shell, and backup/rollback scripts under git.nomadro.cn workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 20:16:44 -05:00

31 lines
758 B
TypeScript

"use client";
/**
* 纯 CSS 粒子背景 - 不依赖 @tsparticles
*/
export function ParticleBackground() {
const dots = Array.from({ length: 30 }, (_, i) => i);
return (
<div
className="absolute inset-0 pointer-events-none overflow-hidden"
aria-hidden
>
{dots.map((i) => (
<div
key={i}
className="absolute rounded-full bg-[var(--accent)] opacity-[0.08] animate-pulse"
style={{
width: `${2 + (i % 4)}px`,
height: `${2 + (i % 4)}px`,
left: `${(i * 7) % 100}%`,
top: `${(i * 11) % 100}%`,
animationDelay: `${(i % 5) * 0.5}s`,
animationDuration: `${2 + (i % 3)}s`,
}}
/>
))}
</div>
);
}