diff --git a/apps/chat/apps/web/src/routes/(protected)/+layout.svelte b/apps/chat/apps/web/src/routes/(protected)/+layout.svelte index b334af65b..2a6ce0a97 100644 --- a/apps/chat/apps/web/src/routes/(protected)/+layout.svelte +++ b/apps/chat/apps/web/src/routes/(protected)/+layout.svelte @@ -187,6 +187,7 @@ {appItems} {userEmail} settingsHref="/settings" + manaHref="/mana" /> diff --git a/apps/chat/apps/web/src/routes/(protected)/mana/+page.svelte b/apps/chat/apps/web/src/routes/(protected)/mana/+page.svelte new file mode 100644 index 000000000..140114823 --- /dev/null +++ b/apps/chat/apps/web/src/routes/(protected)/mana/+page.svelte @@ -0,0 +1,32 @@ + + + + Mana - ManaChat + + +
+
+ +
+
diff --git a/apps/manacore/apps/web/src/routes/(app)/+layout.svelte b/apps/manacore/apps/web/src/routes/(app)/+layout.svelte index a8cbdc0b9..2ff2f3883 100644 --- a/apps/manacore/apps/web/src/routes/(app)/+layout.svelte +++ b/apps/manacore/apps/web/src/routes/(app)/+layout.svelte @@ -25,7 +25,7 @@ { href: '/dashboard', label: 'Dashboard', icon: 'home' }, { href: '/organizations', label: 'Organizations', icon: 'building' }, { href: '/teams', label: 'Teams', icon: 'users' }, - { href: '/subscription', label: 'Subscription', icon: 'creditCard' }, + { href: '/mana', label: 'Mana', icon: 'mana' }, { href: '/settings', label: 'Settings', icon: 'settings' }, ]; diff --git a/apps/manacore/apps/web/src/routes/(app)/subscription/+page.svelte b/apps/manacore/apps/web/src/routes/(app)/mana/+page.svelte similarity index 100% rename from apps/manacore/apps/web/src/routes/(app)/subscription/+page.svelte rename to apps/manacore/apps/web/src/routes/(app)/mana/+page.svelte diff --git a/apps/manadeck/apps/web/src/routes/(app)/+layout.svelte b/apps/manadeck/apps/web/src/routes/(app)/+layout.svelte index 0ceb9c349..5c4c8563d 100644 --- a/apps/manadeck/apps/web/src/routes/(app)/+layout.svelte +++ b/apps/manadeck/apps/web/src/routes/(app)/+layout.svelte @@ -25,7 +25,7 @@ { href: '/decks', label: 'Decks', icon: 'archive' }, { href: '/explore', label: 'Explore', icon: 'search' }, { href: '/progress', label: 'Progress', icon: 'chart' }, - { href: '/subscription', label: 'Mana', icon: 'mana' }, + { href: '/mana', label: 'Mana', icon: 'mana' }, { href: '/profile', label: 'Profile', icon: 'user' }, ]; diff --git a/apps/manadeck/apps/web/src/routes/(app)/subscription/+page.svelte b/apps/manadeck/apps/web/src/routes/(app)/mana/+page.svelte similarity index 100% rename from apps/manadeck/apps/web/src/routes/(app)/subscription/+page.svelte rename to apps/manadeck/apps/web/src/routes/(app)/mana/+page.svelte diff --git a/apps/picture/apps/web/src/lib/components/layout/Sidebar.svelte b/apps/picture/apps/web/src/lib/components/layout/Sidebar.svelte index 56461c72c..cd879f670 100644 --- a/apps/picture/apps/web/src/lib/components/layout/Sidebar.svelte +++ b/apps/picture/apps/web/src/lib/components/layout/Sidebar.svelte @@ -28,7 +28,6 @@ CloudArrowUp, Tag, Archive, - CurrencyCircleDollar, Question, CaretLeft, CaretDown, @@ -58,7 +57,7 @@ | 'upload' | 'tags' | 'archive' - | 'subscription'; + | 'mana'; function handleSearchInput(e: Event) { const target = e.target as HTMLInputElement; @@ -130,7 +129,7 @@ { path: '/app/upload', label: 'Upload', iconName: 'upload' }, { path: '/app/tags', label: 'Tags', iconName: 'tags' }, { path: '/app/archive', label: 'Archiv', iconName: 'archive' }, - { path: '/app/subscription', label: 'Abonnement', iconName: 'subscription' }, + { path: '/app/mana', label: 'Mana', iconName: 'mana' }, ]; @@ -192,8 +191,10 @@ {:else if item.iconName === 'archive'} - {:else if item.iconName === 'subscription'} - + {:else if item.iconName === 'mana'} + + + {/if} {item.label} @@ -486,8 +487,10 @@ {:else if item.iconName === 'archive'} - {:else if item.iconName === 'subscription'} - + {:else if item.iconName === 'mana'} + + + {/if} {item.label} @@ -542,8 +545,10 @@ {:else if item.iconName === 'archive'} - {:else if item.iconName === 'subscription'} - + {:else if item.iconName === 'mana'} + + + {/if} {item.label} diff --git a/apps/picture/apps/web/src/routes/app/+layout.svelte b/apps/picture/apps/web/src/routes/app/+layout.svelte index 25244a152..cc5a7b165 100644 --- a/apps/picture/apps/web/src/routes/app/+layout.svelte +++ b/apps/picture/apps/web/src/routes/app/+layout.svelte @@ -62,7 +62,7 @@ { href: '/app/upload', label: 'Upload', icon: 'upload' }, { href: '/app/tags', label: 'Tags', icon: 'tag' }, { href: '/app/archive', label: 'Archiv', icon: 'archive' }, - { href: '/app/subscription', label: 'Abo', icon: 'creditCard' }, + { href: '/app/mana', label: 'Mana', icon: 'mana' }, ]; // View mode options for tab group diff --git a/apps/picture/apps/web/src/routes/app/subscription/+page.svelte b/apps/picture/apps/web/src/routes/app/mana/+page.svelte similarity index 96% rename from apps/picture/apps/web/src/routes/app/subscription/+page.svelte rename to apps/picture/apps/web/src/routes/app/mana/+page.svelte index b9fa53030..c47bf3433 100644 --- a/apps/picture/apps/web/src/routes/app/subscription/+page.svelte +++ b/apps/picture/apps/web/src/routes/app/mana/+page.svelte @@ -14,7 +14,7 @@ - Abonnement - Picture + Mana - Picture
diff --git a/packages/shared-ui/src/navigation/PillDropdown.svelte b/packages/shared-ui/src/navigation/PillDropdown.svelte index 9924503f0..12900a308 100644 --- a/packages/shared-ui/src/navigation/PillDropdown.svelte +++ b/packages/shared-ui/src/navigation/PillDropdown.svelte @@ -81,6 +81,8 @@ 'M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1', // App icons grid: 'M4 5a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM14 5a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1V5zM4 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1v-4zM14 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z', + // Mana icon (water drop) + mana: 'M12.3 1c.03.05 7.3 9.67 7.3 13.7 0 4.03-3.27 7.3-7.3 7.3S5 18.73 5 14.7C5 10.66 12.3 1 12.3 1zm0 6.4c-.02.03-3.65 4.83-3.65 6.84 0 2.02 1.64 3.65 3.65 3.65s3.65-1.64 3.65-3.65c0-2.01-3.62-6.81-3.65-6.84z', }; function getIcon(iconName: string) { @@ -142,6 +144,10 @@ > {#if item.imageUrl} + {:else if item.icon === 'mana'} + + + {:else if item.icon} { + window.location.href = manaHref; + }, + active: currentPath === manaHref, + }, + ] + : []), { id: 'settings', label: 'Einstellungen',