diff --git a/web/.prettierrc b/web/.prettierrc
new file mode 100644
index 0000000..3f7802c
--- /dev/null
+++ b/web/.prettierrc
@@ -0,0 +1,15 @@
+{
+ "useTabs": true,
+ "singleQuote": true,
+ "trailingComma": "none",
+ "printWidth": 100,
+ "plugins": ["prettier-plugin-svelte"],
+ "overrides": [
+ {
+ "files": "*.svelte",
+ "options": {
+ "parser": "svelte"
+ }
+ }
+ ]
+}
diff --git a/web/src/lib/components/NavLink.svelte b/web/src/lib/components/NavLink.svelte
new file mode 100644
index 0000000..85b10c5
--- /dev/null
+++ b/web/src/lib/components/NavLink.svelte
@@ -0,0 +1,28 @@
+
+
+
+
+ {label}
+
diff --git a/web/src/lib/pacman.ts b/web/src/lib/pacman.ts
index 754fdc7..ff9039a 100644
--- a/web/src/lib/pacman.ts
+++ b/web/src/lib/pacman.ts
@@ -6,7 +6,7 @@ export interface PacmanModule {
_stop_game?: () => void;
_restart_game?: () => void;
locateFile: (path: string) => string;
- preRun: unknown[];
+ preRun: Array<() => void>;
// Emscripten lifecycle hooks
onAbort?: (what: unknown) => void;
onRuntimeInitialized?: () => void;
diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte
index 0effc58..0e8662f 100644
--- a/web/src/routes/+layout.svelte
+++ b/web/src/routes/+layout.svelte
@@ -1,6 +1,7 @@
-
{
+ if (e.key === 'Enter' || e.key === ' ') {
+ e.preventDefault();
+ handleInteraction();
+ }
+ }}
>
diff --git a/web/src/routes/download/+page.svelte b/web/src/routes/download/+page.svelte
index 8bfdbcd..fc55ec6 100644
--- a/web/src/routes/download/+page.svelte
+++ b/web/src/routes/download/+page.svelte
@@ -1,6 +1,3 @@
-
-