diff --git a/template/apps/client/package.json b/template/apps/client/package.json index 76e206f..4c7e753 100644 --- a/template/apps/client/package.json +++ b/template/apps/client/package.json @@ -23,7 +23,8 @@ "@sanity/client": "^7.8.2", "@sanity/svelte-loader": "^1.13.48", "@sanity/visual-editing": "^3.0.2", - "@sveltejs/adapter-cloudflare-workers": "^2.9.0" + "@sveltejs/adapter-cloudflare-workers": "^2.9.0", + "zod": "^4.1.0" }, "devDependencies": { "@internationalized/date": "^3.8.1", @@ -35,11 +36,15 @@ "@tailwindcss/vite": "^4.1.11", "bits-ui": "^2.8.6", "clsx": "^2.1.1", + "formsnap": "^2.0.1", + "mode-watcher": "^1.0.8", "prettier": "^3.6.2", "prettier-plugin-svelte": "^3.4.0", "prettier-plugin-tailwindcss": "^0.6.14", "svelte": "^5.37.3", "svelte-check": "^4.3.1", + "svelte-sonner": "^1.0.5", + "sveltekit-superforms": "^2.26.1", "tailwind-merge": "^3.3.1", "tailwind-variants": "^1.0.0", "tailwindcss": "^4.1.11", diff --git a/template/apps/client/src/lib/components/navbar.svelte b/template/apps/client/src/lib/components/navbar.svelte index 97ad457..9a3b851 100644 --- a/template/apps/client/src/lib/components/navbar.svelte +++ b/template/apps/client/src/lib/components/navbar.svelte @@ -228,66 +228,69 @@
{#each items || [] as item, index} {#if item.url && !item.subitems} -
- -
+ {:else if item.subitems} -
- {#if index === activeIndex} -
- {/if} - + {:else} +
+ {item.name} +
+ {/if} +
- +
+ +
+ +
{#if expandedSubmenu === item.name}
- {#if item.url} - - {/if} {#each item.subitems as subitem}