From 2bbaab8793ad87854bfc10f4e57fba802df5e6d1 Mon Sep 17 00:00:00 2001 From: clucraft Date: Sat, 24 Jan 2026 03:41:02 -0500 Subject: [PATCH] Add particle background effect - Pure CSS/JS particle animation behind all content - Multiple layers with different speeds for depth effect - Theme-aware: white particles on dark mode, purple on light mode - Low opacity for subtle, non-distracting ambiance - Uses box-shadow technique for performance Co-Authored-By: Claude Opus 4.5 --- frontend/src/components/Layout.tsx | 3 + .../src/components/ParticleBackground.tsx | 108 ++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 frontend/src/components/ParticleBackground.tsx diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 38cab79..abbb786 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -2,6 +2,7 @@ import { ReactNode, useState, useEffect, useRef } from 'react'; import { Link, useNavigate } from 'react-router-dom'; import { useAuth } from '../hooks/useAuth'; import NotificationBell from './NotificationBell'; +import ParticleBackground from './ParticleBackground'; interface LayoutProps { children: ReactNode; @@ -293,6 +294,8 @@ export default function Layout({ children }: LayoutProps) { } `} + +