diff --git a/steps/index.html b/steps/index.html index 6acdba5..107c35d 100644 --- a/steps/index.html +++ b/steps/index.html @@ -249,6 +249,10 @@ class="bg-green-100 dark:bg-green-700 text-green-800 dark:text-green-100 border border-green-300 dark:border-green-600 shadow-sm hover:bg-green-200 dark:hover:bg-green-600 active:scale-95 active:shadow-inner font-medium rounded-lg text-xs px-4 py-2 transition-all text-center"> Quick-StartGuide + + CodebaseOverview + KeyboardShortcuts @@ -624,6 +628,27 @@ + + + + + + + + + + + + + Close + + + + + + + { + e.preventDefault(); + toggleCodebaseModal(true); + }); + codebaseModalCloseBtn.addEventListener("click", () => toggleCodebaseModal(false)); + codebaseModal.addEventListener("click", (e) => { + if (e.target === codebaseModal) { + toggleCodebaseModal(false); + } + }); // Global Key Listener for 'k' and 'ESC' document.addEventListener("keydown", (e) => { @@ -116,10 +144,12 @@ export function initUIEventListeners() { const isHidden = shortcutsModal.classList.contains("hidden"); toggleShortcutsModal(isHidden); } - // Prioritize closing the guide modal if open, then shortcuts modal + // Prioritize closing the guide modal if open, then codebase, then shortcuts if (e.key === "Escape") { if (!guideModal.classList.contains("hidden")) { toggleGuideModal(false); + } else if (!codebaseModal.classList.contains("hidden")) { + toggleCodebaseModal(false); } else if (!shortcutsModal.classList.contains("hidden")) { toggleShortcutsModal(false); }