From 71e01488dc7924beff9de1e973ffc27e5b2ce1c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Mon, 6 Oct 2025 11:16:57 +0200 Subject: [PATCH] Mobile version is taking shape --- src/App.tsx | 97 ++++++++++++++++++++++++++----- src/components/EffectsBar.tsx | 2 +- src/components/EngineControls.tsx | 7 ++- 3 files changed, 89 insertions(+), 17 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index d658e3bc..d2519ad4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -36,6 +36,7 @@ function App() { const [customTile, setCustomTile] = useState(() => createTileStateFromCurrent('t*(8&t>>9)')) const [showWarning, setShowWarning] = useState(true) const [showHelp, setShowHelp] = useState(false) + const [mobileHeaderTab, setMobileHeaderTab] = useState<'global' | 'options' | 'modulate'>('global') const playbackManagerRef = useRef(null) const downloadServiceRef = useRef(new DownloadService()) const switchTimerRef = useRef(null) @@ -542,44 +543,110 @@ function App() { {showWarning && } {showHelp && setShowHelp(false)} />}
-
-
+ {/* Mobile header */} +
+

setShowHelp(true)} - className="font-mono text-[10px] md:text-sm tracking-[0.3em] text-white flex-shrink-0 cursor-pointer hover:opacity-70 transition-opacity" + className="font-mono text-[10px] tracking-[0.3em] text-white cursor-pointer hover:opacity-70 transition-opacity" > BRUITISTE

-
+
+ + + +
+
+ + {mobileHeaderTab === 'global' && ( +
-
-
+ )} + + {mobileHeaderTab === 'options' && ( + + )} + + {mobileHeaderTab === 'modulate' && ( + + )} +
+ + {/* Desktop header */} +
+

setShowHelp(true)} + className="font-mono text-sm tracking-[0.3em] text-white flex-shrink-0 cursor-pointer hover:opacity-70 transition-opacity" + > + BRUITISTE +

+
-
+