diff --git a/src/__routes.svelte b/src/__routes.svelte index 07db58d..cab0bc1 100644 --- a/src/__routes.svelte +++ b/src/__routes.svelte @@ -4,6 +4,7 @@ import Layout from '$src/__layout.svelte' import Loading from '$src/__loading.svelte' import Error from '$src/__error.svelte' + import NavigationBarLayout from '$lib/components/Layouts/NavigationBarLayout.svelte' import('$routes/explore/explore.svelte'), }, { - path: '/profile', - component: () => import('$routes/profile/profile.svelte'), + path: '/profile/', + component: () => import('$src/__error.svelte'), }, { - path: '/profile/:function', + path: '/profile/:erantId', + component: () => import('$routes/profile/profile.svelte'), + layout: NavigationBarLayout, + }, + { + path: '/profile/setting/:function', component: () => import('$routes/profile/profile-functions.svelte'), }, { diff --git a/src/lib/collections.ts b/src/lib/collections.ts index 6e31bcf..b6272ae 100644 --- a/src/lib/collections.ts +++ b/src/lib/collections.ts @@ -1,7 +1,9 @@ import { Collection } from './appwrite' -const expiriences = new Collection('63cef30d6da945dd4250', '63cef4bd210fdf2e5888') +const experiences = new Collection('63cef30d6da945dd4250', '63cef4bd210fdf2e5888') +const users = new Collection('63ded6c18e8493bffc83', 'Users') export default { - expiriences, + experiences, + users, } diff --git a/src/lib/components/Layouts/NavigationBarLayout.svelte b/src/lib/components/Layouts/NavigationBarLayout.svelte index f82b1b7..663c7d4 100644 --- a/src/lib/components/Layouts/NavigationBarLayout.svelte +++ b/src/lib/components/Layouts/NavigationBarLayout.svelte @@ -1,8 +1,13 @@