feat: add gentle loading fallback after 3 seconds

If no lesson loads within 3 seconds, show a centered, gray notice
with fade-in animation suggesting to select from menu or check help.
Includes link to help dialog.
This commit is contained in:
2025-12-30 20:57:54 +01:00
parent 109c2fadcf
commit 138918995b
3 changed files with 47 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ const translations = {
resetAll: "Reset All",
// Dynamic content
loadingFallbackText: "Could not load lesson. Please select one from the menu or check the help.",
completed: "Completed",
successMessage: "CRISPY! ٩(◕‿◕)۶ Your code works correctly.",
keepTrying: "Keep trying!",
@@ -180,6 +181,7 @@ const translations = {
resetAll: "Alles zurücksetzen",
// Dynamic content
loadingFallbackText: "Lektion konnte nicht geladen werden. Bitte wähle eine aus dem Menü oder prüfe die Hilfe.",
completed: "Erledigt",
successMessage: "CRISPY! ٩(◕‿◕)۶ Dein Code funktioniert.",
keepTrying: "Weiter versuchen!",