From b9907896f82b1e3ee0350265fc6d88ed0a1388ab Mon Sep 17 00:00:00 2001 From: itsrubberduck Date: Sun, 21 Sep 2025 09:03:22 +0200 Subject: [PATCH] improve learn page --- app/pages/learn.vue | 373 ++++++++++++++++++++++++++------------------ 1 file changed, 221 insertions(+), 152 deletions(-) diff --git a/app/pages/learn.vue b/app/pages/learn.vue index 20b59b4..e7d05a7 100644 --- a/app/pages/learn.vue +++ b/app/pages/learn.vue @@ -29,6 +29,7 @@ +
@@ -36,41 +37,10 @@

Pilot Comms Trainer

- Build confident pilot readbacks with scenario-driven missions, instant scoring, and badges that react to your flying. + Build confident pilot readbacks with scenario-driven missions, instant scoring, and badges that react to + your flying.

-
-
-
- Lvl {{ level }} - {{ levelProgress }}% -
-
-
- Next objective -
- {{ primaryObjective ? primaryObjective.title : 'Choose a mission to begin' }} -
-

- {{ - primaryObjective - ? primaryObjective.description - : 'Open any mission below to start your first readback drills.' - }} -

-
-
-
-

{{ primaryObjective.status }}

-
-
@@ -81,7 +51,8 @@

{{ missionObjective.description }}

-
+
{{ missionObjective.status }}
@@ -101,21 +72,27 @@
-
mdi-headset
+
+ mdi-headset +
{{ finishedLessons }}/{{ totalLessons }}
Lessons complete
-
mdi-target-account
+
+ mdi-target-account +
{{ missionCompletionPct }}%
Mission progress
-
mdi-star-shooting
+
+ mdi-star-shooting +
{{ finishedLessons ? globalAccuracy + '%' : '—' }}
Avg. best score
@@ -200,12 +177,12 @@
-
+
{{ scenario.frequencyWords[activeFrequency.type] }}
@@ -264,10 +242,10 @@
{{ activeLesson.desc }}
+ class="target-text" + :class="{ 'audio-blur': audioContentHidden }" + :aria-hidden="audioContentHidden ? 'true' : 'false'" + > {{ targetPhrase }}
@@ -276,21 +254,23 @@
@@ -307,11 +287,11 @@ {{ hint }}
+ v-for="info in lessonInfo" + :key="info" + :class="['hint', 'secondary', { 'audio-blur': audioContentHidden }]" + :aria-hidden="audioContentHidden ? 'true' : 'false'" + > mdi-information-outline {{ info }}
@@ -322,24 +302,26 @@
Your readback
-