From 1175543e32c809e66aac9882ee1d7d4a6de95612 Mon Sep 17 00:00:00 2001 From: Norbert Maciaszek Date: Sat, 16 Aug 2025 16:32:42 +0200 Subject: [PATCH] Add AuroraBackground component for enhanced visual effects: integrate a new background effect with gradient and aurora styles into the RootLayout, improving overall aesthetics and user experience. --- src/app/layout.tsx | 4 ++- src/components/effects/AuroraBackground.tsx | 30 +++++++++++++++++++++ src/components/effects/index.ts | 1 + 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/components/effects/AuroraBackground.tsx create mode 100644 src/components/effects/index.ts diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 16910c8..29e3aff 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -4,6 +4,7 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import { Navbar } from "@/components/organisms/Navbar"; import { GlobalStoreProvider } from "./store/globalStore"; +import { AuroraBackground } from "@/components/effects"; const geistSans = Geist({ variable: "--font-geist-sans", @@ -31,8 +32,9 @@ export default async function RootLayout({ className={`${geistSans.variable} ${geistMono.variable} antialiased`} > + -
+
{children}
diff --git a/src/components/effects/AuroraBackground.tsx b/src/components/effects/AuroraBackground.tsx new file mode 100644 index 0000000..dd1d9bf --- /dev/null +++ b/src/components/effects/AuroraBackground.tsx @@ -0,0 +1,30 @@ +export const AuroraBackground = () => { + return ( +
+ {/* Base dark background with subtle aurora gradients */} +
+ + {/* Static aurora effects */} +
+ {/* Top-left aurora glow */} +
+ + {/* Top-right aurora glow */} +
+ + {/* Center aurora wave */} +
+ + {/* Bottom aurora glow */} +
+ + {/* Right side accent */} +
+
+ + {/* Gradient mesh overlay for content readability */} +
+
+
+ ); +}; diff --git a/src/components/effects/index.ts b/src/components/effects/index.ts new file mode 100644 index 0000000..8ea037d --- /dev/null +++ b/src/components/effects/index.ts @@ -0,0 +1 @@ +export { AuroraBackground } from "./AuroraBackground";