Add feedback page and gate classroom behind orientation

This commit is contained in:
Remi
2025-10-05 13:55:00 +02:00
committed by itsrubberduck
parent 7445222be2
commit 911c44b50b
4 changed files with 34 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
import {CLASSROOM_INTRO_STORAGE_KEY} from '~~/shared/constants/storage'
export default defineNuxtRouteMiddleware(() => {
if (process.server) return
const introComplete = localStorage.getItem(CLASSROOM_INTRO_STORAGE_KEY) === 'true'
if (!introComplete) {
return navigateTo('/classroom-introduction')
}
})