diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 49ffd05..a3fbb9c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -19,11 +19,29 @@ export const metadata: Metadata = { keywords: ["media buying", "advertising strategy", "digital marketing", "brand growth", "ROI optimization"] }; +'use client'; + +import { useState } from 'react'; + export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { + const [isPlaying, setIsPlaying] = useState(false); + + const toggleMusic = () => { + const audio = document.getElementById('lofi-music') as HTMLAudioElement; + if (audio) { + if (isPlaying) { + audio.pause(); + } else { + audio.play(); + } + setIsPlaying(!isPlaying); + } + }; + return ( @@ -32,6 +50,32 @@ export default function RootLayout({ > {children} + + {/* Lofi Music Player */} +