diff options
| author | 2026-03-26 09:06:24 +0800 | |
|---|---|---|
| committer | 2026-03-26 09:06:24 +0800 | |
| commit | 788715b1ca5ab5b67fcc2e69650b74e14c953a57 (patch) | |
| tree | f3bba7f2e6671c6998c69092486958c755a50293 /packages/ui/src/pages/index.tsx | |
| parent | 18aceb4ddf01e964d0b81a4e926e42b72c64e355 (diff) | |
| download | DropOut-788715b1ca5ab5b67fcc2e69650b74e14c953a57.tar.gz DropOut-788715b1ca5ab5b67fcc2e69650b74e14c953a57.zip | |
chore: add missing file
Diffstat (limited to 'packages/ui/src/pages/index.tsx')
| -rw-r--r-- | packages/ui/src/pages/index.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/ui/src/pages/index.tsx b/packages/ui/src/pages/index.tsx index 093ccb2..d12646b 100644 --- a/packages/ui/src/pages/index.tsx +++ b/packages/ui/src/pages/index.tsx @@ -45,8 +45,6 @@ export function IndexPage() { <div className="absolute inset-0 opacity-100 bg-linear-to-br from-emerald-100 via-gray-100 to-indigo-100"></div> )} - {location.pathname === "/" && <ParticleBackground />} - <div className="absolute inset-0 bg-linear-to-t from-zinc-900 via-transparent to-black/50 dark:from-zinc-900 dark:to-black/50"></div> </> )} @@ -71,7 +69,13 @@ export function IndexPage() { <Sidebar /> <main className="size-full overflow-hidden"> - <Outlet /> + {location.pathname === "/" ? ( + <ParticleBackground> + <Outlet /> + </ParticleBackground> + ) : ( + <Outlet /> + )} </main> </div> </div> |