-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ ed.notice.value.text }}
diff --git a/app/components/editor/Help.vue b/app/components/editor/Help.vue
index 008b4a5..c676dd5 100644
--- a/app/components/editor/Help.vue
+++ b/app/components/editor/Help.vue
@@ -43,6 +43,7 @@ const SHORTCUTS: [string, string][] = [
['Ctrl+C, Ctrl+V, Ctrl+D', 'Copy, paste, duplicate; names continue their series (D0 → D1)'],
['Delete', 'Remove the selection'],
['Ctrl+Z, Ctrl+Shift+Z', 'Undo, redo'],
+ ['Logo (top left)', 'Back to the main menu: free play, campaign, challenges, leaderboard. Your work is saved'],
['F', 'Fit the circuit to the screen'],
['Enter', 'Open the selected component'],
]
diff --git a/app/components/editor/MainMenu.vue b/app/components/editor/MainMenu.vue
new file mode 100644
index 0000000..ef49cce
--- /dev/null
+++ b/app/components/editor/MainMenu.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
From one NAND gate to a computer
+
+
+
+
+
+ Continue
+ {{ ed.project.value.name }}
+
+
+
+
+
+ {{ it.label }}
+ {{ it.sub }}
+
+
+
+
+
+ Settings
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/components/editor/MenuBackground.vue b/app/components/editor/MenuBackground.vue
new file mode 100644
index 0000000..63c3c6f
--- /dev/null
+++ b/app/components/editor/MenuBackground.vue
@@ -0,0 +1,400 @@
+
+
+
+
+
diff --git a/app/components/editor/MenuCampaign.vue b/app/components/editor/MenuCampaign.vue
new file mode 100644
index 0000000..40f7f43
--- /dev/null
+++ b/app/components/editor/MenuCampaign.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
diff --git a/app/components/editor/MenuChallenges.vue b/app/components/editor/MenuChallenges.vue
new file mode 100644
index 0000000..f235e7a
--- /dev/null
+++ b/app/components/editor/MenuChallenges.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
Each one is a part to build from NAND gates and the parts you made before. Press Check when it works; fewer transistors is better.
+
+
+
diff --git a/app/components/editor/MenuLeaderboard.vue b/app/components/editor/MenuLeaderboard.vue
new file mode 100644
index 0000000..2e832e9
--- /dev/null
+++ b/app/components/editor/MenuLeaderboard.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
diff --git a/app/components/editor/Palette.vue b/app/components/editor/Palette.vue
index 8afa0dd..404d56f 100644
--- a/app/components/editor/Palette.vue
+++ b/app/components/editor/Palette.vue
@@ -7,7 +7,7 @@ import { BASIC_GROUPS } from '~/composables/useParts'
import type { ComponentDef, NodeKind } from '~/lib/logic/types'
const ed = useEditor()
-const tab = ref<'parts' | 'challenges'>('parts')
+const tab = ed.paletteTab
const query = ref('')
const { componentGroups, search, recentParts } = useParts()
diff --git a/app/components/editor/ProjectList.vue b/app/components/editor/ProjectList.vue
new file mode 100644
index 0000000..a9e639b
--- /dev/null
+++ b/app/components/editor/ProjectList.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+ Saved in this browser as you work.
+ Also kept in your account, so they are on every computer you sign in on.
+ Sign in to have them on every computer.
+
+
+
No projects yet. Start one below.
+
+
+
+
+
+ Recently deleted
+
+
+ Loading…
+ Nothing deleted in the last 30 days.
+
+
+
+
+
+
+ New campaign
+
+ New (NAND only)
+ New with examples
+ Open file
+
+
+
+
diff --git a/app/components/editor/ProjectsDialog.vue b/app/components/editor/ProjectsDialog.vue
index 94264a7..df18eff 100644
--- a/app/components/editor/ProjectsDialog.vue
+++ b/app/components/editor/ProjectsDialog.vue
@@ -1,45 +1,6 @@
@@ -49,81 +10,7 @@ function onFile(e: Event) {
Projects
-