diff --git a/src/App.jsx b/src/App.jsx index d251b7c..4023d25 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -20,6 +20,7 @@ function App() { const [isAppFullyReady, setIsAppFullyReady] = useState(false); const [transitionCompleted, setTransitionCompleted] = useState(false); const [isTheorySectionReady, setIsTheorySectionReady] = useState(false); + const [isTheoryOpen, setIsTheoryOpen] = useState(false); const { isLoading, @@ -103,6 +104,10 @@ function App() { }); }; + const toggleTheorySection = () => { + setIsTheoryOpen(!isTheoryOpen); + }; + // Renderizar ambos elementos con transiciones CSS return ( <> @@ -159,17 +164,43 @@ function App() { - {/* Lazy loading de la sección de teoría */} - -
Cargando contenido teórico...
+ {/* Sección de teoría con botón colapsable */} +
+
+ +
+ + {/* Contenedor colapsable con Tailwind CSS Grid */} +
+
+ {/* Lazy loading de la sección de teoría */} + +
Cargando contenido teórico...
+
+ }> + setIsTheorySectionReady(true)} /> + +
- }> - setIsTheorySectionReady(true)} /> -
+ {/* Footer */} -