mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-23 14:01:56 +00:00
Implemented navigation through website
This commit is contained in:
11
src/lib/navigation.js
Normal file
11
src/lib/navigation.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { goto } from "$app/navigation";
|
||||
import { error } from '@sveltejs/kit';
|
||||
|
||||
export const navigation = {
|
||||
toHome: () => goto("/"),
|
||||
toAbout: () => goto("/about"),
|
||||
toContact: () => goto("/contact"),
|
||||
to404: () => {
|
||||
throw error(404, 'Page not found');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user