From 2bd096f7cebdb051d04a3fbaaba2b085c0170d86 Mon Sep 17 00:00:00 2001 From: Pablo Occhiuzzi <104530403+opablon@users.noreply.github.com> Date: Wed, 6 Aug 2025 13:37:35 +0000 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20agregar=20secci=C3=B3n=20te=C3=B3ri?= =?UTF-8?q?ca=20colapsable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.jsx | 41 ++++++++++++++++++++++++++++++++++------- src/index.css | 15 +++++++++++++++ 2 files changed, 49 insertions(+), 7 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index d251b7c..cfd9dd6 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,14 +164,36 @@ 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 CSS Grid */} +
+
+ {/* Lazy loading de la sección de teoría */} + +
Cargando contenido teórico...
+
+ }> + setIsTheorySectionReady(true)} /> + +
- }> - setIsTheorySectionReady(true)} /> -
+ {/* Footer */}