diff --git a/public/audio/musica.mp3 b/public/audio/musica.mp3
deleted file mode 100644
index bb68138..0000000
Binary files a/public/audio/musica.mp3 and /dev/null differ
diff --git a/src/app/(landing)/components/AppShell.tsx b/src/app/(landing)/components/AppShell.tsx
index 6738bb9..ca59747 100644
--- a/src/app/(landing)/components/AppShell.tsx
+++ b/src/app/(landing)/components/AppShell.tsx
@@ -7,7 +7,6 @@ import { Navbar } from "./Navbar";
import { Footer } from "./Footer";
import { FloatingButtons } from "./FloatingButtons";
import { CookieBanner } from "./CookieBanner";
-import { MusicPlayer } from "./MusicPlayer";
const BARE_ROUTES = ["/demo-hero", "/admin"];
@@ -31,7 +30,6 @@ export const AppShell = ({ children }: { children: React.ReactNode }) => {
{children}
{}} />
-
diff --git a/src/app/(landing)/components/MusicPlayer.tsx b/src/app/(landing)/components/MusicPlayer.tsx
deleted file mode 100644
index f5df136..0000000
--- a/src/app/(landing)/components/MusicPlayer.tsx
+++ /dev/null
@@ -1,93 +0,0 @@
-"use client";
-import { Icon } from "@iconify/react";
-import { useEffect, useRef, useState } from "react";
-
-const TRACK_SRC = "/audio/musica.mp3";
-const PREF_KEY = "rynext_music_enabled";
-
-export const MusicPlayer = ({
- className = "bottom-6 left-6",
- inline = false,
-}: {
- className?: string;
- inline?: boolean;
-}) => {
- const audioRef = useRef(null);
- const [playing, setPlaying] = useState(false);
-
- useEffect(() => {
- const audio = audioRef.current;
- if (!audio) return;
-
- audio.volume = 0.05;
-
- // Respeta la última preferencia del usuario (guardada en localStorage):
- // si la silenció, no la reinicia sola al recargar la página.
- let muted = false;
- try {
- muted = localStorage.getItem(PREF_KEY) === "off";
- } catch {}
- if (muted) return;
-
- // Si el navegador bloquea el autoplay, no la arrancamos con cualquier
- // interacción (scroll, tecla, etc.) — solo el botón de reproducir debe
- // encenderla, para que no "se mueva sola" al navegar la página.
- audio.play().then(() => setPlaying(true)).catch(() => {});
- }, []);
-
- function toggle() {
- const audio = audioRef.current;
- if (!audio) return;
- if (playing) {
- audio.pause();
- setPlaying(false);
- try { localStorage.setItem(PREF_KEY, "off"); } catch {}
- } else {
- audio
- .play()
- .then(() => {
- setPlaying(true);
- try { localStorage.setItem(PREF_KEY, "on"); } catch {}
- })
- .catch(() => {});
- }
- }
-
- return (
- <>
-
- {inline ? (
-
- ) : (
-
- )}
- >
- );
-};
diff --git a/src/app/admin/components/Header.tsx b/src/app/admin/components/Header.tsx
index 2fc8ac5..e3f3528 100644
--- a/src/app/admin/components/Header.tsx
+++ b/src/app/admin/components/Header.tsx
@@ -7,7 +7,6 @@ import { useAuthStore } from "../store/authStore";
import { useEmployees } from "@/app/admin/hr/services/hr.service";
import { getInitials } from "../utils/avatar";
import ThemeToggle from "./ThemeToggle";
-import { MusicPlayer } from "@/app/(landing)/components/MusicPlayer";
export default function Header({ collapsed, onCollapse }: { collapsed: boolean; onCollapse: (v: boolean) => void }) {
const router = useRouter();
@@ -76,7 +75,6 @@ export default function Header({ collapsed, onCollapse }: { collapsed: boolean;
>
Ver landing
-