import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
component: () => import('@/views/Home.vue')
|
|
},
|
|
{
|
|
path: '/ecosystem',
|
|
name: 'Ecosystem',
|
|
component: () => import('@/views/Ecosystem.vue')
|
|
},
|
|
{
|
|
path: '/about',
|
|
name: 'About',
|
|
component: () => import('@/views/About.vue')
|
|
},
|
|
{
|
|
path: '/community',
|
|
name: 'Community',
|
|
component: () => import('@/views/Community.vue')
|
|
},
|
|
{
|
|
path: '/faq',
|
|
name: 'FAQ',
|
|
component: () => import('@/views/FAQ.vue')
|
|
},
|
|
{
|
|
path: '/contact',
|
|
name: 'Contact',
|
|
component: () => import('@/views/Contact.vue')
|
|
},
|
|
{
|
|
path: '/technology',
|
|
name: 'Technology',
|
|
component: () => import('@/views/Technology.vue')
|
|
},
|
|
// {
|
|
// path: '/animations',
|
|
// name: 'Animations',
|
|
// component: () => import('@/components/AnimationDemo.vue')
|
|
// },
|
|
{
|
|
path: '/:pathMatch(.*)*',
|
|
name: 'NotFound',
|
|
component: () => import('@/views/NotFound.vue')
|
|
}
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
scrollBehavior() {
|
|
return { top: 0 }
|
|
}
|
|
})
|
|
|
|
export default router
|